From 76fd633b0042f2ab3a161460ee03c1978e7c0db9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 22:34:19 +0300 Subject: Move chat command /dump into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 11 ++++++++++- src/input/pages/other.cpp | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/input') 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 @@ -279,6 +279,12 @@ SetupActionData setupActionDataOther[] = InputAction::UPTIME, "", }, + { + // TRANSLATORS: input action name + N_("Dump debug information"), + InputAction::DUMP, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-60-g2f50