Game Development Community

Another GuiWindow Question

by CdnGater · in Torque Game Engine · 05/26/2004 (5:42 pm) · 3 replies

If I wanted two GuiWindows on the screen that are fully movable.

Would I need to give them the same parent, so that they are part of the same Gui?

I tried for testing
Canvas.pushDialog(InventoryGui);
Canvas.pushDialog(SkillsGui);

but I can't move Inventory because Skills is a dialog on top.

I dont want one big file that contains all the different Gui.

Am I approching this wrong? Anyone got any better ideas?

Is there a way to display a Gui without using pushDialog or setContent?

thanks.

#1
05/26/2004 (6:11 pm)
Name your guiWindow controls themself and then use

Canvas.getContent().add(inventoryWindows);
Canvas.getContent().add(skillsWindows);

use canvas.getContent().remove(%gui); to remove it
#2
05/26/2004 (8:29 pm)
Harold, your a Genius.

You saved me from myself AGAIN!!

Next time I will have to ask you direct. :)

Thank you Harold.
#3
08/07/2010 (12:41 am)
But I don't seem to be able to move the window. Am I missing something?