summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 19:31:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 19:36:23 +0300
commit7e6d1a6e03052a08fd80ad2589295236ba40a3f1 (patch)
tree48090a0feded08f3911fbce4f840c78df1c54541 /src/input
parenta3b7888017c387d14e33a2021ed85927b78b776b (diff)
downloadmanaplus-7e6d1a6e03052a08fd80ad2589295236ba40a3f1.tar.gz
manaplus-7e6d1a6e03052a08fd80ad2589295236ba40a3f1.tar.bz2
manaplus-7e6d1a6e03052a08fd80ad2589295236ba40a3f1.tar.xz
manaplus-7e6d1a6e03052a08fd80ad2589295236ba40a3f1.zip
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.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
2 files changed, 10 insertions, 0 deletions
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