diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-05 12:27:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-05 12:27:02 +0300 |
commit | dd169e1dcb4298f3d38e0ee0c13180ed0807d96a (patch) | |
tree | 4e515a9b8c68222e1c4140e59fd9347bcd59bbef /src/flooritem.cpp | |
parent | e4171d402519ef2637eada9ffd807601bc72d845 (diff) | |
download | mv-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.gz mv-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.bz2 mv-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.xz mv-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.zip |
dehardcode floor item color.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp index 10a3f3c94..2c02179dd 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -29,6 +29,7 @@ #include "gui/gui.h" #include "gui/sdlfont.h" +#include "gui/userpalette.h" #include "resources/iteminfo.h" @@ -142,7 +143,9 @@ bool FloorItem::draw(Graphics *const graphics, { if (font && mAmount > 1) { - graphics->setColor(gcn::Color(255, 255, 255, 100)); +// graphics->setColor(gcn::Color(255, 255, 255, 100)); + graphics->setColor(userPalette->getColor( + UserPalette::FLOOR_ITEM_TEXT)); font->drawString(graphics, toString(mAmount), x, y); } } |