Garry's Mod Wiki
Description
This is used internally - although you're able to use it you probably shouldn't.
The ContentSidebar is internally used by the spawnmenu and manages things like the Spawnmenu Toolbar. It internally uses a DTree which is accessible with ContentSidebar .Tree. When ContentSidebar:EnableModify has been called ContentSidebar.Toolbox will return a ContentSidebarToolbox
Parent
Derives methods, etc not listed on this page from DPanel.
Implements
Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.
Methods
Creates a Save Notification which will be shown when SANDBOX:SpawnlistContentChanged has been called.
ContentSidebar:EnableModify()
Internally calls ContentSidebar:EnableSearch, ContentSidebar:CreateSaveNotification and creates a ContentSidebarToolbox which is accessible under ContentSidebar. Toolbox. Call the Hook SANDBOX:OpenToolbox to open the created Toolbox
Creates a search bar which will be displayed over the Nodes.
Example
How to create a ContentSidebar.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...