Closing world editor switches to Playgui.... not what i want.
by Cinder Games · in Torque Game Engine · 04/20/2006 (9:25 pm) · 1 replies
I don't use the default playgui, i use another one instead called Overlay.
In 1.3 of torque i had no issues opening the editors and returning back to my screen. However, since 1.4 came out, it switches my canvas back to playgui. I can't find out where this call is being triggered from.
Can someone point me to the CS file this particualar code bit is in?
in serverconnection.cs....
This is the only reference to switching the canvas to Playgui. But as you can see it's commented out.
In 1.3 of torque i had no issues opening the editors and returning back to my screen. However, since 1.4 came out, it switches my canvas back to playgui. I can't find out where this call is being triggered from.
Can someone point me to the CS file this particualar code bit is in?
in serverconnection.cs....
function GameConnection::initialControlSet(%this)
{
echo ("*** Initial Control Object");
// The first control object has been set by the server
// and we are now ready to go.
// first check if the editor is active
if (!Editor::checkActiveLoadDone())
{
// if (Canvas.getContent() != PlayGui.getId())
// Canvas.setContent(PlayGui);
if (Canvas.getContent() != Overlay.getId())
Canvas.setContent(Overlay);
}
}This is the only reference to switching the canvas to Playgui. But as you can see it's commented out.
Torque Owner Cinder Games
creator/editor/Editor.cs line 135 is where the function in question is at.
Just in case this throws anyone else for a loop.