summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-14 10:32:17 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-14 10:32:48 -0600
commit2032ca0fb1fd6b59c025180b673e6760d9c12bdc (patch)
tree043e8783ce04dcdaf802a79d5992b5197feb3db4 /src/gui/itemcontainer.cpp
parent39e06227df101a73aa5b9078a3afb6a7a71b89ba (diff)
downloadmana-2032ca0fb1fd6b59c025180b673e6760d9c12bdc.tar.gz
mana-2032ca0fb1fd6b59c025180b673e6760d9c12bdc.tar.bz2
mana-2032ca0fb1fd6b59c025180b673e6760d9c12bdc.tar.xz
mana-2032ca0fb1fd6b59c025180b673e6760d9c12bdc.zip
Add QOAL's outfit window
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 54aa818b..d8ae6e20 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -23,6 +23,7 @@
#include "gui/chat.h"
#include "gui/itempopup.h"
+#include "gui/outfitwindow.h"
#include "gui/palette.h"
#include "gui/sdlinput.h"
#include "gui/viewport.h"
@@ -162,6 +163,7 @@ void ItemContainer::selectNone()
{
setSelectedIndex(-1);
mSelectionStatus = SEL_NONE;
+ outfitWindow->setItemSelected(-1);
}
void ItemContainer::setSelectedIndex(int newIndex)
@@ -260,6 +262,8 @@ void ItemContainer::mousePressed(gcn::MouseEvent &event)
mSelectionStatus = SEL_SELECTING;
itemShortcut->setItemSelected(item->getId());
+ if (item->isEquipment())
+ outfitWindow->setItemSelected(item->getId());
}
else
{