I have a slider and I want to use it to change stuff on the fly, so I figured I do this:
Code: Select all
CEGUI::Slider * slider;
slider = (CEGUI::Slider*)CEGUI::WindowManager::getSingleton().getWindow("Map/SpeedSlider");
slider->subscribeEvent(CEGUI::Slider::EventValueChanged, Bind1(&core::onValSlider, this));
That would register a function for a event, but it doesnt execute the function when the value actually is changed. Also tried with EventThumbTrackStarted but that didnt work either. Im using (I think) and older version of CEGUI, with yake and ogre. With the yake version (.4) you can probably find the CEGUI version.
Anyway, have I left something out? (I made the window via a .layout file)