drk Posted February 24, 2012 Posted February 24, 2012 I'm searching for a function like guiGetWidth and guiGetHeight returning width and height of the gui element but I haven't found nothing to do this.. It's possible to get width and height of a gui element? Sorry if I'm being noob
drk Posted February 24, 2012 Author Posted February 24, 2012 I've seen this in the Wiki, but it says that only get x and y position, not the height and width...
Evil-Cod3r Posted February 25, 2012 Posted February 25, 2012 local Height, Width = guiGetScreenSize()
drk Posted February 25, 2012 Author Posted February 25, 2012 guiGetScreenSize() get the client screen resolution, not the gui element height, width.
arezu Posted February 25, 2012 Posted February 25, 2012 I've seen this in the Wiki, but it says that only get x and y position, not the height and width... It gets the width and height of the gui element.. you probably got confused because of the example on that page. guiGetPosition returns position and guiGetSize returns width and height.
Cadu12 Posted February 25, 2012 Posted February 25, 2012 I've seen this in the Wiki, but it says that only get x and y position, not the height and width... guiGetSize: Returns the GUI element size x and y if the function has been successful, false otherwise. Are you sure?
Evil-Cod3r Posted February 25, 2012 Posted February 25, 2012 Returns This returns two floats representing the player's screen resolution, width and height.
drk Posted February 25, 2012 Author Posted February 25, 2012 ReturnsThis returns two floats representing the player's screen resolution, width and height. guiGetScreenSIze() returns the client screen size dude, not the gui element. guiGetSize:Returns the GUI element size x and y if the function has been successful, false otherwise. Are you sure? I will try guiGetSize.
Evil-Cod3r Posted February 25, 2012 Posted February 25, 2012 and dont you read ?? , Width and Height !
drk Posted February 25, 2012 Author Posted February 25, 2012 and dont you read ?? , Width and Height ! Dude, guiGetScreenSize returns the player SCREEN WIDTH, HEIGHT, not the GUI ELEMENT WIDTH, HEIGHT.
Evil-Cod3r Posted February 25, 2012 Posted February 25, 2012 oh sorry for that Man then you have to use guiGetSize for the Gui Element
drk Posted February 25, 2012 Author Posted February 25, 2012 oh sorry for that Man then you have to use guiGetSize for the Gui Element No problem
Evil-Cod3r Posted February 25, 2012 Posted February 25, 2012 but its say guiGetSize() returns x, y Size of gui element not Height and Width ?
drk Posted February 25, 2012 Author Posted February 25, 2012 but its say guiGetSize() returns x, y Size of gui element not Height and Width ? I have learned about guiGetSize again and I think it returns width, height size like arezu said. Anyway I will try now.
drk Posted February 25, 2012 Author Posted February 25, 2012 Problem solved. No need to get width and height of gui element, Ive found another way
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