From 4c0d3dc62399e35c288cb82dfbf3f8811328f06c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 12:54:39 +0300 Subject: Move chat command /cleanfonts 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 73e3bb2c7..68c0483d1 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -359,6 +359,7 @@ namespace InputAction ENEMY, ERASE, CLEAN_GRAPHICS, + CLEAN_FONTS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 5b740c61f..f8d8c944f 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3000,6 +3000,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "cleangraphics", + false}, + {"keyCleanFonts", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::cleanFonts, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "cleanfonts", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index c12a24232..b36badd8e 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -219,6 +219,12 @@ SetupActionData setupActionDataOther[] = InputAction::CLEAN_GRAPHICS, "", }, + { + // TRANSLATORS: input action name + N_("Clean cached fonts"), + InputAction::CLEAN_FONTS, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2