Difference between revisions of "Adding ImageSets to the CEGUI LayoutEditor 0.6.X"
(No difference)
|
Revision as of 12:34, 26 February 2011
If you have made your own ImageSet which you'd like to access from the CELayoutEditor, you need to place it in your corresponding datafiles directory.
To find your directory, open your CELayoutEditor.ini file and look for this line:
ImagesetsPath=C:\Program Files\CELayoutEditor 0.6.3b\datafiles/imagesets/
(If you don't have an INI file yet, launch the editor at least once. More details can be found in the editor's manual).
Copy your own ImageSet file (including the actual image which it uses!) to that directory and restart the editor. Now it will 'pick it up' automatically, like it does for fonts as well.
Finally, to use an image in the editor, goto the property grid (in the dialog) and use the following format:
"set:setName image:imgName"
Where 'setName' is equal to the 'name=xxx' part in your XML file, and the image is one of the defined images by name. Just like you'd do in a layout file directly or in code via the 'setProperty' method for images.