summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-14 03:01:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-14 03:01:07 +0300
commitf3781554bf946a22ac307d1c8fe6154db05bbf2e (patch)
tree30bae5fdc65a5a1cf6eecb552f6380712fcf900f /src/gui/shortcut/itemshortcut.h
parent12398ad6f56888be71e4575d90442b2172f9876d (diff)
downloadmanaverse-f3781554bf946a22ac307d1c8fe6154db05bbf2e.tar.gz
manaverse-f3781554bf946a22ac307d1c8fe6154db05bbf2e.tar.bz2
manaverse-f3781554bf946a22ac307d1c8fe6154db05bbf2e.tar.xz
manaverse-f3781554bf946a22ac307d1c8fe6154db05bbf2e.zip
Add ability to load/save additional data for each shortcut in shortcuts window.
Diffstat (limited to 'src/gui/shortcut/itemshortcut.h')
-rw-r--r--src/gui/shortcut/itemshortcut.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h
index c28a094b3..d3418eadd 100644
--- a/src/gui/shortcut/itemshortcut.h
+++ b/src/gui/shortcut/itemshortcut.h
@@ -25,6 +25,8 @@
#include "enums/simpletypes/itemcolor.h"
+#include <string>
+
#include "localconsts.h"
const unsigned int SHORTCUT_ITEMS = 20;
@@ -155,6 +157,7 @@ class ItemShortcut final
private:
int mItems[SHORTCUT_ITEMS]; /**< The items. */
ItemColor mItemColors[SHORTCUT_ITEMS]; /**< The item colors. */
+ std::string mItemData[SHORTCUT_ITEMS];
int mItemSelected;
ItemColor mItemColorSelected;
int mNumber;