So from what I read in [url]http://wiki.garrysmod.com/page/Panel/GetPos[/url] the return values from PANEL:GetPos() are an x value and a y value.
Is it possible to only return either the x value or the y value. I doubt the code below is correct but it is what I am getting at with the question:
[code]
x,y = Panel:GetPos()
print( x )
print( y )
[/code]
The code you posted would work perfectly fine.
I believe you can also access position members directly with
[Lua]
print(panel.x)
print(panel.y)
[/lua]
-snip- The last post was correct. Panel.x and Panel.y work for me.
Sorry, you need to Log In to post a reply to this thread.