PropertyHelper::imageToString and some chars like 'spaces'

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

SuperMegaMau
Just popping in
Just popping in
Posts: 8
Joined: Fri Mar 31, 2006 17:33
Location: Portugal

PropertyHelper::imageToString and some chars like 'spaces'

Postby SuperMegaMau » Sat Oct 25, 2008 18:32

Hi,

I'm trying to set an image to a panel based on a render to texture. So everything is working right except for the fact that I can't create the texture with a name that contains spaces or other special chars. This line is the problem:

Code: Select all

component->setProperty("Image", CEGUI::PropertyHelper::imageToString(&someImageSet->getImage( ("SomeImageset_"+std::string(someName)).c_str() )));


the variable "someName" has spaces, and for that it's being truncated. Is there any way to solve this without replacing the all spaces with any other character?

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

Postby CrazyEddie » Sun Oct 26, 2008 10:41

Hi,

This is a limitation of the system at the present time - so no spaces allowed in imageset or image names if you need to use them in the properties.

CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests