From 8aa68056aec80c775a3ddb152bea8a90a7097199 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Dec 2014 23:59:31 +0300 Subject: Add actions for switch to next/prev tab in inventory. Keys not assigned. --- src/input/inputaction.h | 2 ++ src/input/inputactionmap.h | 18 ++++++++++++++++++ src/input/pages/windows.cpp | 12 ++++++++++++ 3 files changed, 32 insertions(+) (limited to 'src/input') 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 @@ -223,6 +223,18 @@ SetupActionData setupActionDataWindows[] = InputAction::NEXT_COMMANDS_TAB, "", }, + { + // 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, -- cgit v1.2.3-70-g09d2