Garry's Mod Wiki

Revision Difference

DProperty_VectorColor:SetValue#515289

<function name="SetValue" parent="DProperty_VectorColor" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Sets the color value of the property.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="color" type="Vector">Sets the color to use in a &lt;page&gt;DProperty_VectorColor&lt;/page&gt;.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Setup a color selection control with a custom default color.</description>⤶ <code>⤶ local color = DP:CreateRow( "Category", "Select Color" )⤶ color:Setup( "VectorColor", {} )⤶ color:SetValue( Vector( 0.39, 1, 1 ) )⤶ </code>⤶ ⤶ </example>