X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FPartyMenu.cpp;fp=src%2Fmenu%2FPartyMenu.cpp;h=bda633129211b3973d5e1d33034f6691c8d5efbd;hb=f2abfc21845c29024ce2478f95429801e91ef8e8;hp=993fad5abc00f0293175ffc635213461da0b79a6;hpb=aacd6d095d1e200cee6033fbf8221bea9a6c3112;p=l2e.git diff --git a/src/menu/PartyMenu.cpp b/src/menu/PartyMenu.cpp index 993fad5..bda6331 100644 --- a/src/menu/PartyMenu.cpp +++ b/src/menu/PartyMenu.cpp @@ -8,6 +8,7 @@ #include "PartyMenu.h" #include "ChangeHero.h" +#include "EquipMenu.h" #include "InventoryMenu.h" #include "Resources.h" #include "SelectHero.h" @@ -104,6 +105,7 @@ void PartyMenu::HandleEvents(const Input &input) { case MENU_ITEM_CAPSULE: break; case MENU_ITEM_EQUIP: + Ctrl().PushState(new SelectHero(this, this, this, OnEquipSelect)); break; case MENU_ITEM_STATUS: Ctrl().PushState(new SelectHero(this, this, this, OnStatusSelect)); @@ -202,10 +204,10 @@ const Resources &PartyMenu::Res() const { return *game->menuResources; } -void PartyMenu::OnStatusSelect(void *ref, int index) { +void PartyMenu::OnEquipSelect(void *ref, int index) { PartyMenu *self(reinterpret_cast(ref)); self->Ctrl().ChangeState( - new StatusMenu(self, index)); + new EquipMenu(self, index)); } void PartyMenu::OnSpellSelect(void *ref, int index) { @@ -214,4 +216,10 @@ void PartyMenu::OnSpellSelect(void *ref, int index) { new SpellMenu(self, index)); } +void PartyMenu::OnStatusSelect(void *ref, int index) { + PartyMenu *self(reinterpret_cast(ref)); + self->Ctrl().ChangeState( + new StatusMenu(self, index)); +} + }