Panel.CopyPos

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:CopyPos( Panel )
Description:
Set a panel, to the same position as another panel
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.CopyPos]Panel.CopyPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




Examples

DescriptionChanges the myPanel position to the same position as otherPanel
Used onNewerClient.png
Code
myPanel:CopyPos( otherPanel )
OutputmyPanel is now at the same position as otherPanel. Everything else has stayed the same.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox