Panel.MoveAbove
From GMod Wiki
| Function | |
| Syntax | Panel:MoveAbove( Panel Panel[, Integer Offset] ) |
| Description: | |
| This is a positioning utility for VGUI elements, allowing you to move an element above another element. | |
| Returns: | nil |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.MoveAbove]Panel.MoveAbove [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 Y axis. An element's position on the X axis will remain unchanged. (hence Center() is used in the example)
- You can use this to move labels, buttons, anything.
- If you're looking to alter rendering order, try Panel.MoveToFront.