Page 1 of 1

CELayoutEditor

Posted: Wed Aug 12, 2009 08:04
by virious
Hello, it's my first post here :).

I have a problem. How can I save "Image" property of "TaharezLook/StaticImage" type? The CELayoutEditor doesn't want to save it to the ".layout" file :( . And also, where the image (".png" file) should be located?

I just found information:

Image

Property to get/set the image for the FalagardStaticImage widget. Value should be "set:[imageset name] image:[image name]".


But my quesion is: it cannot be done automatically from CELayoutEditor?

Re: CELayoutEditor

Posted: Wed Aug 12, 2009 16:09
by Jamarr
Open the file CELayoutEditor.ini and add Image,text; to the end of the SupportedProperties entry.

Re: CELayoutEditor

Posted: Wed Aug 12, 2009 19:40
by virious
Jamarr wrote:Open the file CELayoutEditor.ini and add Image,text; to the end of the SupportedProperties entry.


I've had that text already in CELayoutEditor.ini. So this is not the cause of this problem :( .

Re: CELayoutEditor

Posted: Thu Aug 13, 2009 07:13
by scriptkid
Hi,

This post might help: viewtopic.php?f=7&t=2804

You basically need to type the same format, as you would do in XML directly.

And also, where the image (".png" file) should be located?


The editor uses Cegui's internal resource loading mechanism. Have a look at the INI file's ImagesetPath setting. That's the directory where the editor (Cegui actually) loads your imagesets. In the Imageset files themself, you should say which image file it uses. That path is relative from the Imageset directory itself.

HTH.