From 23a89c57cbd36922fbcb92affa9546955591e9db Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Dec 2014 23:08:49 +0300 Subject: Add chat command for drop item by id and amount dialog. New chat command: /dropitem ID --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index fb5db9913..e46935ea2 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -500,6 +500,7 @@ namespace InputAction WHISPER_TEXT, NAVIGATE_TO, CAMERA_MOVE, + DROP_ITEM, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 4b9d61047..8515dad5b 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4243,6 +4243,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "movecamera|cameramove", true}, + {"keyDropItem", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dropItemId, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dropitem", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-70-g09d2