Jump to content

guiGetScreenSize () question


BennyBunny

Recommended Posts

I have a windwo and wanna put it in bottom left corner.

In wiki i found guiGetScreenSize () but when i use that i get a player monitor size ok but there are sooooo a lot different on so i must add for all a script with the right numbers for my window place.

Is there a other easy way for add a window in a corner??

Link to comment

local x, y = guiGetScreenSize ()

x means the position horizontally and y means the position vertically. one example for setting a window exactly on the middle of screen:

local win = guiCreateWindow( x / 2 - 50 , y / 2 - 75, 50, 75, ... ) 

So client-guis are much math! :P

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