diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 16:51:38 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 16:51:38 +0100 |
commit | 89c332adbcf584142d49f6829d5227614f2f0968 (patch) | |
tree | 1829f476608169d7df9402a01fd5de7b636838df /src/gui/itemcontainer.cpp | |
parent | a329eb2442bf21eb77ad3c544e8aec656dfb6493 (diff) | |
download | mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.gz mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.bz2 mana-89c332adbcf584142d49f6829d5227614f2f0968.tar.xz mana-89c332adbcf584142d49f6829d5227614f2f0968.zip |
Added ability to add equipment to the shurtcut bar
Patch by Nikos, with some improvements.
Conflicts:
NEWS
src/gui/itemcontainer.cpp
src/itemshortcut.cpp
(cherry picked from eAthena client, not functional here yet)
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 5fb99ffc..141b4360 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -82,8 +82,7 @@ ItemContainer::~ItemContainer() mSelImg->decRef(); } -void -ItemContainer::draw(gcn::Graphics *graphics) +void ItemContainer::draw(gcn::Graphics *graphics) { Graphics *g = static_cast<Graphics*>(graphics); @@ -147,8 +146,7 @@ ItemContainer::draw(gcn::Graphics *graphics) } } -void -ItemContainer::selectNone() +void ItemContainer::selectNone() { setSelectedItem(NULL); } @@ -324,8 +322,7 @@ int ItemContainer::getSlotIndex(const int posX, const int posY) const return Inventory::NO_SLOT_INDEX; } -void -ItemContainer::keyAction() +void ItemContainer::keyAction() { // If there is no highlight then return. if (!mHighlightedItem) @@ -362,8 +359,7 @@ ItemContainer::keyAction() } } -void -ItemContainer::moveHighlight(int direction) +void ItemContainer::moveHighlight(int direction) { if (!mHighlightedItem) { |