diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-12 13:40:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-12 13:40:11 +0300 |
commit | 91160e197b1a1f85f21cfad874e80fa286d9294f (patch) | |
tree | 69fe35efe151cac178ed45eb46600aee6c2b4fc9 /src/input | |
parent | 99b516c9b20e696ddf3897bff9bc6686debf0f5a (diff) | |
download | manaplus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.gz manaplus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.bz2 manaplus-91160e197b1a1f85f21cfad874e80fa286d9294f.tar.xz manaplus-91160e197b1a1f85f21cfad874e80fa286d9294f.zip |
Add chat command for use item by id.
New chat command: /use ITEMID
Alias: /useitem ITEMID
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index e2fcae031..c020b3b5b 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -495,6 +495,7 @@ namespace InputAction WHISPER2, GUILD, NUKE, + USE, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 1ae660fb0..f51f5f6f5 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4198,6 +4198,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "nuke", true}, + {"keyUse", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::useItem, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "use|useitem", + true}, }; #endif // INPUT_INPUTACTIONMAP_H |