Page 1 of 1

very confused with StaticImage....

Posted: Thu Sep 28, 2006 13:58
by cutenoob
Here is the problem...

StaticImage(root)
* |
* |
* StaticImage(panel)
* | |
* | |
* button1 button2

panel is inherit root ,, tow buttons are inherit panel

-------------------

well,,,First I set a image to root as background,,,next I do the same thing Set a Image to panel,but problem comes..All the button disappeared. :shock: :shock: That sound funny,but it really disappeared....

I'm pretty sure my code is propriety,,and the layout file is fine...

so what' wrong ? Is something messed render gradation ? or can't set tow images in one scene ? or if the parent have a image the son unallowed set image ??

any infomation will be appreciate :) :)

Posted: Tue Oct 03, 2006 21:48
by Pompei2
what i think happens is that the buttons are still there, but UNDER the static Image. I think when you set the image to panel, CEGUI sets it to be the topmost. try to draw the buttons half on the static image to see if what i say is true ?