示例#1
0
    public Color this[ThemeElementType type]
    {
        get
        {
            switch (type)
            {
            case ThemeElementType.Normal:
                return(normal);

            case ThemeElementType.Highlighted:
                return(highlighted);

            case ThemeElementType.Pressed:
                return(pressed);

            case ThemeElementType.Disabled:
                return(disabled);

            case ThemeElementType.Text:
                return(text);

            default:
                return(Color.white);
            }
        }
    }
示例#2
0
        public Color32 GetThemeColor(ThemeElementType te)
        {
            switch (te)
            {
            case ThemeElementType.Spike:
                return(spikeColors[themeIndex]);

            case ThemeElementType.Wall:
                return(wallColors[themeIndex]);

            case ThemeElementType.BG:
                return(bgColors[themeIndex]);

            case ThemeElementType.PS:
                return(psColors[themeIndex]);
            }
            return(Color.white);
        }
示例#3
0
 public static Color GetColor(ThemeElementType type)
 {
     return(currentManager.current[type]);
 }