equal
deleted
inserted
replaced
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); |