summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-18 03:06:53 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-18 03:06:53 +0200
commit36239b2d689b862a951a65a9be7376a500f1ace9 (patch)
tree1f8dde16f52a4cbbde1c46af0a063c79e28d30d1 /src/gui/itempopup.cpp
parente86f83ed987461adabcbc02508107366b8c65558 (diff)
downloadMana-36239b2d689b862a951a65a9be7376a500f1ace9.tar.gz
Mana-36239b2d689b862a951a65a9be7376a500f1ace9.tar.bz2
Mana-36239b2d689b862a951a65a9be7376a500f1ace9.tar.xz
Mana-36239b2d689b862a951a65a9be7376a500f1ace9.zip
Improved equip slots description for both protocols.
Now the itempopup is also telling what equip slot is under the mouse pointer.
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index de8378d5..d65764a5 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -145,6 +145,9 @@ void ItemPopup::setNoItem()
mItemName->setForegroundColor(Theme::getThemeColor(Theme::GENERIC));
mItemName->setPosition(getPadding(), getPadding());
+ mItemDesc->setText(std::string());
+ mItemEffect->setText(std::string());
+
setContentSize(mItemName->getWidth() + 2 * getPadding(), 0);
}