Game Development Community

Problem with creating new Gui control

by Foestar · in Torque Game Engine Advanced · 04/05/2009 (6:19 am) · 3 replies

Alrighty, I've created a new gui control with a window in it containing a profile selection for the player. My problem is that the window when called by the command shows up, it doesn't look or react like it should. I use
Canvas.pushDialog(ProfileSelection);
for bringing up the profile selection gui. It's not supposed to take up the entire screen, but it does. And the X (close) button doesn't work. I have enabled the gui in the init.cs and it does at least pop up. Any ideas on what i'm doing wrong?

#1
04/05/2009 (6:34 am)
Might help if you posted your GUI definition.

As for it not closing, you'll have to supply a command to be called when the close button is pressed. If I remember correctly there's a "closeCommand" property, probably set it to call Canvas.popDialog.
#2
04/05/2009 (10:49 pm)
Foestar


Quote:
It's not supposed to take up the entire screen, but it does.

sounds like your extent is sized incorrectly.

positioning and sizing my gui elements took a while for me to get correct.
#3
04/27/2009 (11:18 am)
Hey, thanks for the input you two. Sorry on super later response. But I was busy out in california for a few weeks. Back and taking some time to look at this again. Will repost if needed again.
Thanks!