Minor issue when editing GUI's due to it running ::onWake() call
by John "Mythic" Henry · in Torque 3D Professional · 11/29/2011 (10:22 am) · 3 replies
Now I'm in the middle of configuring more hack checks in my code and ran into
a minor issue when editing a GUI before it ever connects to anything:
My ::onWake() call includes the following:
Has a simple test for someone messing with variables/bypassing code..
Which if I havent Authenticated yet: $EWG::Authenticated
The editor switches back to the MainMenuGui whenever I try to Edit the PlayerMenuGui LoL
Just a minor thing to remember about the editor for new people :)
a minor issue when editing a GUI before it ever connects to anything:
My ::onWake() call includes the following:
function playerMenuGui::onWake()
{
/*
if( !$EWG::Authenticated )
{
clearValues();
$Authentication::Username = "";
$Authentication::Password = "";
Canvas.setContent(MainMenuGui);
}
*/
}Has a simple test for someone messing with variables/bypassing code..
Which if I havent Authenticated yet: $EWG::Authenticated
The editor switches back to the MainMenuGui whenever I try to Edit the PlayerMenuGui LoL
Just a minor thing to remember about the editor for new people :)
About the author
Rex Hiebert
3Dmotif LLC
if ($InGuiEditor) return;