From 1b496351f779d4a897cd882a9928a18bab5ba622 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 23:48:31 +0300 Subject: Move chat command /dumpg 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 aa69f4a19..87cb80914 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -398,6 +398,7 @@ namespace InputAction SERVER_UNIGNORE_ALL, SET_DROP, ERROR, + DUMP_GRAPHICS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 4b9150aa8..7d80d63fe 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3351,6 +3351,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "error", + false}, + {"keyDumpg", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dumpGraphics, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dumpg", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 8bae75449..658c368f2 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -291,6 +291,12 @@ SetupActionData setupActionDataOther[] = InputAction::ERROR, "", }, + { + // TRANSLATORS: input action name + N_("Dump graphics info into chat"), + InputAction::DUMP_GRAPHICS, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2