DTextEntry/GetCursorColor

From Garry's Mod
Revision as of 21:32, 6 March 2016 by Bo98 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 DTextEntry:GetCursorColor( )

Contents

DescriptionPanelFunc

Returns the cursor color of a DTextEntry.

Returns

table

The color of the cursor as a Color structure.

Examples

Example

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

Output:

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