diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-06-05 20:34:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 21:38:30 +0300 |
commit | f67a60ea6108e2c70186bf4742c223179ac5f4be (patch) | |
tree | c057d9dc5a8c9716b24b5ba2dc4cb576832ee1dc /src/input | |
parent | 760b544fb26dcfc5103a44bf977cd8cd95b0862a (diff) | |
download | manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.gz manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.bz2 manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.xz manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.zip |
add targetingType feature
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputactionmap.h | 6 | ||||
-rw-r--r-- | src/input/pages/basic.cpp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index b96a187f8..9c00f0557 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4490,6 +4490,12 @@ static const InputActionData inputActionData InputCondition::INGAME, "servconfget|getservconf", UseArgs_true}, + {"keyChangeTargetingType", + defaultAction(&Actions::changeTargetingType), + InputCondition::GAME | InputCondition::VALIDSPEED + | InputCondition::EMODS, + "", + UseArgs_false}, }; #undef defaultAction diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp index c87ac56d9..d304098e6 100644 --- a/src/input/pages/basic.cpp +++ b/src/input/pages/basic.cpp @@ -133,6 +133,12 @@ SetupActionData setupActionDataBasic[] = }, { // TRANSLATORS: input action name + N_("Change targeting type"), + InputAction::CHANGE_TARGETING_TYPE, + "", + }, + { + // TRANSLATORS: input action name N_("Target pet"), InputAction::TARGET_PET, "", |