klajter
18-01-2010 11:24:03
Hi.
I've got a problem with setting image to StaticImage widget.
In one of my widgets, I have few StaticImages and in game I'm changing theirs contents (images). This images are from one image set, and here is no problem.
But in other widget I have one StaticImage, and I want to change its image like earlier ( and I'm doing it in the same way ). But this time, image hasn't changes. No matter if images.
I'm doing it by using methods:
pSI->setItemResource(resource);
pSI->setItemGroup(group);
pSI->setItemName(img);
after that, in my pSI object, texture, resource etc aren't null ( I chekced in debug ), but in game widget is empty.
I was trying to use setImageTexture() or to change widget from StaticImage to simple Widget and _setTextureName(), but with no effects.
Of course all paths to images, which I want to use, are in resource.cfg and there are exists.
I've got a problem with setting image to StaticImage widget.
In one of my widgets, I have few StaticImages and in game I'm changing theirs contents (images). This images are from one image set, and here is no problem.
But in other widget I have one StaticImage, and I want to change its image like earlier ( and I'm doing it in the same way ). But this time, image hasn't changes. No matter if images.
I'm doing it by using methods:
pSI->setItemResource(resource);
pSI->setItemGroup(group);
pSI->setItemName(img);
after that, in my pSI object, texture, resource etc aren't null ( I chekced in debug ), but in game widget is empty.
I was trying to use setImageTexture() or to change widget from StaticImage to simple Widget and _setTextureName(), but with no effects.
Of course all paths to images, which I want to use, are in resource.cfg and there are exists.