[SOLVED] [CELAYOUTEDITOR] StaticImage?

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

ripper9100
Just popping in
Just popping in
Posts: 7
Joined: Sun Feb 22, 2009 04:39

[SOLVED] [CELAYOUTEDITOR] StaticImage?

Postby ripper9100 » Sun Feb 22, 2009 04:46

Hi,

How do I load images? I've tried writing "set:[myImage.imageset] image:[myImage.tga]" and other slight variations of this in the image field but nothing has worked so far. Can someone point out my mistake?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sun Feb 22, 2009 10:43

Hi and welcome :)

You should use the names, as defined in your XML name tags, not the filenames themselves.

For example to use the mouse arrow from the taharez look, you'd say:

"set:Taharezlook image:MouseArrow"

HTH.
Check out my released snake game using Cegui!

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Postby xabila » Wed Mar 11, 2009 09:58

I have actually a similar question.

First, where i'm suppose to write "set blablba image:toto", on the image field it's not working...


And after If we need to use a name, so our imageSet must have been loaded on the editor. But only the theme imageSet is loaded on the editor?
So how can i use my own imageSet to add an image on my interface on the editor?

This could be done, if we can add another ImageSet on the .scheme of the theme, but it crash the editor right now...

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Wed Mar 11, 2009 15:51

Hi,

Okay i understand your problem. The editor will (try to) load all files which are inside the paths as mentioned in the CELayoutEditor.INI file. So you don't have to edit your .scheme files.

You need to make sure that the imageset you want to use is inside the path, which can be found in the INI file.

The editor will prompt with errors if it encounters exceptions during the loading process. Is that what you mean by crash? If so, does the image file (which is used by the imageset.xml file) also exist in the correct folder?

Finally, there needs to be a ":" after "set" as well, but maybe your sample has a typo.

HTH.
Check out my released snake game using Cegui!

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Postby xabila » Wed Mar 11, 2009 17:46

Ok for the resource
And sorry, for the crash, it's actually exceptions

But i still don't get where on the StaticImage property write "set:Taharezlook image:MouseArrow"
I tried on the Image field wich is empty by default, but it's not working with the Taharelook MouseArrow, wich must be loaded by the editor.

Thanks a lot.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Mar 11, 2009 18:51

Hi,

It's case sensitive, so you need a capital 'L' on the Look part, so:
"set:TaharezLook image:MouseArrow"


HTH

CE.

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Postby xabila » Thu Mar 12, 2009 08:33

oh f*** :oops:
Thanks a lot
Now it makes sens ;)


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 1 guest