1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Add disabled tab sprite.

This commit is contained in:
Aaron van Geffen
2017-02-02 22:21:49 +01:00
parent eff15e9c9d
commit e60a92ecd8
3 changed files with 8 additions and 1 deletions

BIN
resources/g2/80.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

View File

@@ -751,6 +751,7 @@ enum {
SPR_G2_SORT = SPR_G2_BEGIN + 77,
SPR_G2_COPY = SPR_G2_BEGIN + 78,
SPR_G2_PASTE = SPR_G2_BEGIN + 79,
SPR_G2_TAB_DISABLED = SPR_G2_BEGIN + 80,
// 0x60000, chosen because it's a round hex number
// of the last possible range of image ID values that is large enough to fit all csg1 sprites.

View File

@@ -181,6 +181,12 @@ enum WINDOW_OPTIONS_WIDGET_IDX {
#define WW 310
#define WH 332
#ifndef DISABLE_TWITCH
#define TWITCH_TAB_SPRITE 0x20000000 | SPR_TAB
#else
#define TWITCH_TAB_SPRITE 0x20000000 | SPR_G2_TAB_DISABLED
#endif
#define MAIN_OPTIONS_WIDGETS \
{ WWT_FRAME, 0, 0, WW-1, 0, WH-1, STR_NONE, STR_NONE }, \
{ WWT_CAPTION, 0, 1, WW-2, 1, 14, STR_OPTIONS_TITLE, STR_WINDOW_TITLE_TIP }, \
@@ -192,7 +198,7 @@ enum WINDOW_OPTIONS_WIDGET_IDX {
{ WWT_TAB, 1, 96, 126, 17, 43, 0x20000000 | SPR_TAB, STR_OPTIONS_AUDIO_TIP }, \
{ WWT_TAB, 1, 127, 157, 17, 43, 0x20000000 | SPR_TAB, STR_OPTIONS_CONTROLS_AND_INTERFACE_TIP }, \
{ WWT_TAB, 1, 158, 188, 17, 43, 0x20000000 | SPR_TAB, STR_OPTIONS_MISCELLANEOUS_TIP }, \
{ WWT_TAB, 1, 189, 219, 17, 43, 0x20000000 | SPR_TAB, STR_OPTIONS_TWITCH_TIP }
{ WWT_TAB, 1, 189, 219, 17, 43, TWITCH_TAB_SPRITE, STR_OPTIONS_TWITCH_TIP }
static rct_widget window_options_display_widgets[] = {
MAIN_OPTIONS_WIDGETS,