Event Description
Posted: Tue Jul 26, 2005 19:08
I am just getting started. I have searched the forum, but didn't find an answer to the following question on events:
Is there a way for an EventSuscriber function to determine the event that is being sent to it in the EventArgs object?
My old GUI system uses a unified event handler to which my scriptors have grown accunstomed. My goal is to be able to use all of the existing Lua scripts in future products that use CEGUI for GUI functionality.
The Lua event handler is in the form of:
function EventHandler(objectName, eventName, ...)
-- do someing interesting
end
Thanks!
Is there a way for an EventSuscriber function to determine the event that is being sent to it in the EventArgs object?
My old GUI system uses a unified event handler to which my scriptors have grown accunstomed. My goal is to be able to use all of the existing Lua scripts in future products that use CEGUI for GUI functionality.
The Lua event handler is in the form of:
function EventHandler(objectName, eventName, ...)
-- do someing interesting
end
Thanks!