How I set some a file JPG into StaticImage(widget). No imageset.
setProperty("Image", ???)
Thanks
Sorry, My english is bad
StaticImage file.jpg
Moderators: CEGUI MVP, CEGUI Team
Have a look at WidgetGalore
That snippet uses a StaticImage created from a .layout. Replace the second line of code with a call to createWindow() if you are programatically creating the StaticImage.
Code: Select all
/* StaticImage */
ImagesetManager::getSingleton().createImagesetFromImageFile("ImageForStaticImage", "GPN-2000-001437.tga");
DefaultWindow* staticImage = static_cast<DefaultWindow*>(winMgr.getWindow("StaticImage"));
staticImage->setProperty("Image", "set:ImageForStaticImage image:full_image"); // "full_image" is a default name from CEGUIImageset::Imageset()
That snippet uses a StaticImage created from a .layout. Replace the second line of code with a call to createWindow() if you are programatically creating the StaticImage.
-
- Just popping in
- Posts: 3
- Joined: Wed Mar 05, 2008 21:58
- Location: CZ
Anf what about the editor?
And how can one set the image from the CELayoutEditor?
The "Image" property of the StaticImage is there, but how do I specify the image I want here? Is it possible?
The "Image" property of the StaticImage is there, but how do I specify the image I want here? Is it possible?
Who is online
Users browsing this forum: No registered users and 16 guests