mirror of https://github.com/OpenTTD/OpenTTD
(svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls
parent
158d4acbba
commit
85c84c9d86
|
@ -157,7 +157,7 @@ struct CheatWindow : Window {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
|
|
||||||
/* Draw [<][>] boxes for settings of an integer-type */
|
/* Draw [<][>] boxes for settings of an integer-type */
|
||||||
DrawArrowButtons(x + 20, y, 3, clicked - (i * 2), true, true);
|
DrawArrowButtons(x + 20, y, COLOUR_YELLOW, clicked - (i * 2), true, true);
|
||||||
|
|
||||||
switch (ce->str) {
|
switch (ce->str) {
|
||||||
/* Display date for change date cheat */
|
/* Display date for change date cheat */
|
||||||
|
|
|
@ -536,7 +536,7 @@ public:
|
||||||
DrawStringTruncated(x, y, STR_482B_TRANSPORTED, TC_FROMSTRING, this->widget[IVW_INFO].right - x);
|
DrawStringTruncated(x, y, STR_482B_TRANSPORTED, TC_FROMSTRING, this->widget[IVW_INFO].right - x);
|
||||||
/* Let's put out those buttons.. */
|
/* Let's put out those buttons.. */
|
||||||
if (IsProductionAlterable(i)) {
|
if (IsProductionAlterable(i)) {
|
||||||
DrawArrowButtons(5, y, 3, (this->clicked_line == j + 1) ? this->clicked_button : 0,
|
DrawArrowButtons(5, y, COLOUR_YELLOW, (this->clicked_line == j + 1) ? this->clicked_button : 0,
|
||||||
!IsProductionMinimum(i, j), !IsProductionMaximum(i, j));
|
!IsProductionMinimum(i, j), !IsProductionMaximum(i, j));
|
||||||
}
|
}
|
||||||
y += 10;
|
y += 10;
|
||||||
|
|
Loading…
Reference in New Issue