From a714a339ac461943236eb1992c38dfb16821d0a1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 02:14:39 +0300 Subject: Move chat command /dumpe into actions. Also move some functions into chatutils. --- 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 87cb80914..388898a84 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -399,6 +399,7 @@ namespace InputAction SET_DROP, ERROR, DUMP_GRAPHICS, + DUMP_ENVIRONMENT, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 7d80d63fe..4cf34d4f3 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3360,6 +3360,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "dumpg", + false}, + {"keyDumpe", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dumpEnvironment, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dumpe", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 658c368f2..bf7666457 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -297,6 +297,12 @@ SetupActionData setupActionDataOther[] = InputAction::DUMP_GRAPHICS, "", }, + { + // TRANSLATORS: input action name + N_("Dump environments into log"), + InputAction::DUMP_ENVIRONMENT, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2