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?
[SOLVED] [CELAYOUTEDITOR] StaticImage?
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 7
- Joined: Sun Feb 22, 2009 04:39
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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.
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!
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...
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...
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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.
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!
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.
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.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
It's case sensitive, so you need a capital 'L' on the Look part, so:
HTH
CE.
It's case sensitive, so you need a capital 'L' on the Look part, so:
"set:TaharezLook image:MouseArrow"
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Unofficial CEGUI-Related Tools”
Who is online
Users browsing this forum: No registered users and 9 guests