http://pastie.org/2327238
http://pastie.org/2327308
How hard would it be to integrate such functionality? Can i somehow get list of required and available properties in code?
"Window" is general name for entity?
For layouts, i guess that "Type" and "Name" are required?
Can you give me pointers where to start?
I already started experimenting on this in python (using panda3d)
EDIT1:
Ok,i tested my idea, and it should be very easy to do it, here is some sample proof of concept code
Code: Select all
stream = file('x.yaml', 'r')
x = yaml.load(stream)
Name = x["GUILayout"]["Window"]["Name"]
Type = x["GUILayout"]["Window"]["Type"]
t = self.CEGUI.WindowManager.createWindow(Type,Name)
t.setPosition(PyCEGUI.UVector2(PyCEGUI.UDim(0,50), PyCEGUI.UDim(0,0)))
#t.setProperty("Image","set:TaharezLook image:full_image")
t.setSize(UVector2(UDim(0,750),UDim(0,650)));
v = self.CEGUI.WindowManager.createWindow(Type,Name+"2")
v.setPosition(PyCEGUI.UVector2(PyCEGUI.UDim(0.25,50), PyCEGUI.UDim(0,0)))
v.setSize(UVector2(UDim(0,150),UDim(0,150)));
t.addChildWindow(v)
self.CEGUI.System.setGUISheet(t)