DProperty VectorColor/SetValue

From Garry's Mod
Jump to: navigation, search
 DProperty_VectorColor:SetValue( )

Contents

DescriptionPanelFunc

Sets the color value of the property.

Arguments

Vector color

Sets the color to use in a DProperty_VectorColor.

Examples

Example

Setup a color selection control with a custom default color.

local color = DP:CreateRow( "Category", "Select Color" )
color:Setup( "VectorColor", {} )
color:SetValue( Vector( 0.39, 1, 1 ) )


Personal tools
Navigation