summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 02:14:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 02:14:39 +0300
commita714a339ac461943236eb1992c38dfb16821d0a1 (patch)
treed82615ef2330e1f052af4b21a2d448f751cad579 /src/input
parent1b496351f779d4a897cd882a9928a18bab5ba622 (diff)
downloadplus-a714a339ac461943236eb1992c38dfb16821d0a1.tar.gz
plus-a714a339ac461943236eb1992c38dfb16821d0a1.tar.bz2
plus-a714a339ac461943236eb1992c38dfb16821d0a1.tar.xz
plus-a714a339ac461943236eb1992c38dfb16821d0a1.zip
Move chat command /dumpe into actions.
Also move some functions into chatutils.
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 87cb80914..388898a84 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -399,6 +399,7 @@ namespace InputAction
SET_DROP,
ERROR,
DUMP_GRAPHICS,
+ DUMP_ENVIRONMENT,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 7d80d63fe..4cf34d4f3 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3360,6 +3360,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"dumpg",
+ false},
+ {"keyDumpe",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::dumpEnvironment,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "dumpe",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 658c368f2..bf7666457 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -298,6 +298,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Dump environments into log"),
+ InputAction::DUMP_ENVIRONMENT,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""