DColorButton/SetColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Mark as fixed instead since people may stumble upon this before the next update ships)
 
(2 intermediate revisions by 2 users not shown)
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 7: Line 6:
 
|name=color
 
|name=color
 
|desc=A {{Struct|Color}} to set the color as
 
|desc=A {{Struct|Color}} to set the color as
 +
}}
 +
{{Arg
 +
|type=boolean
 +
|name=noTooltip
 +
|desc=If true, the tooltip will not be reset to display the selected color.
 +
|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