Page 1 of 1

Why is the Main Menu snippet in the CEGUIWiki not compliable

Posted: Tue Sep 19, 2006 10:08
by extrakun
Hi,

I am currently using CEGUI 0.4.5, the one which comes included with the Ogre 1.2.

I couldn't get the code in the Main Menu code snippet to work. (http://www.cegui.org.uk/wiki/index.php/ ... ing_Images)

When trying to set the normal image for a PushButton, via setNormalImage(), I can only pass in a RenderableImage. However, the code in the wiki states that I can pass in an Imageset and then the image name.

Doing this doesn't work

Code: Select all

CEGUI::RenderableImage* btnDown = new CEGUI::RenderableImage();
btnDown->setImage(Buttons->getImage("ButtonDown"));


Is there a quick and easy way for me to get an RenderableImage?