Page 1 of 1

PropertyHelper::imageToString and some chars like 'spaces'

Posted: Sat Oct 25, 2008 18:32
by SuperMegaMau
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?

Posted: Sun Oct 26, 2008 10:41
by CrazyEddie
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