RC2: GUI Editor (doesn't load correctly .gui files)
by Jupp · in Torque Game Builder · 06/13/2006 (12:35 am) · 0 replies
I changed the mainScreenGui (2216) in the GUI Editor the last night, everything went fine until i had to reload my new mainScreen.gui to edit it again.
It seems that, everytime you load your .gui files in the GUI Editor it changes the positions, Extent values or other things of some controls, mostly it happens with the "GuiTextCtrl" Control.
Example:
The textfield i have created in Editor:
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Profile = "GuiText24WhiteProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "52 572";
Extent = "80 32";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
text = "Score:";
maxLength = "1024";
};
Now when i load the .gui file into the Editor, following happens:

Try to reload your .gui several times into the GUI Editor, the values in position and extent are always different. This can be very critical with a complex created GUI, sometimes you won't notice what has changed and then you will save it with the unwanted positions/extent of some controls.
It seems that, everytime you load your .gui files in the GUI Editor it changes the positions, Extent values or other things of some controls, mostly it happens with the "GuiTextCtrl" Control.
Example:
The textfield i have created in Editor:
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Profile = "GuiText24WhiteProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "52 572";
Extent = "80 32";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
text = "Score:";
maxLength = "1024";
};
Now when i load the .gui file into the Editor, following happens:

Try to reload your .gui several times into the GUI Editor, the values in position and extent are always different. This can be very critical with a complex created GUI, sometimes you won't notice what has changed and then you will save it with the unwanted positions/extent of some controls.