diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 22:13:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 22:13:50 +0300 |
commit | 81a7b06f2ff1fad4b012068b15975bdb5e86a0e4 (patch) | |
tree | 74719015e27e35928403aded155ac31abede5e6c /src/input | |
parent | 1a652f220d1c74333cd2f54953dbaf41907314b6 (diff) | |
download | manaverse-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.gz manaverse-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.bz2 manaverse-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.xz manaverse-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.zip |
Move chat command /clear 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/chat.cpp | 6 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 15af94ec7..36adc4759 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -349,6 +349,7 @@ namespace InputAction WHO, WHISPER, QUERY, + CLEAR_CHAT_TAB, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index fc2b601b6..b5498427d 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -2910,7 +2910,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "q|query", - true} + true}, + {"keyClearChatTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::clearChatTab, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "clear", + false} }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp index d61f7855a..234892c77 100644 --- a/src/input/pages/chat.cpp +++ b/src/input/pages/chat.cpp @@ -62,6 +62,12 @@ SetupActionData setupActionDataChat[] = }, { // TRANSLATORS: input action name + N_("Clear current chat tab"), + InputAction::CLEAR_CHAT_TAB, + "", + }, + { + // TRANSLATORS: input action name N_("Close current Chat Tab"), InputAction::CLOSE_CHAT_TAB, "", |