spawnmenu.AddContext
From GMod Wiki
Function | |
Syntax |
spawnmenu.AddContext( String tab, String unique_name, String menu_title, String tooltip ) Where is this used? |
Description: | |
Adds an entry to any right hand tab of the spawn menu. | |
Returns: | nil |
Part of Library: | spawnmenu |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Spawnmenu.AddContext]Spawnmenu.AddContext [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Use G.GetControlPanel(unique_name) to retreive the associated control panel, so that you can modify controls associated with your menu entry.
- The tooltip is displayed when the user hovers his mouse over the control panels "header".
- Menu entries are added to the end of the menu.
- TODO: List the names of the tabs you can use!