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); }
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(); }
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(); }
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); } }