Gui problem
by CodingChris · in Torque Game Engine · 08/27/2007 (7:50 am) · 2 replies
Hi,
I've got a problem with my selfmade guis. Sometimes they look like this:
When I change the screnn resoltution they often look like this:
and I don't know why. Every gui that comes with the racing starter kit, works fine after a resolution change.
Code is in the next post
I've got a problem with my selfmade guis. Sometimes they look like this:
When I change the screnn resoltution they often look like this:
and I don't know why. Every gui that comes with the racing starter kit, works fine after a resolution change. Code is in the next post
About the author
#2
08/27/2007 (8:15 am)
Try changing the HorizSizing and VertSizing to relative. Or maybe one or the other.
Torque 3D Owner CodingChris
//--- OBJECT WRITE BEGIN --- new GuiChunkedBitmapCtrl(car) { canSaveDynamicFields = "0"; Profile = "GuiDefaultProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "0 0"; Extent = "1024 768"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; bitmap = "./background.jpg"; useVariable = "0"; tile = "0"; new GuiMLTextCtrl() { canSaveDynamicFields = "0"; Profile = "GuiBigTextProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "114 109"; Extent = "122 36"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; lineSpacing = "2"; allowColorChars = "0"; maxChars = "-1"; text = "Motor:"; }; new GuiSliderCtrl(Motorc) { canSaveDynamicFields = "0"; Profile = "GuiSliderProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "271 98"; Extent = "299 36"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; range = "0 7000"; ticks = "100"; value = "3300"; }; new GuiTextCtrl() { canSaveDynamicFields = "0"; Profile = "GuiBigTextProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "115 145"; Extent = "118 40"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; text = "Bremse:"; maxLength = "1024"; }; new GuiSliderCtrl(Bremsec) { canSaveDynamicFields = "0"; Profile = "GuiSliderProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "271 146"; Extent = "299 36"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; range = "0 16000"; ticks = "100"; value = "8000"; }; new GuiTextCtrl() { canSaveDynamicFields = "0"; Profile = "GuiBigTextProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "116 186"; Extent = "131 40"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; text = "Lenkung:"; maxLength = "1024"; }; new GuiSliderCtrl(Lenkungc) { canSaveDynamicFields = "0"; Profile = "GuiSliderProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "270 191"; Extent = "299 36"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; range = "0 1"; ticks = "0"; value = "0.375"; }; new GuiTextCtrl() { canSaveDynamicFields = "0"; Profile = "GuiBigTextProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "117 230"; Extent = "102 40"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; text = "Masse:"; maxLength = "1024"; }; new GuiSliderCtrl(massec) { canSaveDynamicFields = "0"; Profile = "GuiSliderProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "270 230"; Extent = "299 36"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; range = "1 1000"; ticks = "1"; value = "360"; }; new GuiButtonCtrl() { canSaveDynamicFields = "0"; Profile = "GuiButtonProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "24 435"; Extent = "140 30"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; Command = "Canvas.setContent(mainMenuGui);"; hovertime = "1000"; text = "<<"; groupNum = "-1"; buttonType = "PushButton"; }; new GuiButtonCtrl() { canSaveDynamicFields = "0"; Profile = "GuiButtonProfile"; HorizSizing = "right"; VertSizing = "bottom"; Position = "503 435"; Extent = "140 30"; MinExtent = "8 2"; canSave = "1"; Visible = "1"; Command = "$pref::spring = springc.getValue();$pref::motor =motorc.getValue(); $pref::bremse = Bremsec.getValue(); $pref::masse = Massec.getValue();$pref::lenkung = lenkungc.getValue(); canvas.setContent(cam);"; hovertime = "1000"; text = ">>"; groupNum = "-1"; buttonType = "PushButton"; }; }; //--- OBJECT WRITE END ---Hope for help