summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 22:34:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 22:34:19 +0300
commit76fd633b0042f2ab3a161460ee03c1978e7c0db9 (patch)
tree49ac22bd396af6329bfdffe69a775de7dedaa553 /src/input
parentf2849928b3eca83581ba77be8bf3b002085fdc9a (diff)
downloadManaVerse-76fd633b0042f2ab3a161460ee03c1978e7c0db9.tar.gz
ManaVerse-76fd633b0042f2ab3a161460ee03c1978e7c0db9.tar.bz2
ManaVerse-76fd633b0042f2ab3a161460ee03c1978e7c0db9.tar.xz
ManaVerse-76fd633b0042f2ab3a161460ee03c1978e7c0db9.zip
Move chat command /dump into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
-rw-r--r--src/input/pages/other.cpp6
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 292f5a812..3d5353deb 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -393,6 +393,7 @@ namespace InputAction
ADD_ATTACK,
REMOVE_ATTACK,
ADD_IGNORE_ATTACK,
+ DUMP,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 65cf48391..ff79cafb3 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3306,7 +3306,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"addignoreattack",
- true}
+ true},
+ {"keyDump",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::dump,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "dump",
+ false}
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 4931c1216..6bafbf8c3 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -280,6 +280,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Dump debug information"),
+ InputAction::DUMP,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""