drk Posted February 24, 2012 Share 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 Link to comment
drk Posted February 24, 2012 Author Share 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... Link to comment
Evil-Cod3r Posted February 25, 2012 Share Posted February 25, 2012 local Height, Width = guiGetScreenSize() Link to comment
drk Posted February 25, 2012 Author Share Posted February 25, 2012 guiGetScreenSize() get the client screen resolution, not the gui element height, width. Link to comment
arezu Posted February 25, 2012 Share 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. Link to comment
Cadu12 Posted February 25, 2012 Share 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? Link to comment
Evil-Cod3r Posted February 25, 2012 Share Posted February 25, 2012 Returns This returns two floats representing the player's screen resolution, width and height. Link to comment
drk Posted February 25, 2012 Author Share 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. Link to comment
Evil-Cod3r Posted February 25, 2012 Share Posted February 25, 2012 and dont you read ?? , Width and Height ! Link to comment
drk Posted February 25, 2012 Author Share 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. Link to comment
Evil-Cod3r Posted February 25, 2012 Share Posted February 25, 2012 oh sorry for that Man then you have to use guiGetSize for the Gui Element Link to comment
drk Posted February 25, 2012 Author Share Posted February 25, 2012 oh sorry for that Man then you have to use guiGetSize for the Gui Element No problem Link to comment
Evil-Cod3r Posted February 25, 2012 Share Posted February 25, 2012 but its say guiGetSize() returns x, y Size of gui element not Height and Width ? Link to comment
drk Posted February 25, 2012 Author Share 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. Link to comment
drk Posted February 25, 2012 Author Share Posted February 25, 2012 Problem solved. No need to get width and height of gui element, Ive found another way 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