Garry's Mod Wiki

Revision Difference

IconEditor:SetIcon#517862

<function name="SetIcon" parent="IconEditor" type="panelfunc"> <ispanel>yes</ispanel> <description>Sets the <page>SpawnIcon</page> to modify. You should call <page>Panel:Refresh</page> immediately after this, as the user will not be able to make changes to the icon beforehand.</description> <realm>Client</realm> <args> <arg name="icon" type="Panel">The &lt;page&gt;SpawnIcon&lt;/page&gt; object to be modified.</arg> <arg name="icon" type="Panel">The <page>SpawnIcon</page> object to be modified.</arg> </args> </function>