Page 1 of 1

scripted actions

Posted: Mon Mar 14, 2005 05:22
by noname
I have created a program from XML layout files , but I don't know how can i load the scripted actions which in Lua scripting files, just like CEGUI Demo 8 ,
Would you like to post the source of Demo 8 or give me some info about this ?

Re: scripted actions

Posted: Mon Mar 14, 2005 09:29
by CrazyEddie
To get this kind of itegratin with scripting, you need a ScriptingModule object specific for the scriptig language you are targetting. Using this it will then be possible to get gui events to call script code like in demo 8.

There is no source code for demo 8 as such, it was entirely done via script and the config file (IIRC). What made demo 8 possible was my (abandoned) ScriptModule using luabind, I am willing to give this out, but what you need to realise is that the code is totally out of date with the current system, so will not compile or work properly without a lot of modifications. I will say now that no support for this code will be provided what so ever - it was abandoned for good reason ;)

I do intend to supply at least one example ScriptingModule at some point in the near(ish) future.

Let me know if you still would like to see the source for the ScriptingModule and I'll upload it somewhere.

CE.

Re: scripted actions

Posted: Mon Mar 14, 2005 09:53
by noname
CrazyEddie wrote:
Let me know if you still would like to see the source for the ScriptingModule and I'll upload it somewhere.
CE.


Please upload it at your convenience ,perhaps it can be as my referance .Thanks .

Re: scripted actions

Posted: Mon Mar 14, 2005 14:32
by CrazyEddie
http://crazy-eddie.myby.co.uk/files/cegui-lua.zip

I'll wish you the best of luck with this, the code is pretty terrible, and it hasn't really been updated since Demo 8 was out out last July :hammer:

CE.

Re: scripted actions

Posted: Tue Mar 15, 2005 00:01
by noname
I have got ,thanks again ,it will be helpful.