Category:Label

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

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

Inherited Functions

Inherits the following functions from Panel and its parents up to 3 levels deep:


Examples

Example

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

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


Pages in category "Label"

The following 9 pages are in this category, out of 9 total.

Personal tools
Navigation