summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-16 01:04:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-16 01:04:04 +0300
commit4b891f50dfc89318321eeac176415d1bef61aca6 (patch)
treef1da78c30374409d4f329faecb7e7b627674cf21 /src/input
parentf8f1e69d820e49d93669b17363ab6225456515f7 (diff)
downloadmanaverse-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.h1
-rw-r--r--src/input/inputactionmap.h11
-rw-r--r--src/input/pages/windows.cpp6
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,
"",