I have seen in demo8 that You use Lua for scripting. This language seems to provide the possibility to bind scripting functions directly to guievents (that is, one can have function pointers or something similar).
I'm using AngelScript in my projects, but AngelScript doesn't yet provide function pointers.
Will it be possible to register for guievents without having to bind the scriptfunction?
Something like this would be nice to have
Code: Select all
guiwindow.subscribeEvent(const String& eventname, const String& scriptfunctionname)
In the ScriptModule we could introduce a member with this signature
Code: Select all
virtual int executeScriptFunction(const String& function_name, const CEGUI::EventArgs& e) = 0;
What do You think about it?
Regards
Tom