public bool Remove(GUIThemeColors item) { int index = Array.IndexOf(themes, item); if (index == -1) { return(false); } themes = themes.RemoveAt(index); return(true); }
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); }
public bool Contains(GUIThemeColors item) { return(Array.IndexOf(themes, item) != -1); }
public void Add(GUIThemeColors item) { themes = themes.Add(item); }
public void Insert(int index, GUIThemeColors item) { themes = themes.InsertAt(index, item); }
public int IndexOf(GUIThemeColors item) { return(Array.IndexOf(themes, item)); }
public BackgroundColors(GUIThemeColors colors) { background = colors.Background; componentHeaderBackground = colors.ComponentHeaderBackground; assetHeaderBackground = colors.AssetHeaderBackground; }