mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add tooltip to explain why sprite selection is disabled.
This commit is contained in:
parent
907f18fd69
commit
e405867dae
|
@ -4496,6 +4496,7 @@ STR_6186 :No sprite selected
|
|||
STR_6187 :{MEDIUMFONT}{OUTLINE}{WINDOW_COLOUR_2}{STRING}
|
||||
STR_6188 :Vomit
|
||||
STR_6189 :Duck
|
||||
STR_6190 :{SMALLFONT}{BLACK}You cannot select a sprite while the main title screen is active.
|
||||
|
||||
#############
|
||||
# Scenarios #
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue