Overlapping UI
by Merfy · in Torque Game Builder · 02/14/2007 (1:49 pm) · 2 replies
I want to make a kind of pop up UI that is temporarly on top of thee main UI.
An example of what I mean would be allow the user to click a button to show his inventory, where the inventory is on top of the main UI, until the user decides to close it, and it doesn't take up the full screen, and does not replace the main UI.
Is this possible or is there a standard way to handle this kind of thing?
An example of what I mean would be allow the user to click a button to show his inventory, where the inventory is on top of the main UI, until the user decides to close it, and it doesn't take up the full screen, and does not replace the main UI.
Is this possible or is there a standard way to handle this kind of thing?
About the author
#2
Hope that helps.
02/14/2007 (5:03 pm)
@Merfy, if you want the UI to be 'movable' so they can keep the inventory open while playing the game and move it off to the side, when you create your new GUI Object, make sure it starts as a Window control -- you can then set the initial size of the Window, define if it's resizable and if it has 'minimize' and 'maximize' buttons in the toolbar ... to prevent it from initially being 'fullscreen' change the HorizSizing and VertSizing to whatever is best for you, I believe by default, Windows are setup to use Width/Height, which makes them 'fullscreen' by default.Hope that helps.
Torque Owner Evan Ogawa
You can create this UI in Gui Editor and save it to your ./gui directory as per usual. Just ensure that you read that file in (via exec()) when your game loads.
You will want to ensure that this UI is non-modal, otherwise your main Gui will not be accessible. Also, remember that you should make its background be transparent, otherwise your level itself will not be visible anymore.
Keep Torquing!