From e6d02447113b137ce37f2331ae674371c3968e28 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 20:47:15 +0300 Subject: Move chat command /who into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/other.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f0f999d2e..8d4051fc0 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -346,6 +346,7 @@ namespace InputAction CHAT_ANNOUNCE, IPC_TOGGLE, WHERE, + WHO, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 241ed632a..b7a7fcff7 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2883,6 +2883,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "where", + false}, + {"keyWho", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::who, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "who", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index d1a7d0bfd..e60b2addd 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -201,6 +201,12 @@ SetupActionData setupActionDataOther[] = InputAction::WHERE, "", }, + { + // TRANSLATORS: input action name + N_("Show online players number in chat"), + InputAction::WHO, + "", + }, { // TRANSLATORS: input action name N_("Show onscreen keyboard"), -- cgit v1.2.3-70-g09d2