Game Development Community

Gui editor problem

by Very Interactive Person · in Torque Game Engine · 12/28/2004 (3:28 am) · 3 replies

I'm having a little problem with the GUI editor. If I'm not mistaking its something that was already covered here in the forums a long time ago, but i cannot seem to find the thread.
Anyway, the thing is I have some images and their position is set to relative. Now when i switch from the editor to the normal view a back a couple of times, the image start to move. This is obviously a bug, and I always tought this was fixed a long time ago. So... am I using an old verison of the GUI editor? or wasn't this fixed? If so, can someone point me to the thread in wich this was discussed?

#1
12/28/2004 (4:37 am)
It's not currently fixed, and it has to do with the positions being integer values, but getting adjusted because of the "relative" value when you change various resolutions. The resolution change scaling is done as floats, and then clamped to the nearest integer value (rounded, basically), which can cause undesired movement of the gui's by a pixel or two as you cycle.

The workaround is to use a combination of top/left and bottom/right and create your gui's at the minimum resolution mode you think your game will be used, but it would be nice to eventually have a proper "relative" mode.
#2
12/28/2004 (5:26 am)
The thing is I'm forced to use relative mode.... unless I change the whole GUI idea I had. So there really is no workaround? bah...
#3
12/29/2005 (11:12 pm)
I have another type of problem with the gui editor. I have the latest version of torque v1.4 . I am trying to place a small user interface on the lower right side of the screen. However, when I switch of Gui editor mode the right side of the screen is cut off and so I can't place it where I want it to be. Is there an easier way to do this?