summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-01 20:50:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-01 20:50:07 +0300
commit91fbc3ca1d60b684554813004dbca311909d038d (patch)
tree41b45cdbd86a904bd910186cd57afac5181f2594 /src/gui/popups/popupmenu.cpp
parentc9a0a01ffff11b23c517cc2d0c6a08a83c7a8158 (diff)
downloadmv-91fbc3ca1d60b684554813004dbca311909d038d.tar.gz
mv-91fbc3ca1d60b684554813004dbca311909d038d.tar.bz2
mv-91fbc3ca1d60b684554813004dbca311909d038d.tar.xz
mv-91fbc3ca1d60b684554813004dbca311909d038d.zip
Add basic support for gm menus for pets, homunculuses, mercenaries.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp31
1 files changed, 25 insertions, 6 deletions
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();