Ejemplo n.º 1
0
        public HullEditor()
        {
            _elementCollection = new UIElementCollection();
            UIElementCollection.BindCollection(_elementCollection);

            _sidepanel = new SideEditorPanel(0, 0, ScreenData.GetScreenValueX(0.5f), ScreenData.GetScreenValueY(0.5f), "save/side.xml");
            _toppanel = new TopEditorPanel(0, ScreenData.GetScreenValueY(0.5f), ScreenData.GetScreenValueX(0.5f), ScreenData.GetScreenValueY(0.5f), "save/top.xml");
            _backpanel = new BackEditorPanel(ScreenData.GetScreenValueX(0.5f), 0, ScreenData.GetScreenValueX(0.25f), ScreenData.GetScreenValueY(0.5f), "save/back.xml");

            _sidepanel.BackPanel = _backpanel;
            _sidepanel.TopPanel = _toppanel;

            _toppanel.BackPanel = _backpanel;
            _toppanel.SidePanel = _sidepanel;

            _backpanel.TopPanel = _toppanel;
            _backpanel.SidePanel = _sidepanel;

            _previewRenderer = new PreviewRenderer(_sidepanel.Curves, _toppanel.Curves, _backpanel.Curves);

            UIElementCollection.UnbindCollection();
        }
Ejemplo n.º 2
0
 protected override void DisposeChild()
 {
     BackPanel = null;
     SidePanel = null;
 }