DLabel.SetTextColor

From GMod Wiki

Jump to: navigation, search
Function
Syntax DLabel:SetTextColor( Color textColour )
Description:
Sets the colour of the text to appear in the DLabel.
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DLabel.SetTextColor]DLabel.SetTextColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSets the text colour of myLabel to red.
Used onNewerClient.png
Code
myLabel:SetTextColor( Color(255, 0, 0, 255) )
OutputMakes the text in the DLabel red


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox