diff options
author | frosch <frosch@openttd.org> | 2010-09-02 20:00:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-02 20:00:48 +0000 |
commit | 48767d1befdb57bdf8620817ac443838bffae0ad (patch) | |
tree | cd200d1e096c6191110f4e5a74ef79b25a0880df /src/town_gui.cpp | |
parent | 48d8f16653a7ba67815010e5de4e79f97e2f4c4b (diff) | |
download | openttd-48767d1befdb57bdf8620817ac443838bffae0ad.tar.xz |
(svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index ff78ff3e3..5978d2bbe 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -34,6 +34,7 @@ #include "townname_type.h" #include "core/geometry_func.hpp" #include "genworld.h" +#include "sprite.h" #include "table/sprites.h" #include "table/strings.h" @@ -139,9 +140,9 @@ public: int icon_width = icon_size.width; int icon_y_offset = (FONT_HEIGHT_NORMAL - icon_size.height) / 2; - Dimension exclusive_size = GetSpriteSize(SPR_BLOT); + Dimension exclusive_size = GetSpriteSize(SPR_EXCLUSIVE_TRANSPORT); int exclusive_width = exclusive_size.width; - int exlusive_y_offset = (FONT_HEIGHT_NORMAL - exclusive_size.height) / 2; + int exclusive_y_offset = (FONT_HEIGHT_NORMAL - exclusive_size.height) / 2; bool rtl = _dynlang.text_dir == TD_RTL; uint text_left = left + (rtl ? 0 : icon_width + exclusive_width + 4); @@ -171,7 +172,7 @@ public: SetDParam(2, str); if (this->town->exclusivity == c->index) { - DrawSprite(SPR_BLOT, PALETTE_TO_RED, exclusive_left, y + exlusive_y_offset); + DrawSprite(SPR_EXCLUSIVE_TRANSPORT, COMPANY_SPRITE_COLOUR(c->index), exclusive_left, y + exclusive_y_offset); } DrawString(text_left, text_right, y, STR_LOCAL_AUTHORITY_COMPANY_RATING); |