From 36239b2d689b862a951a65a9be7376a500f1ace9 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 18 Aug 2011 03:06:53 +0200 Subject: Improved equip slots description for both protocols. Now the itempopup is also telling what equip slot is under the mouse pointer. --- src/gui/itempopup.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/itempopup.cpp') 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); } -- cgit v1.2.3-60-g2f50