Garry's Mod Wiki

DProperty_VectorColor:SetValue

DProperty_VectorColor:SetValue( Vector color )

Description

Sets the color value of the property.

Arguments

1 Vector color
Sets the color to use in a DProperty_VectorColor.

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 ) )

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 6