diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 35031abed8..61f0604f5e 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -3854,3 +3854,21 @@ STR_7060 :Guests watching construction of {STRINGID} STR_7061 :Guests looking at scenery STR_7062 :Guests leaving the park STR_7063 :Guests watching new ride being constructed +STR_7064 :Gold +STR_7065 :Amber +STR_7066 :Amethyst +STR_7067 :Asparagus +STR_7068 :Brown +STR_7069 :Burnt pink +STR_7070 :Cactus +STR_7071 :Caramel +STR_7072 :Copper +STR_7073 :Crimson +STR_7074 :Darker water +STR_7075 :Emerald +STR_7076 :Indigo +STR_7077 :Pesto +STR_7078 :Pine green +STR_7079 :Ruby +STR_7080 :Deep blue +STR_7081 :Silver diff --git a/resources/palettes/map_base/palette_map_amber.png b/resources/palettes/map_base/palette_map_amber.png new file mode 100644 index 0000000000..202b0e15db Binary files /dev/null and b/resources/palettes/map_base/palette_map_amber.png differ diff --git a/resources/palettes/map_base/palette_map_amethyst.png b/resources/palettes/map_base/palette_map_amethyst.png new file mode 100644 index 0000000000..d53c873c46 Binary files /dev/null and b/resources/palettes/map_base/palette_map_amethyst.png differ diff --git a/resources/palettes/map_base/palette_map_asparagus.png b/resources/palettes/map_base/palette_map_asparagus.png new file mode 100644 index 0000000000..9c0ecf529e Binary files /dev/null and b/resources/palettes/map_base/palette_map_asparagus.png differ diff --git a/resources/palettes/map_base/palette_map_brown.png b/resources/palettes/map_base/palette_map_brown.png new file mode 100644 index 0000000000..48923c709c Binary files /dev/null and b/resources/palettes/map_base/palette_map_brown.png differ diff --git a/resources/palettes/map_base/palette_map_burnt_pink.png b/resources/palettes/map_base/palette_map_burnt_pink.png new file mode 100644 index 0000000000..a1f6d57543 Binary files /dev/null and b/resources/palettes/map_base/palette_map_burnt_pink.png differ diff --git a/resources/palettes/map_base/palette_map_cactus.png b/resources/palettes/map_base/palette_map_cactus.png new file mode 100644 index 0000000000..bafff786d1 Binary files /dev/null and b/resources/palettes/map_base/palette_map_cactus.png differ diff --git a/resources/palettes/map_base/palette_map_caramel.png b/resources/palettes/map_base/palette_map_caramel.png new file mode 100644 index 0000000000..13d95161f8 Binary files /dev/null and b/resources/palettes/map_base/palette_map_caramel.png differ diff --git a/resources/palettes/map_base/palette_map_copper.png b/resources/palettes/map_base/palette_map_copper.png new file mode 100644 index 0000000000..65e879b13f Binary files /dev/null and b/resources/palettes/map_base/palette_map_copper.png differ diff --git a/resources/palettes/map_base/palette_map_crimson.png b/resources/palettes/map_base/palette_map_crimson.png new file mode 100644 index 0000000000..7a007d26f0 Binary files /dev/null and b/resources/palettes/map_base/palette_map_crimson.png differ diff --git a/resources/palettes/map_base/palette_map_darker_water.png b/resources/palettes/map_base/palette_map_darker_water.png new file mode 100644 index 0000000000..c3574020f8 Binary files /dev/null and b/resources/palettes/map_base/palette_map_darker_water.png differ diff --git a/resources/palettes/map_base/palette_map_deep_blue.png b/resources/palettes/map_base/palette_map_deep_blue.png new file mode 100644 index 0000000000..912e63c7a1 Binary files /dev/null and b/resources/palettes/map_base/palette_map_deep_blue.png differ diff --git a/resources/palettes/map_base/palette_map_emerald.png b/resources/palettes/map_base/palette_map_emerald.png new file mode 100644 index 0000000000..f5990eb96f Binary files /dev/null and b/resources/palettes/map_base/palette_map_emerald.png differ diff --git a/resources/palettes/map_base/palette_map_gold.png b/resources/palettes/map_base/palette_map_gold.png new file mode 100644 index 0000000000..48aba1404b Binary files /dev/null and b/resources/palettes/map_base/palette_map_gold.png differ diff --git a/resources/palettes/map_base/palette_map_indigo.png b/resources/palettes/map_base/palette_map_indigo.png new file mode 100644 index 0000000000..07cf5f444e Binary files /dev/null and b/resources/palettes/map_base/palette_map_indigo.png differ diff --git a/resources/palettes/map_base/palette_map_pesto.png b/resources/palettes/map_base/palette_map_pesto.png new file mode 100644 index 0000000000..5219040672 Binary files /dev/null and b/resources/palettes/map_base/palette_map_pesto.png differ diff --git a/resources/palettes/map_base/palette_map_pine_green.png b/resources/palettes/map_base/palette_map_pine_green.png new file mode 100644 index 0000000000..47de4c5eb4 Binary files /dev/null and b/resources/palettes/map_base/palette_map_pine_green.png differ diff --git a/resources/palettes/map_base/palette_map_ruby.png b/resources/palettes/map_base/palette_map_ruby.png new file mode 100644 index 0000000000..9ccffad1cf Binary files /dev/null and b/resources/palettes/map_base/palette_map_ruby.png differ diff --git a/resources/palettes/map_base/palette_map_silver.png b/resources/palettes/map_base/palette_map_silver.png new file mode 100644 index 0000000000..1ba4f090b4 Binary files /dev/null and b/resources/palettes/map_base/palette_map_silver.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_amber.png b/resources/palettes/map_glass/palette_map_glass_amber.png new file mode 100644 index 0000000000..3ee629aded Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_amber.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_amethyst.png b/resources/palettes/map_glass/palette_map_glass_amethyst.png new file mode 100644 index 0000000000..b6ddad8506 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_amethyst.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_asparagus.png b/resources/palettes/map_glass/palette_map_glass_asparagus.png new file mode 100644 index 0000000000..7af210a317 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_asparagus.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_brown.png b/resources/palettes/map_glass/palette_map_glass_brown.png new file mode 100644 index 0000000000..bf8d05266f Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_brown.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_burnt_pink.png b/resources/palettes/map_glass/palette_map_glass_burnt_pink.png new file mode 100644 index 0000000000..f77024a0cc Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_burnt_pink.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_cactus.png b/resources/palettes/map_glass/palette_map_glass_cactus.png new file mode 100644 index 0000000000..f2cfeb3fa9 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_cactus.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_caramel.png b/resources/palettes/map_glass/palette_map_glass_caramel.png new file mode 100644 index 0000000000..ce5e9831ab Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_caramel.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_copper.png b/resources/palettes/map_glass/palette_map_glass_copper.png new file mode 100644 index 0000000000..4f4120253c Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_copper.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_crimson.png b/resources/palettes/map_glass/palette_map_glass_crimson.png new file mode 100644 index 0000000000..522e27bc86 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_crimson.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_darker_water.png b/resources/palettes/map_glass/palette_map_glass_darker_water.png new file mode 100644 index 0000000000..8b29ee30c0 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_darker_water.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_deep_blue.png b/resources/palettes/map_glass/palette_map_glass_deep_blue.png new file mode 100644 index 0000000000..30e6af1040 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_deep_blue.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_emerald.png b/resources/palettes/map_glass/palette_map_glass_emerald.png new file mode 100644 index 0000000000..049710ac1f Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_emerald.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_gold.png b/resources/palettes/map_glass/palette_map_glass_gold.png new file mode 100644 index 0000000000..502f69e013 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_gold.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_indigo.png b/resources/palettes/map_glass/palette_map_glass_indigo.png new file mode 100644 index 0000000000..3019b8f544 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_indigo.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_pesto.png b/resources/palettes/map_glass/palette_map_glass_pesto.png new file mode 100644 index 0000000000..19c381b413 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_pesto.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_pine_green.png b/resources/palettes/map_glass/palette_map_glass_pine_green.png new file mode 100644 index 0000000000..01eea0975c Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_pine_green.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_ruby.png b/resources/palettes/map_glass/palette_map_glass_ruby.png new file mode 100644 index 0000000000..a71f5db3e6 Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_ruby.png differ diff --git a/resources/palettes/map_glass/palette_map_glass_silver.png b/resources/palettes/map_glass/palette_map_glass_silver.png new file mode 100644 index 0000000000..e44e2253ab Binary files /dev/null and b/resources/palettes/map_glass/palette_map_glass_silver.png differ diff --git a/resources/palettes/sprites.json b/resources/palettes/sprites.json index a55b506d22..a35008a4f9 100644 --- a/resources/palettes/sprites.json +++ b/resources/palettes/sprites.json @@ -664,6 +664,96 @@ "palette": "keep", "format": "raw" }, + { + "path": "map_base/palette_map_gold.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_amber.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_amethyst.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_asparagus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_brown.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_burnt_pink.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_cactus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_caramel.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_copper.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_crimson.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_darker_water.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_emerald.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_indigo.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_pesto.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_pine_green.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_ruby.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_deep_blue.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_silver.png", + "palette": "keep", + "format": "raw" + }, { "path": "map_base/palette_map_water.png", "palette": "keep", @@ -1343,5 +1433,95 @@ "path": "map_glass/palette_map_glass_void.png", "palette": "keep", "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_gold.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_amber.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_amethyst.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_asparagus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_brown.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_burnt_pink.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_cactus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_caramel.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_copper.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_crimson.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_darker_water.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_emerald.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_indigo.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_pesto.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_pine_green.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_ruby.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_deep_blue.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_silver.png", + "palette": "keep", + "format": "raw" } ] diff --git a/src/openrct2-ui/UiStringIds.h b/src/openrct2-ui/UiStringIds.h index 55836af200..8c3c5a0ecc 100644 --- a/src/openrct2-ui/UiStringIds.h +++ b/src/openrct2-ui/UiStringIds.h @@ -91,6 +91,24 @@ namespace OpenRCT2 STR_COLOUR_DULL_GREEN_DARK_TIP = 6564, STR_COLOUR_DULL_GREEN_LIGHT_TIP = 6565, STR_COLOUR_DULL_PURPLE_LIGHT_TIP = 6563, + STR_COLOUR_GOLD_TIP = 7064, + STR_COLOUR_AMBER_TIP = 7065, + STR_COLOUR_AMETHYST_TIP = 7066, + STR_COLOUR_ASPARAGUS_TIP = 7067, + STR_COLOUR_BROWN_TIP = 7068, + STR_COLOUR_BURNT_PINK_TIP = 7069, + STR_COLOUR_CACTUS_TIP = 7070, + STR_COLOUR_CARAMEL_TIP = 7071, + STR_COLOUR_COPPER_TIP = 7072, + STR_COLOUR_CRIMSON_TIP = 7073, + STR_COLOUR_DARKER_WATER_TIP = 7074, + STR_COLOUR_EMERALD_TIP = 7075, + STR_COLOUR_INDIGO_TIP = 7076, + STR_COLOUR_PESTO_TIP = 7077, + STR_COLOUR_PINE_GREEN_TIP = 7078, + STR_COLOUR_RUBY_TIP = 7079, + STR_COLOUR_DEEP_BLUE_TIP = 7080, + STR_COLOUR_SILVER_TIP = 7081, STR_COLOUR_GRASS_GREEN_DARK_TIP = 6556, STR_COLOUR_GRASS_GREEN_LIGHT_TIP = 6557, STR_COLOUR_GREY_TIP = 5517, diff --git a/src/openrct2-ui/windows/Dropdown.cpp b/src/openrct2-ui/windows/Dropdown.cpp index 66d4db5ae2..af06d0e0fb 100644 --- a/src/openrct2-ui/windows/Dropdown.cpp +++ b/src/openrct2-ui/windows/Dropdown.cpp @@ -516,9 +516,13 @@ namespace OpenRCT2::Ui::Windows // Colour ordered for use in colour dropdown static constexpr Colour kColoursDropdownOrder[] = { Colour::black, Colour::saturatedRed, Colour::darkOrange, Colour::darkYellow, - Colour::forestGreen, Colour::saturatedGreen, Colour::deepWater, Colour::darkBlue, + Colour::forestGreen, Colour::saturatedGreen, Colour::deepWater, Colour::deepBlue, Colour::violet, + Colour::silver, Colour::ruby, Colour::amber, Colour::gold, + Colour::cactus, Colour::emerald, Colour::darkerWater, Colour::darkBlue, + Colour::amethyst, + Colour::grey, Colour::brightRed, Colour::lightOrange, Colour::yellow, Colour::mossGreen, Colour::brightGreen, Colour::darkWater, Colour::lightBlue, Colour::brightPurple, @@ -531,7 +535,11 @@ namespace OpenRCT2::Ui::Windows Colour::armyGreen, Colour::hunterGreen, Colour::viridian, Colour::darkPurple, Colour::darkPink, - Colour::darkBrown, Colour::bordeauxRed, Colour::salmonPink, Colour::lightBrown, + Colour::darkBrown, Colour::crimson, Colour::copper, Colour::caramel, + Colour::pesto, Colour::asparagus, Colour::pineGreen, Colour::indigo, + Colour::burntPink, + + Colour::brown, Colour::bordeauxRed, Colour::salmonPink, Colour::lightBrown, Colour::darkOliveGreen, Colour::oliveGreen, Colour::darkGreen, Colour::lightPurple, Colour::brightPink, @@ -550,9 +558,19 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_GRASS_GREEN_DARK_TIP, STR_COLOUR_SATURATED_GREEN_TIP, STR_COLOUR_DEEP_WATER_TIP, - STR_COLOUR_DARK_BLUE_TIP, + STR_COLOUR_DEEP_BLUE_TIP, STR_COLOUR_SATURATED_PURPLE_DARK_TIP, + STR_COLOUR_SILVER_TIP, + STR_COLOUR_RUBY_TIP, + STR_COLOUR_AMBER_TIP, + STR_COLOUR_GOLD_TIP, + STR_COLOUR_CACTUS_TIP, + STR_COLOUR_EMERALD_TIP, + STR_COLOUR_DARKER_WATER_TIP, + STR_COLOUR_DARK_BLUE_TIP, + STR_COLOUR_AMETHYST_TIP, + STR_COLOUR_GREY_TIP, STR_COLOUR_BRIGHT_RED_TIP, STR_COLOUR_LIGHT_ORANGE_TIP, @@ -584,6 +602,16 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_DARK_PINK_TIP, STR_COLOUR_DARK_BROWN_TIP, + STR_COLOUR_CRIMSON_TIP, + STR_COLOUR_COPPER_TIP, + STR_COLOUR_CARAMEL_TIP, + STR_COLOUR_PESTO_TIP, + STR_COLOUR_ASPARAGUS_TIP, + STR_COLOUR_PINE_GREEN_TIP, + STR_COLOUR_INDIGO_TIP, + STR_COLOUR_BURNT_PINK_TIP, + + STR_COLOUR_BROWN_TIP, STR_COLOUR_BORDEAUX_RED_TIP, STR_COLOUR_SALMON_PINK_TIP, STR_COLOUR_LIGHT_BROWN_TIP, @@ -606,6 +634,7 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_INVISIBLE_TIP, STR_COLOUR_VOID_TIP, }; + static_assert(kColourTooltips.size() == kColourNumTotal); Colour ColourDropDownIndexToColour(uint8_t ddidx) { diff --git a/src/openrct2/SpriteIds.h b/src/openrct2/SpriteIds.h index d81a8e6c6d..500f1976b2 100644 --- a/src/openrct2/SpriteIds.h +++ b/src/openrct2/SpriteIds.h @@ -1286,6 +1286,24 @@ enum : ImageIndex SPR_PALETTE_DULL_BROWN_LIGHT, SPR_PALETTE_INVISIBLE, SPR_PALETTE_VOID, + SPR_PALETTE_GOLD, + SPR_PALETTE_AMBER, + SPR_PALETTE_AMETHYST, + SPR_PALETTE_ASPARAGUS, + SPR_PALETTE_BROWN, + SPR_PALETTE_BURNT_PINK, + SPR_PALETTE_CACTUS, + SPR_PALETTE_CARAMEL, + SPR_PALETTE_COPPER, + SPR_PALETTE_CRIMSON, + SPR_PALETTE_DARKER_WATER, + SPR_PALETTE_EMERALD, + SPR_PALETTE_INDIGO, + SPR_PALETTE_PESTO, + SPR_PALETTE_PINE_GREEN, + SPR_PALETTE_RUBY, + SPR_PALETTE_DEEP_BLUE, + SPR_PALETTE_SILVER, SPR_PALETTE_2_END, // Additional palettes dumped from G1 @@ -1431,6 +1449,24 @@ enum : ImageIndex SPR_PALETTE_GLASS_DULL_BROWN_LIGHT, SPR_PALETTE_GLASS_INVISIBLE, SPR_PALETTE_GLASS_VOID, + SPR_PALETTE_GLASS_GOLD, + SPR_PALETTE_GLASS_AMBER, + SPR_PALETTE_GLASS_AMETHYST, + SPR_PALETTE_GLASS_ASPARAGUS, + SPR_PALETTE_GLASS_BROWN, + SPR_PALETTE_GLASS_BURNT_PINK, + SPR_PALETTE_GLASS_CACTUS, + SPR_PALETTE_GLASS_CARAMEL, + SPR_PALETTE_GLASS_COPPER, + SPR_PALETTE_GLASS_CRIMSON, + SPR_PALETTE_GLASS_DARKER_WATER, + SPR_PALETTE_GLASS_EMERALD, + SPR_PALETTE_GLASS_INDIGO, + SPR_PALETTE_GLASS_PESTO, + SPR_PALETTE_GLASS_PINE_GREEN, + SPR_PALETTE_GLASS_RUBY, + SPR_PALETTE_GLASS_DEEP_BLUE, + SPR_PALETTE_GLASS_SILVER, SPR_PALETTE_END, // Sprite font characters diff --git a/src/openrct2/drawing/Colour.cpp b/src/openrct2/drawing/Colour.cpp index c23fbb1e4e..d383e0ba26 100644 --- a/src/openrct2/drawing/Colour.cpp +++ b/src/openrct2/drawing/Colour.cpp @@ -74,6 +74,24 @@ namespace OpenRCT2::Drawing { "dull_brown_light", Colour::beige }, { "invisible", Colour::invisible }, { "void", Colour::voidBackground }, + { "gold", Colour::gold }, + { "amber", Colour::amber }, + { "amethyst", Colour::amethyst }, + { "asparagus", Colour::asparagus }, + { "brown", Colour::brown }, + { "burnt_pink", Colour::burntPink }, + { "cactus", Colour::cactus }, + { "caramel", Colour::caramel }, + { "copper", Colour::copper }, + { "crimson", Colour::crimson }, + { "darker_water", Colour::darkerWater }, + { "emerald", Colour::emerald }, + { "indigo", Colour::indigo }, + { "pesto", Colour::pesto }, + { "pine_green", Colour::pineGreen }, + { "ruby", Colour::ruby }, + { "deep_blue", Colour::deepBlue }, + { "silver", Colour::silver }, }; Colour colourFromString(u8string s, Colour defaultValue) @@ -91,19 +109,27 @@ namespace OpenRCT2::Drawing return "black"; } + static Colour skipNonNormalColour(uint8_t input) + { + if (input >= EnumValue(Colour::invisible)) + return static_cast(input + 2); + + return static_cast(input); + } + Colour getRandomColour() { - return static_cast(UtilRand() % kColourNumNormal); + return skipNonNormalColour(UtilRand() % kColourNumNormal); } Colour getRandomColourNetworkSafe() { - return static_cast(ScenarioRandMax(kColourNumNormal)); + return skipNonNormalColour(ScenarioRandMax(kColourNumNormal)); } Colour getCycleColour(uint32_t ticks) { - return Colour((ticks / 32) % kColourNumNormal); + return skipNonNormalColour((ticks / 32) % kColourNumNormal); } Colour clampColour(uint8_t colour) diff --git a/src/openrct2/drawing/Colour.h b/src/openrct2/drawing/Colour.h index b84370b442..eaa64c02fb 100644 --- a/src/openrct2/drawing/Colour.h +++ b/src/openrct2/drawing/Colour.h @@ -80,10 +80,28 @@ namespace OpenRCT2::Drawing beige, invisible, voidBackground, + gold, + amber, + amethyst, + asparagus, + brown, + burntPink, + cactus, + caramel, + copper, + crimson, + darkerWater, + emerald, + indigo, + pesto, + pineGreen, + ruby, + deepBlue, + silver, }; - constexpr uint8_t kColourNumNormal = 54; - constexpr uint8_t kColourNumTotal = 56; + constexpr uint8_t kColourNumNormal = 72; + constexpr uint8_t kColourNumTotal = 74; constexpr auto kColourNull = static_cast(255); diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index b625934d1c..7498c2a5ac 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -85,6 +85,24 @@ static constexpr FilterPaletteID kGlassPaletteIds[kColourNumTotal] = { FilterPaletteID::paletteGlassDullBrownLight, FilterPaletteID::paletteGlassInvisible, FilterPaletteID::paletteGlassVoid, + FilterPaletteID::paletteGlassGold, + FilterPaletteID::paletteGlassAmber, + FilterPaletteID::paletteGlassAmethyst, + FilterPaletteID::paletteGlassAsparagus, + FilterPaletteID::paletteGlassBrown, + FilterPaletteID::paletteGlassBurntPink, + FilterPaletteID::paletteGlassCactus, + FilterPaletteID::paletteGlassCaramel, + FilterPaletteID::paletteGlassCopper, + FilterPaletteID::paletteGlassCrimson, + FilterPaletteID::paletteGlassDarkerWater, + FilterPaletteID::paletteGlassEmerald, + FilterPaletteID::paletteGlassIndigo, + FilterPaletteID::paletteGlassPesto, + FilterPaletteID::paletteGlassPineGreen, + FilterPaletteID::paletteGlassRuby, + FilterPaletteID::paletteGlassDeepBlue, + FilterPaletteID::paletteGlassSilver, }; // Previously 0x97FCBC use it to get the correct palette from g1_elements @@ -149,6 +167,24 @@ static constexpr uint16_t kPaletteToG1Offset[kPaletteTotalOffsets] = { SPR_PALETTE_DULL_BROWN_LIGHT, SPR_PALETTE_INVISIBLE, SPR_PALETTE_VOID, + SPR_PALETTE_GOLD, + SPR_PALETTE_AMBER, + SPR_PALETTE_AMETHYST, + SPR_PALETTE_ASPARAGUS, + SPR_PALETTE_BROWN, + SPR_PALETTE_BURNT_PINK, + SPR_PALETTE_CACTUS, + SPR_PALETTE_CARAMEL, + SPR_PALETTE_COPPER, + SPR_PALETTE_CRIMSON, + SPR_PALETTE_DARKER_WATER, + SPR_PALETTE_EMERALD, + SPR_PALETTE_INDIGO, + SPR_PALETTE_PESTO, + SPR_PALETTE_PINE_GREEN, + SPR_PALETTE_RUBY, + SPR_PALETTE_DEEP_BLUE, + SPR_PALETTE_SILVER, // Additional palettes SPR_PALETTE_WATER, @@ -293,6 +329,24 @@ static constexpr uint16_t kPaletteToG1Offset[kPaletteTotalOffsets] = { SPR_PALETTE_GLASS_DULL_BROWN_LIGHT, SPR_PALETTE_GLASS_INVISIBLE, SPR_PALETTE_GLASS_VOID, + SPR_PALETTE_GLASS_GOLD, + SPR_PALETTE_GLASS_AMBER, + SPR_PALETTE_GLASS_AMETHYST, + SPR_PALETTE_GLASS_ASPARAGUS, + SPR_PALETTE_GLASS_BROWN, + SPR_PALETTE_GLASS_BURNT_PINK, + SPR_PALETTE_GLASS_CACTUS, + SPR_PALETTE_GLASS_CARAMEL, + SPR_PALETTE_GLASS_COPPER, + SPR_PALETTE_GLASS_CRIMSON, + SPR_PALETTE_GLASS_DARKER_WATER, + SPR_PALETTE_GLASS_EMERALD, + SPR_PALETTE_GLASS_INDIGO, + SPR_PALETTE_GLASS_PESTO, + SPR_PALETTE_GLASS_PINE_GREEN, + SPR_PALETTE_GLASS_RUBY, + SPR_PALETTE_GLASS_DEEP_BLUE, + SPR_PALETTE_GLASS_SILVER, }; static constexpr TranslucentWindowPalette kWindowPaletteGrey = { FilterPaletteID::paletteTranslucentGrey, FilterPaletteID::paletteTranslucentGreyHighlight, FilterPaletteID::paletteTranslucentGreyShadow }; @@ -371,6 +425,24 @@ const TranslucentWindowPalette kTranslucentWindowPalettes[kColourNumTotal] = { kWindowPaletteDarkBrown, // Colour::beige { FilterPaletteID::paletteDarken1, FilterPaletteID::paletteDarken1, FilterPaletteID::paletteDarken1 }, { FilterPaletteID::paletteDarken2, FilterPaletteID::paletteDarken2, FilterPaletteID::paletteDarken2 }, + kWindowPaletteYellow, // Colour::gold + kWindowPaletteLightOrange, // Colour::amber + kWindowPaletteBrightPurple, // Colour::amethyst + kWindowPaletteOliveGreen, // Colour::asparagus + kWindowPaletteDarkBrown, // Colour::brown + kWindowPaletteBrightPink, // Colour::burntPink + kWindowPaletteMossGreen, // Colour::cactus + kWindowPaletteLightBrown, // Colour::caramel + kWindowPaletteSalmonPink, // Colour::copper + kWindowPaletteBordeauxRed, // Colour::crimson + kWindowPaletteTeal, // Colour::darkerWater + kWindowPaletteBrightGreen, // Colour::emerald + kWindowPaletteLightPurple, // Colour::indigo + kWindowPaletteDarkOliveGreen, // Colour::pesto + kWindowPaletteDarkGreen, // Colour::pineGreen + kWindowPaletteBrightRed, // Colour::ruby + kWindowPaletteLightBlue, // Colour::deepBlue + kWindowPaletteGrey, // Colour::silver }; // clang-format on diff --git a/src/openrct2/drawing/FilterPaletteIds.h b/src/openrct2/drawing/FilterPaletteIds.h index 6ad3f2981c..f0138eaed4 100644 --- a/src/openrct2/drawing/FilterPaletteIds.h +++ b/src/openrct2/drawing/FilterPaletteIds.h @@ -161,5 +161,23 @@ namespace OpenRCT2::Drawing paletteGlassDullBrownLight = paletteGlass + EnumValue(Colour::beige), paletteGlassInvisible = paletteGlass + EnumValue(Colour::invisible), paletteGlassVoid = paletteGlass + EnumValue(Colour::voidBackground), + paletteGlassGold = paletteGlass + EnumValue(Colour::gold), + paletteGlassAmber = paletteGlass + EnumValue(Colour::amber), + paletteGlassAmethyst = paletteGlass + EnumValue(Colour::amethyst), + paletteGlassAsparagus = paletteGlass + EnumValue(Colour::asparagus), + paletteGlassBrown = paletteGlass + EnumValue(Colour::brown), + paletteGlassBurntPink = paletteGlass + EnumValue(Colour::burntPink), + paletteGlassCactus = paletteGlass + EnumValue(Colour::cactus), + paletteGlassCaramel = paletteGlass + EnumValue(Colour::caramel), + paletteGlassCopper = paletteGlass + EnumValue(Colour::copper), + paletteGlassCrimson = paletteGlass + EnumValue(Colour::crimson), + paletteGlassDarkerWater = paletteGlass + EnumValue(Colour::darkerWater), + paletteGlassEmerald = paletteGlass + EnumValue(Colour::emerald), + paletteGlassIndigo = paletteGlass + EnumValue(Colour::indigo), + paletteGlassPesto = paletteGlass + EnumValue(Colour::pesto), + paletteGlassPineGreen = paletteGlass + EnumValue(Colour::pineGreen), + paletteGlassRuby = paletteGlass + EnumValue(Colour::ruby), + paletteGlassDeepBlue = paletteGlass + EnumValue(Colour::deepBlue), + paletteGlassSilver = paletteGlass + EnumValue(Colour::silver), }; } diff --git a/src/openrct2/park/ParkFile.h b/src/openrct2/park/ParkFile.h index 3bc88009d9..b265280513 100644 --- a/src/openrct2/park/ParkFile.h +++ b/src/openrct2/park/ParkFile.h @@ -19,7 +19,7 @@ namespace OpenRCT2 struct ObjectRepositoryItem; // Current version that is saved. - constexpr uint32_t kParkFileCurrentVersion = 62; + constexpr uint32_t kParkFileCurrentVersion = 63; // The minimum version that is forwards compatible with the current version. constexpr uint32_t kParkFileMinVersion = 57; @@ -62,6 +62,8 @@ namespace OpenRCT2 constexpr uint16_t kParkFileVersionUprightQuarterHelices = 60; constexpr uint16_t kExtendedInvertedRollerCoasterVersion = 61; constexpr uint16_t kColourableTerrainVersion = 62; + // Added 18 additional colours, including some removed colours from the RCT1 base game and betas. + constexpr uint16_t kExtendedColoursGoldVersion = 63; class ParkFileExporter {