1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Set up new cheat for special colors

This commit is contained in:
Trevor Finney
2023-02-20 13:02:12 -05:00
parent 025f467ed2
commit 77a36a48bb
9 changed files with 42 additions and 2 deletions

View File

@@ -461,8 +461,10 @@ int32_t DropdownIndexFromPoint(const ScreenCoordsXY& loc, WindowBase* w)
void WindowDropdownShowColour(WindowBase* w, Widget* widget, uint8_t dropdownColour, uint8_t selectedColour)
{
int32_t defaultIndex = -1;
auto numColors = (gCheatsAllowSpecialColorSchemes) ? COLOUR_NUM_NORMAL : COLOUR_COUNT;
// Set items
for (uint64_t i = 0; i < COLOUR_COUNT; i++)
for (uint64_t i = 0; i < numColors; i++)
{
if (selectedColour == COLOUR_UI_ORDER[i])
defaultIndex = selectedColour;