Garry's Mod Wiki

Revision Difference

DTextEntry:GetCursorColor#554414

<function name="GetCursorColor" parent="DTextEntry" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description>Returns the cursor color of a DTextEntry.</description> <realm>Client and Menu</realm> <rets> <ret name="" type="table">The color of the cursor as a <page>Color</page>.</ret> </rets> </function> <example> <code> local TextEntry = vgui.Create( "DTextEntry" ) TextEntry:SetCursorColor( Color( 255, 0, 0, 255 )) PrintTable( TextEntry:GetCursorColor() ) </code> <output>Prints the R, G, B and A of the cursor color.</output> </example>