(svn r23757) -Codechange: Unify the drawing of toggle buttons for boolean settings.

This commit is contained in:
frosch
2012-01-05 19:32:51 +00:00
parent 2fb393fcd0
commit 69e197c87f
5 changed files with 18 additions and 5 deletions

View File

@@ -197,7 +197,7 @@ struct CheatWindow : Window {
case SLE_BOOL: {
bool on = (*(bool*)ce->variable);
DrawFrameRect(button_left, y + 1, button_left + 20 - 1, y + FONT_HEIGHT_NORMAL - 1, on ? COLOUR_GREEN : COLOUR_RED, on ? FR_LOWERED : FR_NONE);
DrawBoolButton(button_left, y, on, true);
SetDParam(0, on ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF);
break;
}