Panel.LoadControlsFromFile
From GMod Wiki
Function | |
Syntax | Panel:LoadControlsFromFile( String filename ) |
Description: | |
Configures a panel and all panels beneath it's keyvalues by loading them from an existing file. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.LoadControlsFromFile]Panel.LoadControlsFromFile [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- This works by matching panels by targetname. It then sets the panels in the game to match what is in the file.
- Filename is relative to the garrysmod/ directory.