diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-01 23:59:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-02 01:42:48 +0300 |
commit | 8aa68056aec80c775a3ddb152bea8a90a7097199 (patch) | |
tree | 2a131c77e27ea4d5a7a3e3d5102f0bbc12957569 /src/input | |
parent | 96805601e06e6ed6f7b5aaffc3bbb22dd9e8d58a (diff) | |
download | mv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.gz mv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.bz2 mv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.xz mv-8aa68056aec80c775a3ddb152bea8a90a7097199.zip |
Add actions for switch to next/prev tab in inventory.
Keys not assigned.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 2 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 18 | ||||
-rw-r--r-- | src/input/pages/windows.cpp | 12 |
3 files changed, 32 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f049d209f..7ab68911c 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -487,6 +487,8 @@ namespace InputAction HOMUNCULUS_SET_NAME, HOMUNCULUS_FIRE, WINDOW_BANK, + PREV_INV_TAB, + NEXT_INV_TAB, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 460f11048..cb9805d3a 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4125,6 +4125,24 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::SHORTCUT0, "bank|openbank", false}, + {"keyInventoryPrevTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::prevInvTab, + InputAction::NO_VALUE, 50, + InputCondition::NOINPUT | InputCondition::INGAME, + "previnvtab", + false}, + {"keyInventoryNextTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::nextInvTab, + InputAction::NO_VALUE, 50, + InputCondition::NOINPUT | InputCondition::INGAME, + "nextinvtab", + false}, }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/windows.cpp b/src/input/pages/windows.cpp index 32fc18c49..0bde9cb9e 100644 --- a/src/input/pages/windows.cpp +++ b/src/input/pages/windows.cpp @@ -224,6 +224,18 @@ SetupActionData setupActionDataWindows[] = "", }, { + // TRANSLATORS: input action name + N_("Previous inventory tab"), + InputAction::PREV_INV_TAB, + "", + }, + { + // TRANSLATORS: input action name + N_("Next inventory tab"), + InputAction::NEXT_INV_TAB, + "", + }, + { "", InputAction::NO_VALUE, "" |