Hi,
is it possible to send custom events to a CEGUI event handler?
Currently, all of my event handlers are in lua.
My newest widget is a clock widget. So, I want to update the clock based on a timer.
The timer would then call an event handler so I could move the dial on the clock.
Would this be possible?
Or is their already a timer event that I can take advantage of?
Thanks in advance.
--Handy
[SOLVED] Custom Event sending...
Moderators: CEGUI MVP, CEGUI Team
[SOLVED] Custom Event sending...
Last edited by Handy on Wed Jul 28, 2010 20:47, edited 1 time in total.
Re: Custom Event sending....
I believe that EventWindowUpdated ("WindowUpdate" in Lua) is called whenever a time-pulse is injected into CEGUI; this should work fine as a timer event. As far as custom events go, you can use Window::addEvent to add a custom event, and then Window::fireEvent to notify subscribers.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: [SOLVED] Custom Event sending...
Thanks, this worked perfectly.
Who is online
Users browsing this forum: No registered users and 33 guests