Panel.MoveRightOf
From GMod Wiki
Function | |
Syntax | Panel:MoveRightOf( Panel Panel[, Integer Offset] ) |
Description: | |
This is a positioning utility for VGUI elements, allowing you to move an element to the right of another element. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.MoveRightOf]Panel.MoveRightOf [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- You can use negative values (i.e. -10) to move inside another element.
- This function only affects the X axis. An element's position on the Y axis will remain unchanged. (hence Center() is used in the example)
- You can use this to move labels, buttons, anything. It is probably most useful for buttons.
- If you're looking to alter rendering order, try Panel.MoveToFront.