Garry's Mod Wiki

Revision Difference

spawnmenu.CreateContentIcon#560625

<function name="CreateContentIcon" parent="spawnmenu" type="libraryfunc"> <description>Creates a new content icon.</description> <realm>Client</realm> <file line="301-L306">lua/includes/modules/spawnmenu.lua</file> <args> <arg name="type" type="string">The type of the content icon.</arg> <arg name="parent" type="Panel">The parent to add the content icon to.</arg> <arg name="data" type="table">The data to send to the content icon in <page>spawnmenu.AddContentType</page></arg>⤶ <arg name="parent" type="Panel" default="nil">The parent to add the content icon to.</arg> <arg name="data" type="table">The data to send to the content icon in <page>spawnmenu.AddContentType</page>.</arg>⤶ </args> <rets> <ret name="" type="Panel">The created content icon, if it was returned by <page>spawnmenu.AddContentType</page></ret>⤶ <ret name="" type="Panel">The created content icon, if it was returned by <page>spawnmenu.AddContentType</page>.</ret>⤶ </rets> </function>