summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
commit4c0d3dc62399e35c288cb82dfbf3f8811328f06c (patch)
tree24db2449750712363aa59c5b20807976a90f0771 /src/input
parente5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 (diff)
downloadplus-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.gz
plus-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.bz2
plus-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.xz
plus-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.zip
Move chat command /cleanfonts into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
-rw-r--r--src/input/pages/other.cpp6
3 files changed, 16 insertions, 0 deletions
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
@@ -220,6 +220,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Clean cached fonts"),
+ InputAction::CLEAN_FONTS,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""