initial commit

This commit is contained in:
katboi01
2022-06-18 17:47:39 +02:00
parent 37e3de5719
commit d2fb3648db
256 changed files with 76340 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
using UnityEngine;
using TMPro;
namespace HSVPicker
{
[System.Serializable]
public class ColorPickerSetup
{
public enum ColorHeaderShowing
{
Hide,
ShowColor,
ShowColorCode,
ShowAll,
}
[System.Serializable]
public class UiElements
{
public RectTransform[] Elements;
public void Toggle(bool active)
{
for (int cnt = 0; cnt < Elements.Length; cnt++)
{
Elements[cnt].gameObject.SetActive(active);
}
}
}
public bool ShowRgb = true;
public bool ShowHsv;
public bool ShowAlpha = true;
public bool ShowColorBox = true;
public bool ShowColorSliderToggle = true;
public ColorHeaderShowing ShowHeader = ColorHeaderShowing.ShowAll;
public UiElements RgbSliders;
public UiElements HsvSliders;
public UiElements ColorToggleElement;
public UiElements AlphaSlidiers;
public UiElements ColorHeader;
public UiElements ColorCode;
public UiElements ColorPreview;
public UiElements ColorBox;
public TMP_Text SliderToggleButtonText;
public string PresetColorsId = "default";
public Color[] DefaultPresetColors;
}
}