summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-05-05 00:36:41 +0300
committerBertram <yohanndotferreiraatorange.fr>2010-05-13 00:21:48 +0200
commitda50354af7fffe79ee7137a3f3dd9d8b9f34afda (patch)
treefc497b9a29dec5dacad514598665eced09d05baf /src/gui/itempopup.h
parent46cd4e737a5a74f823877c1fd00a6af84005612f (diff)
downloadmana-client-da50354af7fffe79ee7137a3f3dd9d8b9f34afda.tar.gz
mana-client-da50354af7fffe79ee7137a3f3dd9d8b9f34afda.tar.bz2
mana-client-da50354af7fffe79ee7137a3f3dd9d8b9f34afda.tar.xz
mana-client-da50354af7fffe79ee7137a3f3dd9d8b9f34afda.zip
Draw item image in item popups.
Now draw image only in chat item popup. Reviewed-by: Bertram
Diffstat (limited to 'src/gui/itempopup.h')
-rw-r--r--src/gui/itempopup.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/itempopup.h b/src/gui/itempopup.h
index 67d1eb2f..a3976a11 100644
--- a/src/gui/itempopup.h
+++ b/src/gui/itempopup.h
@@ -29,6 +29,7 @@
#include <guichan/mouselistener.hpp>
+class Icon;
class TextBox;
/**
@@ -50,7 +51,7 @@ class ItemPopup : public Popup
/**
* Sets the info to be displayed given a particular item.
*/
- void setItem(const ItemInfo &item);
+ void setItem(const ItemInfo &item, bool showImage = false);
void mouseMoved(gcn::MouseEvent &mouseEvent);
@@ -60,6 +61,7 @@ class ItemPopup : public Popup
TextBox *mItemEffect;
TextBox *mItemWeight;
ItemType mItemType;
+ Icon *mIcon;
static gcn::Color getColor(ItemType type);
};