Garry's Mod Wiki

Revision Difference

DKillIcon#517332

<panel> <parent>Panel</parent> <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>&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;</output>⤶ <output>&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;<image src="DKillIcon.jpg"/></output>⤶ </example>