Game Development Community

Gui elements and different resolutions

by Steve D · in Torque Game Engine · 02/27/2008 (12:40 pm) · 2 replies

Hi everyone. I'm still a little confused on how to adjust various gui elements for different resolutions and what the best solution is. What makes the most sense, try to offer only a few resolutions or prepare for all of them? On the PlayGui, what is the best solution for keeping Gui elements where they are no matter what the resolution? Write code in script and change the position of the elements according to what the current resolution is or is there an easier way?

Right now, for example, in my prototype if I set the res in full screen mode to 1024x768 everything looks stretched because I am on a 15in "widescreen" laptop display, the only way to make it look normal again is up the resolution but then my playgui elements become dis-arrayed. This is in spite of having them in gui containers and having those containers "sizing" properties set correctly.

If anyone can give me any info on the subject it would be greatly appreciated.

#1
02/27/2008 (12:52 pm)
Lots of GUI Tips here. (Starts off with the considerations you asked about.)
tdn.garagegames.com/wiki/GUI/Tips1_5
#2
02/27/2008 (4:56 pm)
Ok that helps, anyone have any suggestions on what the most common screen resolutions to check for besides 800x600 and 1024x768?