From fb062d9f90d44e279ce02985c3f4f4335550cf87 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 21:38:12 +0300 Subject: Move chat command /all 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 e9813d3d8..9385ae765 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -366,6 +366,7 @@ namespace InputAction ME, TOGGLE, PRESENT, + PRINT_ALL, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index ff7b3bf6e..b55887c65 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3063,6 +3063,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "present", + false}, + {"keyPrintAll", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::printAll, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "all", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 46a1eb286..c7db9c05d 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -231,6 +231,12 @@ SetupActionData setupActionDataOther[] = InputAction::PRESENT, "", }, + { + // TRANSLATORS: input action name + N_("Print all visible beings in chat"), + InputAction::PRINT_ALL, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2