diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-25 12:46:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-25 12:46:16 +0300 |
commit | e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 (patch) | |
tree | 56240086db88e4e72fb29dabffea23aaf3034eb6 /src/input | |
parent | d1a7fe4f55b967d7d844c0587f976d7d393b99e0 (diff) | |
download | manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.gz manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.bz2 manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.xz manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.zip |
Move chat command /cleangraphics into actions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 11 | ||||
-rw-r--r-- | src/input/pages/other.cpp | 6 |
3 files changed, 17 insertions, 1 deletions
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 @@ -214,6 +214,12 @@ SetupActionData setupActionDataOther[] = "", }, { + // TRANSLATORS: input action name + N_("Clean cached graphics"), + InputAction::CLEAN_GRAPHICS, + "", + }, + { "", InputAction::NO_VALUE, "" |