From fda230f1a8a6399c2507c7e39cd714d8aefc712d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 15:50:50 +0300 Subject: Move chat command /testparticle 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 2cd802ce0..dcd1e2552 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -414,6 +414,7 @@ namespace InputAction REMOVE_NAME, DISABLE_AWAY, ENABLE_AWAY, + TEST_PARTICLE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index f3ce27a76..56853f0c8 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3503,7 +3503,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "enableaway", - false} + false}, + {"keyTestParticle", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::testParticle, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "testparticle", + true} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 61c6a5a9f..aaa0067e0 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -267,6 +267,12 @@ SetupActionData setupActionDataOther[] = InputAction::DISCONNECT, "", }, + { + // TRANSLATORS: input action name + N_("Disable debug particle"), + InputAction::TEST_PARTICLE, + "", + }, { // TRANSLATORS: input action name N_("Print configured directories in chat"), -- cgit v1.2.3-60-g2f50