diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 7daad8021b..2da837eeff 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -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 # diff --git a/src/openrct2-ui/windows/TitleCommandEditor.cpp b/src/openrct2-ui/windows/TitleCommandEditor.cpp index 4c394da4c4..72c33454e0 100644 --- a/src/openrct2-ui/windows/TitleCommandEditor.cpp +++ b/src/openrct2-ui/windows/TitleCommandEditor.cpp @@ -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) diff --git a/src/openrct2/localisation/string_ids.h b/src/openrct2/localisation/string_ids.h index 20412f8c6a..a3d3db2529 100644 --- a/src/openrct2/localisation/string_ids.h +++ b/src/openrct2/localisation/string_ids.h @@ -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