summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-08 16:26:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-08 16:26:46 +0300
commit899ad3c232a1d60111b646637a53698234cd4eea (patch)
tree7209b7ad4f9d2963c58dcf3547c3b34ef1edaba9 /src/input
parent82a4015692e630f36f94a55590c1b59b958c5a17 (diff)
downloadmanaverse-899ad3c232a1d60111b646637a53698234cd4eea.tar.gz
manaverse-899ad3c232a1d60111b646637a53698234cd4eea.tar.bz2
manaverse-899ad3c232a1d60111b646637a53698234cd4eea.tar.xz
manaverse-899ad3c232a1d60111b646637a53698234cd4eea.zip
Add action for open trade window.
Default key unassigned.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/keyboarddata.h9
-rw-r--r--src/input/keydata.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h
index 87202e8f2..e6bafb61b 100644
--- a/src/input/keyboarddata.h
+++ b/src/input/keyboarddata.h
@@ -2079,7 +2079,14 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::nextCommandsTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME}
+ COND_NOINPUT | COND_INGAME},
+ {"keyOpenTrade",
+ INPUT_UNKNOWN, Input::KEY_NO_VALUE,
+ INPUT_UNKNOWN, Input::KEY_NO_VALUE,
+ Input::GRP_DEFAULT,
+ &ActionManager::openTrade,
+ Input::KEY_NO_VALUE, 50,
+ COND_GAME | COND_NOTARGET},
};
#endif // INPUT_KEYBOARDDATA_H
diff --git a/src/input/keydata.h b/src/input/keydata.h
index c36a11e7c..2ceb957c5 100644
--- a/src/input/keydata.h
+++ b/src/input/keydata.h
@@ -357,6 +357,7 @@ namespace Input
KEY_NEXT_SHORTCUTS_TAB,
KEY_PREV_COMMANDS_TAB,
KEY_NEXT_COMMANDS_TAB,
+ KEY_OPEN_TRADE,
KEY_TOTAL
};
} // namespace Input