diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 15:48:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 15:48:02 +0300 |
commit | 2eb15d389f85e300cb124b990ebbf2663acaa637 (patch) | |
tree | 1016d973c9ca54b262b828daf462f07505c7fd4c /src/itemshortcut.h | |
parent | 9e4161f7324331498630fb25e72ff6d08c2db76f (diff) | |
download | manaverse-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.gz manaverse-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.bz2 manaverse-2eb15d389f85e300cb124b990ebbf2663acaa637.tar.xz manaverse-2eb15d389f85e300cb124b990ebbf2663acaa637.zip |
add support for drag and drop from/to shortcuts window.
Diffstat (limited to 'src/itemshortcut.h')
-rw-r--r-- | src/itemshortcut.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/itemshortcut.h b/src/itemshortcut.h index 78fc23558..1121007fa 100644 --- a/src/itemshortcut.h +++ b/src/itemshortcut.h @@ -88,6 +88,9 @@ class ItemShortcut final */ void setItem(const int index); + void setItem(const int index, const int item, + const unsigned char color); + /** * Adds an item to the items store specified by the index. * @@ -143,6 +146,8 @@ class ItemShortcut final */ void unequipItem(const int index) const; + void swap(const int index1, const int index2); + private: int mItems[SHORTCUT_ITEMS]; /**< The items. */ unsigned char mItemColors[SHORTCUT_ITEMS]; /**< The item colors. */ |