Garry's Mod Wiki

Label

Label

Description

A basic label or "single line text area" that is non-editable.

Parent

Derives from Panel.

Example

Creates a label and fills it with the text "Lua Labels!" parented to a simple frame.

local frame = vgui.Create( "DFrame" ) frame:SetSize( ScrW() * 0.25, ScrH() * 0.25 ) frame:Center() frame:MakePopup() frame.Label = vgui.Create( "Label", frame ) frame.Label:SetPos( 50, 50 ) frame.Label:SetText("Lua Labels!") frame.Label:SizeToContents()

Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 2
Generate Html 16
SaveChanges (1) 5
Render Body 0
Render Sidebar 7