You see, the sliders look like this:

So that whenever the thumb's moved, the glow "follows" it, giving a better idea of its position.
Moderators: CEGUI MVP, CEGUI Team
Of course, I forgot about the global event, thanks for the suggestionCrazyEddie wrote:
There's nothing for this at the moment, though you could subscribe the global event for a slider position change, extract the source window and manually trigger a redraw. So you'd have to add some code, but not for every slider.
Is this using falagard? If so I think I'll change the slider in there so that moving the thumb position will trigger a redraw of the whole widget. Or, more likely, add a configurable option.
Code: Select all
CEGUI::GlobalEventSet::getSingleton().subscribeEvent(CEGUI::Slider::EventValueChanged, CEGUI::Event::Subscriber(UITest::Slide,this));
bool UITest::Slide(const CEGUI::EventArgs& e)
{
CEGUI::Window* slide = ((CEGUI::WindowEventArgs*)&e)->window;
slide->requestRedraw();
return true;
}
Code: Select all
Slider::EventNamespace + "/" + Slider::EventValueChanged
Return to “Modifications / Integrations / Customisations”
Users browsing this forum: No registered users and 3 guests