Garry's Mod Wiki

IconEditor:SetIcon

  IconEditor:SetIcon( Panel icon )

Description

Sets the SpawnIcon to modify. You should call Panel:Refresh immediately after this, as the user will not be able to make changes to the icon beforehand.

Arguments

1 Panel icon
The SpawnIcon object to be modified.