My GUI isn't showing up in the editor.
by Nicolai Dutka · in Torque Game Engine · 09/08/2007 (10:54 pm) · 2 replies
I opened the GUI editor, F10, and made a new gui and saved it out as saveLoadGui.gui. I can verify the file is there.
I then went into my mainMenuGui.gui and told it to execute my new Gui (added a line at the very end). I went into the game and the functions in my new gui are working, but I can't get the new gui to show up. I tried to set it to visible (the individual elements).
I tried:
Canvas.setContent(saveLoadGui);
to which the console replied:
setContent(): Invalid Control: saveLoadGui
Yet, I know the saveLoadGui has been executed because I can run functions that exist only inside of it.
I then went into my mainMenuGui.gui and told it to execute my new Gui (added a line at the very end). I went into the game and the functions in my new gui are working, but I can't get the new gui to show up. I tried to set it to visible (the individual elements).
I tried:
Canvas.setContent(saveLoadGui);
to which the console replied:
setContent(): Invalid Control: saveLoadGui
Yet, I know the saveLoadGui has been executed because I can run functions that exist only inside of it.
#2
I moved the file to the desktop. then made a new one in the gui editor and saved it with the same name. i then opened both files, copied the content from one and pasted to the other, and saved. Voila!
IDK!! I think it was a glitch...
09/09/2007 (12:15 am)
I got it..I moved the file to the desktop. then made a new one in the gui editor and saved it with the same name. i then opened both files, copied the content from one and pasted to the other, and saved. Voila!
IDK!! I think it was a glitch...
Torque Owner Tim Heldna
E.g.
//--- OBJECT WRITE BEGIN --- new GuiControl(WhatDoesThisSay?) {That's the argument you want to pass with the canvas command, not the name of the file.