summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 13:11:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 13:11:54 +0300
commit2981363fef524501a4a24a5f4c60661ebdee80fa (patch)
tree6067275efc1b7c512436725f9ff1928b63bead13 /src/input
parent7c87b2ac8e01307e603bd85420f8d10724a296e6 (diff)
downloadmanaplus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.gz
manaplus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.bz2
manaplus-2981363fef524501a4a24a5f4c60661ebdee80fa.tar.xz
manaplus-2981363fef524501a4a24a5f4c60661ebdee80fa.zip
Move chat command /dumpmods 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 928b1d5b9..6758492b9 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -403,6 +403,7 @@ namespace InputAction
DUMP_TESTS,
DUMP_OGL,
DUMP_GL,
+ DUMP_MODS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index eb430ddfa..5e3260584 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3396,6 +3396,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"dumpgl",
+ false},
+ {"keyDumpMods",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::dumpMods,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "dumpMods",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 4ade43d61..06ce2c348 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -311,6 +311,12 @@ SetupActionData setupActionDataOther[] =
},
{
// TRANSLATORS: input action name
+ N_("Print enabled mods in chat"),
+ InputAction::DUMP_MODS,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Dump environments into log"),
InputAction::DUMP_ENVIRONMENT,
"",