Category:SpawnIcon

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

A SpawnIcon displays an image for the given model path. It is mostly used in the Spawn Menu (Q).

Inherited Functions

Inherits the following functions from DButton and its parents up to 3 levels deep:


Examples

Example

Creates a DFrame with a SpawnIcon inside.

local Panel = vgui.Create( "DFrame" ) -- Main Frame
Panel:SetPos( 200, 200 )
Panel:SetSize( 200, 200 )
Panel:SetTitle( "Spawn Icon Test" )
Panel:SetVisible( true )
Panel:SetDraggable( false )
Panel:ShowCloseButton( true )
Panel:MakePopup()

local SpawnI = vgui.Create( "SpawnIcon" , Panel ) -- SpawnIcon
SpawnI:SetPos( 75, 75 )
SpawnI:SetModel( "models/props_borealis/bluebarrel001.mdl" ) -- Model we want for this spawn icon


Pages in category "SpawnIcon"

The following 4 pages are in this category, out of 4 total.

Personal tools
Navigation