summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 18:48:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 18:49:47 +0300
commit647c1a8b8b02b737b11b1e08af86ecc84f649a81 (patch)
tree1b1f30daaeeee39dd19195f07401a8bfd6a142f4 /src/input
parent537b66dbab370463a4a8d0d860a98626f73b4635 (diff)
downloadmanaverse-647c1a8b8b02b737b11b1e08af86ecc84f649a81.tar.gz
manaverse-647c1a8b8b02b737b11b1e08af86ecc84f649a81.tar.bz2
manaverse-647c1a8b8b02b737b11b1e08af86ecc84f649a81.tar.xz
manaverse-647c1a8b8b02b737b11b1e08af86ecc84f649a81.zip
Move chat command /undress 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 403433064..67ed7a8a0 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -384,6 +384,7 @@ namespace InputAction
PRICE_SAVE,
CACHE_INFO,
DISCONNECT,
+ UNDRESS,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 0dde3f848..952926510 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3225,6 +3225,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"disconnect",
+ false},
+ {"keyUndress",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::undress,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "undress",
false}
};
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index 4c28e5a3b..5d9aca31e 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -257,6 +257,12 @@ SetupActionData setupActionDataOther[] =
},
{
// TRANSLATORS: input action name
+ N_("Undress selected player"),
+ InputAction::UNDRESS,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Quick disconnect from server"),
InputAction::DISCONNECT,
"",