void CenterPointUp(UserEvent callBack, UserAction action)
 {
     Cover.gameObject.SetActive(false);
     if (control.ExistContent(layout.DragContent))
     {
         return;
     }
     layout.DragAuxiliary.RemoveContent(layout.DragContent);
     AddContent(layout.DragContent);
     layout.HideAllDocker();
     layout.Refresh();
     UIElement.Resize(layout.DragContent.Content);
 }
Beispiel #2
0
 void CenterPointUp(EventCallBack callBack, UserAction action)
 {
     Cover.activeSelf = false;
     if (control.ExistContent(layout.DragContent))
     {
         return;
     }
     layout.DragAuxiliary.RemoveContent(layout.DragContent);
     AddContent(layout.DragContent);
     layout.HideAllDocker();
     layout.Refresh();
     ModelElement.ScaleSize(layout.DragContent.Content);
 }
Beispiel #3
0
 public void RemoveContent(LayoutContent con)
 {
     con.model.SetParent(null);
     con.Head.SetParent(null);
     contents.Remove(con);
     if (con == Current)
     {
         if (contents.Count == 0)
         {
             layoutArea.Dispose();
             layout.Refresh();
             Current = null;
         }
         else
         {
             Current = contents[0];
             Current.Show();
         }
     }
 }