From 91fbc3ca1d60b684554813004dbca311909d038d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Mar 2016 20:50:07 +0300 Subject: Add basic support for gm menus for pets, homunculuses, mercenaries. --- src/gui/popups/popupmenu.cpp | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 101072d58..37c7ee2a0 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -3055,6 +3055,19 @@ void PopupMenu::showGMPopup(const std::string &name) case ActorType::FloorItem: showFloorItemGMCommands(); break; +#ifdef EATHENA_SUPPORT + case ActorType::Homunculus: + showHomunGMCommands(); + break; + case ActorType::Pet: + showPetGMCommands(); + break; + case ActorType::Mercenary: + showMercenaryGMCommands(); + break; + case ActorType::SkillUnit: + break; +#endif default: case ActorType::Unknown: if (mItemId != 0) @@ -3063,12 +3076,6 @@ void PopupMenu::showGMPopup(const std::string &name) case ActorType::Portal: case ActorType::LocalPet: case ActorType::Avatar: -#ifdef EATHENA_SUPPORT - case ActorType::Pet: - case ActorType::Mercenary: - case ActorType::Homunculus: - case ActorType::SkillUnit: -#endif break; } } @@ -3082,6 +3089,18 @@ void PopupMenu::showGMPopup(const std::string &name) } #ifdef EATHENA_SUPPORT +void PopupMenu::showHomunGMCommands() +{ +} + +void PopupMenu::showPetGMCommands() +{ +} + +void PopupMenu::showMercenaryGMCommands() +{ +} + void PopupMenu::showCraftPopup() { mBrowserBox->clearRows(); -- cgit v1.2.3-70-g09d2