From b2d5269eca7be4c76379ac2cbeef7a40ad0695bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Apr 2012 20:09:02 +0300 Subject: Add outfits shortcuts to input settings. --- src/actionmanager.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/actionmanager.cpp') diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index b2df9967b..ededaea52 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -155,9 +155,15 @@ impHandler(emote) return true; } } - else if (inputManager.isActionActive(Input::KEY_WEAR_OUTFIT)) + + return false; +} + +impHandler(outfit) +{ + if (inputManager.isActionActive(Input::KEY_WEAR_OUTFIT)) { - int num = event.action - Input::KEY_EMOTE_1; + int num = event.action - Input::KEY_OUTFIT_1; if (outfitWindow && num >= 0) { outfitWindow->wearOutfit(num); @@ -168,7 +174,7 @@ impHandler(emote) } else if (inputManager.isActionActive(Input::KEY_COPY_OUTFIT)) { - int num = event.action - Input::KEY_EMOTE_1; + int num = event.action - Input::KEY_OUTFIT_1; if (outfitWindow && num >= 0) { outfitWindow->copyOutfit(num); -- cgit v1.2.3-60-g2f50