From 2eb15d389f85e300cb124b990ebbf2663acaa637 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jul 2013 15:48:02 +0300 Subject: add support for drag and drop from/to shortcuts window. --- src/itemshortcut.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/itemshortcut.h') 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. */ -- cgit v1.2.3-60-g2f50