Is this possible to set t2dSceneObject in top of the GUI layer?
by mohanmartin · in Torque Game Builder · 11/21/2008 (11:55 pm) · 2 replies
Hi,
can we set the t2dSceneObjects to top of the GUI layer?..
in my project i push a GUI above the sceneWindow, and i wish to display the animated sprites on top of that GUI
is this possible in TGB?
can we set the t2dSceneObjects to top of the GUI layer?..
in my project i push a GUI above the sceneWindow, and i wish to display the animated sprites on top of that GUI
is this possible in TGB?
About the author
#2
Canvas.pushDialog(someGUIname);
someGUIname.PushToBack(sceneWindow2d);.... is this correct?
11/24/2008 (3:39 am)
Where can i use BringToFront/PushToBack commands?Canvas.pushDialog(someGUIname);
someGUIname.PushToBack(sceneWindow2d);.... is this correct?
Torque Owner Gary Preston
However, there's nothing stopping you having a 2nd scene window above your first window and GUI.
There's a few ways to ensure ordering. Adding it at the bottom of the .gui file underneath all your other GUI controls will allow you to render objects in that window above all your GUI and first scene window's objects. Or, using the BringToFront/PushToBack on the sceneWindow. Or you could look into using the pushDialog( ) layer support.
That way you can render above or below by using the appropriate scene window.