summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-05 12:27:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-05 12:27:02 +0300
commitdd169e1dcb4298f3d38e0ee0c13180ed0807d96a (patch)
tree4e515a9b8c68222e1c4140e59fd9347bcd59bbef /src/flooritem.cpp
parente4171d402519ef2637eada9ffd807601bc72d845 (diff)
downloadmanaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.gz
manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.bz2
manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.tar.xz
manaverse-dd169e1dcb4298f3d38e0ee0c13180ed0807d96a.zip
dehardcode floor item color.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp5
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);
}
}