Jump to content

[Help GUI] Problem Resolution


HunT

Recommended Posts

Hi all.

I have finish my panel shop but I have a problem with the resolution :|

For me is ok why i play in 1280X960X32 ,the problem is many guys play in 800x600x32 :cry:

Images :

My resolution 1280X960X32

84m.png

resolution 800x600x32

86m.png

Solutions? :cry: i don't want resize 20 bottons 2 windows end 11 images.

Help me please.

Link to comment

Center window should work, if you are using the guieditor, which you are, show your GUI, load it to the guieditor, settings >> tick relative.

Then print code again, if you don't want to do that, here:

local sX, sY = guiGetScreenSize() 
local left = sX / 2 - windowWidth / 2 
local top = sY / 2 - windowHeight / 2 

And use left top, as x y for the window.

Link to comment

Fixed :wink: + Resize all :cry:

local sWidth, sHeight = guiGetScreenSize() 
  
    local Width,Height = 420,300 
    local X = (sWidth/2) - (Width/2) 
    local Y = (sHeight/2) - (Height/2) 
  
    bigWindow = guiCreateWindow(X,Y,Width,Height,"",false)  
    guiWindowSetMovable(bigWindow,false) 
    guiWindowSetSizable(bigWindow,false) 

Tnx For support TheRock :mrgreen:

193m.png

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...