Why is the Main Menu snippet in the CEGUIWiki not compliable

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

extrakun
Just popping in
Just popping in
Posts: 8
Joined: Sun Sep 17, 2006 11:47

Why is the Main Menu snippet in the CEGUIWiki not compliable

Postby extrakun » Tue Sep 19, 2006 10:08

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?

Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests