summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 18:33:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 18:33:37 +0300
commit2f345a6bf8385bf0874b976d0da9790faa4ee0ff (patch)
tree741ea8e5a165dbe8adb8437ed876fe82ae77d9fe /src/input
parent662ea582cd57827475062fb6b728da6c21c14181 (diff)
downloadmanaplus-2f345a6bf8385bf0874b976d0da9790faa4ee0ff.tar.gz
manaplus-2f345a6bf8385bf0874b976d0da9790faa4ee0ff.tar.bz2
manaplus-2f345a6bf8385bf0874b976d0da9790faa4ee0ff.tar.xz
manaplus-2f345a6bf8385bf0874b976d0da9790faa4ee0ff.zip
Move chat command /cacheinfo 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 280a16970..f1c7becea 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -382,6 +382,7 @@ namespace InputAction
TRADE,
PRICE_LOAD,
PRICE_SAVE,
+ CACHE_INFO,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index fd0d573d5..c6fb36f1f 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3207,6 +3207,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"pricesave",
+ false},
+ {"keyCacheInfo",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::cacheInfo,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "cacheinfo",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 786a1974d..52970cd8e 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -250,6 +250,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Print debug cache info"),
+ InputAction::CACHE_INFO,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""