summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-09 16:56:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-09 17:01:31 +0300
commit8071fcbf88095bcaf54742062a4ebde87a801fd0 (patch)
treef40dd9a936e105dcbbb28a5a519889264ad86f52 /src/input
parent53bcb5fd2f680d9a3be9f56e5fab420d83746b00 (diff)
downloadmanaverse-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.gz
manaverse-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.bz2
manaverse-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.xz
manaverse-8071fcbf88095bcaf54742062a4ebde87a801fd0.zip
Allow select skill units and attack it.
Also add key for select skill unit.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputactionmap.h6
-rw-r--r--src/input/pages/basic.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 1bd74708d..a808a8208 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -5239,6 +5239,12 @@ static const InputActionData inputActionData
"seen|lastseen",
UseArgs_true,
Protected_true},
+ {"keyTargetSkillUnit",
+ defaultAction(&Actions::targetSkillUnit),
+ InputCondition::INGAME | InputCondition::NOTARGET,
+ "targetskillunit|targetskill",
+ UseArgs_false,
+ Protected_false},
};
#undef defaultAction
diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp
index d5c6f2a15..3817e34ac 100644
--- a/src/input/pages/basic.cpp
+++ b/src/input/pages/basic.cpp
@@ -133,6 +133,12 @@ SetupActionData setupActionDataBasic[] =
},
{
// TRANSLATORS: input action name
+ N_("Target skill unit"),
+ InputAction::TARGET_SKILL_UNIT,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Change targeting type"),
InputAction::CHANGE_TARGETING_TYPE,
"",