1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Add tooltip to explain why sprite selection is disabled.

This commit is contained in:
Aaron van Geffen
2017-12-31 19:09:03 +01:00
parent 907f18fd69
commit e405867dae
3 changed files with 8 additions and 0 deletions

View File

@@ -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)