QuickGUI button problem

TADS

22-02-2008 00:12:01

hi im new to this forum well posting on it... i have a problem with a button showing OVER a image it hides behind the image and cant work it out how to correct this any help would be gr8

im using the 0.9.7 pre release QuickGUI

//Create a 'Start Race' button.
startRaceButton = mainMenuSheet->createButton();
startRaceButton->setPosition(650,550);//(Width,Height)
startRaceButton->setWidth(100);
startRaceButton->setHeight(50);
startRaceButton->setText("Start");
startRaceButton->addEventHandler(QuickGUI::Widget::EVENT_MOUSE_BUTTON_UP, &GUImanager::startRace, this);


the TEXT shows over the image just not the button

that how the button is set up and this works fine without the image ie: if i just have the blue ogre window....

i cant seam to set a ZOrder on this either

i hope i have given enuff info of my problem

thanks in advance for any help i get i know everyone is busy

TADS

kungfoomasta

22-02-2008 06:19:14

At first I didn't really understand why you'd have a button over an image, but I think you mean a background image, right? You should set the image of the Sheet widget:

mainMenuSheet->setMateria("examples/ninja")l

or

mainMenuSheet->setTexture("some_image.png")

If you really want to stick with using the Image, you can use the following function:

Widget::appearOverWidget

TADS

22-02-2008 10:31:20

thanks for the quick reply... yes its a background image i want with the buttons over the top...

its all sorted thanks again

TADS