SkatCh Posted July 27, 2014 Share Posted July 27, 2014 hi guys i need some information about Gui position ( Center , right , left) : i know how to put it center : (screenWidth / 2) - (windowWidth / 2), (screenHeight / 2) - (windowHeight / 2). what about the others . Link to comment
Bonsai Posted July 27, 2014 Share Posted July 27, 2014 Like this? Left = 0 Right = width-windowWidth Link to comment
Et-win Posted July 27, 2014 Share Posted July 27, 2014 local sWidth, sHeight = guiGetScreenSize() local windowX, windowY = 500, 450 local pX, pY = (sWidth/2)-(windowX/2), (sHeight/2)-(windowY/2) --Lets say you want to create a button in the center of the window: local X, Y = 150, 25 local pX, pY = (windowX/2)-(X/2), (windowY/2)-(Y/2) Try to understand it because I can't explain it in English. 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