Garry's Mod Wiki

Log in to edit

Panel:SetTextSelectionColors

<function name="SetTextSelectionColors" parent="Panel" type="classfunc"> <description>Sets text selection colors of a <page>RichText</page> element.</description> <realm>Client and Menu</realm> <added>2023.01.25</added> <args> <arg name="textColor" type="table">The <page>Global.Color</page> to set for selected text.</arg> <arg name="backgroundColor" type="table">The <page>Global.Color</page> to set for selected text background.</arg> </args> </function>