Esempio n. 1
0
        public ModelViewport()
        {
            InitializeComponent();
            Camera   = new Camera();
            FilePath = "";
            Text     = "Model Viewport";

            CalculateLightSource();

            MeshList.Dock        = DockStyle.Right;
            MeshList.MaximumSize = new Size(300, 2000);
            MeshList.Size        = new Size(300, 2000);
            AddControl(MeshList);

            AnimList.Dock        = DockStyle.Left;
            AnimList.MaximumSize = new Size(300, 2000);
            AnimList.Size        = new Size(300, 2000);
            AddControl(AnimList);

            LVDList.Dock        = DockStyle.Left;
            LVDList.MaximumSize = new Size(300, 2000);
            AddControl(LVDList);
            LVDList.lvdEditor = LVDEditor;

            LVDEditor.Dock        = DockStyle.Right;
            LVDEditor.MaximumSize = new Size(300, 2000);
            AddControl(LVDEditor);

            VertexTool.Dock        = DockStyle.Left;
            VertexTool.MaximumSize = new Size(300, 2000);
            AddControl(VertexTool);
            VertexTool.vp = this;

            ACMDEditor       = new ACMDPreviewEditor();
            ACMDEditor.Owner = this;
            ACMDEditor.Dock  = DockStyle.Right;
            ACMDEditor.updateCrcList();
            AddControl(ACMDEditor);

            HitboxList      = new HitboxList();
            HitboxList.Dock = DockStyle.Right;
            AddControl(HitboxList);

            HurtboxList      = new HurtboxList();
            HurtboxList.Dock = DockStyle.Right;

            VariableViewer      = new VariableList();
            VariableViewer.Dock = DockStyle.Right;

            LVD = new Smash_Forge.LVD();

            ViewComboBox.SelectedIndex = 0;

            draw = MeshList.treeView1.Nodes;

            RenderTools.Setup();
        }