diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-08 16:26:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-08 16:26:46 +0300 |
commit | 899ad3c232a1d60111b646637a53698234cd4eea (patch) | |
tree | 7209b7ad4f9d2963c58dcf3547c3b34ef1edaba9 /src/input | |
parent | 82a4015692e630f36f94a55590c1b59b958c5a17 (diff) | |
download | manaplus-899ad3c232a1d60111b646637a53698234cd4eea.tar.gz manaplus-899ad3c232a1d60111b646637a53698234cd4eea.tar.bz2 manaplus-899ad3c232a1d60111b646637a53698234cd4eea.tar.xz manaplus-899ad3c232a1d60111b646637a53698234cd4eea.zip |
Add action for open trade window.
Default key unassigned.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyboarddata.h | 9 | ||||
-rw-r--r-- | src/input/keydata.h | 1 |
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 |