UI Question - GUI Builder Screen Size
by Philip Russo · in Torque 3D Professional · 10/27/2009 (4:17 pm) · 3 replies
Is there an easy and efficient way to increase the GUI Builder's maximum screen size for laying out components? Right now the maximum is 1024x768. Its 2009, most people play at higher resolutions than that.
Thanks!
PAR
Thanks!
PAR
#2
19x standard for screens is 1920x1200
10/28/2009 (2:18 pm)
just that this won't help much if you use a total nonstandard resolution ... people will still see the 1024 layout.19x standard for screens is 1920x1200
#3
Thanks for the reply. Yes you are correct, I screwed up the values when I typed them in... thanks for catching that.
I am using 1920x1200 (16:10) and 1920x1440.
Anyway, the reason why I need this in the GUI Builder is because the only real use I can find for the GUI Builder is the ability to place all of your controls via a UI instead of manually configuring them with an editor. Since 1024x768 is the HIGHEST the default Builder goes, its tough placing things correctly in higher res GUIs.
Basically, we have to choose a base resolution to build and lay our UI out in. The engine seems to be much better at downsizing images rather than upsizing images, so it stands to reason that we would want to build our UI at a higher setting and let the engine downsize it when needed. The only major issue I have found thus far is the aspect ratio (which we are currently working on).
PAR
10/28/2009 (5:12 pm)
Hey Marc,Thanks for the reply. Yes you are correct, I screwed up the values when I typed them in... thanks for catching that.
I am using 1920x1200 (16:10) and 1920x1440.
Anyway, the reason why I need this in the GUI Builder is because the only real use I can find for the GUI Builder is the ability to place all of your controls via a UI instead of manually configuring them with an editor. Since 1024x768 is the HIGHEST the default Builder goes, its tough placing things correctly in higher res GUIs.
Basically, we have to choose a base resolution to build and lay our UI out in. The engine seems to be much better at downsizing images rather than upsizing images, so it stands to reason that we would want to build our UI at a higher setting and let the engine downsize it when needed. The only major issue I have found thus far is the aspect ratio (which we are currently working on).
PAR
Torque 3D Owner Philip Russo
Edit:
TorqueMy Projects<GAME>gametoolsguiEditorguiguiEditor.ed.cs
//---------------------------------------- function GuiEditorResList::onSelect(%this, %id) { switch(%id) { case 640: GuiEditorRegion.resize(0,0,640,480); GuiEditorContent.getObject(0).resize(0,0,640,480); $Pref::GuiEditor::PreviewResolution = "640 480"; case 800: GuiEditorRegion.resize(0,0,800,600); GuiEditorContent.getObject(0).resize(0,0,800,600); $Pref::GuiEditor::PreviewResolution = "800 600"; case 1024: GuiEditorRegion.resize(0,0,1024,768); GuiEditorContent.getObject(0).resize(0,0,1024,768); $Pref::GuiEditor::PreviewResolution = "1024 768"; case 1900: <-- NEW SETTING GuiEditorRegion.resize(0,0,1900,1440); GuiEditorContent.getObject(0).resize(0,0,1900,1440); $Pref::GuiEditor::PreviewResolution = "1900 1440"; } }And then edit GuiEditorOpen( %content ):
//---------------------------------------- function GuiEditorOpen( %content ) { Canvas.setContent( GuiEditorGui ); ... GuiEditorResList.clear(); GuiEditorResList.add("640 x 480", 640); GuiEditorResList.add("800 x 600", 800); GuiEditorResList.add("1024 x 768", 1024); GuiEditorResList.add("1900 x 1440", 1900); <-- NEW SETTING %ext = $Pref::GuiEditor::PreviewResolution; if( %ext $= "" ) { %ext = GuiEditorRegion.getExtent(); switch(getWord(%ext, 0)) { case 640: GuiEditorResList.setText("640 x 480"); case 800: GuiEditorResList.setText("800 x 600"); case 1024: GuiEditorResList.setText("1024 x 768"); case 1900: GuiEditorResList.setText("1900 x 1440"); <-- NEW SETTING } } ... }PAR