MainScreen gui
by Fucifer · in Torque Game Builder · 04/03/2007 (11:48 am) · 5 replies
What happen to the mainScreen gui? The script is still there but if you copy any gui there it will crash the engine. If you press f10 it is not in the list. I copy a simple gui from TGB 1.1.3 which work perfectly but will crash TGB 1.1.5.
#2
04/03/2007 (5:18 pm)
I copy a simple score gui from TGB 1.1.3 to TGB 1.1.5 in the mainScreen gui. Launch TGB 1.1.5 and it crash on the start of the project. Just make sure it was not me I copy the same score gui to clean install of TGB 1.1.3 in the mainScreen gui and everything was find. Thanks for info.
#3
04/03/2007 (5:46 pm)
Could you post the contents of the GUI file? That would make it much easier to track down the problem. Thanks!
#4
GG did outstanding job on TGB 1.1.5, keep up the outstanding work. Thanks very much.
04/03/2007 (6:00 pm)
Work perfectly, thanks. I load the mainScreen gui and I resave it. It said the mainScreen gui was created with an old version. I am not sure why because I create the project with TGB 1.1.5. But after saving it and putting in the score gui TGB 1.1.5 does not crash any more. GG did outstanding job on TGB 1.1.5, keep up the outstanding work. Thanks very much.
#5
04/03/2007 (6:19 pm)
Here the gui but it working perfectly after resaving.//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(mainScreenGui) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiBlackContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "640 480";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new t2dSceneWindow(sceneWindow2D) {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "640 480";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
lockMouse = "0";
useWindowMouseEvents = "1";
useObjectMouseEvents = "1";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Profile = "GuiBigTextProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "369 5";
Extent = "70 34";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
text = "Score:";
maxLength = "1024";
};
new GuiTextCtrl(score) {
canSaveDynamicFields = "0";
Profile = "GuiBigTextProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "442 7";
Extent = "67 34";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
maxLength = "1024";
};
};
//--- OBJECT WRITE END ---
Torque Owner Adam Larson
Could you go into a bit more detail on what you're doing that crashes the engine?
Edit: And, the loading of GUIs will definitely be made less cumbersome in future releases.