DTextEntry/GetTextColor

From Garry's Mod
Revision as of 18:06, 21 June 2016 by Shendow (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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