Garry's Mod Wiki

Revision Difference

DColorPalette:UpdateConVar#518145

<function name="UpdateConVar" parent="DColorPalette" type="panelfunc"> <ispanel>yes</ispanel> <description> <internal></internal> Internal helper function for <page>DColorPalette:UpdateConVars</page>. </description> <realm>Client</realm> <args> <arg name="name" type="string">The name of the console variable to set</arg> <arg name="key" type="string">The key of the 3rd argument to set the convar to&#xA;Possible values: &quot;r&quot;, &quot;g&quot;, &quot;b&quot;, &quot;a&quot;</arg>⤶ <arg name="clr" type="table">The &lt;page&gt;Color&lt;/page&gt; to retrieve the info from.</arg>⤶ <arg name="key" type="string">The key of the 3rd argument to set the convar to⤶ Possible values: "r", "g", "b", "a"</arg>⤶ <arg name="clr" type="table">The <page>Color</page> to retrieve the info from.</arg>⤶ </args> </function>