Code: Select all
CEGUI::Window* t = new CEGUI::Window("WindowsLook/StaticImage","test");
CEGUI::ImagesetManager::getSingleton().createImagesetFromImageFile("ImgOne","imgOne.PNG");
myRoot->addChildWindow(t); //myRoot is Rootsheet
t->setProperty("Image","set:ImgOne image:full_image");when app run it gets error in CEGUI.log : (Error) CEGUI::UnknownObjectException in file ..\..\..\src\CEGUIPropertySet.cpp(124) : There is no Property named 'Image' available in the set.
And the second code :
Code: Select all
CEGUI::Window* t = winMgr->createWindow("WindowsLook/StaticImage","test");
CEGUI::ImagesetManager::getSingleton().createImagesetFromImageFile("ImgOne","imgOne.PNG");
myRoot->addChildWindow(t);
t->setProperty("Image","set:ImgOne image:full_image");It works fine !!!!
So could anyone tell me : what do the window contrustor really do ? And what's difference beetween createWindow() function and window constructor ?
In my game , i must inherit CEGUI::Window class to my own Window ( ex flashing image ...) but i don't know its constructor exactly do .
Please help me

