Пример #1
0
 protected void OnDestroy()
 {
     PFilterListCenter.closeWindows -= CloseWindow;
     PFilterListCenter.Stop();
     PPaintCenter.ClientRepaints -= Repaint;
     _window = null;
 }
Пример #2
0
 internal static void OpenWindow(FilterContent[] contents)
 {
     _window              = GetWindow <FilterWindow>(true);
     _window.maxSize      = new Vector2(400, 500);
     _window.titleContent = new GUIContent("Search");
     PFilterListCenter.Start(contents);
 }
Пример #3
0
 private static void CloseWindow()
 {
     if (_window)
     {
         _window.Close();
     }
     _window = null;
 }
Пример #4
0
 private static void OpenWindow(Rect rect, Vector2 windowSize, FilterDisplayMode mode, FilterContent[] contents)
 {
     if (mode == FilterDisplayMode.WINDOW)
     {
         FilterWindow.OpenWindow(contents);
     }
     else
     {
         FilterPopup.OpenWindow(rect, windowSize, contents);
     }
 }