Code: Select all
quit->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&AppState::shutdown, this));
When I try to compile this, I get the error:
Code: Select all
1>c:\users\stenr\basics\xxx\projects\development\client\xxx\xxx\menustate.cpp(46): error C2661: 'CEGUI::SubscriberSlot::SubscriberSlot' : no overloaded function takes 2 arguments
Can anyone help me out here? What is it I have done wrong? Was pretty much smooth sailing up till here, buttons and everything show up, I just can't get the event to apply to the button for some reason. Any help is greatly appreciated!