Class ColorPickerDialog
Color picking dialog.
Namespace: FlaxEditor.GUI.Dialogs
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ColorPickerDialog : Dialog, IComparable, IDrawable, IColorPickerDialogConstructors
ColorPickerDialog(Color, ColorValueBox.ColorPickerEvent, ColorValueBox.ColorPickerClosedEvent, Boolean)
Initializes a new instance of the ColorPickerDialog class.
Declaration
public ColorPickerDialog(Color initialValue, ColorValueBox.ColorPickerEvent colorChanged, ColorValueBox.ColorPickerClosedEvent pickerClosed, bool useDynamicEditing)Parameters
| Color
        initialValue The initial value. | 
| FlaxEditor.GUI.Input.ColorValueBox.ColorPickerEvent
        colorChanged The color changed event. | 
| FlaxEditor.GUI.Input.ColorValueBox.ColorPickerClosedEvent
        pickerClosed The close event. | 
| System.Boolean
        useDynamicEditing True if allow dynamic value editing (slider-like usage), otherwise will fire color change event only on editing end. | 
Properties
SelectedColor
Methods
ClosePicker()
Closes the picker (similar to value editing cancel).
Declaration
public void ClosePicker()Implements
Draw()
Draw the control and the children.
Declaration
public override void Draw()Overrides
OnCancel()
Called to cancel action and close the dialog.
Declaration
public override void OnCancel()Overrides
OnDestroy()
Method called when managed instance should be destroyed
Declaration
public override void OnDestroy()Overrides
OnKeyDown(KeyboardKeys)
When key goes down
Declaration
public override bool OnKeyDown(KeyboardKeys key)Parameters
| KeyboardKeys
        key Key value | 
Returns
| System.Boolean True if event has been handled, otherwise false | 
Overrides
OnMouseUp(Float2, MouseButton)
When mouse goes up over control's area
Declaration
public override bool OnMouseUp(Float2 location, MouseButton button)Parameters
| Float2
        location Mouse location in Control Space | 
| MouseButton
        button Mouse buttons state (flags) | 
Returns
| System.Boolean True if event has been handled, otherwise false | 
Overrides
OnShow()
OnSubmit()
Generic user interaction event for a control used by UI navigation (eg. user submits on the currently focused control).
Declaration
public override void OnSubmit()Overrides
Update(Single)
Perform control update and all its children
Declaration
public override void Update(float deltaTime)Parameters
| System.Single
        deltaTime Delta time in seconds |