Garry's Mod Wiki

Revision Difference

Structures/CreationMenus#517052

<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>⤶ <fields>⤶ <item name="Function" type="function">The function used to generate the content of the tab.</item>⤶ ⤶ <item name="Icon" type="string">The icon material that will accompany the title of the tab.</item>⤶ ⤶ <item name="Order" type="number">The order in which a tab will be displayed relative to the other tabs.</item>⤶ ⤶ <item name="Tooltip" type="string">The tooltip to be shown with the tab.</item>⤶ </fields>⤶ </structure> ⤶ ⤶ {{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.}}⤶ }}