1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Replace display options tab with custom sprites

This commit is contained in:
spacek531
2025-04-17 07:45:03 -07:00
committed by GitHub
parent 9f6bb28e82
commit 2249dffe91
21 changed files with 95 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
- Improved: [#21767] RCT Classic for macOS can now be used as the source game.
- Improved: [#23982] The scenario objective window has been merged into the scenario options window.
- Change: [#23803] Lightning strikes and thunder happen at the same frequency independently of the game speed.
- Change: [#23857] Replace display options tab with custom sprites.
- Change: [#24069] [Plugin] Plugins are now available in the scenario editor and track designer.
- Change: [#24135] Compress Emscripten js/wasm files.
- Fix: [#21919] Non-recolourable cars still show colour picker.

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

View File

@@ -363,6 +363,86 @@
"path": "icons/weather_blizzard.png",
"x": 1
},
{
"path": "icons/monitor_0.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_1.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_2.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_3.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_4.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_5.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_6.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_7.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_8.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_9.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_10.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_11.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_12.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_13.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_14.png",
"x": 3,
"y": 3
},
{
"path": "icons/monitor_15.png",
"x": 3,
"y": 3
},
{
"path": "logo_mono_dithered.png"
},

View File

@@ -2140,7 +2140,7 @@ namespace OpenRCT2::Ui::Windows
void DrawTabImages(DrawPixelInfo& dpi)
{
DrawTabImage(dpi, WINDOW_OPTIONS_PAGE_DISPLAY, SPR_TAB_PAINT_0);
DrawTabImage(dpi, WINDOW_OPTIONS_PAGE_DISPLAY, SPR_G2_MONITOR_TAB_START);
DrawTabImage(dpi, WINDOW_OPTIONS_PAGE_RENDERING, SPR_G2_TAB_TREE);
DrawTabImage(dpi, WINDOW_OPTIONS_PAGE_CULTURE, SPR_TAB_TIMER_0);
DrawTabImage(dpi, WINDOW_OPTIONS_PAGE_AUDIO, SPR_TAB_MUSIC_0);
@@ -2245,13 +2245,13 @@ namespace OpenRCT2::Ui::Windows
};
static constexpr int32_t TabAnimationFrames[] = {
8, // WINDOW_OPTIONS_PAGE_DISPLAY,
1, // WINDOW_OPTIONS_PAGE_RENDERING,
8, // WINDOW_OPTIONS_PAGE_CULTURE,
16, // WINDOW_OPTIONS_PAGE_AUDIO,
4, // WINDOW_OPTIONS_PAGE_CONTROLS_AND_INTERFACE,
16, // WINDOW_OPTIONS_PAGE_MISC,
16, // WINDOW_OPTIONS_PAGE_ADVANCED,
SPR_G2_MONITOR_TAB_END - SPR_G2_MONITOR_TAB_START, // WINDOW_OPTIONS_PAGE_DISPLAY,
1, // WINDOW_OPTIONS_PAGE_RENDERING,
8, // WINDOW_OPTIONS_PAGE_CULTURE,
16, // WINDOW_OPTIONS_PAGE_AUDIO,
4, // WINDOW_OPTIONS_PAGE_CONTROLS_AND_INTERFACE,
16, // WINDOW_OPTIONS_PAGE_MISC,
16, // WINDOW_OPTIONS_PAGE_ADVANCED,
};
};

View File

@@ -983,11 +983,14 @@ enum : ImageIndex
SPR_G2_WEATHER_SNOW,
SPR_G2_WEATHER_HEAVY_SNOW,
SPR_G2_WEATHER_BLIZZARD,
SPR_G2_MONITOR_TAB_START,
SPR_G2_MONITOR_TAB_END = SPR_G2_MONITOR_TAB_START + 15,
SPR_G2_LOGO_MONO_DITHERED,
// G2 Loading progress
SPR_G2_LOADER_HYBRID_SUPPORTS,
SPR_G2_LOADER_START = SPR_G2_LOGO_MONO_DITHERED + 1,
SPR_G2_LOADER_HYBRID_SUPPORTS = SPR_G2_LOADER_START,
SPR_G2_LOADER_HYBRID_TRACK,
SPR_G2_LOADER_HYBRID_VEHICLE,
SPR_G2_LOADER_STEEL_SUPPORTS,

View File

@@ -169,6 +169,8 @@ namespace OpenRCT2::Scripting
{ "selection_edge_se", SPR_G2_SELECTION_EDGE_SE },
{ "palette_invisible", SPR_G2_ICON_PALETTE_INVISIBLE },
{ "palette_invisible_pressed", SPR_G2_ICON_PALETTE_INVISIBLE_PRESSED },
{ "monitor_start", SPR_G2_MONITOR_TAB_START },
{ "monitor_end", SPR_G2_MONITOR_TAB_END },
};
// Maps legacy G2 icons sprite indices to new sprite indices