summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 15:27:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 15:27:04 +0300
commit35e14007fe44877b160c48db1d4106eba6306859 (patch)
treebd3692d2c37aab8e38a2444f0cdf0f0ed5ec4232 /src/input
parentdded1355609c8f23281f78ec719b09b1693ea717 (diff)
downloadplus-35e14007fe44877b160c48db1d4106eba6306859.tar.gz
plus-35e14007fe44877b160c48db1d4106eba6306859.tar.bz2
plus-35e14007fe44877b160c48db1d4106eba6306859.tar.xz
plus-35e14007fe44877b160c48db1d4106eba6306859.zip
Move chat command /ignoreallwhispers into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
-rw-r--r--src/input/pages/chat.cpp6
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 5cea51f31..c9a35a66f 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -342,6 +342,7 @@ namespace InputAction
WINDOW_UPDATER,
TARGET_CLOSEST_MONSTER,
CLOSE_ALL_CHAT_TABS,
+ IGNORE_ALL_WHISPERS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 35fd37d57..19026df4d 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -2846,6 +2846,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"closeall",
+ false},
+ {"keyChatIgnoreAllWhispers",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT | Input::GRP_GUI,
+ &Actions::ignoreAllWhispers,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "ignoreallwhispers",
false}
};
diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp
index 113efa3a5..d61f7855a 100644
--- a/src/input/pages/chat.cpp
+++ b/src/input/pages/chat.cpp
@@ -74,6 +74,12 @@ SetupActionData setupActionDataChat[] =
},
{
// TRANSLATORS: input action name
+ N_("Ignore all whispers"),
+ InputAction::IGNORE_ALL_WHISPERS,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Previous chat line"),
InputAction::CHAT_PREV_HISTORY,
"",