Garry's Mod Wiki

Revision Difference

DCheckBoxLabel:SetTextColor#549958

<function name="SetTextColor" parent="DCheckBoxLabel" type="panelfunc"> <ispanel>yes</ispanel> <description>Sets the text color for the <page>DCheckBoxLabel</page>.</description> <file line="130-L134">lua/vgui/dcheckbox.lua</file> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="color" type="table">The text color. Uses the <page>Color</page>.</arg> </args> </function> <example> <description>Creates a DCheckBoxLabel and changes the text color to red.</description> <code> local LabelBox = vgui.Create( "DCheckBoxLabel" ) LabelBox:SetTextColor( Color(255,0,0) ) </code> </example>