src/cheat_gui.cpp
changeset 9770 8c260fb382f8
parent 9751 9e9c726170cc
child 9858 c8e0746a5945
equal deleted inserted replaced
9769:4735b0ade87d 9770:8c260fb382f8
   146 
   146 
   147 			switch (ce->type) {
   147 			switch (ce->type) {
   148 				case SLE_BOOL: {
   148 				case SLE_BOOL: {
   149 					bool on = (*(bool*)ce->variable);
   149 					bool on = (*(bool*)ce->variable);
   150 
   150 
   151 					DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, on ? 6 : 4, on ? FR_LOWERED : FR_NONE);
   151 					DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, on ? COLOUR_GREEN : COLOUR_RED, on ? FR_LOWERED : FR_NONE);
   152 					SetDParam(0, on ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
   152 					SetDParam(0, on ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
   153 				} break;
   153 				} break;
   154 
   154 
   155 				default: {
   155 				default: {
   156 					int32 val = (int32)ReadValue(ce->variable, ce->type);
   156 					int32 val = (int32)ReadValue(ce->variable, ce->type);