From f67a60ea6108e2c70186bf4742c223179ac5f4be Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Fri, 5 Jun 2015 20:34:19 +0300 Subject: add targetingType feature --- src/input/inputactionmap.h | 6 ++++++ src/input/pages/basic.cpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/input') 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 @@ -131,6 +131,12 @@ SetupActionData setupActionDataBasic[] = InputAction::TARGET_MERCENARY, "", }, + { + // TRANSLATORS: input action name + N_("Change targeting type"), + InputAction::CHANGE_TARGETING_TYPE, + "", + }, { // TRANSLATORS: input action name N_("Target pet"), -- cgit v1.2.3-70-g09d2