I tried these to versions to subscribe to an event
Code: Select all
mButtonQuit->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&GsLogin::reactButtonQuit, this));
//-------------------
CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
CEGUI::Window* window = winMgr.getWindow("Root/ButtonQuit");
window->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&GsLogin::reactButtonQuit, this));
The first one I found somewhere searching the forums, the second one is taken from the Ogre CeGUI Tutorials. Sadly, they both give me the following error
Code: Select all
error C2661: 'CEGUI::SubscriberTemplate<Ret,Args>::SubscriberTemplate' : no overloaded function takes 2 arguments
with
[
Ret=bool,
Args=const CEGUI::EventArgs &
]
So maybe anyone can point me out?
Some Specs
Visual Studio 8 Express Edition
Ogre 1.22 (Dagon) and the CEGUI Version shipped with that
Anything more you guys need? Just let me know =)