From fc2514926927b709dd59325e83b7da9fd10fa36e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 16:02:54 +0300 Subject: Move chat command /createitems 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 dcd1e2552..ee8d44a95 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -415,6 +415,7 @@ namespace InputAction DISABLE_AWAY, ENABLE_AWAY, TEST_PARTICLE, + CREATE_ITEMS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 56853f0c8..9485d46d7 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3512,7 +3512,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "testparticle", - true} + true}, + {"keyCreateItems", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::createItems, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "createitems", + false} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index aaa0067e0..a86d13860 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -273,6 +273,12 @@ SetupActionData setupActionDataOther[] = InputAction::TEST_PARTICLE, "", }, + { + // TRANSLATORS: input action name + N_("Crate items (for gms)"), + InputAction::CREATE_ITEMS, + "", + }, { // TRANSLATORS: input action name N_("Print configured directories in chat"), -- cgit v1.2.3-60-g2f50