void OnDisable()
 {
     AssemblyReloadEvents.beforeAssemblyReload -= Close;
     s_LastClosedTime = System.DateTime.Now.Ticks / System.TimeSpan.TicksPerMillisecond;
     s_AddCurvesPopup = null;
     s_Hierarchy      = null;
 }
Пример #2
0
 private void OnDisable()
 {
     AssemblyReloadEvents.beforeAssemblyReload -= new AssemblyReloadEvents.AssemblyReloadCallback(base.Close);
     AddCurvesPopup.s_LastClosedTime            = DateTime.Now.Ticks / 10000L;
     AddCurvesPopup.s_AddCurvesPopup            = null;
     AddCurvesPopup.s_Hierarchy = null;
 }
        void Init(Rect buttonRect)
        {
            s_Hierarchy = new AddCurvesPopupHierarchy();
            s_Hierarchy.InitIfNeeded(this, new Rect(0, 0, k_WindowMinWidth, k_WindowFixedHeight));

            buttonRect = GUIUtility.GUIToScreenRect(buttonRect);

            ShowAsDropDown(buttonRect, GetWindowSize(), new[] { PopupLocation.Right });
        }
 internal void OnGUI()
 {
   if (Event.current.type == EventType.Layout)
     return;
   if (AddCurvesPopup.s_Hierarchy == null)
     AddCurvesPopup.s_Hierarchy = new AddCurvesPopupHierarchy(AddCurvesPopup.s_State);
   Rect position = new Rect(1f, 1f, AddCurvesPopup.windowSize.x - 3f, AddCurvesPopup.windowSize.y - 3f);
   GUI.Box(new Rect(0.0f, 0.0f, AddCurvesPopup.windowSize.x, AddCurvesPopup.windowSize.y), GUIContent.none, new GUIStyle((GUIStyle) "grey_border"));
   AddCurvesPopup.s_Hierarchy.OnGUI(position, (EditorWindow) this);
 }
Пример #5
0
 internal void OnGUI()
 {
     if (Event.current.type != EventType.Layout)
     {
         if (AddCurvesPopup.s_Hierarchy == null)
         {
             AddCurvesPopup.s_Hierarchy = new AddCurvesPopupHierarchy();
         }
         Rect position = new Rect(1f, 1f, AddCurvesPopup.windowSize.x - 3f, AddCurvesPopup.windowSize.y - 3f);
         GUI.Box(new Rect(0f, 0f, AddCurvesPopup.windowSize.x, AddCurvesPopup.windowSize.y), GUIContent.none, new GUIStyle("grey_border"));
         AddCurvesPopup.s_Hierarchy.OnGUI(position, this);
     }
 }
Пример #6
0
 internal void OnGUI()
 {
     if (Event.current.type != EventType.Layout)
     {
         if (s_Hierarchy == null)
         {
             s_Hierarchy = new AddCurvesPopupHierarchy();
         }
         Rect position = new Rect(1f, 1f, windowSize.x - 3f, windowSize.y - 3f);
         GUI.Box(new Rect(0f, 0f, windowSize.x, windowSize.y), GUIContent.none, new GUIStyle("grey_border"));
         s_Hierarchy.OnGUI(position, this);
     }
 }
Пример #7
0
        internal void OnGUI()
        {
            if (Event.current.type == EventType.Layout)
            {
                return;
            }
            if (AddCurvesPopup.s_Hierarchy == null)
            {
                AddCurvesPopup.s_Hierarchy = new AddCurvesPopupHierarchy(AddCurvesPopup.s_State);
            }
            Rect position = new Rect(1f, 1f, AddCurvesPopup.windowSize.x - 3f, AddCurvesPopup.windowSize.y - 3f);

            GUI.Box(new Rect(0.0f, 0.0f, AddCurvesPopup.windowSize.x, AddCurvesPopup.windowSize.y), GUIContent.none, new GUIStyle((GUIStyle)"grey_border"));
            AddCurvesPopup.s_Hierarchy.OnGUI(position, (EditorWindow)this);
        }
Пример #8
0
        internal void OnGUI()
        {
            // We do not use the layout event
            if (Event.current.type == EventType.Layout)
            {
                return;
            }

            if (s_Hierarchy == null)
            {
                s_Hierarchy = new AddCurvesPopupHierarchy();
            }

            Rect rect = new Rect(1, 1, windowSize.x - k_WindowPadding, windowSize.y - k_WindowPadding);

            GUI.Box(new Rect(0, 0, windowSize.x, windowSize.y), GUIContent.none, "grey_border");
            s_Hierarchy.OnGUI(rect, this);
        }
 private void OnDisable()
 {
   AddCurvesPopup.s_LastClosedTime = DateTime.Now.Ticks / 10000L;
   AddCurvesPopup.s_AddCurvesPopup = (AddCurvesPopup) null;
   AddCurvesPopup.s_Hierarchy = (AddCurvesPopupHierarchy) null;
 }
Пример #10
0
 private void OnDisable()
 {
     AddCurvesPopup.s_LastClosedTime = DateTime.Now.Ticks / 10000L;
     AddCurvesPopup.s_AddCurvesPopup = null;
     AddCurvesPopup.s_Hierarchy      = null;
 }
Пример #11
0
 private void OnDisable()
 {
     s_LastClosedTime = DateTime.Now.Ticks / 0x2710L;
     s_AddCurvesPopup = null;
     s_Hierarchy = null;
 }
Пример #12
0
 private void OnDisable()
 {
     s_LastClosedTime = DateTime.Now.Ticks / 0x2710L;
     s_AddCurvesPopup = null;
     s_Hierarchy      = null;
 }