Garry's Mod Wiki

Garry's Mod Wiki

  DLabel:SetColor( table color )

Description

Changes color of label. Alias of DLabel:SetTextColor.

Arguments

1 table color
The color to set. Uses the Color structure.

Example

Creates a label and changes it color to red.

local DLabel = vgui.Create( "DLabel" ) DLabel:SetPos( 90, 50 ) DLabel:SetColor(Color(255, 0, 0)) DLabel:SetText( "Hello world." ) DLabel:SizeToContents()

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...