diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:02:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 16:02:54 +0300 |
commit | fc2514926927b709dd59325e83b7da9fd10fa36e (patch) | |
tree | 97acbd471a5780177495f006e4e87ca94fe087a9 /src/input | |
parent | fda230f1a8a6399c2507c7e39cd714d8aefc712d (diff) | |
download | plus-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.gz plus-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.bz2 plus-fc2514926927b709dd59325e83b7da9fd10fa36e.tar.xz plus-fc2514926927b709dd59325e83b7da9fd10fa36e.zip |
Move chat command /createitems into actions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 11 | ||||
-rw-r--r-- | src/input/pages/other.cpp | 6 |
3 files changed, 17 insertions, 1 deletions
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 @@ -275,6 +275,12 @@ SetupActionData setupActionDataOther[] = }, { // TRANSLATORS: input action name + N_("Crate items (for gms)"), + InputAction::CREATE_ITEMS, + "", + }, + { + // TRANSLATORS: input action name N_("Print configured directories in chat"), InputAction::DIRS, "", |