Jump to content

[Help GUI] Problem Resolution


HunT

Recommended Posts

Posted

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.

Posted

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.

Posted

For one window is ok guiGetScreenSize or function "centerWindow" :wink:

But my panel have 2 windows and images + bottons indipendent from windows

This is client side. Help please :cry: this is my first project in GUI.

Posted

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

Posted
Easier way ....

Load GUI with guieditor and print absolute and relative position .

Now is ok.

Next Project use the multi Windows. Tnx anyway :fadein:

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