From e07a6a1cb8cd414f0b0a8de21903cd621582a906 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Sep 2014 15:02:35 +0300 Subject: Add action for targetting pets. New chat command: targetpet --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/basic.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 6ca667f76..422a141ae 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -482,6 +482,7 @@ namespace InputAction UNIGNORE_WHISPER, MERCENARY_FIRE, TARGET_MERCENARY, + TARGET_PET, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 58ca20e6a..edd9620be 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4079,6 +4079,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME | InputCondition::NOTARGET, "targetmercenary", + false}, + {"keyTargetPet", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::targetPet, + InputAction::NO_VALUE, 50, + InputCondition::INGAME | InputCondition::NOTARGET, + "targetpet", false} }; diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp index dd1efc0bb..df573389d 100644 --- a/src/input/pages/basic.cpp +++ b/src/input/pages/basic.cpp @@ -133,6 +133,12 @@ SetupActionData setupActionDataBasic[] = InputAction::TARGET_MERCENARY, "", }, + { + // TRANSLATORS: input action name + N_("Target pet"), + InputAction::TARGET_PET, + "", + }, { // TRANSLATORS: input action name N_("Catch pet"), -- cgit v1.2.3-70-g09d2