From b030143a03ab3d65225f8c2351469b2e8daa0e94 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 21:27:08 +0300 Subject: Move chat command /present 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 dacd2a2da..e9813d3d8 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -365,6 +365,7 @@ namespace InputAction PARTY, ME, TOGGLE, + PRESENT, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 289490723..ff7b3bf6e 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3054,6 +3054,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "toggle", + false}, + {"keyPresent", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::present, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "present", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index b36badd8e..46a1eb286 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -225,6 +225,12 @@ SetupActionData setupActionDataOther[] = InputAction::CLEAN_FONTS, "", }, + { + // TRANSLATORS: input action name + N_("Print visible players in chat"), + InputAction::PRESENT, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2