Tile - YToolMode - Show Color Picker – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Show Color Picker(Selected color, Default color, Alpha type, On Color Chosen, On Canceled)

YlandsTile-1459.png

static showColorPicker(selectedColor: YColor, defaultColor: YColor, alphaType: YAlphaType, onColorChosen: (color: YColor) => void, onCanceled: () => void): void;

Parameters

selectedColor

defaultColor

alphaType

onColorChosen

onCanceled

Availability

Description

Opens the Color Picker window. Returns a color based on the selected values.