コード例 #1
0
 internal static void OpenWindow(Rect rect, Vector2 size, FilterContent[] contents)
 {
     _contents   = contents;
     _windowSize = size;
     _current    = new FilterPopup();
     PopupWindow.Show(rect, _current);
 }
コード例 #2
0
 private static void CloseWindow()
 {
     PFilterListCenter.closeWindows -= CloseWindow;
     if (_current != null && _current._window)
     {
         _current._window.Close();
     }
     _current = null;
 }
コード例 #3
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);
     }
 }
コード例 #4
0
 public override void OnClose()
 {
     if (_window)
     {
         PPaintCenter.ClientRepaints -= _window.Repaint;
     }
     PFilterListCenter.closeWindows -= CloseWindow;
     base.OnClose();
     PFilterListCenter.Stop();
     _current = null;
 }