From a02e2ba72702226cc25b245cc0e2615ead279cee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 May 2017 19:47:29 +0300 Subject: Add chat command for clear current outfit. --- src/input/inputactionmap.h | 6 ++++++ src/input/pages/outfits.cpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/input') 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 @@ -42,6 +42,12 @@ SetupActionData setupActionDataOutfits[] = InputAction::WEAR_OUTFIT, "", }, + { + // TRANSLATORS: input action name + N_("Clear outfit"), + InputAction::CLEAR_OUTFIT, + "", + }, { // TRANSLATORS: input action name N_("Copy Outfit to other outfit"), -- cgit v1.2.3-60-g2f50