Torque script button....
by Henning Martinsen · in Torque Game Engine · 06/21/2008 (3:07 am) · 8 replies
Hi
I have a problem with a button's command: Canvas.popDialog(MainMenuGui);
But it will not return to mainMenuGui.
How can I clear every gui before a small gui step over s big gui ??
Any idea ??
Thanks for all help.
I have a problem with a button's command: Canvas.popDialog(MainMenuGui);
But it will not return to mainMenuGui.
How can I clear every gui before a small gui step over s big gui ??
Any idea ??
Thanks for all help.
About the author
#2
I hope you can help me out with another problem like pref in variable, like: ::pref::Player:Name
Is that right ??
Must I make a file to it ??
Again thanks for all help.
Regards,
Henning Martinsen
06/23/2008 (1:14 pm)
Thank you :) :DI hope you can help me out with another problem like pref in variable, like: ::pref::Player:Name
Is that right ??
Must I make a file to it ??
Again thanks for all help.
Regards,
Henning Martinsen
#3
Have fun with Torque.
06/25/2008 (2:37 am)
All the "$Pref::*" variables will be automatically exported as part of the client configuration, so if you create a variable "$Pref::Player::Name", it will be included in the dump when Torque exits and automatically reloaded when Torque starts up again.Have fun with Torque.
#4
I also try a box so use can write input but it's not working.
I try from guitexteditprofile and many more.
I can't find guitesteditprofile in my indie 150.
So where can I get it or how do I make one ??
06/25/2008 (2:15 pm)
And if I wanted permanent how will I do it ??I also try a box so use can write input but it's not working.
I try from guitexteditprofile and many more.
I can't find guitesteditprofile in my indie 150.
So where can I get it or how do I make one ??
#5
For a text edit control, simply fire up the GUI editor and drag a GuiTextEditCtrl onto the canvas (or GuiMLTextEditCtrl for multi-line text). You needn't worry about profiles unless you specifically want to modify certain stylistic or behavioral properties.
06/25/2008 (3:14 pm)
The preferences are permanent. They are saved to a file and read back on startup.For a text edit control, simply fire up the GUI editor and drag a GuiTextEditCtrl onto the canvas (or GuiMLTextEditCtrl for multi-line text). You needn't worry about profiles unless you specifically want to modify certain stylistic or behavioral properties.
#6
And when I quit the game all stuck, freez.
But I have no idea what went wrong.
Can you help ?
06/25/2008 (4:05 pm)
I used guitexteditctrl and in variable: $pref::Player::Name, $pref::Player::pw, $pref::Player::Confirmpw, $pref::Player::Email, and so on.And when I quit the game all stuck, freez.
But I have no idea what went wrong.
Can you help ?
#7
06/25/2008 (4:28 pm)
Take a look at the console log to see where the engine gets stuck. That's always the first place when trying to find out what's going on.
#8
I gues that object is to long or something.
06/25/2008 (10:37 pm)
I get this: Set::getObject index out of range.I gues that object is to long or something.
Quote:
*** Load Main Menu
Compiling creator/ui/prefs.cs...
Loading compiled script creator/ui/prefs.cs.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
InfinityOfRounds/client/ui/pw.gui
Exporting Gui Editor Prefs
Compiling creator/ui/prefs.cs...
Loading compiled script creator/ui/prefs.cs.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
Exporting Gui Editor Prefs
Compiling creator/ui/prefs.cs...
Loading compiled script creator/ui/prefs.cs.
Set::getObject index out of range.
Set::getObject index out of range.
InfinityOfRounds/client/ui/pw.gui
Exporting Gui Editor Prefs
Exporting client prefs
Exporting client config
Exporting server prefs
Exporting client prefs
Exporting server prefs
Shutting down the OpenGL display device...
Making the GL rendering context not current...
Deleting the GL rendering context...
Releasing the device context...
Restoring the desktop display settings (1024x768x32)...
Associate Rene Damm
You can switch the canvas content altogether with
displaying only the control you specify.