/// <summary> /// Adds all of the color arrays the editor window will suggest. /// </summary> public void SetUpColors() { colors = new List <Color[]>(); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(74, 37, 68))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(206, 20, 90))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(141, 39, 137))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(37, 82, 102))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(41, 165, 220))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(126, 209, 232))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(54, 148, 104))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(134, 192, 63))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(211, 218, 33))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(255, 204, 0))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(255, 153, 0))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(255, 173, 67))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(242, 110, 37))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(255, 102, 0))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(239, 106, 65))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(230, 36, 45))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(137, 24, 16))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(239, 101, 101))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(134, 98, 57))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(91, 54, 21))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(192, 150, 109))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(200, 200, 200))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(128, 128, 128))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(51, 51, 51))); colors.Add(GetColorDefault(GamestrapHelper.ColorRGBInt(21, 21, 21))); }
void OnEnable() { //Load initila variables SetColors(GetColorDefault(GamestrapHelper.ColorRGBInt(141, 39, 137))); font = (Font)AssetDatabase.LoadAssetAtPath(GamestrapHelper.gamestrapRoute + "Fonts/Lato/Lato-Regular.ttf", typeof(Font)); SetUpColors(); sceneColors = new List <Color>(); }
/// <summary> /// Helper methods to create a color array /// </summary> /// <param name="baseColor">Base color of what the UI will look like</param> /// <returns></returns> public static Color[] GetColorDefault(Color baseColor) { Color highlighted = Color.Lerp(baseColor, Color.white, 0.3f); Color pressed = Color.Lerp(baseColor, Color.black, 0.6f); Color disabled = GamestrapHelper.ColorRGBInt(224, 224, 224); Color detail = Color.white; return(new Color[] { baseColor, highlighted, pressed, disabled, detail }); }
void OnEnable() { //Load initila variables SetColors(GetColorDefault(GamestrapHelper.ColorRGBInt(141, 39, 137))); font = (Font)AssetDatabase.LoadAssetAtPath(GamestrapHelper.gamestrapRoute + "Fonts/Lato/Lato-Regular.ttf", typeof(Font)); SetUpColors(); sceneColors = new List <Color>(); if (theme == null) { FindTheme(); } selectedColorSet = null; selectedEffectSet = null; defaultBg = GUI.backgroundColor; }