Garry's Mod Wiki

Revision Difference

DLabel#528695

<panel> <name>DLabel</name>⤶ <parent>Label</parent> <preview>DLabel_small.png</preview> <description>A standard Derma text label. A lot of this panels functionality is a base for button elements, such as <page>DButton</page></description> ⤶ </panel>⤶ ⤶ ⤶ <example>⤶ </panel>⤶ ⤶ <example>⤶ <description>Creates a DLabel.</description> <code> local Panel = vgui.Create( "DFrame" ) Panel:SetSize( 200, 200 ) Panel:Center() Panel:MakePopup() local DLabel = vgui.Create( "DLabel", Panel ) DLabel:SetPos( 40, 40 ) DLabel:SetText( "Hello, world!" ) </code> <output><image src="DLabel.png"/></output> ⤶ </example>⤶ ⤶ ⤶ # Methods ⤶ </example>⤶ ⤶ # Undocumented Methods ⤶ * <page>SetIsMenu</page> * <page>GetIsMenu</page> * <page>SetDrawBackground</page> * <page>GetDrawBackground</page> * <page>GetPaintBackground</page> * <page>SetPaintBackground</page>