Jump to content

relativ Gui problem


Tockra

Recommended Posts

Hi Guys,

i have a little / big problem, which Related to the resolution .

When i made my guis, i made they relativ and i thought it was a good Solution .

Now i have a problem with the login gui !

It should be like that (1280 x 1024 ):

http://www.pic-upload.de/view-6373937/orig.png.html]http://www3.pic-upload.de/16.07.10/3ip9dojnsjj.png

But it looks like that with my new display( 24 Zoll 16:9 ) (1920 x 1080 ) :

http://www.pic-upload.de/view-6373939/falsch.png.html]http://www3.pic-upload.de/16.07.10/ipgnwqy3q8zh.png

I hope you see the differents and you can say me how i can stop differents like these...

I hope someone can understand me and help me ^^

Link to comment

Everyone has the problem too. If you create a Window with relative sizes the window will visibly on your PC super but on others not.

So my solution is: Create the Window (just the window!) in absolute sizes, so on every PC your GUI has the same large.

In the Window you can script your gui-elements in relative sizes again.

Tip:

--If you want your GUI showing in middle of screen use this code to get the pos and lengths
local w = 200 --length on x 200px
local h = 200 --length on y 200px
local screenX, screenY = guiGetScreenSize ()
local x = screenX/2 - w/2
local y = screenY/2 - h/2
 
local window = guiCreateWindow ( x, y, w, h, 'My Window', false )

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...