From 4b891f50dfc89318321eeac176415d1bef61aca6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 Oct 2014 01:04:04 +0300 Subject: Add bank window (hercules only). also add banklistener to get changed bank balance. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 11 ++++++++++- src/input/pages/windows.cpp | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 77bed24b7..f049d209f 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -486,6 +486,7 @@ namespace InputAction PET_SET_NAME, HOMUNCULUS_SET_NAME, HOMUNCULUS_FIRE, + WINDOW_BANK, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 26a7f4a17..34171954c 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4115,7 +4115,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "firehomunculus|homunculusfire", - false} + false}, + {"keyWindowBank", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::bankWindowShow, + InputAction::NO_VALUE, 50, + InputCondition::SHORTCUT0, + "bank|openbank", + false}, }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/windows.cpp b/src/input/pages/windows.cpp index f16b1b34f..32fc18c49 100644 --- a/src/input/pages/windows.cpp +++ b/src/input/pages/windows.cpp @@ -49,6 +49,12 @@ SetupActionData setupActionDataWindows[] = InputAction::WINDOW_ABOUT, "", }, + { + // TRANSLATORS: input action name + N_("Bank Window"), + InputAction::WINDOW_BANK, + "", + }, { // TRANSLATORS: input action name N_("Help Window"), -- cgit v1.2.3-70-g09d2