Panel.SetTextInset
From GMod Wiki
| This article is a stub. You can help the GMod Wiki by expanding it. |
| Function | |
| Syntax | Panel:SetTextInset( Integer x, Integer y ) |
| Description: | |
| Set the offset for the text. | |
| Returns: | nil |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SetTextInset]Panel.SetTextInset [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | N/A | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | N/A |
Additional Info
The effect of this function depends on the current content alignment.
The x argument will shift right-aligned text to the left instead of to the right.
The y argument always seems to shift the text down.