It's unlikely that any new features will be added for the 0.3.0 release; I believe this release will happen within 5 days or so, and this is not enough time to add new features, test them properly, and package things up. Personally, I like to let features exist in CVS for a while before they get put into a 'stable' release, so that they have some testing in the field - otherwise it may not be much of a stable release
With reference to the requested feature, for my part, I feel that there is enough facility to achieve what you want already (as we already suggested in that thread). I'll just repeat that I would not feel comfortable having something like this in CEGUIBase - there are many different approaches to binding to code via the data files, and I do think that each person needs to choose the best technique for their app, rather than trying to use something we provide (no matter what you put in, someone always complains

).
The code to achieve what you want is extremely simple:
You need a std::map of function pointers keyed by a string containing the handler name you'll use in the XML files.
Now create a dummy script module which implements the
Code: Select all
executeScriptedEventHandler(const String& handler_name, const EventArgs& e)
method (the other methods can just be stubbed out). Within this method you just look up the handler_name in your std::map and call the corresponding function, passing the EventArgs as required.
In your layouts, use the <Event> tag to specify which events you want bound to which handlers.
CE