From 7e6d1a6e03052a08fd80ad2589295236ba40a3f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 19:31:54 +0300 Subject: Add chat command for move item from storage to inventory. New chat command: /storagetoinv INDEX AMOUNT Alias: /storageinv INDEX AMOUNT This command accept ammount if format like /invtostorage. --- 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 60bbeab61..c0bc6b615 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -507,6 +507,7 @@ namespace InputAction USE_INV, INV_TO_STORAGE, TRADE_ADD, + STORAGE_TO_INV, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 26b77a03b..183bb3b6e 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4306,6 +4306,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "tradeadd|addtrade", true}, + {"keyStorageToInv", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::storageToInv, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "storagetoinv|storageinv", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-60-g2f50