summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 19:44:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 19:44:33 +0300
commitd6f58bee33ca548ea6fc125553aa8d4d2fdba91f (patch)
treef56a9c37da0ef39c470a3da6315a073c87b1c984 /src/input
parent663b79fd68f9e7f578415f3d0f015a3d8ba998cb (diff)
downloadmanaverse-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.gz
manaverse-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.bz2
manaverse-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.tar.xz
manaverse-d6f58bee33ca548ea6fc125553aa8d4d2fdba91f.zip
Move chat command /announce into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h12
2 files changed, 12 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index c9a35a66f..d67e60d2d 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -343,6 +343,7 @@ namespace InputAction
TARGET_CLOSEST_MONSTER,
CLOSE_ALL_CHAT_TABS,
IGNORE_ALL_WHISPERS,
+ CHAT_ANNOUNCE,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 47138a746..37810b5d7 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -27,6 +27,7 @@
#include "actions/actions.h"
#include "actions/chat.h"
+#include "actions/commands.h"
#include "actions/move.h"
#include "actions/statusbar.h"
#include "actions/tabs.h"
@@ -2855,7 +2856,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"ignoreallwhispers",
- false}
+ false},
+ {"keyChatAnnounce",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT | Input::GRP_GUI,
+ &Actions::chatAnnounce,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "announce",
+ true}
};
#endif // INPUT_INPUTACTIONMAP_H