mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Add tooltip to explain why sprite selection is disabled.
This commit is contained in:
@@ -744,9 +744,15 @@ static void window_title_command_editor_invalidate(rct_window * w)
|
||||
}
|
||||
|
||||
if ((gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) == SCREEN_FLAGS_TITLE_DEMO)
|
||||
{
|
||||
w->disabled_widgets |= (1 << WIDX_GET) | (1 << WIDX_SELECT_SPRITE);
|
||||
window_title_command_editor_widgets[WIDX_SELECT_SPRITE].tooltip = STR_TITLE_COMMAND_EDITOR_SELECT_SPRITE_TOOLTIP;
|
||||
}
|
||||
else
|
||||
{
|
||||
w->disabled_widgets &= ~((1 << WIDX_GET) | (1 << WIDX_SELECT_SPRITE));
|
||||
window_title_command_editor_widgets[WIDX_SELECT_SPRITE].tooltip = STR_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
static void window_title_command_editor_paint(rct_window * w, rct_drawpixelinfo * dpi)
|
||||
|
||||
@@ -3839,6 +3839,7 @@ enum {
|
||||
STR_TITLE_COMMAND_EDITOR_FORMAT_SPRITE_NAME = 6187,
|
||||
STR_LITTER_VOMIT = 6188,
|
||||
STR_DUCK = 6189,
|
||||
STR_TITLE_COMMAND_EDITOR_SELECT_SPRITE_TOOLTIP = 6190,
|
||||
|
||||
// Have to include resource strings (from scenarios and objects) for the time being now that language is partially working
|
||||
STR_COUNT = 32768
|
||||
|
||||
Reference in New Issue
Block a user