Garry's Mod Wiki

Revision Difference

DKillIcon#560718

<panel> <parent>Panel</parent> <realm>Client</realm> <file line="">lua/vgui/dkillicon.lua</file>⤶ <description>Uses the <page>killicon</page> to persistently draw a killicon.</description> </panel> <example> <description>Creates a DKillIcon and sets it to the crowbar killicon.</description> <code> local frame = vgui.Create("DFrame") frame:SetSize(200,200) frame:Center() frame:SetTitle("DKillIcon Example") local icon = vgui.Create("DKillIcon", frame) icon:SetName("weapon_crowbar") icon:SizeToContents() icon:Center() </code> <output><image src="DKillIcon.jpg"/></output> </example>