summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 23:20:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 23:20:05 +0300
commit3c51082082397b0564a224214249a096750b56c6 (patch)
treefc4bb3b4d511842e2a9f0f608d51fb3539a40ae9 /src/input
parentf6596726b6978a7380de163740e6b65c8394ca42 (diff)
downloadmanaplus-3c51082082397b0564a224214249a096750b56c6.tar.gz
manaplus-3c51082082397b0564a224214249a096750b56c6.tar.bz2
manaplus-3c51082082397b0564a224214249a096750b56c6.tar.xz
manaplus-3c51082082397b0564a224214249a096750b56c6.zip
Add chat command for return pet to egg.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputactionmap.h6
-rw-r--r--src/input/pages/other.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 6007a3007..e30e50ae3 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -5726,6 +5726,12 @@ static const InputActionData inputActionData
"petdroploot|petloot",
UseArgs_false,
Protected_true},
+ {"keyPetReturnToEgg",
+ defaultAction(&Actions::petReturnToEgg),
+ InputCondition::INGAME,
+ "pettoegg|petegg|petreturn|returnpet|petreturnegg",
+ UseArgs_false,
+ Protected_false},
};
#undef defaultAction
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index c215f2fd0..a33ede552 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -446,6 +446,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Return pet to egg"),
+ InputAction::PET_RETURN_TO_EGG,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""