From e2dddbdd9599b9b1f6a9825ee06d4d3616d9d1dd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 00:53:29 +0300 Subject: Move chat command /follow into actions. --- 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 007d03d66..55310593a 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -375,6 +375,7 @@ namespace InputAction COMMAND_EMOTE_PET, AWAY_MESSAGE, PSEUDO_AWAY, + FOLLOW, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 08b8b7c40..e773dffdb 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3144,6 +3144,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "pseudoaway", + true}, + {"keyFollow", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::follow, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "follow", true} }; diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp index f91b495de..2c784d804 100644 --- a/src/input/pages/basic.cpp +++ b/src/input/pages/basic.cpp @@ -171,6 +171,12 @@ SetupActionData setupActionDataBasic[] = InputAction::OPEN_TRADE, "", }, + { + // TRANSLATORS: input action name + N_("Follow selected player"), + InputAction::FOLLOW, + "", + }, { // TRANSLATORS: input action name N_("Change Map View Mode"), -- cgit v1.2.3-70-g09d2