Right now I'm working on a scrollable pane in my project.. like a fruit machine. Or, more related, like the common scrolling "build" bar in RTS games.
The problem is, that I cannot dynamically set the images the way I want to.
I have an imageset, an image, and an rendarable image. These are 100% OK. I double checked during the quick watch.
Code: Select all
RenderableImage img;
img.setImage(&imgImage);
btn->setNormalImage(&img);
btn->setPushedImage(&img);
btn->setDisabledImage(&img);
imgImage is a CEGUI::Image object. The problem is, that all images will get their default picture. I already have images set (as test) in the .xml file.
Now,the strange thing is, that if I do it using the property method, it does work:
Code: Select all
sprintf(strProperty,"set: imgObjects image: store");
btn->setProperty("NormalImage",strProperty);
Above will change my image (like it shoukd). But this is kinda dirty (imo).
Am I doing something wrong with the set...Image calls?