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?
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?
About the author
Foestar Entertainment Biohazard Entertainment
#2
sounds like your extent is sized incorrectly.
positioning and sizing my gui elements took a while for me to get correct.
04/05/2009 (10:49 pm)
FoestarQuote:
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
Thanks!
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!
Torque Owner Gerald Fishel
Development Ninja
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.