StaticImage help
Posted: Mon Feb 21, 2005 22:48
First of all, I'd like to say that CrazyEddie has made quite an amazing GUI system .
I am having trouble using a StaticImage as the background of my GUI. This is the code I am using:
Nothing shows up at all, it is just a plain black background. I have tried everything and I have no clue what is wrong.. . Any help would be greatly appreciated.
Thanks in advance!
Nikon
I am having trouble using a StaticImage as the background of my GUI. This is the code I am using:
Code: Select all
CEGUI::ImagesetManager::getSingleton().createImageset("../datafiles/imagesets/pawn.imageset", "Pawn");
StaticImage* si = (StaticImage*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/StaticImage", (utf8*)"Backdrop");
sheet->addChildWindow(si);
si->setImage("PawnImageset", "Background");
si->setPosition(Absolute, Point(0, 0));
si->setSize(Relative, Size(1.0f, 1.0f));
si->setFrameEnabled(false);
si->setBackgroundEnabled(true);
si->setAlwaysOnTop(false);
si->setAlpha(1.0f);
si->setEnabled(false);
si->moveToBack();
si->show();
Nothing shows up at all, it is just a plain black background. I have tried everything and I have no clue what is wrong.. . Any help would be greatly appreciated.
Thanks in advance!
Nikon