]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/PartyMenu.cpp
added spell menu dummy
[l2e.git] / src / menu / PartyMenu.cpp
index 07b7770859c1bfbb0812f810178f44534b9db0a3..993fad5abc00f0293175ffc635213461da0b79a6 100644 (file)
@@ -11,6 +11,7 @@
 #include "InventoryMenu.h"
 #include "Resources.h"
 #include "SelectHero.h"
+#include "SpellMenu.h"
 #include "StatusMenu.h"
 #include "../app/Application.h"
 #include "../app/Input.h"
@@ -98,6 +99,7 @@ void PartyMenu::HandleEvents(const Input &input) {
                                Ctrl().PushState(new InventoryMenu(this));
                                break;
                        case MENU_ITEM_SPELL:
+                               Ctrl().PushState(new SelectHero(this, this, this, OnSpellSelect));
                                break;
                        case MENU_ITEM_CAPSULE:
                                break;
@@ -206,4 +208,10 @@ void PartyMenu::OnStatusSelect(void *ref, int index) {
                        new StatusMenu(self, index));
 }
 
+void PartyMenu::OnSpellSelect(void *ref, int index) {
+       PartyMenu *self(reinterpret_cast<PartyMenu *>(ref));
+       self->Ctrl().ChangeState(
+                       new SpellMenu(self, index));
+}
+
 }