BennyBunny Posted August 26, 2011 Share Posted August 26, 2011 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
Maurize Posted August 27, 2011 Share Posted August 27, 2011 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! Link to comment
JR10 Posted August 27, 2011 Share Posted August 27, 2011 For setting a window in the middle of the screen: local win = guiCreateWindow( x / 2 - 50 / 2 , y / 2 - 75 / 2, 50, 75, ... ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now