Garry's Mod Wiki

Revision Difference

DCheckBoxLabel:SetTextColor#513324

<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>⤶ <args>⤶ <arg name="color" type="table">The text color. Uses the &lt;page&gt;Color&lt;/page&gt;.</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>