Garry's Mod Wiki

Revision Difference

DLabel:SetHighlight#554215

<function name="SetHighlight" parent="DLabel" type="panelfunc"> <ispanel>yes</ispanel>⤶ <description> <deprecated>You really should use <page>DLabel:SetTextColor</page>.</deprecated> Sets the color of the text to the highlight text color defined in the skin. For the default Derma skin this makes the label red. See also <page>DLabel:SetBright</page> and <page>DLabel:SetDark</page>. You should only consider using this if you are using background elements that are not manually painted and are using the skin colors. </description> <realm>Client and Menu</realm> <args> <arg name="highlight" type="boolean">true to set the label's color to skins's text highlight color, false otherwise.</arg> </args> </function>