Garry's Mod Wiki

Revision Difference

DKillIcon#552304

<panel> <parent>Panel</parent> <realm>Client</realm>⤶ <description>Uses the <page>killicon</page> to persistently draw a killicon.</description> ⤶ </panel>⤶ </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>