void UIManager::UIMenuReg()
{
CEGUI::Window* pMainWnd = CEGUI::WindowManager::getSingleton().getWindow("AOF_GUI");//sequence?
OgreFramework::getSingletonPtr()->m_pGUISystem->setGUISheet(pMainWnd);
CEGUI::PushButton* button = (CEGUI::PushButton*)pMainWnd->getChild("BExit");
/*error right here*/ button->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&MenuState::onExitButton, this));
button = (CEGUI::PushButton*)pMainWnd->getChild("BEnter");
button->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&MenuState::onEnterButton, this));
}
'CEGUI::SubscriberSlot::SubscriberSlot' : no overloaded function takes 2 arguments
Does it mean that the declaration in the header file takes a different number of arguments? The basic structure of the code is intact from a working example so I don't see how that could be.