New ScriptingModule

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

guyver6
Just popping in
Just popping in
Posts: 11
Joined: Wed Jan 12, 2005 12:06
Contact:

New ScriptingModule

Postby guyver6 » Sun Jan 08, 2006 22:42

A while ago, around summer, I promised Crazy Eddie that I'll make another scripting module for something different than Lua.

So there I have it, working, but before I'll publish it, I need to solve one problem I'm hitting... well, or it looks like I don't know how to subscribe handlers to events on .layout level, or it's broken. I do sth like that:

Code: Select all

<Event Name="Moved" Function="moveIt" />

What I get is exception from XML parser. Schema is ok, so I thought that maybe it's broken or what?

Oh, btw, the script module is for Python. :)

Greetings,
Guyver

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: New ScriptingModule

Postby lindquist » Mon Jan 09, 2006 01:06

The CEGUI library just does a

Code: Select all

wnd->subscribeEvent(eventName, ScriptFunctor(functionName));


If you have this functionality up and running, it should work.

HTH


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 12 guests