summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-19 21:02:14 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:42 +0300
commit213a21e4c079113e5822d2cf90802d6dcb2cb232 (patch)
tree9d3ae306575ef0dc5c3b8346673e2f246b5e427e /src/gui/itempopup.cpp
parentc632452430cb3f886da38fa315cb27a3a3a10d2c (diff)
downloadManaVerse-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.gz
ManaVerse-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.bz2
ManaVerse-213a21e4c079113e5822d2cf90802d6dcb2cb232.tar.xz
ManaVerse-213a21e4c079113e5822d2cf90802d6dcb2cb232.zip
In all controls, call Widget2 methods to get colors.
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index ae20c0ac4..114738a15 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -64,17 +64,17 @@ ItemPopup::ItemPopup():
// Item Description
mItemDesc->setEditable(false);
mItemDesc->setPosition(0, fontHeight);
- mItemDesc->setForegroundColor(Theme::getThemeColor(Theme::POPUP));
+ mItemDesc->setForegroundColor(getThemeColor(Theme::POPUP));
// Item Effect
mItemEffect->setEditable(false);
mItemEffect->setPosition(0, 2 * fontHeight);
- mItemEffect->setForegroundColor(Theme::getThemeColor(Theme::POPUP));
+ mItemEffect->setForegroundColor(getThemeColor(Theme::POPUP));
// Item Weight
mItemWeight->setEditable(false);
mItemWeight->setPosition(0, 3 * fontHeight);
- mItemWeight->setForegroundColor(Theme::getThemeColor(Theme::POPUP));
+ mItemWeight->setForegroundColor(getThemeColor(Theme::POPUP));
add(mItemName);
add(mItemDesc);
@@ -217,42 +217,42 @@ void ItemPopup::setItem(const ItemInfo &item, const unsigned char color,
mItemDesc->setPosition(0, 2 * height);
}
-gcn::Color ItemPopup::getColor(const ItemType type)
+gcn::Color ItemPopup::getColor(const ItemType type) const
{
switch (type)
{
case ITEM_UNUSABLE:
- return Theme::getThemeColor(Theme::GENERIC);
+ return getThemeColor(Theme::GENERIC);
case ITEM_USABLE:
- return Theme::getThemeColor(Theme::USABLE);
+ return getThemeColor(Theme::USABLE);
case ITEM_EQUIPMENT_ONE_HAND_WEAPON:
- return Theme::getThemeColor(Theme::ONEHAND);
+ return getThemeColor(Theme::ONEHAND);
case ITEM_EQUIPMENT_TWO_HANDS_WEAPON:
- return Theme::getThemeColor(Theme::TWOHAND);
+ return getThemeColor(Theme::TWOHAND);
case ITEM_EQUIPMENT_TORSO:
- return Theme::getThemeColor(Theme::TORSO);
+ return getThemeColor(Theme::TORSO);
case ITEM_EQUIPMENT_ARMS:
- return Theme::getThemeColor(Theme::ARMS);
+ return getThemeColor(Theme::ARMS);
case ITEM_EQUIPMENT_HEAD:
- return Theme::getThemeColor(Theme::HEAD);
+ return getThemeColor(Theme::HEAD);
case ITEM_EQUIPMENT_LEGS:
- return Theme::getThemeColor(Theme::LEGS);
+ return getThemeColor(Theme::LEGS);
case ITEM_EQUIPMENT_SHIELD:
- return Theme::getThemeColor(Theme::SHIELD);
+ return getThemeColor(Theme::SHIELD);
case ITEM_EQUIPMENT_RING:
- return Theme::getThemeColor(Theme::RING);
+ return getThemeColor(Theme::RING);
case ITEM_EQUIPMENT_NECKLACE:
- return Theme::getThemeColor(Theme::NECKLACE);
+ return getThemeColor(Theme::NECKLACE);
case ITEM_EQUIPMENT_FEET:
- return Theme::getThemeColor(Theme::FEET);
+ return getThemeColor(Theme::FEET);
case ITEM_EQUIPMENT_AMMO:
- return Theme::getThemeColor(Theme::AMMO);
+ return getThemeColor(Theme::AMMO);
case ITEM_EQUIPMENT_CHARM:
- return Theme::getThemeColor(Theme::CHARM);
+ return getThemeColor(Theme::CHARM);
case ITEM_SPRITE_RACE:
case ITEM_SPRITE_HAIR:
default:
- return Theme::getThemeColor(Theme::UNKNOWN_ITEM);
+ return getThemeColor(Theme::UNKNOWN_ITEM);
}
}