Game Development Community

Widescreen GUI editor

by Harvey Greensall · in Torque Game Engine Advanced · 10/23/2007 (4:42 am) · 6 replies

Hi Guys,

Is there an easy way to add an extra resolution in the GUI editor so i can build our title 720p

( ie. widescreen 720 x 1280 )

At the moment it can be built 640x480, 800x600 and 1024x768, I just want to add another, any takers??

Cheers all!!

#1
10/24/2007 (7:05 am)
Sorted it...

If anyone's interested, just added an extra res. in ...

creator/ui/GuiEditorGui.gui
#2
10/24/2007 (7:20 am)
Interesting! Thanks for the info.
#3
10/24/2007 (7:21 am)
Oh, forgot to ask: Is widescreen not the opposite of 720x1280? Isn't that first width and then height? In that case you would have a narrow tall screen instead of widescreen :-)

Which resolutions did you add?
#4
10/24/2007 (7:30 am)
Here you go, I changed this at the bottome of the file and a couple of times further up too. Changed the 640x480 to 720p as i never use it, and added a 1280x960 too...seems to have worked a treat 8)


function GuiEditorResList::onSelect(%this, %id)
{
switch(%id)
{
case 720:
GuiEditorRegion.resize(0,0,1280,720);
GuiEditorContent.getObject(0).resize(0,0,1280,720);
$Pref::GuiEditor::PreviewResolution = "1280 720";
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 1280:
GuiEditorRegion.resize(0,0,1280,960);
GuiEditorContent.getObject(0).resize(0,0,1280,960);
$Pref::GuiEditor::PreviewResolution = "1280 960";
}
}
#5
10/24/2007 (11:25 am)
Thanks for posting :-)
#6
10/25/2007 (5:25 am)
That's good to know, widescreen is the way to go these days.