static void Init() { CLEditorWindow window = (CLEditorWindow)GetWindow(typeof(CLEditorWindow), false, "CL Importer"); window.minSize = new Vector2(300f, 300f); window.Show(); }
public CLPaletteInfo(CLPalette palette) { Title = palette.Title; SaveName = CLEditorWindow.SanitiseName(palette.Title); Url = palette.Url; foreach (var c in palette.HexColors) { Color color; ColorUtility.TryParseHtmlString(string.Format("#{0}", c), out color); _originalColors.Add(color); } Colors = new List <Color>(_originalColors); }