static void FillMenu(WWW history) { fullList = new SortedList <string, string>(); string build; string[] parts, releases = history.text.Split('\n'); for (int i = 0; i < releases.Length; i++) { parts = releases[i].Split(','); DateTime dt; if (DateTime.TryParse(string.Format("{0} {1}", parts[3], parts[4]), out dt)) { build = string.Format("{0} ({1})", parts[6].Trim('\"'), dt.ToString("dd-MM-yyyy")); fullList.Add(parts[0], build); } //Debug.LogWarningFormat("releases[{0}]={1}\nparts={2}", i, releases[i], parts.ToStringRecursive()); } if (window == null) { HelpLastRelease[] w = Resources.FindObjectsOfTypeAll <HelpLastRelease>(); if (w != null && w.Length > 0) { window = w[0]; } } if (window != null) { window.Repaint(); } }
static void FillMenu(WWW history) { fullList = new SortedList <string, string>(); string build; //0000000001,add,file,02/03/2015,13:13:44,"Unity","5.0.0b22","", string[] parts, releases = history.text.Split('\n'); for (int i = 0; i < releases.Length; i++) { parts = releases[i].Split(','); DateTime dt = DateTime.ParseExact(string.Format("{0} {1}", parts[3], parts[4]), srcDT, CultureInfo.InvariantCulture); build = string.Format("{0} ({1})", parts[6].Trim('\"'), dt.ToString(listDT)); fullList.Add(parts[0], build); } CheckNewVersion(); if (!string.IsNullOrEmpty(filterString)) { SortList(filterString); } if (window == null) { HelpLastRelease[] w = Resources.FindObjectsOfTypeAll <HelpLastRelease>(); if (w != null && w.Length > 0) { window = w[0]; } } if (window != null) { window.Repaint(); } }
static void FillMenu(WWW history) { fullList = new SortedList <string, string>(); string build; //0000000001,add,file,02/03/2015,13:13:44,"Unity","5.0.0b22","", string[] parts, releases = history.text.Split('\n'); for (int i = 0; i < releases.Length; i++) { parts = releases[i].Split(','); DateTime dt; if (DateTime.TryParse(string.Format("{0} {1}", parts[3], parts[4]), out dt)) { build = string.Format("{0} ({1})", parts[6].Trim('\"'), dt.ToString("dd-MM-yyyy")); fullList.Add(parts[0], build); } } CheckNewVersion(); if (window == null) { HelpLastRelease[] w = Resources.FindObjectsOfTypeAll <HelpLastRelease>(); if (w != null && w.Length > 0) { window = w[0]; } } if (window != null) { window.Repaint(); } }
static void CheckforUpdates() { window = GetWindow <HelpLastRelease>(wndTitle); int index = Application.unityVersion.LastIndexOf('.'); string filter = Application.unityVersion.Substring(0, index + 1); SortList(filter); }
static void Init() { window = GetWindow <HelpLastRelease>(wndTitle); }
static void Init() { window = GetWindow <HelpLastRelease>(wndTitle); SortList(String.Empty); }