public virtual void ActivateWindow(RuntimeWindowType windowType) { RuntimeWindow window = GetWindow(windowType); if (window != null) { ActivateWindow(window); } }
public int GetIndex(RuntimeWindowType windowType) { IEnumerable <RuntimeWindow> windows = m_windows.Select(w => w.GetComponent <RuntimeWindow>()).Where(w => w.WindowType == windowType).OrderBy(w => w.Index); int freeIndex = 0; foreach (RuntimeWindow window in windows) { if (window.Index != freeIndex) { return(freeIndex); } freeIndex++; } return(freeIndex); }
public RuntimeWindow GetWindow(RuntimeWindowType window) { return(m_windows.Select(w => w.GetComponent <RuntimeWindow>()).FirstOrDefault(w => w.WindowType == window)); }
public static RuntimeEditorWindow GetWindow(RuntimeWindowType type) { return(m_windows.Where(wnd => wnd != null && wnd.WindowType == type).FirstOrDefault()); }
public static bool IsActiveWindow(RuntimeWindowType type) { return(ActiveWindowType == type); }
public static bool IsPointerOverWindow(RuntimeWindowType type) { return(PointerOverWindowType == type); }
public static void ActivateWindow(RuntimeWindowType type) { ActivateWindow(GetWindow(type)); }