コード例 #1
0
        public bool Remove(GUIThemeColors item)
        {
            int index = Array.IndexOf(themes, item);

            if (index == -1)
            {
                return(false);
            }
            themes = themes.RemoveAt(index);
            return(true);
        }
コード例 #2
0
 public bool TryGet(int themeNameHash, out GUIThemeColors result)
 {
     for (int n = 0, count = themes.Length; n < count; n++)
     {
         var theme = themes[n];
         if (theme.NameHashEquals(themeNameHash))
         {
             result = theme;
             return(true);
         }
     }
     result = null;
     return(false);
 }
コード例 #3
0
 public bool Contains(GUIThemeColors item)
 {
     return(Array.IndexOf(themes, item) != -1);
 }
コード例 #4
0
 public void Add(GUIThemeColors item)
 {
     themes = themes.Add(item);
 }
コード例 #5
0
 public void Insert(int index, GUIThemeColors item)
 {
     themes = themes.InsertAt(index, item);
 }
コード例 #6
0
 public int IndexOf(GUIThemeColors item)
 {
     return(Array.IndexOf(themes, item));
 }
コード例 #7
0
 public BackgroundColors(GUIThemeColors colors)
 {
     background = colors.Background;
     componentHeaderBackground = colors.ComponentHeaderBackground;
     assetHeaderBackground     = colors.AssetHeaderBackground;
 }