Garry's Mod Wiki

Revision Difference

Structures/CreationMenus#516810

<cat>struct</cat> <structure>⤶ <description>Table that maintains information on the creation menu tabs. Each key of the table represents the name of the tab. See <page>spawnmenu.AddCreationTab</page> and <page>spawnmenu.GetCreationTabs</page>.</description>⤶ <fields>{{StructureField|function|Function|The function used to generate the content of the tab.</fields>⤶ ⤶ </structure>⤶ ⤶ ⤶ {{Structure⤶ |Description=Table that maintains information on the creation menu tabs. Each key of the table represents the name of the tab. See <page>spawnmenu.AddCreationTab</page> and <page>spawnmenu.GetCreationTabs</page>.|Fields=⤶ {{StructureField|function|Function|The function used to generate the content of the tab.}}⤶ {{StructureField|string|Icon|The icon material that will accompany the title of the tab.}} {{StructureField|number|Order|The order in which a tab will be displayed relative to the other tabs.}} {{StructureField|string|Tooltip|The tooltip to be shown with the tab.}} }}