예제 #1
0
 public void Dock(LayoutAuxiliary aux)
 {
     auxiliary = aux;
     model.SetParent(aux.content);
     model.data.localPosition = aux.contentPos;
     model.data.sizeDelta     = aux.contentSize;
     model.IsChanged          = true;
     ModelElement.ScaleSize(model);
 }
예제 #2
0
 public LayoutContent(LayoutAuxiliary aux, string nam)
 {
     auxiliary = aux;
     name      = nam;
     layout    = auxiliary.layoutArea.layout as DesignedDockPanel;
     model     = new ModelElement();
     model.Load(aux.content.ModData);
     model.SetParent(aux.content);
     model.IsChanged = true;
     InitialLabel();
 }
예제 #3
0
 public LayoutContent(LayoutAuxiliary aux, string nam)
 {
     auxiliary = aux;
     name      = nam;
     layout    = auxiliary.layoutArea.layout;
     model     = aux.content;
     //model = new ModelElement();
     //model.Load(aux.content.ModData);
     //model.SetParent(aux.model);
     //ModelManagerUI.LoadToGame(model,null);
     InitialLabel();
 }
예제 #4
0
 public LayoutArea(Layout lay)
 {
     layout = lay;
     model  = new ModelElement();
     model.Load(layout.AreaMod.ModData);
     layout = lay;
     model.SetParent(layout.AreaLevel);
     layout.areas.Add(this);
     if (lay.Auxiliary != null)
     {
         auxiliary = new LayoutAuxiliary(this);
     }
 }