DColorButton/SetColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Default value)
 
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
 
|Description=Sets the color of the {{Type|DColorButton}}.
 
|Description=Sets the color of the {{Type|DColorButton}}.
{{Bug|Issue=3836|Pull=1583|Fixed=|Will reset the Tooltip to a default color string!}}
 
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 11: Line 10:
 
|type=boolean
 
|type=boolean
 
|name=noTooltip
 
|name=noTooltip
|desc={{NextUpdate}}
+
|desc=If true, the tooltip will not be reset to display the selected color.
If true, the tooltip will not be reset to display the selected color.
+
 
|default=false
 
|default=false
 
}}
 
}}

Latest revision as of 17:40, 2 July 2019

 DColorButton:SetColor( )

DescriptionPanelFunc

Sets the color of the DColorButton.

Arguments

table color

A Color structure to set the color as

Arguments

boolean noTooltip=false

If true, the tooltip will not be reset to display the selected color.
Personal tools
Navigation