summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-02 21:32:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-02 21:32:53 +0300
commitf886c62eee04a89c01d30322db1a9eb85f699ac3 (patch)
treed1cf48972f652b66986e14b9034493883c57dc22 /src/game.cpp
parent7a56bfad4c7297863c717a7ca8c8cf42c712a220 (diff)
downloadmv-f886c62eee04a89c01d30322db1a9eb85f699ac3.tar.gz
mv-f886c62eee04a89c01d30322db1a9eb85f699ac3.tar.bz2
mv-f886c62eee04a89c01d30322db1a9eb85f699ac3.tar.xz
mv-f886c62eee04a89c01d30322db1a9eb85f699ac3.zip
Add item shortcuts tab with automatically filled with skills.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 54c1581d1..ac6df64c1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -231,11 +231,13 @@ static void createGuiWindows()
CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
"ItemShortcut", "items.xml", 83, 460);
- for (unsigned f = 0; f < SHORTCUT_TABS; f ++)
+ for (unsigned f = 0; f < SHORTCUT_TABS - 1; f ++)
{
itemShortcutWindow->addTab(toString(f + 1),
new ItemShortcutContainer(nullptr, f));
}
+ itemShortcutWindow->addTab("A",
+ new ItemShortcutContainer(nullptr, SHORTCUT_TABS - 1));
if (config.getBoolValue("showDidYouKnow"))
{
didYouKnowWindow->setVisible(Visible_true);