summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 21:38:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 21:38:12 +0300
commitfb062d9f90d44e279ce02985c3f4f4335550cf87 (patch)
tree4ae1fec555e1f065018b2ac8d8650130c3060c40 /src/input
parent015a260c6444e74579401dfe41e39592b2201d36 (diff)
downloadmanaplus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.gz
manaplus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.bz2
manaplus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.xz
manaplus-fb062d9f90d44e279ce02985c3f4f4335550cf87.zip
Move chat command /all 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/other.cpp6
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index e9813d3d8..9385ae765 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -366,6 +366,7 @@ namespace InputAction
ME,
TOGGLE,
PRESENT,
+ PRINT_ALL,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index ff7b3bf6e..b55887c65 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3063,6 +3063,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"present",
+ false},
+ {"keyPrintAll",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::printAll,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "all",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 46a1eb286..c7db9c05d 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -232,6 +232,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Print all visible beings in chat"),
+ InputAction::PRINT_ALL,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""