summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-04-13 23:03:31 +0000
committerDarkvater <Darkvater@openttd.org>2005-04-13 23:03:31 +0000
commite25dfa6e7ef451c84bfe5863b1e61426232ebf8f (patch)
tree6b6a8aa05e22c1c6f0d84cdc20bbc1a190e9f7c4 /vehicle_gui.c
parentf36354a70f51337c0aae11c97ef9ae90fd477f63 (diff)
downloadopenttd-e25dfa6e7ef451c84bfe5863b1e61426232ebf8f.tar.xz
(svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930].
- I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type. - Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 1163dca90..5832498e8 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -155,14 +155,14 @@ void DrawVehicleProfitButton(Vehicle *v, int x, int y)
// draw profit-based colored icons
if(v->age <= 365 * 2)
- ormod = 0x3158000; // grey
+ ormod = PALETTE_TO_GREY;
else if(v->profit_last_year < 0)
- ormod = 0x30b8000; //red
+ ormod = PALETTE_TO_RED;
else if(v->profit_last_year < 10000)
- ormod = 0x30a8000; // yellow
+ ormod = PALETTE_TO_YELLOW;
else
- ormod = 0x30d8000; // green
- DrawSprite((SPR_BLOT) | ormod, x, y);
+ ormod = PALETTE_TO_GREEN;
+ DrawSprite(SPR_BLOT | ormod, x, y);
}
/************ Sorter functions *****************/