Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: sloppy on Wed 12/04/2006 21:04:08

Title: One GUI over another GUI
Post by: sloppy on Wed 12/04/2006 21:04:08
At one point of my game, I've got one smaller GUI over another larger one.  Is there a way to make sure the smaller one goes on top of the larger one?

As it stands, the smaller one doesn't show up because it's behind.
Title: Re: One GUI over another GUI
Post by: DoorKnobHandle on Wed 12/04/2006 21:12:23
Go to the "GUIs" pane on the left in AGS and take a look at the "Z-order" property that every GUI has. Looking this up in the manual would tell you that you can change the drawing order of GUIs using this variable. The GUI with the higher number will be drawn over others, you you'd need to give your smaller number for example a Z-order of 200 while making sure that your large GUI still has 0, 1 or anything <200...
Title: Re: One GUI over another GUI
Post by: SSH on Wed 12/04/2006 21:18:00
I think by default GUIs Z value is the same as its gui number
Title: Re: One GUI over another GUI
Post by: sloppy on Wed 12/04/2006 21:48:44
Ah yes.  Thanks.