1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Refactor of colours (#19998)

* Move dropdown functions to dropdown code

* Use a map for the colour tip

* Keep dropdownidx and colour seperated

* Allow number of rows to match vanilla

* Apply review comment

* Bump network version
This commit is contained in:
Duncan
2023-04-22 09:58:13 +01:00
committed by GitHub
parent 53642c0ae9
commit cdccb21dd5
16 changed files with 174 additions and 171 deletions

View File

@@ -680,7 +680,7 @@ namespace OpenRCT2::Ui::Windows
{
if (widgetDesc->Type == "colourpicker")
{
UpdateWidgetColour(this, widgetIndex, dropdownIndex);
UpdateWidgetColour(this, widgetIndex, ColourDropDownIndexToColour(dropdownIndex));
}
else if (widgetDesc->Type == "dropdown")
{