summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 19:47:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 19:47:29 +0300
commita02e2ba72702226cc25b245cc0e2615ead279cee (patch)
treef4bbc296e42ac0543aecba573123bb1f45ccb0f8 /src/input
parentcd8ef301f4796f15390d02d866ad88423b2d8d16 (diff)
downloadmanaplus-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.gz
manaplus-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.bz2
manaplus-a02e2ba72702226cc25b245cc0e2615ead279cee.tar.xz
manaplus-a02e2ba72702226cc25b245cc0e2615ead279cee.zip
Add chat command for clear current outfit.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputactionmap.h6
-rw-r--r--src/input/pages/outfits.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index b49b36904..a21cc42c1 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -5660,6 +5660,12 @@ static const InputActionData inputActionData
"sendchar|sendchars|charsend",
UseArgs_true,
Protected_true},
+ {"keyClearOutfit",
+ defaultAction(&Actions::outfitClear),
+ InputCondition::DEFAULT | InputCondition::INGAME,
+ "clearoutfit|outfitclear",
+ UseArgs_false,
+ Protected_true},
};
#undef defaultAction
diff --git a/src/input/pages/outfits.cpp b/src/input/pages/outfits.cpp
index 5a938217d..0b9beabd3 100644
--- a/src/input/pages/outfits.cpp
+++ b/src/input/pages/outfits.cpp
@@ -44,6 +44,12 @@ SetupActionData setupActionDataOutfits[] =
},
{
// TRANSLATORS: input action name
+ N_("Clear outfit"),
+ InputAction::CLEAR_OUTFIT,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Copy Outfit to other outfit"),
InputAction::COPY_OUTFIT,
"",