DTextEntry/GetTextColor

From Garry's Mod
Jump to: navigation, search
 DTextEntry:GetTextColor( )

Contents

DescriptionPanelFunc

Returns the text color of a DTextEntry.

Returns

table

The color of the text as a Color structure.

Examples

Example

local TextEntry = vgui.Create( "DTextEntry" )
TextEntry:SetTextColor( Color( 255, 0, 0, 255 ))
PrintTable( TextEntry:GetTextColor() )

Output:

Prints the R, G, B and A of the text color.
Personal tools
Navigation