From e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 12:46:16 +0300 Subject: Move chat command /cleangraphics into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 11 ++++++++++- src/input/pages/other.cpp | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 3fc39aaf3..73e3bb2c7 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -358,6 +358,7 @@ namespace InputAction BLACKLIST, ENEMY, ERASE, + CLEAN_GRAPHICS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index ebadff15d..5b740c61f 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2991,7 +2991,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "erase", - true} + true}, + {"keyCleanGraphics", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::cleanGraphics, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "cleangraphics", + false} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index e60b2addd..c12a24232 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -213,6 +213,12 @@ SetupActionData setupActionDataOther[] = InputAction::SHOW_KEYBOARD, "", }, + { + // TRANSLATORS: input action name + N_("Clean cached graphics"), + InputAction::CLEAN_GRAPHICS, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2