Panel.GetPos

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:GetPos( )
Description:
Returns the position of this panel.
Returns: Number x, Number y
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.GetPos]Panel.GetPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns the 2D coordinates of this panel, relatively to the parent
Used onNewerClient.png
Code
 
local x,y = self:GetPos();
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox