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