A list of all Actions, Conditions and Expressions supported in this addon.
Color Picker
-
Actions
Set B to {0}
Set the blue component of the picked color. Values outside 0-255 are clamped.
Set the color to {0}
Set the picked color from a packed color value.
Set G to {0}
Set the green component of the picked color. Values outside 0-255 are clamped.
Set the color to hex {0}
Set the picked color from a hex string. Takes 6, 3, 2 or 1 digits, with or without a leading #. Anything else leaves the color unchanged.
Set R to {0}
Set the red component of the picked color. Values outside 0-255 are clamped.
Show picker
Open the color picker dialog. It must be reached from a user gesture, such as an On clicked or On key pressed event, or the browser blocks it. It also does nothing while the element is not on screen, meaning the instance is invisible, its layer is invisible, or it is fully outside the canvas.
-
Expressions
B
The blue component of the picked color, from 0 to 255.
Color
The picked color as a packed color value, usable anywhere Construct takes a color.
G
The green component of the picked color, from 0 to 255.
Hex
The picked color as a CSS hex string, such as #ff8800.
R
The red component of the picked color, from 0 to 255.
Element
-
Actions
Remove attribute {0}
Remove an attribute from the HTML element.
Set CSS style {0} to {1}
Set a CSS style on the HTML element.
Set attribute {0} to {1}
Set the value of an attribute on the HTML element.
Set {0}
Enable or disable the element.
Set focused
Set the input focus to the element.
Set tooltip to {0}
Set the text shown when hovering the mouse over the control.
Set unfocused
Remove the input focus from the element.
-
Conditions
Is enabled
True if the element is currently enabled.
Is focused
True if the element currently has focus.
Events
-
Conditions
On Change
Triggered when a new color is committed in the picker dialog.
On Click
Triggered when the color picker element is clicked, before the picker dialog opens.
On Input
Triggered while the color is being changed in the picker dialog.