Tanoda
ColorPickerSetup.cs
Go to the documentation of this file.
1
using
System;
2
using
UnityEngine
;
3
using
UnityEngine
.
UI
;
4
5
namespace
Assets.HSVPicker
6
{
7
[Serializable]
8
public
class
ColorPickerSetup
9
{
10
public
enum
ColorHeaderShowing
11
{
12
Hide,
13
ShowColor,
14
ShowColorCode,
15
ShowAll
16
}
17
18
[Serializable]
19
public
class
UiElements
20
{
21
public
RectTransform[]
Elements
;
22
23
24
public
void
Toggle
(
bool
active)
25
{
26
for
(var cnt = 0; cnt <
Elements
.Length; cnt++)
Elements
[cnt].gameObject.SetActive(active);
27
}
28
}
29
30
public
bool
ShowRgb
=
true
;
31
public
bool
ShowHsv
;
32
public
bool
ShowAlpha
=
true
;
33
public
bool
ShowColorBox
=
true
;
34
public
bool
ShowColorSliderToggle
=
true
;
35
36
public
ColorHeaderShowing
ShowHeader
=
ColorHeaderShowing
.ShowAll;
37
38
public
UiElements
RgbSliders
;
39
public
UiElements
HsvSliders
;
40
public
UiElements
ColorToggleElement
;
41
public
UiElements
AlphaSlidiers
;
42
43
44
public
UiElements
ColorHeader
;
45
public
UiElements
ColorCode
;
46
public
UiElements
ColorPreview
;
47
48
public
UiElements
ColorBox
;
49
public
Text
SliderToggleButtonText
;
50
51
public
string
PresetColorsId
=
"default"
;
52
public
Color
[]
DefaultPresetColors
;
53
}
54
}
Color
UnityEngine.Color Color
Definition:
TestScript.cs:32
Assets.HSVPicker.ColorPickerSetup.UiElements
Definition:
ColorPickerSetup.cs:20
Assets.HSVPicker.ColorPickerSetup.UiElements.Elements
RectTransform[] Elements
Definition:
ColorPickerSetup.cs:21
Assets.HSVPicker.ColorPickerSetup.UiElements.Toggle
void Toggle(bool active)
Definition:
ColorPickerSetup.cs:24
Assets.HSVPicker.ColorPickerSetup
Definition:
ColorPickerSetup.cs:9
Assets.HSVPicker.ColorPickerSetup.ColorPreview
UiElements ColorPreview
Definition:
ColorPickerSetup.cs:46
Assets.HSVPicker.ColorPickerSetup.ShowHeader
ColorHeaderShowing ShowHeader
Definition:
ColorPickerSetup.cs:36
Assets.HSVPicker.ColorPickerSetup.HsvSliders
UiElements HsvSliders
Definition:
ColorPickerSetup.cs:39
Assets.HSVPicker.ColorPickerSetup.AlphaSlidiers
UiElements AlphaSlidiers
Definition:
ColorPickerSetup.cs:41
Assets.HSVPicker.ColorPickerSetup.ShowColorSliderToggle
bool ShowColorSliderToggle
Definition:
ColorPickerSetup.cs:34
Assets.HSVPicker.ColorPickerSetup.ShowHsv
bool ShowHsv
Definition:
ColorPickerSetup.cs:31
Assets.HSVPicker.ColorPickerSetup.ShowColorBox
bool ShowColorBox
Definition:
ColorPickerSetup.cs:33
Assets.HSVPicker.ColorPickerSetup.ColorHeader
UiElements ColorHeader
Definition:
ColorPickerSetup.cs:44
Assets.HSVPicker.ColorPickerSetup.ShowRgb
bool ShowRgb
Definition:
ColorPickerSetup.cs:30
Assets.HSVPicker.ColorPickerSetup.SliderToggleButtonText
Text SliderToggleButtonText
Definition:
ColorPickerSetup.cs:49
Assets.HSVPicker.ColorPickerSetup.ColorCode
UiElements ColorCode
Definition:
ColorPickerSetup.cs:45
Assets.HSVPicker.ColorPickerSetup.DefaultPresetColors
Color[] DefaultPresetColors
Definition:
ColorPickerSetup.cs:52
Assets.HSVPicker.ColorPickerSetup.ShowAlpha
bool ShowAlpha
Definition:
ColorPickerSetup.cs:32
Assets.HSVPicker.ColorPickerSetup.ColorBox
UiElements ColorBox
Definition:
ColorPickerSetup.cs:48
Assets.HSVPicker.ColorPickerSetup.ColorHeaderShowing
ColorHeaderShowing
Definition:
ColorPickerSetup.cs:11
Assets.HSVPicker.ColorPickerSetup.RgbSliders
UiElements RgbSliders
Definition:
ColorPickerSetup.cs:38
Assets.HSVPicker.ColorPickerSetup.ColorToggleElement
UiElements ColorToggleElement
Definition:
ColorPickerSetup.cs:40
Assets.HSVPicker.ColorPickerSetup.PresetColorsId
string PresetColorsId
Definition:
ColorPickerSetup.cs:51
Assets.HSVPicker
Definition:
ColorPickerSetup.cs:6
UnityEngine.UI
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
HSVPicker
UI
ColorPickerSetup.cs
Generated by
1.9.3