diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-16 01:04:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-16 01:04:04 +0300 |
commit | 4b891f50dfc89318321eeac176415d1bef61aca6 (patch) | |
tree | f1da78c30374409d4f329faecb7e7b627674cf21 /src/input | |
parent | f8f1e69d820e49d93669b17363ab6225456515f7 (diff) | |
download | manaverse-4b891f50dfc89318321eeac176415d1bef61aca6.tar.gz manaverse-4b891f50dfc89318321eeac176415d1bef61aca6.tar.bz2 manaverse-4b891f50dfc89318321eeac176415d1bef61aca6.tar.xz manaverse-4b891f50dfc89318321eeac176415d1bef61aca6.zip |
Add bank window (hercules only).
also add banklistener to get changed bank balance.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 11 | ||||
-rw-r--r-- | src/input/pages/windows.cpp | 6 |
3 files changed, 17 insertions, 1 deletions
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 @@ -51,6 +51,12 @@ SetupActionData setupActionDataWindows[] = }, { // TRANSLATORS: input action name + N_("Bank Window"), + InputAction::WINDOW_BANK, + "", + }, + { + // TRANSLATORS: input action name N_("Help Window"), InputAction::WINDOW_HELP, "", |