Beispiel #1
0
 void modelPanel_FirstPersonCameraChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating = true;
         firstPersonCameraToolStripMenuItem.Checked = value;
         _updating = false;
     }
 }
Beispiel #2
0
 void modelPanel_RenderVisBoneBoxChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating             = true;
         chkBBVisBones.Checked = value;
         _updating             = false;
     }
 }
Beispiel #3
0
 void modelPanel_RenderFloorChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating        = true;
         chkFloor.Checked = toggleFloor.Checked = value;
         _updating        = false;
     }
 }
Beispiel #4
0
 void modelPanel_RenderBonesChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating           = true;
         toggleBones.Checked = chkBones.Checked = value;
         _updating           = false;
     }
 }
Beispiel #5
0
 void ModelPanel_UseBindStateBoxesChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating         = true;
         UseBindStateBoxes = value;
         _updating         = false;
     }
 }
Beispiel #6
0
 private void ModelPanel_ScaleBonesChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating = true;
         //scaleBonesToolStripMenuItem.Checked = value;
         _updating = false;
     }
 }
Beispiel #7
0
 void ModelPanel_RenderWireframeChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating = true;
         wireframeToolStripMenuItem.Checked = value;
         _updating = false;
     }
 }
Beispiel #8
0
 void ModelPanel_ApplyBillboardBonesChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating = true;
         chkBillboardBones.Checked = value;
         _updating = false;
     }
 }
Beispiel #9
0
 void ModelPanel_RenderPolygonsChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating           = true;
         chkPolygons.Checked = togglePolygons.Checked = value;
         _updating           = false;
     }
 }
Beispiel #10
0
 void ModelPanel_RenderVerticesChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating           = true;
         chkVertices.Checked = toggleVertices.Checked = value;
         _updating           = false;
     }
 }
Beispiel #11
0
 private bool HotkeyCaptureScreenshot()
 {
     if (ModelPanel.Focused)
     {
         SaveBitmap(ModelPanel.GetScreenshot(ModelPanel.ClientRectangle, false), ScreenCaptureFolder, "." + ScreenCaptureType.ToString());
         return(true);
     }
     return(false);
 }
Beispiel #12
0
 private bool HotkeyResetCamera()
 {
     if (Ctrl)
     {
         ModelPanel.ResetCamera();
         return(true);
     }
     return(false);
 }
Beispiel #13
0
 private bool HotkeyRefreshReferences()
 {
     if (ModelPanel.Focused)
     {
         ModelPanel.RefreshReferences();
         return(true);
     }
     return(false);
 }
Beispiel #14
0
 void modelPanel_RenderOffscreenChanged(ModelPanel panel, bool value)
 {
     if (ModelPanel == panel && !_updating)
     {
         _updating           = true;
         DontRenderOffscreen = value;
         _updating           = false;
     }
 }
Beispiel #15
0
        public virtual void AppendTarget(IModel model)
        {
            if (!_targetModels.Contains(model))
            {
                _targetModels.Add(model);
            }

            ModelPanel.AddTarget(model, false);
            model.ResetToBindState();
        }
Beispiel #16
0
        public override void AppendTarget(IModel model)
        {
            if (!_targetModels.Contains(model))
            {
                _targetModels.Add(model);
            }

            ModelPanel.AddTarget(model);
            model.ResetToBindState();
        }
Beispiel #17
0
 void ModelPanel_RenderShadersChanged(ModelPanel panel, bool value)
 {
     //Only update if the focused panel triggered the event
     if (ModelPanel == panel && !_updating)
     {
         _updating = true;
         shadersToolStripMenuItem.Checked = value;
         _updating = false;
     }
 }
Beispiel #18
0
 private bool HotkeyRenderDepthPressed()
 {
     if (ModelPanel.Focused && !_renderDepth)
     {
         _renderDepth = true;
         ModelPanel.Invalidate();
         return(true);
     }
     return(false);
 }
Beispiel #19
0
 private bool HotkeyRenderDepthReleased()
 {
     if (ModelPanel.Focused && _renderDepth)
     {
         _renderDepth = false;
         ModelPanel.Invalidate();
         return(true);
     }
     return(false);
 }
Beispiel #20
0
        private void MouseDownTargetBone(MouseEventArgs e, ModelPanel panel)
        {
            //Re-target selected bone
            IBoneNode bone = SelectedBone;

            if (bone != null)
            {
                _snapX    = _hiX;
                _snapY    = _hiY;
                _snapZ    = _hiZ;
                _snapCirc = _hiCirc;

                //Targeting functions are done in HighlightStuff
                if (!(_snapX || _snapY || _snapZ || _snapCirc || _hiSphere))
                {
                    //Orb selection missed. Assign bone and move to next step.
                    SelectedBone = bone = null;
                    goto GetBone;
                }

                //Bone re-targeted. Get frame values and local point aligned to snapping plane.
                Vector3 point;
                if (GetTransformPoint(new Vector2(e.X, e.Y), out point, panel.CurrentViewport, GetBoneWorldMtx()))
                {
                    _lastPointLocal = GetBoneInvWorldMtx() * (_lastPointWorld = point);

                    if (_rotating = ControlType == TransformType.Rotation)
                    {
                        _oldAngles = bone.FrameState._rotate;
                    }
                    else if (_translating = ControlType == TransformType.Translation)
                    {
                        _oldPosition = bone.FrameState._translate;
                    }
                    else if (_scaling = ControlType == TransformType.Scale)
                    {
                        _oldScale = bone.FrameState._scale;
                    }

                    panel.CurrentViewport.AllowSelection = false;
                    if (_rotating || _translating || _scaling)
                    {
                        BoneChange(SelectedBone);
                    }
                }
            }

GetBone:

            //Try selecting new bone
            if (bone == null && panel.RenderBones)
            {
                SelectedBone = _hiBone;
            }
        }
        private void hideFromSceneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ModelPanel.RemoveTarget(TargetModel);

            if (_targetModels != null && _targetModels.Count != 0)
            {
                _resetCamera = false;
                TargetModel  = _targetModels[0];
            }

            ModelPanel.Invalidate();
        }
        private void newSceneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(this, "Are you sure you want to clear the current scene?\nYou will lose any unsaved data.", "Continue?", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
            {
                return;
            }

            TargetModel = null;
            _targetModels.Clear();

            ModelPanel.ClearAll();
        }
Beispiel #23
0
        private void hideAllOtherModelsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (MDL0Node node in _targetModels)
            {
                if (node != TargetModel)
                {
                    ModelPanel.RemoveTarget(node);
                }
            }

            ModelPanel.Invalidate();
        }
Beispiel #24
0
        private void MouseMoveTargetBone(
            ModelPanel panel,
            MouseEventArgs e,
            float depth,
            ModelPanelViewport v)
        {
            if (SelectedBone != null)
            {
                MouseMoveTarget(panel, e, depth, v, GetBoneWorldMtx(), GetBoneInvWorldMtx());
            }

            GetBone(panel, e, depth, v);
        }
        private void deleteAllOtherModelsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (IModel node in _targetModels)
            {
                if (node != TargetModel)
                {
                    _targetModels.Remove(node);
                    ModelPanel.RemoveTarget(node);
                }
            }

            ModelPanel.Invalidate();
        }
Beispiel #26
0
        private void TworldToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
        {
            if (_updating)
            {
                return;
            }

            _updating = true;
            TparentLocalToolStripMenuItem.Checked = !TworldToolStripMenuItem.Checked;
            _updating = false;

            ModelPanel.Invalidate();
        }
Beispiel #27
0
        private void MouseMoveTargetVertex(
            ModelPanel panel,
            MouseEventArgs e,
            float depth,
            ModelPanelViewport v)
        {
            if (VertexLoc.HasValue /* && v._renderAttrib._renderVertices*/)
            {
                Vector3 center = VertexLoc.Value;
                MouseMoveTarget(panel, e, depth, v, Matrix.TranslationMatrix(center), Matrix.TranslationMatrix(-center));
            }

            GetVertex(panel, e, depth, v);
        }
Beispiel #28
0
        public void SelectedPolygonChanged()
        {
            //We can't return here if the selected polygon is set to null.
            //If the target model is changed or the selected object is cleared,
            //things relying on the selected object must be updated to reflect that.
            //if (leftPanel.SelectedPolygon == null) return;

            //This sets the selected object index internally in the model.
            //This determines the target object for focus editing vertices, normals, etc in the viewer
            //If the selected object is set to null, the poly index will be set to -1 by IndexOf.
            //This means vertices, normals etc will be drawn for all objects, if enabled.
            _targetModel.SelectedObjectIndex = _targetModel.Objects.IndexOf(leftPanel.SelectedObject);

            //If this setting is enabled, we need to show the user what textures only this object uses.
            //If the polygon is set to null, all of the model's texture references will be shown.
            if (SyncTexturesToObjectList)
            {
                leftPanel.UpdateTextures();
            }

            //Update the VIS editor to show the entries for the selected object
            if (TargetAnimType == NW4RAnimType.VIS &&
                leftPanel.SelectedObject != null &&
                vis0Editor.listBox1.Items.Count != 0 &&
                leftPanel.SelectedObject is MDL0ObjectNode)
            {
                MDL0ObjectNode o = (MDL0ObjectNode)leftPanel.SelectedObject;

                int x = 0;
                foreach (object i in vis0Editor.listBox1.Items)
                {
                    if (o._drawCalls.Count > 0 && i.ToString() == o._drawCalls[0].VisibilityBone)
                    {
                        vis0Editor.listBox1.SelectedIndex = x;
                        break;
                    }
                    else
                    {
                        x++;
                    }
                }

                if (x == vis0Editor.listBox1.Items.Count)
                {
                    vis0Editor.listBox1.SelectedIndex = -1;
                }
            }

            ModelPanel.Invalidate();
        }
Beispiel #29
0
        private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _resetCamera = false;

            ModelPanel.RemoveTarget(TargetModel);
            _targetModels.Remove(TargetModel);
            models.Items.Remove(TargetModel);

            if (_targetModels != null && _targetModels.Count != 0)
            {
                TargetModel = _targetModels[0];
            }

            ModelPanel.Invalidate();
        }
Beispiel #30
0
 private void centerToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
 {
     if (_updating)
     {
         return;
     }
     if (centerToolStripMenuItem1.Checked)
     {
         _updating = true;
         stretchToolStripMenuItem1.Checked = resizeToolStripMenuItem1.Checked = false;
         ModelPanel._bgType = GLPanel.BackgroundType.Center;
         _updating          = false;
         ModelPanel.Invalidate();
     }
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.resourceTree = new BrawlBox.ResourceTree();
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.aRCArchiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.brresPackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.bRStmAudioToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.u8FileArchiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.recentFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.gCTEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.donateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
     this.videoPlaybackPanel1 = new System.Windows.Forms.VideoPlaybackPanel();
     this.modelPanel1 = new System.Windows.Forms.ModelPanel();
     this.previewPanel2 = new System.Windows.Forms.PreviewPanel();
     this.scN0FogEditControl1 = new System.Windows.Forms.SCN0FogEditControl();
     this.scN0LightEditControl1 = new System.Windows.Forms.SCN0LightEditControl();
     this.scN0CameraEditControl1 = new System.Windows.Forms.SCN0CameraEditControl();
     this.animEditControl = new System.Windows.Forms.AnimEditControl();
     this.shpAnimEditControl = new System.Windows.Forms.ShpAnimEditControl();
     this.texAnimEditControl = new System.Windows.Forms.TexAnimEditControl();
     this.audioPlaybackPanel1 = new System.Windows.Forms.AudioPlaybackPanel();
     this.visEditor = new System.Windows.Forms.VisEditor();
     this.clrControl = new System.Windows.Forms.CLRControl();
     this.soundPackControl1 = new System.Windows.Forms.SoundPackControl();
     this.msBinEditor1 = new System.Windows.Forms.MSBinEditor();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.resourceTree);
     this.splitContainer1.Panel1.Controls.Add(this.menuStrip1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Size = new System.Drawing.Size(617, 411);
     this.splitContainer1.SplitterDistance = 214;
     this.splitContainer1.TabIndex = 1;
     //
     // resourceTree
     //
     this.resourceTree.AllowDrop = true;
     this.resourceTree.Dock = System.Windows.Forms.DockStyle.Fill;
     this.resourceTree.HideSelection = false;
     this.resourceTree.ImageIndex = 0;
     this.resourceTree.Indent = 20;
     this.resourceTree.Location = new System.Drawing.Point(0, 24);
     this.resourceTree.Name = "resourceTree";
     this.resourceTree.SelectedImageIndex = 0;
     this.resourceTree.ShowIcons = true;
     this.resourceTree.Size = new System.Drawing.Size(214, 387);
     this.resourceTree.TabIndex = 0;
     this.resourceTree.SelectionChanged += new System.EventHandler(this.resourceTree_SelectionChanged);
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.fileToolStripMenuItem,
     this.editToolStripMenuItem,
     this.toolsToolStripMenuItem,
     this.helpToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(214, 24);
     this.menuStrip1.TabIndex = 2;
     this.menuStrip1.Text = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.newToolStripMenuItem,
     this.openToolStripMenuItem,
     this.saveToolStripMenuItem,
     this.saveAsToolStripMenuItem,
     this.closeToolStripMenuItem,
     this.toolStripMenuItem1,
     this.recentFilesToolStripMenuItem,
     this.toolStripSeparator1,
     this.exitToolStripMenuItem});
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "&File";
     //
     // newToolStripMenuItem
     //
     this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.aRCArchiveToolStripMenuItem,
     this.brresPackToolStripMenuItem,
     this.bRStmAudioToolStripMenuItem,
     this.u8FileArchiveToolStripMenuItem});
     this.newToolStripMenuItem.Name = "newToolStripMenuItem";
     this.newToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.newToolStripMenuItem.Text = "&New";
     //
     // aRCArchiveToolStripMenuItem
     //
     this.aRCArchiveToolStripMenuItem.Name = "aRCArchiveToolStripMenuItem";
     this.aRCArchiveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.aRCArchiveToolStripMenuItem.Text = "ARC File Archive";
     this.aRCArchiveToolStripMenuItem.Click += new System.EventHandler(this.aRCArchiveToolStripMenuItem_Click);
     //
     // brresPackToolStripMenuItem
     //
     this.brresPackToolStripMenuItem.Name = "brresPackToolStripMenuItem";
     this.brresPackToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.brresPackToolStripMenuItem.Text = "Brres Resource Pack";
     this.brresPackToolStripMenuItem.Click += new System.EventHandler(this.brresPackToolStripMenuItem_Click);
     //
     // bRStmAudioToolStripMenuItem
     //
     this.bRStmAudioToolStripMenuItem.Name = "bRStmAudioToolStripMenuItem";
     this.bRStmAudioToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.bRStmAudioToolStripMenuItem.Text = "Brstm Audio Stream";
     this.bRStmAudioToolStripMenuItem.Click += new System.EventHandler(this.bRStmAudioToolStripMenuItem_Click);
     //
     // u8FileArchiveToolStripMenuItem
     //
     this.u8FileArchiveToolStripMenuItem.Name = "u8FileArchiveToolStripMenuItem";
     this.u8FileArchiveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
     this.u8FileArchiveToolStripMenuItem.Text = "U8 File Archive";
     this.u8FileArchiveToolStripMenuItem.Click += new System.EventHandler(this.u8FileArchiveToolStripMenuItem_Click);
     //
     // openToolStripMenuItem
     //
     this.openToolStripMenuItem.Name = "openToolStripMenuItem";
     this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this.openToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.openToolStripMenuItem.Text = "&Open...";
     this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
     //
     // saveToolStripMenuItem
     //
     this.saveToolStripMenuItem.Enabled = false;
     this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     this.saveToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.saveToolStripMenuItem.Text = "&Save";
     this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
     //
     // saveAsToolStripMenuItem
     //
     this.saveAsToolStripMenuItem.Enabled = false;
     this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
     this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
     this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.saveAsToolStripMenuItem.Text = "Save &As...";
     this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
     //
     // closeToolStripMenuItem
     //
     this.closeToolStripMenuItem.Enabled = false;
     this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
     this.closeToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.closeToolStripMenuItem.Text = "&Close";
     this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(162, 6);
     //
     // recentFilesToolStripMenuItem
     //
     this.recentFilesToolStripMenuItem.Name = "recentFilesToolStripMenuItem";
     this.recentFilesToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.recentFilesToolStripMenuItem.Text = "Recent Files";
     this.recentFilesToolStripMenuItem.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.recentFilesToolStripMenuItem_DropDownItemClicked);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(162, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
     this.exitToolStripMenuItem.Text = "E&xit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // editToolStripMenuItem
     //
     this.editToolStripMenuItem.Enabled = false;
     this.editToolStripMenuItem.Name = "editToolStripMenuItem";
     this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
     this.editToolStripMenuItem.Text = "&Edit";
     //
     // toolsToolStripMenuItem
     //
     this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.settingsToolStripMenuItem,
     this.gCTEditorToolStripMenuItem});
     this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
     this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
     this.toolsToolStripMenuItem.Text = "&Tools";
     //
     // settingsToolStripMenuItem
     //
     this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
     this.settingsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.settingsToolStripMenuItem.Text = "&Settings";
     this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click_1);
     //
     // gCTEditorToolStripMenuItem
     //
     this.gCTEditorToolStripMenuItem.Name = "gCTEditorToolStripMenuItem";
     this.gCTEditorToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.gCTEditorToolStripMenuItem.Text = "Code Manager";
     this.gCTEditorToolStripMenuItem.Click += new System.EventHandler(this.gCTEditorToolStripMenuItem_Click);
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.aboutToolStripMenuItem,
     this.donateToolStripMenuItem});
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
     this.helpToolStripMenuItem.Text = "&Help";
     //
     // aboutToolStripMenuItem
     //
     this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
     this.aboutToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
     this.aboutToolStripMenuItem.Text = "&About";
     this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
     //
     // donateToolStripMenuItem
     //
     this.donateToolStripMenuItem.Name = "donateToolStripMenuItem";
     this.donateToolStripMenuItem.Size = new System.Drawing.Size(112, 22);
     this.donateToolStripMenuItem.Text = "Donate";
     this.donateToolStripMenuItem.Click += new System.EventHandler(this.donateToolStripMenuItem_Click);
     //
     // splitContainer2
     //
     this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location = new System.Drawing.Point(0, 0);
     this.splitContainer2.Name = "splitContainer2";
     this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.propertyGrid1);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.videoPlaybackPanel1);
     this.splitContainer2.Panel2.Controls.Add(this.modelPanel1);
     this.splitContainer2.Panel2.Controls.Add(this.previewPanel2);
     this.splitContainer2.Panel2.Controls.Add(this.scN0FogEditControl1);
     this.splitContainer2.Panel2.Controls.Add(this.scN0LightEditControl1);
     this.splitContainer2.Panel2.Controls.Add(this.scN0CameraEditControl1);
     this.splitContainer2.Panel2.Controls.Add(this.animEditControl);
     this.splitContainer2.Panel2.Controls.Add(this.shpAnimEditControl);
     this.splitContainer2.Panel2.Controls.Add(this.texAnimEditControl);
     this.splitContainer2.Panel2.Controls.Add(this.audioPlaybackPanel1);
     this.splitContainer2.Panel2.Controls.Add(this.visEditor);
     this.splitContainer2.Panel2.Controls.Add(this.clrControl);
     this.splitContainer2.Panel2.Controls.Add(this.soundPackControl1);
     this.splitContainer2.Panel2.Controls.Add(this.msBinEditor1);
     this.splitContainer2.Size = new System.Drawing.Size(399, 411);
     this.splitContainer2.SplitterDistance = 205;
     this.splitContainer2.TabIndex = 3;
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.HelpVisible = false;
     this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name = "propertyGrid1";
     this.propertyGrid1.PropertySort = System.Windows.Forms.PropertySort.Categorized;
     this.propertyGrid1.Size = new System.Drawing.Size(399, 205);
     this.propertyGrid1.TabIndex = 2;
     this.propertyGrid1.SelectedGridItemChanged += new System.Windows.Forms.SelectedGridItemChangedEventHandler(this.propertyGrid1_SelectedGridItemChanged);
     //
     // videoPlaybackPanel1
     //
     this.videoPlaybackPanel1.Location = new System.Drawing.Point(85, -16);
     this.videoPlaybackPanel1.Name = "videoPlaybackPanel1";
     this.videoPlaybackPanel1.Size = new System.Drawing.Size(536, 111);
     this.videoPlaybackPanel1.TabIndex = 17;
     this.videoPlaybackPanel1.Visible = false;
     //
     // modelPanel1
     //
     this.modelPanel1.DefaultTranslate = ((System.Vector3)(resources.GetObject("modelPanel1.DefaultTranslate")));
     this.modelPanel1.InitialYFactor = 100;
     this.modelPanel1.InitialZoomFactor = 5;
     this.modelPanel1.Location = new System.Drawing.Point(0, 0);
     this.modelPanel1.Name = "modelPanel1";
     this.modelPanel1.RotationScale = 0.4F;
     this.modelPanel1.Size = new System.Drawing.Size(381, 169);
     this.modelPanel1.TabIndex = 15;
     this.modelPanel1.TranslationScale = 0.05F;
     this.modelPanel1.Visible = false;
     this.modelPanel1.ZoomScale = 2.5F;
     //
     // previewPanel2
     //
     this.previewPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.previewPanel2.CurrentIndex = 0;
     this.previewPanel2.DisposeImage = true;
     this.previewPanel2.Location = new System.Drawing.Point(0, 0);
     this.previewPanel2.Name = "previewPanel2";
     this.previewPanel2.RenderingTarget = null;
     this.previewPanel2.Size = new System.Drawing.Size(368, 134);
     this.previewPanel2.TabIndex = 16;
     this.previewPanel2.Visible = false;
     //
     // scN0FogEditControl1
     //
     this.scN0FogEditControl1.Location = new System.Drawing.Point(-111, -119);
     this.scN0FogEditControl1.Name = "scN0FogEditControl1";
     this.scN0FogEditControl1.Size = new System.Drawing.Size(293, 276);
     this.scN0FogEditControl1.TabIndex = 13;
     this.scN0FogEditControl1.Visible = false;
     //
     // scN0LightEditControl1
     //
     this.scN0LightEditControl1.Location = new System.Drawing.Point(139, -190);
     this.scN0LightEditControl1.Name = "scN0LightEditControl1";
     this.scN0LightEditControl1.Size = new System.Drawing.Size(293, 276);
     this.scN0LightEditControl1.TabIndex = 12;
     this.scN0LightEditControl1.Visible = false;
     //
     // scN0CameraEditControl1
     //
     this.scN0CameraEditControl1.Location = new System.Drawing.Point(104, -191);
     this.scN0CameraEditControl1.Name = "scN0CameraEditControl1";
     this.scN0CameraEditControl1.Size = new System.Drawing.Size(286, 276);
     this.scN0CameraEditControl1.TabIndex = 11;
     this.scN0CameraEditControl1.Visible = false;
     //
     // animEditControl
     //
     this.animEditControl.Location = new System.Drawing.Point(0, 0);
     this.animEditControl.Name = "animEditControl";
     this.animEditControl.Size = new System.Drawing.Size(384, 169);
     this.animEditControl.TabIndex = 1;
     this.animEditControl.Visible = false;
     //
     // shpAnimEditControl
     //
     this.shpAnimEditControl.Location = new System.Drawing.Point(0, 0);
     this.shpAnimEditControl.Name = "shpAnimEditControl";
     this.shpAnimEditControl.Size = new System.Drawing.Size(384, 169);
     this.shpAnimEditControl.TabIndex = 7;
     this.shpAnimEditControl.Visible = false;
     //
     // texAnimEditControl
     //
     this.texAnimEditControl.Location = new System.Drawing.Point(0, 0);
     this.texAnimEditControl.Name = "texAnimEditControl";
     this.texAnimEditControl.Size = new System.Drawing.Size(300, 212);
     this.texAnimEditControl.TabIndex = 7;
     this.texAnimEditControl.Visible = false;
     //
     // audioPlaybackPanel1
     //
     this.audioPlaybackPanel1.Location = new System.Drawing.Point(149, 92);
     this.audioPlaybackPanel1.Name = "audioPlaybackPanel1";
     this.audioPlaybackPanel1.Size = new System.Drawing.Size(70, 111);
     this.audioPlaybackPanel1.TabIndex = 4;
     this.audioPlaybackPanel1.TargetStreams = null;
     this.audioPlaybackPanel1.Visible = false;
     //
     // visEditor
     //
     this.visEditor.Location = new System.Drawing.Point(0, 0);
     this.visEditor.Name = "visEditor";
     this.visEditor.Size = new System.Drawing.Size(78, 87);
     this.visEditor.TabIndex = 6;
     this.visEditor.Visible = false;
     //
     // clrControl
     //
     this.clrControl.ColorID = 0;
     this.clrControl.Location = new System.Drawing.Point(0, 0);
     this.clrControl.Name = "clrControl";
     this.clrControl.Size = new System.Drawing.Size(98, 47);
     this.clrControl.TabIndex = 5;
     this.clrControl.Visible = false;
     //
     // soundPackControl1
     //
     this.soundPackControl1.Location = new System.Drawing.Point(13, 101);
     this.soundPackControl1.Name = "soundPackControl1";
     this.soundPackControl1.Size = new System.Drawing.Size(130, 65);
     this.soundPackControl1.TabIndex = 3;
     this.soundPackControl1.TargetNode = null;
     this.soundPackControl1.Visible = false;
     //
     // msBinEditor1
     //
     this.msBinEditor1.Location = new System.Drawing.Point(104, 4);
     this.msBinEditor1.Name = "msBinEditor1";
     this.msBinEditor1.Size = new System.Drawing.Size(146, 82);
     this.msBinEditor1.TabIndex = 2;
     this.msBinEditor1.Visible = false;
     //
     // MainForm
     //
     this.AllowDrop = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(617, 411);
     this.Controls.Add(this.splitContainer1);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "MainForm";
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.MainForm_DragDrop);
     this.DragEnter += new System.Windows.Forms.DragEventHandler(this.MainForm_DragEnter);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel1.PerformLayout();
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
        public void Render(TKContext ctx, ModelPanel mainWindow)
        {
            foreach (MDL0ObjectNode p in _objects)
                p.Render(ctx, false, mainWindow);

            #region Old

            //if (Model._mainWindow != null && Model._mainWindow._scn0 != null && (LightSet >= 0 || FogSet >= 0))
            //{
            //    ModelEditControl m = Model._mainWindow;
            //    SCN0Node scn = m._scn0;
            //    int animFrame = m._animFrame;
            //    SCN0GroupNode fog;
            //    if (FogSet >= 0 && (fog = scn.GetFolder<SCN0FogNode>()) != null && fog.Children.Count > FogSet)
            //    {
            //        SCN0FogNode f = fog.Children[FogSet] as SCN0FogNode;
            //        GL.Enable(EnableCap.Fog);
            //        uint mode = 0;
            //        switch (f.Type)
            //        {
            //            case FogType.OrthographicExp:
            //            case FogType.PerspectiveExp:
            //                mode = (uint)OpenTK.Graphics.OpenGL.FogMode.Exp;
            //                break;
            //            case FogType.OrthographicExp2:
            //            case FogType.PerspectiveExp2:
            //                mode = (uint)OpenTK.Graphics.OpenGL.FogMode.Exp2;
            //                break;
            //            case FogType.OrthographicLinear:
            //            case FogType.PerspectiveLinear:
            //                mode = (uint)OpenTK.Graphics.OpenGL.FogMode.Linear;
            //                break;
            //            case FogType.OrthographicRevExp:
            //            case FogType.PerspectiveRevExp:
            //                mode = (uint)OpenTK.Graphics.OpenGL.FogMode.Linear;
            //                break;
            //            case FogType.OrthographicRevExp2:
            //            case FogType.PerspectiveRevExp2:
            //                mode = (uint)OpenTK.Graphics.OpenGL.FogMode.Linear;
            //                break;
            //        }
            //        GL.Fog(OpenTK.Graphics.OpenGL.FogParameter.FogMode, mode);
            //        float* l = stackalloc float[4];
            //        if (f.Colors.Count == 1)
            //        {
            //            l[0] = (float)f.Colors[0].R / 255f;
            //            l[1] = (float)f.Colors[0].G / 255f;
            //            l[2] = (float)f.Colors[0].B / 255f;
            //            l[3] = (float)f.Colors[0].A / 255f;
            //        }
            //        else if (animFrame - 1 < f.Colors.Count)
            //        {
            //            l[0] = (float)f.Colors[animFrame - 1].R / 255f;
            //            l[1] = (float)f.Colors[animFrame - 1].G / 255f;
            //            l[2] = (float)f.Colors[animFrame - 1].B / 255f;
            //            l[3] = (float)f.Colors[animFrame - 1].A / 255f;
            //        }
            //        GL.Fog(OpenTK.Graphics.OpenGL.FogParameter.FogColor, l);
            //        //ctx.glFog(FogParameter.FogDensity, 0.05f);
            //        GL.Hint(HintTarget.FogHint, HintMode.Nicest);
            //        GL.Fog(OpenTK.Graphics.OpenGL.FogParameter.FogStart, f._startKeys.GetFrameValue(animFrame - 1));
            //        GL.Fog(OpenTK.Graphics.OpenGL.FogParameter.FogEnd, f._endKeys.GetFrameValue(animFrame - 1));
            //    }
            //    else
            //        GL.Disable(EnableCap.Fog);
            //}
            //else
            //    GL.Disable(EnableCap.Fog);

            #endregion
        }
        internal unsafe void RenderNormals(TKContext ctx, ModelPanel mainWindow)
        {
            if (!_render || _faceData[1] == null)
                return;

            ushort* indices = (ushort*)_indices.Address;
            Vector3* normals = (Vector3*)_faceData[1].Address;

            if (_normColor != Color.Transparent)
                GL.Color4(_normColor);
            else
                GL.Color4(DefaultNormColor);

            for (int i = 0; i < _pointCount; i++)
            {
                GL.PushMatrix();

                GL.Color4(Color.Blue);

                Vertex3 n = _vertices[indices[i]];
                Vector3 w = normals[i] * n.GetMatrix().GetRotationMatrix();

                Matrix m = Matrix.TransformMatrix(new Vector3(NormalLength), new Vector3(), n.WeightedPosition);
                GL.MultMatrix((float*)&m);

                GL.Begin(BeginMode.Lines);
                GL.Vertex3(0, 0, 0);
                GL.Vertex3(w._x, w._y, w._z);
                GL.End();

                GL.PopMatrix();
            }
        }
        internal unsafe void Render(TKContext ctx, ModelPanel mainWindow)
        {
            if (!_render)
                return;

            if (_boneColor != Color.Transparent)
                GL.Color4(_boneColor.R / 255.0f, _boneColor.G / 255.0f, _boneColor.B / 255.0f, 1.0f);
            else
                GL.Color4(DefaultBoneColor.R / 255.0f, DefaultBoneColor.G / 255.0f, DefaultBoneColor.B / 255.0f, 1.0f);

            //GL.LineWidth(1.0f);

            //Draw name if selected
            if (mainWindow != null && _nodeColor != Color.Transparent)
            {
                Vector3 pt = _frameMatrix.GetPoint();
                Vector3 v2 = mainWindow.Project(pt);
                mainWindow.ScreenText[Name] = new Vector3(v2._x, v2._y - 9.0f, v2._z);
            }

            Vector3 v1 = (_parent == null || !(_parent is MDL0BoneNode)) ? new Vector3(0.0f) : ((MDL0BoneNode)_parent)._frameMatrix.GetPoint();
            Vector3 v = _frameMatrix.GetPoint();

            GL.Begin(BeginMode.Lines);

            GL.Vertex3((float*)&v1);
            GL.Vertex3((float*)&v);

            GL.End();

            GL.PushMatrix();

            fixed (Matrix* m = &_frameMatrix)
                GL.MultMatrix((float*)m);

            //Render node
            GLDisplayList ndl = ctx.FindOrCreate<GLDisplayList>("BoneNodeOrb", CreateNodeOrb);
            if (_nodeColor != Color.Transparent)
                GL.Color4(_nodeColor.R / 255.0f, _nodeColor.G / 255.0f, _nodeColor.B / 255.0f, 1.0f);
            else
                GL.Color4(DefaultNodeColor.R / 255.0f, DefaultNodeColor.G / 255.0f, DefaultNodeColor.B / 255.0f, 1.0f);

            ndl.Call();

            DrawNodeOrients();

            if (BillboardSetting != 0 && mainWindow != null)
            {
                Vector3 center = _frameMatrix.GetPoint();
                Vector3 cam = mainWindow._camera.GetPoint();
                Matrix m2 = new Matrix();
                Vector3 scale = new Vector3(1);
                Vector3 rot = new Vector3();
                Vector3 trans = new Vector3();

                if (BillboardSetting == BillboardFlags.PerspectiveSTD)
                    rot = center.LookatAngles(cam) * Maths._rad2degf;

                m2 = Matrix.TransformMatrix(scale, rot, trans);
                GL.PushMatrix();
                GL.MultMatrix((float*)&m2);
            }

            if (BillboardSetting != 0 && mainWindow != null)
                GL.PopMatrix();

            GL.PopMatrix();

            //Render children
            foreach (MDL0BoneNode n in Children)
                n.Render(ctx, mainWindow);
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ObjectImporter));
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnOkay = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.comboBox1 = new System.Windows.Forms.ComboBox();
     this.label2 = new System.Windows.Forms.Label();
     this.comboBox2 = new System.Windows.Forms.ComboBox();
     this.comboBox3 = new System.Windows.Forms.ComboBox();
     this.checkBox1 = new System.Windows.Forms.CheckBox();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.baseBone = new System.Windows.Forms.Label();
     this.modelPanel1 = new System.Windows.Forms.ModelPanel();
     this.panel1 = new System.Windows.Forms.Panel();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(139, 131);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 2;
     this.btnCancel.Text = "&Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // btnOkay
     //
     this.btnOkay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOkay.Location = new System.Drawing.Point(58, 131);
     this.btnOkay.Name = "btnOkay";
     this.btnOkay.Size = new System.Drawing.Size(75, 23);
     this.btnOkay.TabIndex = 1;
     this.btnOkay.Text = "&Okay";
     this.btnOkay.UseVisualStyleBackColor = true;
     this.btnOkay.Click += new System.EventHandler(this.btnOkay_Click);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(47, 12);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(39, 13);
     this.label1.TabIndex = 3;
     this.label1.Text = "Import:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // comboBox1
     //
     this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location = new System.Drawing.Point(92, 9);
     this.comboBox1.Name = "comboBox1";
     this.comboBox1.Size = new System.Drawing.Size(121, 21);
     this.comboBox1.TabIndex = 4;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(3, 58);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(83, 18);
     this.label2.TabIndex = 5;
     this.label2.Text = "Skeleton Root:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // comboBox2
     //
     this.comboBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox2.FormattingEnabled = true;
     this.comboBox2.Location = new System.Drawing.Point(92, 55);
     this.comboBox2.Name = "comboBox2";
     this.comboBox2.Size = new System.Drawing.Size(121, 21);
     this.comboBox2.TabIndex = 6;
     this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // comboBox3
     //
     this.comboBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox3.FormattingEnabled = true;
     this.comboBox3.Items.AddRange(new object[] {
     "Merge",
     "Replace",
     "Add As Child"});
     this.comboBox3.Location = new System.Drawing.Point(92, 82);
     this.comboBox3.Name = "comboBox3";
     this.comboBox3.Size = new System.Drawing.Size(121, 21);
     this.comboBox3.TabIndex = 7;
     //
     // checkBox1
     //
     this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.checkBox1.AutoSize = true;
     this.checkBox1.Location = new System.Drawing.Point(92, 109);
     this.checkBox1.Name = "checkBox1";
     this.checkBox1.Size = new System.Drawing.Size(116, 17);
     this.checkBox1.TabIndex = 8;
     this.checkBox1.Text = "Merge both models";
     this.checkBox1.UseVisualStyleBackColor = true;
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // label3
     //
     this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(7, 85);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(79, 13);
     this.label3.TabIndex = 9;
     this.label3.Text = "Base Skeleton:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label4
     //
     this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(24, 35);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(62, 13);
     this.label4.TabIndex = 10;
     this.label4.Text = "Base Bone:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // baseBone
     //
     this.baseBone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.baseBone.AutoSize = true;
     this.baseBone.Location = new System.Drawing.Point(92, 35);
     this.baseBone.Name = "baseBone";
     this.baseBone.Size = new System.Drawing.Size(37, 13);
     this.baseBone.TabIndex = 11;
     this.baseBone.Text = "(none)";
     this.baseBone.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // modelPanel1
     //
     //this.modelPanel1.DefaultTranslate = ((System.Vector3)(resources.GetObject("modelPanel1.DefaultTranslate")));
     this.modelPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.modelPanel1.InitialYFactor = 100;
     this.modelPanel1.InitialZoomFactor = 5;
     this.modelPanel1.Location = new System.Drawing.Point(0, 0);
     this.modelPanel1.Name = "modelPanel1";
     this.modelPanel1.RotationScale = 0.1F;
     this.modelPanel1.Size = new System.Drawing.Size(203, 166);
     this.modelPanel1.TabIndex = 12;
     this.modelPanel1.TranslationScale = 0.05F;
     this.modelPanel1.ZoomScale = 2.5F;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.baseBone);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.comboBox3);
     this.panel1.Controls.Add(this.comboBox2);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.btnOkay);
     this.panel1.Controls.Add(this.btnCancel);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(203, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(226, 166);
     this.panel1.TabIndex = 13;
     //
     // ObjectImporter
     //
     this.AcceptButton = this.btnOkay;
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(429, 166);
     this.Controls.Add(this.modelPanel1);
     this.Controls.Add(this.panel1);
     //this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(242, 204);
     this.Name = "ObjectImporter";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "Import Object";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
        public void SetUniforms(int programHandle, ModelPanel panel)
        {
            int currUniform = -1;

            Matrix projection = panel._projectionMatrix;
            Matrix modelview = panel._camera._matrix;

            currUniform = GL.GetUniformLocation(programHandle, "projection_matrix");
            GL.UniformMatrix4(currUniform, 16, false, (float*)&projection);
            currUniform = GL.GetUniformLocation(programHandle, "modelview_matrix");
            GL.UniformMatrix4(currUniform, 16, false, (float*)&modelview);

            //currUniform = GL.GetUniformLocation(programHandle, I_POSNORMALMATRIX);
            //if (currUniform > -1) GL.Uniform4(currUniform, 6, new float[]
            //{

            //});
            //currUniform = GL.GetUniformLocation(programHandle, I_PROJECTION);
            //if (currUniform > -1) GL.Uniform4(currUniform, 4, new float[]
            //{

            //});
            //currUniform = GL.GetUniformLocation(programHandle, I_MATERIALS);
            //if (currUniform > -1) GL.Uniform4(currUniform, 4, new float[]
            //{
            //    UsableMaterialNode.C1AmbientColor.R * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1AmbientColor.G * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1AmbientColor.B * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1AmbientColor.A * RGBAPixel.ColorFactor,

            //    UsableMaterialNode.C2AmbientColor.R * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2AmbientColor.G * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2AmbientColor.B * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2AmbientColor.A * RGBAPixel.ColorFactor,

            //    UsableMaterialNode.C1MaterialColor.R * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1MaterialColor.G * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1MaterialColor.B * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C1MaterialColor.A * RGBAPixel.ColorFactor,

            //    UsableMaterialNode.C2MaterialColor.R * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2MaterialColor.G * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2MaterialColor.B * RGBAPixel.ColorFactor,
            //    UsableMaterialNode.C2MaterialColor.A * RGBAPixel.ColorFactor,
            //});
            //currUniform = GL.GetUniformLocation(programHandle, I_TEXMATRICES);
            //if (currUniform > -1)
            //{
            //    List<float> mtxValues = new List<float>();
            //    int i = 0;
            //    foreach (MDL0MaterialRefNode m in UsableMaterialNode.Children)
            //    {
            //        for (int x = 0; x < 12; x++)
            //            mtxValues.Add(m.EffectMatrix[x]);
            //        i++;
            //    }
            //    while (i < 8)
            //    {
            //        for (int x = 0; x < 12; x++)
            //            mtxValues.Add(Matrix43.Identity[x]);
            //        i++;
            //    }
            //    if (mtxValues.Count != 96)
            //        Console.WriteLine();
            //    GL.Uniform4(currUniform, 24, mtxValues.ToArray());
            //}
            //currUniform = GL.GetUniformLocation(programHandle, I_TRANSFORMMATRICES);
            //if (currUniform > -1) GL.Uniform4(currUniform, 64, new float[]
            //{

            //});
            //currUniform = GL.GetUniformLocation(programHandle, I_NORMALMATRICES);
            //if (currUniform > -1) GL.Uniform4(currUniform, 32, new float[]
            //{

            //});
            //currUniform = GL.GetUniformLocation(programHandle, I_DEPTHPARAMS);
            //if (currUniform > -1) GL.Uniform4(currUniform, 1, new float[]
            //{

            //});
        }
        internal void Render(TKContext ctx, bool wireframe, ModelPanel mainWindow)
        {
            if (!_render || _manager == null)
                return;

            bool useShaders = ctx._shadersEnabled;
            MDL0MaterialNode material = UsableMaterialNode;

            if (wireframe)
            {
                GL.Enable(EnableCap.CullFace);
                GL.CullFace(CullFaceMode.Back);
                _manager.PrepareStream();
                _manager.ApplyTexture(null);
                GL.Color4(Color.Black);
                _manager.RenderMesh();
                _manager.DetachStreams();
                return;
            }

            //if (useShaders)
            //{
            //    UpdateProgram(mainWindow);

            //    _manager.PrepareStreamNew(_programHandle);

            //    if (material != null)
            //    {
            //        switch ((int)material.CullMode)
            //        {
            //            case 0: //None
            //                GL.Disable(EnableCap.CullFace);
            //                break;
            //            case 1: //Outside
            //                GL.Enable(EnableCap.CullFace);
            //                GL.CullFace(CullFaceMode.Front);
            //                break;
            //            case 2: //Inside
            //                GL.Enable(EnableCap.CullFace);
            //                GL.CullFace(CullFaceMode.Back);
            //                break;
            //            case 3: //Double
            //                GL.Enable(EnableCap.CullFace);
            //                GL.CullFace(CullFaceMode.FrontAndBack);
            //                break;
            //        }

            //        if (material.Children.Count == 0)
            //            _manager.RenderMesh();
            //        else
            //        {
            //            foreach (MDL0MaterialRefNode mr in material.Children)
            //            {
            //                if (mr._texture != null && (!mr._texture.Enabled || mr._texture.Rendered))
            //                    continue;

            //                mr.Bind(ctx, _programHandle);
            //            }
            //            GL.BindVertexArray(_manager._arrayHandle);
            //            _manager.RenderMesh();
            //        }
            //    }
            //    else
            //        _manager.RenderMesh();

            //    _manager.DetachStreamsNew();
            //}
            //else
            {
                GL.Enable(EnableCap.Texture2D);
                _manager.PrepareStream();

                GL.MatrixMode(MatrixMode.Modelview);
                if (material != null)
                {
                    switch ((int)material.CullMode)
                    {
                        case 0: //None
                            GL.Disable(EnableCap.CullFace);
                            break;
                        case 1: //Outside
                            GL.Enable(EnableCap.CullFace);
                            GL.CullFace(CullFaceMode.Front);
                            break;
                        case 2: //Inside
                            GL.Enable(EnableCap.CullFace);
                            GL.CullFace(CullFaceMode.Back);
                            break;
                        case 3: //Double
                            GL.Enable(EnableCap.CullFace);
                            GL.CullFace(CullFaceMode.FrontAndBack);
                            break;
                    }

                    //if (material.EnableBlend)
                    //{
                    //    GL.Enable(EnableCap.Blend);
                    //}
                    //else
                    //    GL.Disable(EnableCap.Blend);

                    if (material.Children.Count == 0)
                    {
                        _manager.ApplyTexture(null);
                        _manager.RenderMesh();
                    }
                    else
                    {
                        foreach (MDL0MaterialRefNode mr in material.Children)
                        {
                            if (mr._texture != null && (!mr._texture.Enabled || mr._texture.Rendered))
                                continue;

                            GL.MatrixMode(MatrixMode.Texture);

                            GL.PushMatrix();

                            //Add bind transform
                            GL.Scale(mr.Scale._x, mr.Scale._y, 0);
                            GL.Rotate(mr.Rotation, 1, 0, 0);
                            GL.Translate(-mr.Translation._x, mr.Translation._y - ((mr.Scale._y - 1) / 2), 0);

                            //Now add frame transform
                            GL.Scale(mr._frameState._scale._x, mr._frameState._scale._y, 1);
                            GL.Rotate(mr._frameState._rotate._x, 1, 0, 0);
                            GL.Translate(-mr._frameState._translate._x, mr._frameState._translate._y - ((mr._frameState._scale._y - 1) / 2), 0);

                            GL.MatrixMode(MatrixMode.Modelview);

                            mr.Bind(ctx, -1);

                            _manager.ApplyTexture(mr);
                            _manager.RenderMesh();

                            GL.MatrixMode(MatrixMode.Texture);
                            GL.PopMatrix();
                            GL.MatrixMode(MatrixMode.Modelview);
                        }
                    }
                }
                else
                {
                    _manager.ApplyTexture(null);
                    _manager.RenderMesh();
                }

                _manager.DetachStreams();
            }
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainControl));
     this.dlgColor = new System.Windows.Forms.ColorDialog();
     this.btnBottomToggle = new System.Windows.Forms.Button();
     this.spltLeft = new System.Windows.Forms.Splitter();
     this.btnTopToggle = new System.Windows.Forms.Button();
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.newSceneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnLoadRoot = new System.Windows.Forms.ToolStripMenuItem();
     this.pathToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnLoadChar = new System.Windows.Forms.ToolStripMenuItem();
     this.saveAllFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnUndo = new System.Windows.Forms.ToolStripMenuItem();
     this.btnRedo = new System.Windows.Forms.ToolStripMenuItem();
     this.takeScreenshotToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToImgNoTransparency = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToImgWithTransparency = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToAnimatedGIF = new System.Windows.Forms.ToolStripMenuItem();
     this.saveLocationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ScreenCapBgLocText = new System.Windows.Forms.ToolStripMenuItem();
     this.imageFormatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.modifyLightingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayFrameCountDifferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.alwaysSyncFrameCountsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncAnimationsTogetherToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncTexObjToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncObjectsListToVIS0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.disableBonesWhenPlayingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncLoopToAnimationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkDontRenderOffscreen = new System.Windows.Forms.ToolStripMenuItem();
     this.dontHighlightBonesAndVerticesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.enablePointAndLineSmoothingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.enableTextOverlaysToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.muteSFXToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.storeSettingsExternallyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveCurrentSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.clearSavedSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.kinectToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.editorsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.showOptions = new System.Windows.Forms.ToolStripMenuItem();
     this.showLeft = new System.Windows.Forms.ToolStripMenuItem();
     this.showRight = new System.Windows.Forms.ToolStripMenuItem();
     this.showAnim = new System.Windows.Forms.ToolStripMenuItem();
     this.detachViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.backColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.backgroundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.setColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.loadImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displaySettingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.stretchToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.centerToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.resizeToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.editControlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.scaleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.rotationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.translationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.projectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.perspectiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.orthographicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleFloor = new System.Windows.Forms.ToolStripMenuItem();
     this.resetCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.showCameraCoordinatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.modelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleBones = new System.Windows.Forms.ToolStripMenuItem();
     this.togglePolygons = new System.Windows.Forms.ToolStripMenuItem();
     this.boundingBoxToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.movesetToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.hitboxesOffToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.hurtboxesOffToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.fileTypesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playCHR0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playSRT0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playSHP0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playPAT0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playVIS0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playCLR0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.viewOpenedFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.viewLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.sCN0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayAmbienceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayLightsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayFogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.stPersonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.comboCharacters = new System.Windows.Forms.ComboBox();
     this.controlPanel = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.chkHitboxes = new System.Windows.Forms.ToolStripButton();
     this.chkHurtboxes = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.chkBones = new System.Windows.Forms.ToolStripButton();
     this.chkPolygons = new System.Windows.Forms.ToolStripButton();
     this.chkShaders = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.chkFloor = new System.Windows.Forms.ToolStripButton();
     this.button1 = new System.Windows.Forms.ToolStripButton();
     this.btnSaveCam = new System.Windows.Forms.ToolStripButton();
     this.panel2 = new System.Windows.Forms.Panel();
     this.fileType = new System.Windows.Forms.ComboBox();
     this.comboMdl = new System.Windows.Forms.ComboBox();
     this.modelPanel = new System.Windows.Forms.ModelPanel();
     this.animEditors = new System.Windows.Forms.Panel();
     this.pnlPlayback = new System.Windows.Forms.ModelPlaybackPanel();
     this.panel3 = new System.Windows.Forms.Panel();
     this.hurtboxEditor = new Ikarus.UI.Controls.HurtboxEditor();
     this.vis0Editor = new System.Windows.Forms.VIS0Editor();
     this.pat0Editor = new System.Windows.Forms.PAT0Editor();
     this.shp0Editor = new System.Windows.Forms.SHP0Editor();
     this.srt0Editor = new System.Windows.Forms.SRT0Editor();
     this.chr0Editor = new System.Windows.Forms.CHR0Editor();
     this.clr0Editor = new System.Windows.Forms.CLR0Editor();
     this.panel1 = new System.Windows.Forms.Panel();
     this.scriptPanel = new Ikarus.UI.EditorPanel();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.listPanel = new Ikarus.UI.ListsPanel();
     this.panel4 = new System.Windows.Forms.Panel();
     this.button3 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.spltRight = new System.Windows.Forms.Splitter();
     this.modelListsPanel1 = new Ikarus.UI.ModelListsPanel();
     this.saveTextInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.menuStrip1.SuspendLayout();
     this.controlPanel.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.animEditors.SuspendLayout();
     this.panel3.SuspendLayout();
     this.panel1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.SuspendLayout();
     //
     // dlgColor
     //
     this.dlgColor.AnyColor = true;
     this.dlgColor.FullOpen = true;
     //
     // btnBottomToggle
     //
     this.btnBottomToggle.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.btnBottomToggle.Location = new System.Drawing.Point(0, 495);
     this.btnBottomToggle.Name = "btnBottomToggle";
     this.btnBottomToggle.Size = new System.Drawing.Size(379, 18);
     this.btnBottomToggle.TabIndex = 8;
     this.btnBottomToggle.TabStop = false;
     this.btnBottomToggle.UseVisualStyleBackColor = false;
     this.btnBottomToggle.Click += new System.EventHandler(this.btnPlaybackToggle_Click);
     //
     // spltLeft
     //
     this.spltLeft.BackColor = System.Drawing.SystemColors.Control;
     this.spltLeft.Location = new System.Drawing.Point(368, 24);
     this.spltLeft.Name = "spltLeft";
     this.spltLeft.Size = new System.Drawing.Size(4, 513);
     this.spltLeft.TabIndex = 9;
     this.spltLeft.TabStop = false;
     //
     // btnTopToggle
     //
     this.btnTopToggle.Dock = System.Windows.Forms.DockStyle.Top;
     this.btnTopToggle.Location = new System.Drawing.Point(0, 0);
     this.btnTopToggle.Name = "btnTopToggle";
     this.btnTopToggle.Size = new System.Drawing.Size(379, 18);
     this.btnTopToggle.TabIndex = 11;
     this.btnTopToggle.TabStop = false;
     this.btnTopToggle.UseVisualStyleBackColor = false;
     this.btnTopToggle.Click += new System.EventHandler(this.btnOptionToggle_Click);
     //
     // menuStrip1
     //
     this.menuStrip1.BackColor = System.Drawing.SystemColors.Control;
     this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None;
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.fileToolStripMenuItem,
     this.editToolStripMenuItem,
     this.kinectToolStripMenuItem1});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(242, 24);
     this.menuStrip1.TabIndex = 13;
     this.menuStrip1.Text = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.newSceneToolStripMenuItem,
     this.saveAllFilesToolStripMenuItem,
     this.saveTextInfoToolStripMenuItem});
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "File";
     //
     // newSceneToolStripMenuItem
     //
     this.newSceneToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnLoadRoot,
     this.btnLoadChar});
     this.newSceneToolStripMenuItem.Name = "newSceneToolStripMenuItem";
     this.newSceneToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     this.newSceneToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.newSceneToolStripMenuItem.Text = "Load";
     //
     // btnLoadRoot
     //
     this.btnLoadRoot.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.pathToolStripMenuItem});
     this.btnLoadRoot.Name = "btnLoadRoot";
     this.btnLoadRoot.Size = new System.Drawing.Size(161, 22);
     this.btnLoadRoot.Text = "Root Folder";
     this.btnLoadRoot.Click += new System.EventHandler(this.btnLoadRoot_Click);
     //
     // pathToolStripMenuItem
     //
     this.pathToolStripMenuItem.Name = "pathToolStripMenuItem";
     this.pathToolStripMenuItem.Size = new System.Drawing.Size(114, 22);
     this.pathToolStripMenuItem.Text = "<path>";
     this.pathToolStripMenuItem.Click += new System.EventHandler(this.btnLoadRoot_Click);
     //
     // btnLoadChar
     //
     this.btnLoadChar.Name = "btnLoadChar";
     this.btnLoadChar.Size = new System.Drawing.Size(161, 22);
     this.btnLoadChar.Text = "Character Folder";
     //
     // saveAllFilesToolStripMenuItem
     //
     this.saveAllFilesToolStripMenuItem.Name = "saveAllFilesToolStripMenuItem";
     this.saveAllFilesToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.saveAllFilesToolStripMenuItem.Text = "Save All Files";
     this.saveAllFilesToolStripMenuItem.Click += new System.EventHandler(this.saveAllFilesToolStripMenuItem_Click);
     //
     // editToolStripMenuItem
     //
     this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnUndo,
     this.btnRedo,
     this.takeScreenshotToolStripMenuItem,
     this.modifyLightingToolStripMenuItem,
     this.settingsToolStripMenuItem,
     this.storeSettingsExternallyToolStripMenuItem,
     this.saveCurrentSettingsToolStripMenuItem,
     this.clearSavedSettingsToolStripMenuItem});
     this.editToolStripMenuItem.Name = "editToolStripMenuItem";
     this.editToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
     this.editToolStripMenuItem.Text = "Options";
     //
     // btnUndo
     //
     this.btnUndo.Enabled = false;
     this.btnUndo.Name = "btnUndo";
     this.btnUndo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
     this.btnUndo.Size = new System.Drawing.Size(199, 22);
     this.btnUndo.Text = "Undo";
     this.btnUndo.Click += new System.EventHandler(this.btnUndo_Click);
     //
     // btnRedo
     //
     this.btnRedo.Enabled = false;
     this.btnRedo.Name = "btnRedo";
     this.btnRedo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
     this.btnRedo.Size = new System.Drawing.Size(199, 22);
     this.btnRedo.Text = "Redo";
     this.btnRedo.Click += new System.EventHandler(this.btnRedo_Click);
     //
     // takeScreenshotToolStripMenuItem
     //
     this.takeScreenshotToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnExportToImgNoTransparency,
     this.btnExportToImgWithTransparency,
     this.btnExportToAnimatedGIF,
     this.saveLocationToolStripMenuItem,
     this.imageFormatToolStripMenuItem});
     this.takeScreenshotToolStripMenuItem.Name = "takeScreenshotToolStripMenuItem";
     this.takeScreenshotToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.takeScreenshotToolStripMenuItem.Text = "Take Screenshot";
     //
     // btnExportToImgNoTransparency
     //
     this.btnExportToImgNoTransparency.Name = "btnExportToImgNoTransparency";
     this.btnExportToImgNoTransparency.ShortcutKeyDisplayString = "Ctrl+Shift+I";
     this.btnExportToImgNoTransparency.Size = new System.Drawing.Size(292, 22);
     this.btnExportToImgNoTransparency.Text = "With Background";
     this.btnExportToImgNoTransparency.Click += new System.EventHandler(this.btnExportToImgNoTransparency_Click);
     //
     // btnExportToImgWithTransparency
     //
     this.btnExportToImgWithTransparency.Name = "btnExportToImgWithTransparency";
     this.btnExportToImgWithTransparency.ShortcutKeyDisplayString = "Ctrl+Alt+I";
     this.btnExportToImgWithTransparency.Size = new System.Drawing.Size(292, 22);
     this.btnExportToImgWithTransparency.Text = "With Transparent Background";
     this.btnExportToImgWithTransparency.Click += new System.EventHandler(this.btnExportToImgWithTransparency_Click);
     //
     // btnExportToAnimatedGIF
     //
     this.btnExportToAnimatedGIF.Name = "btnExportToAnimatedGIF";
     this.btnExportToAnimatedGIF.Size = new System.Drawing.Size(292, 22);
     this.btnExportToAnimatedGIF.Text = "To Animated GIF";
     this.btnExportToAnimatedGIF.Click += new System.EventHandler(this.btnExportToAnimatedGIF_Click);
     //
     // saveLocationToolStripMenuItem
     //
     this.saveLocationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ScreenCapBgLocText});
     this.saveLocationToolStripMenuItem.Name = "saveLocationToolStripMenuItem";
     this.saveLocationToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
     this.saveLocationToolStripMenuItem.Text = "Save Location";
     //
     // ScreenCapBgLocText
     //
     this.ScreenCapBgLocText.Name = "ScreenCapBgLocText";
     this.ScreenCapBgLocText.Size = new System.Drawing.Size(110, 22);
     this.ScreenCapBgLocText.Text = "<null>";
     this.ScreenCapBgLocText.Click += new System.EventHandler(this.ScreenCapBgLocText_Click);
     //
     // imageFormatToolStripMenuItem
     //
     this.imageFormatToolStripMenuItem.Name = "imageFormatToolStripMenuItem";
     this.imageFormatToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
     this.imageFormatToolStripMenuItem.Text = "Image Format: PNG";
     this.imageFormatToolStripMenuItem.Click += new System.EventHandler(this.imageFormatToolStripMenuItem_Click);
     //
     // modifyLightingToolStripMenuItem
     //
     this.modifyLightingToolStripMenuItem.Name = "modifyLightingToolStripMenuItem";
     this.modifyLightingToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.modifyLightingToolStripMenuItem.Text = "Viewer Settings";
     this.modifyLightingToolStripMenuItem.Click += new System.EventHandler(this.modifyLightingToolStripMenuItem_Click);
     //
     // settingsToolStripMenuItem
     //
     this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.displayFrameCountDifferencesToolStripMenuItem,
     this.alwaysSyncFrameCountsToolStripMenuItem,
     this.syncAnimationsTogetherToolStripMenuItem,
     this.syncTexObjToolStripMenuItem,
     this.syncObjectsListToVIS0ToolStripMenuItem,
     this.disableBonesWhenPlayingToolStripMenuItem,
     this.syncLoopToAnimationToolStripMenuItem,
     this.chkDontRenderOffscreen,
     this.dontHighlightBonesAndVerticesToolStripMenuItem,
     this.enablePointAndLineSmoothingToolStripMenuItem,
     this.enableTextOverlaysToolStripMenuItem,
     this.muteSFXToolStripMenuItem});
     this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
     this.settingsToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.settingsToolStripMenuItem.Text = "Settings";
     //
     // displayFrameCountDifferencesToolStripMenuItem
     //
     this.displayFrameCountDifferencesToolStripMenuItem.CheckOnClick = true;
     this.displayFrameCountDifferencesToolStripMenuItem.Enabled = false;
     this.displayFrameCountDifferencesToolStripMenuItem.Name = "displayFrameCountDifferencesToolStripMenuItem";
     this.displayFrameCountDifferencesToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.displayFrameCountDifferencesToolStripMenuItem.Text = "Warn if frame counts differ";
     this.displayFrameCountDifferencesToolStripMenuItem.Visible = false;
     //
     // alwaysSyncFrameCountsToolStripMenuItem
     //
     this.alwaysSyncFrameCountsToolStripMenuItem.CheckOnClick = true;
     this.alwaysSyncFrameCountsToolStripMenuItem.Enabled = false;
     this.alwaysSyncFrameCountsToolStripMenuItem.Name = "alwaysSyncFrameCountsToolStripMenuItem";
     this.alwaysSyncFrameCountsToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.alwaysSyncFrameCountsToolStripMenuItem.Text = "Always sync frame counts";
     this.alwaysSyncFrameCountsToolStripMenuItem.Visible = false;
     //
     // syncAnimationsTogetherToolStripMenuItem
     //
     this.syncAnimationsTogetherToolStripMenuItem.Checked = true;
     this.syncAnimationsTogetherToolStripMenuItem.CheckOnClick = true;
     this.syncAnimationsTogetherToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.syncAnimationsTogetherToolStripMenuItem.Name = "syncAnimationsTogetherToolStripMenuItem";
     this.syncAnimationsTogetherToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.syncAnimationsTogetherToolStripMenuItem.Text = "Retrieve corresponding animations";
     this.syncAnimationsTogetherToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncAnimationsTogetherToolStripMenuItem_CheckedChanged);
     //
     // syncTexObjToolStripMenuItem
     //
     this.syncTexObjToolStripMenuItem.CheckOnClick = true;
     this.syncTexObjToolStripMenuItem.Name = "syncTexObjToolStripMenuItem";
     this.syncTexObjToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.syncTexObjToolStripMenuItem.Text = "Sync texture list with object list";
     this.syncTexObjToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncTexObjToolStripMenuItem_CheckedChanged);
     //
     // syncObjectsListToVIS0ToolStripMenuItem
     //
     this.syncObjectsListToVIS0ToolStripMenuItem.CheckOnClick = true;
     this.syncObjectsListToVIS0ToolStripMenuItem.Name = "syncObjectsListToVIS0ToolStripMenuItem";
     this.syncObjectsListToVIS0ToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.syncObjectsListToVIS0ToolStripMenuItem.Text = "Sync objects list edits to VIS0";
     this.syncObjectsListToVIS0ToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncObjectsListToVIS0ToolStripMenuItem_CheckedChanged);
     //
     // disableBonesWhenPlayingToolStripMenuItem
     //
     this.disableBonesWhenPlayingToolStripMenuItem.Checked = true;
     this.disableBonesWhenPlayingToolStripMenuItem.CheckOnClick = true;
     this.disableBonesWhenPlayingToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.disableBonesWhenPlayingToolStripMenuItem.Name = "disableBonesWhenPlayingToolStripMenuItem";
     this.disableBonesWhenPlayingToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.disableBonesWhenPlayingToolStripMenuItem.Text = "Disable bones when playing";
     //
     // syncLoopToAnimationToolStripMenuItem
     //
     this.syncLoopToAnimationToolStripMenuItem.Name = "syncLoopToAnimationToolStripMenuItem";
     this.syncLoopToAnimationToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.syncLoopToAnimationToolStripMenuItem.Text = "Sync loop checkbox to animation header(s)";
     //
     // chkDontRenderOffscreen
     //
     this.chkDontRenderOffscreen.CheckOnClick = true;
     this.chkDontRenderOffscreen.Enabled = false;
     this.chkDontRenderOffscreen.Name = "chkDontRenderOffscreen";
     this.chkDontRenderOffscreen.Size = new System.Drawing.Size(302, 22);
     this.chkDontRenderOffscreen.Text = "Don\'t render offscreen objects";
     this.chkDontRenderOffscreen.Visible = false;
     this.chkDontRenderOffscreen.CheckedChanged += new System.EventHandler(this.chkDontRenderOffscreen_CheckedChanged);
     //
     // dontHighlightBonesAndVerticesToolStripMenuItem
     //
     this.dontHighlightBonesAndVerticesToolStripMenuItem.CheckOnClick = true;
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Name = "dontHighlightBonesAndVerticesToolStripMenuItem";
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Text = "Don\'t highlight bones and vertices";
     //
     // enablePointAndLineSmoothingToolStripMenuItem
     //
     this.enablePointAndLineSmoothingToolStripMenuItem.CheckOnClick = true;
     this.enablePointAndLineSmoothingToolStripMenuItem.Name = "enablePointAndLineSmoothingToolStripMenuItem";
     this.enablePointAndLineSmoothingToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.enablePointAndLineSmoothingToolStripMenuItem.Text = "Enable point and line smoothing";
     this.enablePointAndLineSmoothingToolStripMenuItem.CheckedChanged += new System.EventHandler(this.enablePointAndLineSmoothingToolStripMenuItem_CheckedChanged);
     //
     // enableTextOverlaysToolStripMenuItem
     //
     this.enableTextOverlaysToolStripMenuItem.CheckOnClick = true;
     this.enableTextOverlaysToolStripMenuItem.Name = "enableTextOverlaysToolStripMenuItem";
     this.enableTextOverlaysToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.enableTextOverlaysToolStripMenuItem.Text = "Enable text overlays";
     this.enableTextOverlaysToolStripMenuItem.CheckedChanged += new System.EventHandler(this.enableTextOverlaysToolStripMenuItem_CheckedChanged);
     //
     // muteSFXToolStripMenuItem
     //
     this.muteSFXToolStripMenuItem.CheckOnClick = true;
     this.muteSFXToolStripMenuItem.Name = "muteSFXToolStripMenuItem";
     this.muteSFXToolStripMenuItem.Size = new System.Drawing.Size(302, 22);
     this.muteSFXToolStripMenuItem.Text = "Mute SFX";
     this.muteSFXToolStripMenuItem.CheckedChanged += new System.EventHandler(this.muteSFXToolStripMenuItem_CheckedChanged);
     //
     // storeSettingsExternallyToolStripMenuItem
     //
     this.storeSettingsExternallyToolStripMenuItem.CheckOnClick = true;
     this.storeSettingsExternallyToolStripMenuItem.Name = "storeSettingsExternallyToolStripMenuItem";
     this.storeSettingsExternallyToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.storeSettingsExternallyToolStripMenuItem.Text = "Store Settings Externally";
     this.storeSettingsExternallyToolStripMenuItem.CheckedChanged += new System.EventHandler(this.storeSettingsExternallyToolStripMenuItem_CheckedChanged);
     //
     // saveCurrentSettingsToolStripMenuItem
     //
     this.saveCurrentSettingsToolStripMenuItem.Name = "saveCurrentSettingsToolStripMenuItem";
     this.saveCurrentSettingsToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.saveCurrentSettingsToolStripMenuItem.Text = "Save Current Settings";
     this.saveCurrentSettingsToolStripMenuItem.Click += new System.EventHandler(this.saveCurrentSettingsToolStripMenuItem_Click);
     //
     // clearSavedSettingsToolStripMenuItem
     //
     this.clearSavedSettingsToolStripMenuItem.Name = "clearSavedSettingsToolStripMenuItem";
     this.clearSavedSettingsToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
     this.clearSavedSettingsToolStripMenuItem.Text = "Clear Saved Settings";
     this.clearSavedSettingsToolStripMenuItem.Click += new System.EventHandler(this.clearSavedSettingsToolStripMenuItem_Click);
     //
     // kinectToolStripMenuItem1
     //
     this.kinectToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.editorsToolStripMenuItem,
     this.backColorToolStripMenuItem,
     this.modelToolStripMenuItem,
     this.movesetToolStripMenuItem1,
     this.fileTypesToolStripMenuItem,
     this.helpToolStripMenuItem,
     this.viewOpenedFilesToolStripMenuItem,
     this.viewLogToolStripMenuItem});
     this.kinectToolStripMenuItem1.Name = "kinectToolStripMenuItem1";
     this.kinectToolStripMenuItem1.Size = new System.Drawing.Size(44, 20);
     this.kinectToolStripMenuItem1.Text = "View";
     //
     // editorsToolStripMenuItem
     //
     this.editorsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.showOptions,
     this.showLeft,
     this.showRight,
     this.showAnim,
     this.detachViewerToolStripMenuItem});
     this.editorsToolStripMenuItem.Name = "editorsToolStripMenuItem";
     this.editorsToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.editorsToolStripMenuItem.Text = "Panels";
     //
     // showOptions
     //
     this.showOptions.Checked = true;
     this.showOptions.CheckOnClick = true;
     this.showOptions.CheckState = System.Windows.Forms.CheckState.Checked;
     this.showOptions.Name = "showOptions";
     this.showOptions.Size = new System.Drawing.Size(162, 22);
     this.showOptions.Text = "Menu Bar";
     this.showOptions.CheckedChanged += new System.EventHandler(this.showOptions_CheckedChanged);
     //
     // showLeft
     //
     this.showLeft.Checked = true;
     this.showLeft.CheckOnClick = true;
     this.showLeft.CheckState = System.Windows.Forms.CheckState.Checked;
     this.showLeft.Name = "showLeft";
     this.showLeft.Size = new System.Drawing.Size(162, 22);
     this.showLeft.Text = "Left Panel";
     this.showLeft.CheckedChanged += new System.EventHandler(this.showAssets_CheckedChanged);
     //
     // showRight
     //
     this.showRight.Checked = true;
     this.showRight.CheckOnClick = true;
     this.showRight.CheckState = System.Windows.Forms.CheckState.Checked;
     this.showRight.Name = "showRight";
     this.showRight.Size = new System.Drawing.Size(162, 22);
     this.showRight.Text = "Right Panel";
     this.showRight.CheckedChanged += new System.EventHandler(this.showMoveset_CheckedChanged);
     this.showRight.Click += new System.EventHandler(this.showMoveset_Click_1);
     //
     // showAnim
     //
     this.showAnim.Checked = true;
     this.showAnim.CheckOnClick = true;
     this.showAnim.CheckState = System.Windows.Forms.CheckState.Checked;
     this.showAnim.Name = "showAnim";
     this.showAnim.Size = new System.Drawing.Size(162, 22);
     this.showAnim.Text = "Animation Panel";
     this.showAnim.CheckedChanged += new System.EventHandler(this.showPlay_CheckedChanged);
     //
     // detachViewerToolStripMenuItem
     //
     this.detachViewerToolStripMenuItem.Enabled = false;
     this.detachViewerToolStripMenuItem.Name = "detachViewerToolStripMenuItem";
     this.detachViewerToolStripMenuItem.Size = new System.Drawing.Size(162, 22);
     this.detachViewerToolStripMenuItem.Text = "Detach Viewer";
     this.detachViewerToolStripMenuItem.Visible = false;
     this.detachViewerToolStripMenuItem.Click += new System.EventHandler(this.detachViewerToolStripMenuItem_Click);
     //
     // backColorToolStripMenuItem
     //
     this.backColorToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.backgroundToolStripMenuItem,
     this.editControlToolStripMenuItem,
     this.projectionToolStripMenuItem,
     this.toggleFloor,
     this.resetCameraToolStripMenuItem,
     this.showCameraCoordinatesToolStripMenuItem});
     this.backColorToolStripMenuItem.Name = "backColorToolStripMenuItem";
     this.backColorToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.backColorToolStripMenuItem.Text = "Viewer";
     //
     // backgroundToolStripMenuItem
     //
     this.backgroundToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.setColorToolStripMenuItem,
     this.loadImageToolStripMenuItem,
     this.displaySettingToolStripMenuItem});
     this.backgroundToolStripMenuItem.Name = "backgroundToolStripMenuItem";
     this.backgroundToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.backgroundToolStripMenuItem.Text = "Background";
     //
     // setColorToolStripMenuItem
     //
     this.setColorToolStripMenuItem.Name = "setColorToolStripMenuItem";
     this.setColorToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.setColorToolStripMenuItem.Text = "Set Color";
     this.setColorToolStripMenuItem.Click += new System.EventHandler(this.setColorToolStripMenuItem_Click);
     //
     // loadImageToolStripMenuItem
     //
     this.loadImageToolStripMenuItem.Name = "loadImageToolStripMenuItem";
     this.loadImageToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.loadImageToolStripMenuItem.Text = "Load Image";
     this.loadImageToolStripMenuItem.Click += new System.EventHandler(this.loadImageToolStripMenuItem_Click);
     //
     // displaySettingToolStripMenuItem
     //
     this.displaySettingToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.stretchToolStripMenuItem1,
     this.centerToolStripMenuItem1,
     this.resizeToolStripMenuItem1});
     this.displaySettingToolStripMenuItem.Name = "displaySettingToolStripMenuItem";
     this.displaySettingToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.displaySettingToolStripMenuItem.Text = "Display Setting";
     //
     // stretchToolStripMenuItem1
     //
     this.stretchToolStripMenuItem1.Checked = true;
     this.stretchToolStripMenuItem1.CheckOnClick = true;
     this.stretchToolStripMenuItem1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.stretchToolStripMenuItem1.Name = "stretchToolStripMenuItem1";
     this.stretchToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.stretchToolStripMenuItem1.Text = "Stretch";
     this.stretchToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.stretchToolStripMenuItem_CheckedChanged);
     //
     // centerToolStripMenuItem1
     //
     this.centerToolStripMenuItem1.CheckOnClick = true;
     this.centerToolStripMenuItem1.Name = "centerToolStripMenuItem1";
     this.centerToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.centerToolStripMenuItem1.Text = "Center";
     this.centerToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.centerToolStripMenuItem_CheckedChanged);
     //
     // resizeToolStripMenuItem1
     //
     this.resizeToolStripMenuItem1.CheckOnClick = true;
     this.resizeToolStripMenuItem1.Name = "resizeToolStripMenuItem1";
     this.resizeToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.resizeToolStripMenuItem1.Text = "Resize";
     this.resizeToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.resizeToolStripMenuItem_CheckedChanged);
     //
     // editControlToolStripMenuItem
     //
     this.editControlToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.scaleToolStripMenuItem,
     this.rotationToolStripMenuItem,
     this.translationToolStripMenuItem});
     this.editControlToolStripMenuItem.Name = "editControlToolStripMenuItem";
     this.editControlToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.editControlToolStripMenuItem.Text = "Bone Control";
     //
     // scaleToolStripMenuItem
     //
     this.scaleToolStripMenuItem.CheckOnClick = true;
     this.scaleToolStripMenuItem.Name = "scaleToolStripMenuItem";
     this.scaleToolStripMenuItem.ShortcutKeyDisplayString = "E Key";
     this.scaleToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.scaleToolStripMenuItem.Text = "Scale";
     this.scaleToolStripMenuItem.CheckedChanged += new System.EventHandler(this.scaleToolStripMenuItem_CheckedChanged);
     //
     // rotationToolStripMenuItem
     //
     this.rotationToolStripMenuItem.Checked = true;
     this.rotationToolStripMenuItem.CheckOnClick = true;
     this.rotationToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.rotationToolStripMenuItem.Name = "rotationToolStripMenuItem";
     this.rotationToolStripMenuItem.ShortcutKeyDisplayString = "R Key";
     this.rotationToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.rotationToolStripMenuItem.Text = "Rotation";
     this.rotationToolStripMenuItem.CheckedChanged += new System.EventHandler(this.rotationToolStripMenuItem_CheckedChanged);
     //
     // translationToolStripMenuItem
     //
     this.translationToolStripMenuItem.CheckOnClick = true;
     this.translationToolStripMenuItem.Name = "translationToolStripMenuItem";
     this.translationToolStripMenuItem.ShortcutKeyDisplayString = "T Key";
     this.translationToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.translationToolStripMenuItem.Text = "Translation";
     this.translationToolStripMenuItem.CheckedChanged += new System.EventHandler(this.translationToolStripMenuItem_CheckedChanged);
     //
     // projectionToolStripMenuItem
     //
     this.projectionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.perspectiveToolStripMenuItem,
     this.orthographicToolStripMenuItem});
     this.projectionToolStripMenuItem.Enabled = false;
     this.projectionToolStripMenuItem.Name = "projectionToolStripMenuItem";
     this.projectionToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.projectionToolStripMenuItem.Text = "Projection";
     this.projectionToolStripMenuItem.Visible = false;
     //
     // perspectiveToolStripMenuItem
     //
     this.perspectiveToolStripMenuItem.Checked = true;
     this.perspectiveToolStripMenuItem.CheckOnClick = true;
     this.perspectiveToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.perspectiveToolStripMenuItem.Name = "perspectiveToolStripMenuItem";
     this.perspectiveToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
     this.perspectiveToolStripMenuItem.Text = "Perspective";
     this.perspectiveToolStripMenuItem.CheckedChanged += new System.EventHandler(this.perspectiveToolStripMenuItem_CheckedChanged);
     //
     // orthographicToolStripMenuItem
     //
     this.orthographicToolStripMenuItem.CheckOnClick = true;
     this.orthographicToolStripMenuItem.Name = "orthographicToolStripMenuItem";
     this.orthographicToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
     this.orthographicToolStripMenuItem.Text = "Orthographic";
     this.orthographicToolStripMenuItem.CheckedChanged += new System.EventHandler(this.orthographicToolStripMenuItem_CheckedChanged);
     //
     // toggleFloor
     //
     this.toggleFloor.Name = "toggleFloor";
     this.toggleFloor.ShortcutKeyDisplayString = "F Key";
     this.toggleFloor.Size = new System.Drawing.Size(214, 22);
     this.toggleFloor.Text = "Floor";
     this.toggleFloor.Click += new System.EventHandler(this.toggleFloor_Click);
     //
     // resetCameraToolStripMenuItem
     //
     this.resetCameraToolStripMenuItem.Name = "resetCameraToolStripMenuItem";
     this.resetCameraToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+R";
     this.resetCameraToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.resetCameraToolStripMenuItem.Text = "Reset Camera";
     this.resetCameraToolStripMenuItem.Click += new System.EventHandler(this.resetCameraToolStripMenuItem_Click_1);
     //
     // showCameraCoordinatesToolStripMenuItem
     //
     this.showCameraCoordinatesToolStripMenuItem.CheckOnClick = true;
     this.showCameraCoordinatesToolStripMenuItem.Name = "showCameraCoordinatesToolStripMenuItem";
     this.showCameraCoordinatesToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.showCameraCoordinatesToolStripMenuItem.Text = "Show Camera Coordinates";
     this.showCameraCoordinatesToolStripMenuItem.CheckedChanged += new System.EventHandler(this.showCameraCoordinatesToolStripMenuItem_CheckedChanged);
     //
     // modelToolStripMenuItem
     //
     this.modelToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toggleBones,
     this.togglePolygons,
     this.boundingBoxToolStripMenuItem});
     this.modelToolStripMenuItem.Name = "modelToolStripMenuItem";
     this.modelToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.modelToolStripMenuItem.Text = "Model";
     //
     // toggleBones
     //
     this.toggleBones.Checked = true;
     this.toggleBones.CheckState = System.Windows.Forms.CheckState.Checked;
     this.toggleBones.Name = "toggleBones";
     this.toggleBones.ShortcutKeyDisplayString = "V Key";
     this.toggleBones.Size = new System.Drawing.Size(159, 22);
     this.toggleBones.Text = "Bones";
     this.toggleBones.Click += new System.EventHandler(this.toggleBonesToolStripMenuItem_Click);
     //
     // togglePolygons
     //
     this.togglePolygons.Checked = true;
     this.togglePolygons.CheckState = System.Windows.Forms.CheckState.Checked;
     this.togglePolygons.Name = "togglePolygons";
     this.togglePolygons.ShortcutKeyDisplayString = "P Key";
     this.togglePolygons.Size = new System.Drawing.Size(159, 22);
     this.togglePolygons.Text = "Polygons";
     this.togglePolygons.Click += new System.EventHandler(this.togglePolygonsToolStripMenuItem_Click);
     //
     // boundingBoxToolStripMenuItem
     //
     this.boundingBoxToolStripMenuItem.CheckOnClick = true;
     this.boundingBoxToolStripMenuItem.Name = "boundingBoxToolStripMenuItem";
     this.boundingBoxToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
     this.boundingBoxToolStripMenuItem.Text = "Bounding Box";
     this.boundingBoxToolStripMenuItem.CheckedChanged += new System.EventHandler(this.boundingBoxToolStripMenuItem_CheckedChanged);
     //
     // movesetToolStripMenuItem1
     //
     this.movesetToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.hitboxesOffToolStripMenuItem,
     this.hurtboxesOffToolStripMenuItem});
     this.movesetToolStripMenuItem1.Name = "movesetToolStripMenuItem1";
     this.movesetToolStripMenuItem1.Size = new System.Drawing.Size(170, 22);
     this.movesetToolStripMenuItem1.Text = "Moveset";
     this.movesetToolStripMenuItem1.Visible = false;
     //
     // hitboxesOffToolStripMenuItem
     //
     this.hitboxesOffToolStripMenuItem.Checked = true;
     this.hitboxesOffToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.hitboxesOffToolStripMenuItem.Name = "hitboxesOffToolStripMenuItem";
     this.hitboxesOffToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.hitboxesOffToolStripMenuItem.Text = "Hitboxes";
     this.hitboxesOffToolStripMenuItem.CheckedChanged += new System.EventHandler(this.RenderStateChanged);
     this.hitboxesOffToolStripMenuItem.Click += new System.EventHandler(this.hitboxesOffToolStripMenuItem_Click);
     //
     // hurtboxesOffToolStripMenuItem
     //
     this.hurtboxesOffToolStripMenuItem.Checked = true;
     this.hurtboxesOffToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.hurtboxesOffToolStripMenuItem.Name = "hurtboxesOffToolStripMenuItem";
     this.hurtboxesOffToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.hurtboxesOffToolStripMenuItem.Text = "Hurtboxes";
     this.hurtboxesOffToolStripMenuItem.CheckedChanged += new System.EventHandler(this.RenderStateChanged);
     this.hurtboxesOffToolStripMenuItem.Click += new System.EventHandler(this.hurtboxesOffToolStripMenuItem_Click);
     //
     // fileTypesToolStripMenuItem
     //
     this.fileTypesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.playCHR0ToolStripMenuItem,
     this.playSRT0ToolStripMenuItem,
     this.playSHP0ToolStripMenuItem,
     this.playPAT0ToolStripMenuItem,
     this.playVIS0ToolStripMenuItem,
     this.playCLR0ToolStripMenuItem});
     this.fileTypesToolStripMenuItem.Name = "fileTypesToolStripMenuItem";
     this.fileTypesToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.fileTypesToolStripMenuItem.Text = "Animations";
     //
     // playCHR0ToolStripMenuItem
     //
     this.playCHR0ToolStripMenuItem.Checked = true;
     this.playCHR0ToolStripMenuItem.CheckOnClick = true;
     this.playCHR0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playCHR0ToolStripMenuItem.Name = "playCHR0ToolStripMenuItem";
     this.playCHR0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playCHR0ToolStripMenuItem.Text = "Play CHR0";
     //
     // playSRT0ToolStripMenuItem
     //
     this.playSRT0ToolStripMenuItem.Checked = true;
     this.playSRT0ToolStripMenuItem.CheckOnClick = true;
     this.playSRT0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playSRT0ToolStripMenuItem.Name = "playSRT0ToolStripMenuItem";
     this.playSRT0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playSRT0ToolStripMenuItem.Text = "Play SRT0";
     //
     // playSHP0ToolStripMenuItem
     //
     this.playSHP0ToolStripMenuItem.Checked = true;
     this.playSHP0ToolStripMenuItem.CheckOnClick = true;
     this.playSHP0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playSHP0ToolStripMenuItem.Name = "playSHP0ToolStripMenuItem";
     this.playSHP0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playSHP0ToolStripMenuItem.Text = "Play SHP0";
     //
     // playPAT0ToolStripMenuItem
     //
     this.playPAT0ToolStripMenuItem.Checked = true;
     this.playPAT0ToolStripMenuItem.CheckOnClick = true;
     this.playPAT0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playPAT0ToolStripMenuItem.Name = "playPAT0ToolStripMenuItem";
     this.playPAT0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playPAT0ToolStripMenuItem.Text = "Play PAT0";
     //
     // playVIS0ToolStripMenuItem
     //
     this.playVIS0ToolStripMenuItem.Checked = true;
     this.playVIS0ToolStripMenuItem.CheckOnClick = true;
     this.playVIS0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playVIS0ToolStripMenuItem.Name = "playVIS0ToolStripMenuItem";
     this.playVIS0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playVIS0ToolStripMenuItem.Text = "Play VIS0";
     //
     // playCLR0ToolStripMenuItem
     //
     this.playCLR0ToolStripMenuItem.Checked = true;
     this.playCLR0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playCLR0ToolStripMenuItem.Name = "playCLR0ToolStripMenuItem";
     this.playCLR0ToolStripMenuItem.Size = new System.Drawing.Size(129, 22);
     this.playCLR0ToolStripMenuItem.Text = "Play CLR0";
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.helpToolStripMenuItem.Text = "Help";
     this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click);
     //
     // viewOpenedFilesToolStripMenuItem
     //
     this.viewOpenedFilesToolStripMenuItem.Name = "viewOpenedFilesToolStripMenuItem";
     this.viewOpenedFilesToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.viewOpenedFilesToolStripMenuItem.Text = "View Opened Files";
     this.viewOpenedFilesToolStripMenuItem.Click += new System.EventHandler(this.viewOpenedFilesToolStripMenuItem_Click);
     //
     // viewLogToolStripMenuItem
     //
     this.viewLogToolStripMenuItem.Name = "viewLogToolStripMenuItem";
     this.viewLogToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
     this.viewLogToolStripMenuItem.Text = "View Log";
     this.viewLogToolStripMenuItem.Click += new System.EventHandler(this.viewLogToolStripMenuItem_Click);
     //
     // sCN0ToolStripMenuItem
     //
     this.sCN0ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.displayAmbienceToolStripMenuItem,
     this.displayLightsToolStripMenuItem,
     this.displayFogToolStripMenuItem,
     this.displayCameraToolStripMenuItem});
     this.sCN0ToolStripMenuItem.Name = "sCN0ToolStripMenuItem";
     this.sCN0ToolStripMenuItem.Size = new System.Drawing.Size(211, 22);
     this.sCN0ToolStripMenuItem.Text = "SCN0";
     this.sCN0ToolStripMenuItem.Visible = false;
     //
     // displayAmbienceToolStripMenuItem
     //
     this.displayAmbienceToolStripMenuItem.Name = "displayAmbienceToolStripMenuItem";
     this.displayAmbienceToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayAmbienceToolStripMenuItem.Text = "Display Ambience";
     //
     // displayLightsToolStripMenuItem
     //
     this.displayLightsToolStripMenuItem.Name = "displayLightsToolStripMenuItem";
     this.displayLightsToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayLightsToolStripMenuItem.Text = "Display Light";
     //
     // displayFogToolStripMenuItem
     //
     this.displayFogToolStripMenuItem.Name = "displayFogToolStripMenuItem";
     this.displayFogToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayFogToolStripMenuItem.Text = "Display Fog";
     //
     // displayCameraToolStripMenuItem
     //
     this.displayCameraToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.displayToolStripMenuItem,
     this.stPersonToolStripMenuItem});
     this.displayCameraToolStripMenuItem.Name = "displayCameraToolStripMenuItem";
     this.displayCameraToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayCameraToolStripMenuItem.Text = "Camera";
     //
     // displayToolStripMenuItem
     //
     this.displayToolStripMenuItem.Name = "displayToolStripMenuItem";
     this.displayToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.displayToolStripMenuItem.Text = "Display";
     //
     // stPersonToolStripMenuItem
     //
     this.stPersonToolStripMenuItem.CheckOnClick = true;
     this.stPersonToolStripMenuItem.Name = "stPersonToolStripMenuItem";
     this.stPersonToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.stPersonToolStripMenuItem.Text = "1st Person";
     this.stPersonToolStripMenuItem.CheckedChanged += new System.EventHandler(this.stPersonToolStripMenuItem_CheckedChanged);
     //
     // comboCharacters
     //
     this.comboCharacters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.comboCharacters.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboCharacters.FormattingEnabled = true;
     this.comboCharacters.Items.AddRange(new object[] {
     "All"});
     this.comboCharacters.Location = new System.Drawing.Point(153, 2);
     this.comboCharacters.Name = "comboCharacters";
     this.comboCharacters.Size = new System.Drawing.Size(120, 21);
     this.comboCharacters.TabIndex = 21;
     this.comboCharacters.SelectedIndexChanged += new System.EventHandler(this.comboCharacters_SelectedIndexChanged);
     //
     // controlPanel
     //
     this.controlPanel.Controls.Add(this.splitter1);
     this.controlPanel.Controls.Add(this.toolStrip1);
     this.controlPanel.Controls.Add(this.panel2);
     this.controlPanel.Dock = System.Windows.Forms.DockStyle.Top;
     this.controlPanel.Location = new System.Drawing.Point(0, 0);
     this.controlPanel.Name = "controlPanel";
     this.controlPanel.Size = new System.Drawing.Size(911, 24);
     this.controlPanel.TabIndex = 22;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(365, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(3, 24);
     this.splitter1.TabIndex = 31;
     this.splitter1.TabStop = false;
     //
     // toolStrip1
     //
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.chkHitboxes,
     this.chkHurtboxes,
     this.toolStripSeparator2,
     this.chkBones,
     this.chkPolygons,
     this.chkShaders,
     this.toolStripSeparator1,
     this.chkFloor,
     this.button1,
     this.btnSaveCam});
     this.toolStrip1.Location = new System.Drawing.Point(365, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Padding = new System.Windows.Forms.Padding(6, 0, 0, 0);
     this.toolStrip1.Size = new System.Drawing.Size(546, 24);
     this.toolStrip1.TabIndex = 30;
     this.toolStrip1.Text = "toolStrip1";
     //
     // chkHitboxes
     //
     this.chkHitboxes.Checked = true;
     this.chkHitboxes.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkHitboxes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkHitboxes.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkHitboxes.Name = "chkHitboxes";
     this.chkHitboxes.Size = new System.Drawing.Size(57, 21);
     this.chkHitboxes.Text = "Hitboxes";
     this.chkHitboxes.Click += new System.EventHandler(this.hitboxesOffToolStripMenuItem_Click);
     //
     // chkHurtboxes
     //
     this.chkHurtboxes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkHurtboxes.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkHurtboxes.Name = "chkHurtboxes";
     this.chkHurtboxes.Size = new System.Drawing.Size(65, 21);
     this.chkHurtboxes.Text = "Hurtboxes";
     this.chkHurtboxes.Click += new System.EventHandler(this.hurtboxesOffToolStripMenuItem_Click);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 24);
     this.toolStripSeparator2.Visible = false;
     //
     // chkBones
     //
     this.chkBones.Checked = true;
     this.chkBones.CheckOnClick = true;
     this.chkBones.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkBones.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkBones.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkBones.Name = "chkBones";
     this.chkBones.Size = new System.Drawing.Size(43, 21);
     this.chkBones.Text = "Bones";
     this.chkBones.CheckedChanged += new System.EventHandler(this.chkBones_CheckedChanged);
     //
     // chkPolygons
     //
     this.chkPolygons.Checked = true;
     this.chkPolygons.CheckOnClick = true;
     this.chkPolygons.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkPolygons.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkPolygons.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkPolygons.Name = "chkPolygons";
     this.chkPolygons.Size = new System.Drawing.Size(60, 21);
     this.chkPolygons.Text = "Polygons";
     this.chkPolygons.CheckedChanged += new System.EventHandler(this.chkPolygons_CheckedChanged);
     //
     // chkShaders
     //
     this.chkShaders.CheckOnClick = true;
     this.chkShaders.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkShaders.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkShaders.Name = "chkShaders";
     this.chkShaders.Size = new System.Drawing.Size(52, 21);
     this.chkShaders.Text = "Shaders";
     this.chkShaders.Visible = false;
     this.chkShaders.CheckedChanged += new System.EventHandler(this.chkShaders_CheckedChanged);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 24);
     //
     // chkFloor
     //
     this.chkFloor.Checked = true;
     this.chkFloor.CheckOnClick = true;
     this.chkFloor.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkFloor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkFloor.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkFloor.Name = "chkFloor";
     this.chkFloor.Size = new System.Drawing.Size(38, 21);
     this.chkFloor.Text = "Floor";
     this.chkFloor.CheckedChanged += new System.EventHandler(this.chkFloor_CheckedChanged);
     //
     // button1
     //
     this.button1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.button1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(83, 21);
     this.button1.Text = "Reset Camera";
     this.button1.Click += new System.EventHandler(this.resetCameraToolStripMenuItem_Click_1);
     //
     // btnSaveCam
     //
     this.btnSaveCam.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnSaveCam.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSaveCam.Name = "btnSaveCam";
     this.btnSaveCam.Size = new System.Drawing.Size(79, 21);
     this.btnSaveCam.Text = "Save Camera";
     this.btnSaveCam.Click += new System.EventHandler(this.btnSaveCam_Click);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.fileType);
     this.panel2.Controls.Add(this.comboMdl);
     this.panel2.Controls.Add(this.menuStrip1);
     this.panel2.Controls.Add(this.comboCharacters);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(365, 24);
     this.panel2.TabIndex = 29;
     //
     // fileType
     //
     this.fileType.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.fileType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.fileType.FormattingEnabled = true;
     this.fileType.Items.AddRange(new object[] {
     "CHR",
     "SRT",
     "SHP",
     "PAT",
     "VIS",
     "CLR"});
     this.fileType.Location = new System.Drawing.Point(311, 2);
     this.fileType.Name = "fileType";
     this.fileType.Size = new System.Drawing.Size(51, 21);
     this.fileType.TabIndex = 24;
     this.fileType.SelectedIndexChanged += new System.EventHandler(this.fileType_SelectedIndexChanged);
     //
     // comboMdl
     //
     this.comboMdl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.comboMdl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboMdl.FormattingEnabled = true;
     this.comboMdl.Items.AddRange(new object[] {
     "All"});
     this.comboMdl.Location = new System.Drawing.Point(274, 2);
     this.comboMdl.Name = "comboMdl";
     this.comboMdl.Size = new System.Drawing.Size(36, 21);
     this.comboMdl.TabIndex = 23;
     this.comboMdl.SelectedIndexChanged += new System.EventHandler(this.comboMdl_SelectedIndexChanged);
     //
     // modelPanel
     //
     this.modelPanel.DefaultTranslate = ((System.Vector3)(resources.GetObject("modelPanel.DefaultTranslate")));
     this.modelPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.modelPanel.InitialYFactor = 100;
     this.modelPanel.InitialZoomFactor = 5;
     this.modelPanel.Location = new System.Drawing.Point(0, 0);
     this.modelPanel.Name = "modelPanel";
     this.modelPanel.RotationScale = 0.4F;
     this.modelPanel.Size = new System.Drawing.Size(379, 513);
     this.modelPanel.TabIndex = 0;
     this.modelPanel.TranslationScale = 0.05F;
     this.modelPanel.ZoomScale = 2.5F;
     this.modelPanel.PreRender += new System.Windows.Forms.GLRenderEventHandler(this.modelPanel1_PreRender);
     this.modelPanel.PostRender += new System.Windows.Forms.GLRenderEventHandler(this.modelPanel1_PostRender);
     this.modelPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseDown);
     this.modelPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseMove);
     this.modelPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseUp);
     //
     // animEditors
     //
     this.animEditors.AutoScroll = true;
     this.animEditors.Controls.Add(this.pnlPlayback);
     this.animEditors.Controls.Add(this.panel3);
     this.animEditors.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.animEditors.Location = new System.Drawing.Point(0, 537);
     this.animEditors.Name = "animEditors";
     this.animEditors.Size = new System.Drawing.Size(911, 60);
     this.animEditors.TabIndex = 29;
     //
     // pnlPlayback
     //
     this.pnlPlayback.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlPlayback.Location = new System.Drawing.Point(264, 0);
     this.pnlPlayback.Name = "pnlPlayback";
     this.pnlPlayback.Size = new System.Drawing.Size(647, 60);
     this.pnlPlayback.TabIndex = 30;
     //
     // panel3
     //
     this.panel3.AutoScroll = true;
     this.panel3.Controls.Add(this.hurtboxEditor);
     this.panel3.Controls.Add(this.vis0Editor);
     this.panel3.Controls.Add(this.pat0Editor);
     this.panel3.Controls.Add(this.shp0Editor);
     this.panel3.Controls.Add(this.srt0Editor);
     this.panel3.Controls.Add(this.chr0Editor);
     this.panel3.Controls.Add(this.clr0Editor);
     this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel3.Location = new System.Drawing.Point(0, 0);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(264, 60);
     this.panel3.TabIndex = 29;
     //
     // hurtboxEditor
     //
     this.hurtboxEditor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.hurtboxEditor.Location = new System.Drawing.Point(0, 0);
     this.hurtboxEditor.Name = "hurtboxEditor";
     this.hurtboxEditor.Size = new System.Drawing.Size(264, 60);
     this.hurtboxEditor.TabIndex = 31;
     this.hurtboxEditor.TargetHurtBox = null;
     this.hurtboxEditor.Visible = false;
     //
     // vis0Editor
     //
     this.vis0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.vis0Editor.Location = new System.Drawing.Point(0, 0);
     this.vis0Editor.Name = "vis0Editor";
     this.vis0Editor.Padding = new System.Windows.Forms.Padding(4);
     this.vis0Editor.Size = new System.Drawing.Size(264, 60);
     this.vis0Editor.TabIndex = 26;
     this.vis0Editor.Visible = false;
     //
     // pat0Editor
     //
     this.pat0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pat0Editor.Location = new System.Drawing.Point(0, 0);
     this.pat0Editor.Name = "pat0Editor";
     this.pat0Editor.Size = new System.Drawing.Size(264, 60);
     this.pat0Editor.TabIndex = 27;
     this.pat0Editor.Visible = false;
     //
     // shp0Editor
     //
     this.shp0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.shp0Editor.Location = new System.Drawing.Point(0, 0);
     this.shp0Editor.Name = "shp0Editor";
     this.shp0Editor.Size = new System.Drawing.Size(264, 60);
     this.shp0Editor.TabIndex = 28;
     this.shp0Editor.Visible = false;
     //
     // srt0Editor
     //
     this.srt0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.srt0Editor.Location = new System.Drawing.Point(0, 0);
     this.srt0Editor.Name = "srt0Editor";
     this.srt0Editor.Size = new System.Drawing.Size(264, 60);
     this.srt0Editor.TabIndex = 20;
     this.srt0Editor.Visible = false;
     //
     // chr0Editor
     //
     this.chr0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.chr0Editor.Location = new System.Drawing.Point(0, 0);
     this.chr0Editor.Name = "chr0Editor";
     this.chr0Editor.Size = new System.Drawing.Size(264, 60);
     this.chr0Editor.TabIndex = 19;
     this.chr0Editor.Visible = false;
     this.chr0Editor.VisibleChanged += new System.EventHandler(this.chr0Editor_VisibleChanged);
     //
     // clr0Editor
     //
     this.clr0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.clr0Editor.Location = new System.Drawing.Point(0, 0);
     this.clr0Editor.Name = "clr0Editor";
     this.clr0Editor.Size = new System.Drawing.Size(264, 60);
     this.clr0Editor.TabIndex = 30;
     this.clr0Editor.Visible = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.scriptPanel);
     this.panel1.Controls.Add(this.splitter2);
     this.panel1.Controls.Add(this.listPanel);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 24);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(368, 513);
     this.panel1.TabIndex = 34;
     //
     // scriptPanel
     //
     this.scriptPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.scriptPanel.Location = new System.Drawing.Point(0, 264);
     this.scriptPanel.Name = "scriptPanel";
     this.scriptPanel.Size = new System.Drawing.Size(368, 249);
     this.scriptPanel.TabIndex = 33;
     //
     // splitter2
     //
     this.splitter2.Dock = System.Windows.Forms.DockStyle.Top;
     this.splitter2.Location = new System.Drawing.Point(0, 261);
     this.splitter2.Name = "splitter2";
     this.splitter2.Size = new System.Drawing.Size(368, 3);
     this.splitter2.TabIndex = 34;
     this.splitter2.TabStop = false;
     //
     // listPanel
     //
     this.listPanel.Dock = System.Windows.Forms.DockStyle.Top;
     this.listPanel.Location = new System.Drawing.Point(0, 0);
     this.listPanel.Name = "listPanel";
     this.listPanel.Size = new System.Drawing.Size(368, 261);
     this.listPanel.TabIndex = 32;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.button3);
     this.panel4.Controls.Add(this.button2);
     this.panel4.Controls.Add(this.btnBottomToggle);
     this.panel4.Controls.Add(this.btnTopToggle);
     this.panel4.Controls.Add(this.modelPanel);
     this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel4.Location = new System.Drawing.Point(372, 24);
     this.panel4.Name = "panel4";
     this.panel4.Size = new System.Drawing.Size(379, 513);
     this.panel4.TabIndex = 36;
     //
     // button3
     //
     this.button3.Dock = System.Windows.Forms.DockStyle.Left;
     this.button3.Location = new System.Drawing.Point(0, 18);
     this.button3.Name = "button3";
     this.button3.Size = new System.Drawing.Size(18, 477);
     this.button3.TabIndex = 13;
     this.button3.TabStop = false;
     this.button3.UseVisualStyleBackColor = false;
     this.button3.Click += new System.EventHandler(this.btnLeftToggle_Click);
     //
     // button2
     //
     this.button2.Dock = System.Windows.Forms.DockStyle.Right;
     this.button2.Location = new System.Drawing.Point(361, 18);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(18, 477);
     this.button2.TabIndex = 12;
     this.button2.TabStop = false;
     this.button2.UseVisualStyleBackColor = false;
     this.button2.Click += new System.EventHandler(this.btnRightToggle_Click);
     //
     // spltRight
     //
     this.spltRight.BackColor = System.Drawing.SystemColors.Control;
     this.spltRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.spltRight.Location = new System.Drawing.Point(751, 24);
     this.spltRight.Name = "spltRight";
     this.spltRight.Size = new System.Drawing.Size(4, 513);
     this.spltRight.TabIndex = 37;
     this.spltRight.TabStop = false;
     //
     // modelListsPanel1
     //
     this.modelListsPanel1.Dock = System.Windows.Forms.DockStyle.Right;
     this.modelListsPanel1.Location = new System.Drawing.Point(755, 24);
     this.modelListsPanel1.Name = "modelListsPanel1";
     this.modelListsPanel1.Size = new System.Drawing.Size(156, 513);
     this.modelListsPanel1.TabIndex = 35;
     //
     // saveTextInfoToolStripMenuItem
     //
     this.saveTextInfoToolStripMenuItem.Name = "saveTextInfoToolStripMenuItem";
     this.saveTextInfoToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.saveTextInfoToolStripMenuItem.Text = "Save Text Info";
     this.saveTextInfoToolStripMenuItem.Click += new System.EventHandler(this.saveTextInfoToolStripMenuItem_Click);
     //
     // MainControl
     //
     this.AllowDrop = true;
     this.Controls.Add(this.panel4);
     this.Controls.Add(this.spltRight);
     this.Controls.Add(this.spltLeft);
     this.Controls.Add(this.modelListsPanel1);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.controlPanel);
     this.Controls.Add(this.animEditors);
     this.Name = "MainControl";
     this.Size = new System.Drawing.Size(911, 597);
     this.SizeChanged += new System.EventHandler(this.ModelEditControl_SizeChanged);
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ModelEditControl_DragDrop);
     this.DragEnter += new System.Windows.Forms.DragEventHandler(this.ModelEditControl_DragEnter);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.controlPanel.ResumeLayout(false);
     this.controlPanel.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.animEditors.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ModelEditControl));
     this.dlgColor = new System.Windows.Forms.ColorDialog();
     this.btnLeftToggle = new System.Windows.Forms.Button();
     this.btnRightToggle = new System.Windows.Forms.Button();
     this.btnBottomToggle = new System.Windows.Forms.Button();
     this.spltLeft = new System.Windows.Forms.Splitter();
     this.btnTopToggle = new System.Windows.Forms.Button();
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.newSceneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openModelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openAnimationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnOpenClose = new System.Windows.Forms.ToolStripMenuItem();
     this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.openMovesetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnUndo = new System.Windows.Forms.ToolStripMenuItem();
     this.btnRedo = new System.Windows.Forms.ToolStripMenuItem();
     this.takeScreenshotToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToImgNoTransparency = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToImgWithTransparency = new System.Windows.Forms.ToolStripMenuItem();
     this.btnExportToAnimatedGIF = new System.Windows.Forms.ToolStripMenuItem();
     this.saveLocationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.ScreenCapBgLocText = new System.Windows.Forms.ToolStripMenuItem();
     this.imageFormatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.modifyLightingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.generateTangentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansCHR = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansSRT = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansSHP = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansLight = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansFog = new System.Windows.Forms.ToolStripMenuItem();
     this.chkGenTansCamera = new System.Windows.Forms.ToolStripMenuItem();
     this.displayFrameCountDifferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.alwaysSyncFrameCountsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncAnimationsTogetherToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncTexObjToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncObjectsListToVIS0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.disableBonesWhenPlayingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkDontRenderOffscreen = new System.Windows.Forms.ToolStripMenuItem();
     this.dontHighlightBonesAndVerticesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.enablePointAndLineSmoothingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.enableTextOverlaysToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncStartendTangentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkMaximize = new System.Windows.Forms.ToolStripMenuItem();
     this.allSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.viewToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.editorsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.showTop = new System.Windows.Forms.ToolStripMenuItem();
     this.showLeft = new System.Windows.Forms.ToolStripMenuItem();
     this.showBottom = new System.Windows.Forms.ToolStripMenuItem();
     this.showRight = new System.Windows.Forms.ToolStripMenuItem();
     this.backColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.backgroundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.setColorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.loadImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displaySettingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.stretchToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.centerToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.resizeToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.editControlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.scaleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.SparentLocalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.SworldToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.rotationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.RparentLocalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.RworldToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.translationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.TparentLocalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.TworldToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.projectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.perspectiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.orthographicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleFloor = new System.Windows.Forms.ToolStripMenuItem();
     this.resetCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.showCameraCoordinatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.detachViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.modelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleBones = new System.Windows.Forms.ToolStripMenuItem();
     this.togglePolygons = new System.Windows.Forms.ToolStripMenuItem();
     this.wireframeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleVertices = new System.Windows.Forms.ToolStripMenuItem();
     this.toggleNormals = new System.Windows.Forms.ToolStripMenuItem();
     this.boundingBoxToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.fileTypesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playCHR0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playSRT0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playSHP0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playPAT0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playVIS0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.playCLR0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.linearInterpolationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearCHR = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearSRT = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearSHP = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearLight = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearFog = new System.Windows.Forms.ToolStripMenuItem();
     this.chkLinearCamera = new System.Windows.Forms.ToolStripMenuItem();
     this.sCN0ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayAmbienceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayLightsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayFogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayCameraToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.displayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.stPersonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.interpolationEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.selectedAnimationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.portToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.mergeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.appendToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.resizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.interpolationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.averageAllStartEndTangentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.averageboneStartendTangentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.targetModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.hideFromSceneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.hideAllOtherModelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deleteAllOtherModelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.chkExternalAnims = new System.Windows.Forms.ToolStripMenuItem();
     this.chkBRRESAnims = new System.Windows.Forms.ToolStripMenuItem();
     this.chkNonBRRESAnims = new System.Windows.Forms.ToolStripMenuItem();
     this.kinectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.syncKinectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.notYetImplementedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.startTrackingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.models = new System.Windows.Forms.ComboBox();
     this.controlPanel = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.chkBones = new System.Windows.Forms.ToolStripButton();
     this.chkPolygons = new System.Windows.Forms.ToolStripButton();
     this.chkShaders = new System.Windows.Forms.ToolStripButton();
     this.chkVertices = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.chkFloor = new System.Windows.Forms.ToolStripButton();
     this.button1 = new System.Windows.Forms.ToolStripButton();
     this.btnSaveCam = new System.Windows.Forms.ToolStripButton();
     this.panel2 = new System.Windows.Forms.Panel();
     this.spltRight = new System.Windows.Forms.Splitter();
     this.panel1 = new System.Windows.Forms.Panel();
     this.modelPanel = new System.Windows.Forms.ModelPanel();
     this.label1 = new System.Windows.Forms.Label();
     this.animEditors = new System.Windows.Forms.Panel();
     this.pnlPlayback = new System.Windows.Forms.ModelPlaybackPanel();
     this.animCtrlPnl = new System.Windows.Forms.Panel();
     this.vis0Editor = new System.Windows.Forms.VIS0Editor();
     this.pat0Editor = new System.Windows.Forms.PAT0Editor();
     this.shp0Editor = new System.Windows.Forms.SHP0Editor();
     this.srt0Editor = new System.Windows.Forms.SRT0Editor();
     this.chr0Editor = new System.Windows.Forms.CHR0Editor();
     this.scn0Editor = new System.Windows.Forms.SCN0Editor();
     this.clr0Editor = new System.Windows.Forms.CLR0Editor();
     this.weightEditor = new System.Windows.Forms.WeightEditor();
     this.vertexEditor = new System.Windows.Forms.VertexEditor();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.leftPanel = new System.Windows.Forms.LeftPanel();
     this.rightPanel = new System.Windows.Forms.RightPanel();
     this.menuStrip1.SuspendLayout();
     this.controlPanel.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.animEditors.SuspendLayout();
     this.animCtrlPnl.SuspendLayout();
     this.SuspendLayout();
     //
     // dlgColor
     //
     this.dlgColor.AnyColor = true;
     this.dlgColor.FullOpen = true;
     //
     // btnLeftToggle
     //
     this.btnLeftToggle.Dock = System.Windows.Forms.DockStyle.Left;
     this.btnLeftToggle.Location = new System.Drawing.Point(142, 24);
     this.btnLeftToggle.Name = "btnLeftToggle";
     this.btnLeftToggle.Size = new System.Drawing.Size(15, 391);
     this.btnLeftToggle.TabIndex = 5;
     this.btnLeftToggle.TabStop = false;
     this.btnLeftToggle.Text = ">";
     this.btnLeftToggle.UseVisualStyleBackColor = false;
     this.btnLeftToggle.Click += new System.EventHandler(this.btnLeftToggle_Click);
     //
     // btnRightToggle
     //
     this.btnRightToggle.Dock = System.Windows.Forms.DockStyle.Right;
     this.btnRightToggle.Location = new System.Drawing.Point(657, 24);
     this.btnRightToggle.Name = "btnRightToggle";
     this.btnRightToggle.Size = new System.Drawing.Size(15, 391);
     this.btnRightToggle.TabIndex = 6;
     this.btnRightToggle.TabStop = false;
     this.btnRightToggle.Text = "<";
     this.btnRightToggle.UseVisualStyleBackColor = false;
     this.btnRightToggle.Click += new System.EventHandler(this.btnRightToggle_Click);
     //
     // btnBottomToggle
     //
     this.btnBottomToggle.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.btnBottomToggle.Location = new System.Drawing.Point(157, 400);
     this.btnBottomToggle.Name = "btnBottomToggle";
     this.btnBottomToggle.Size = new System.Drawing.Size(500, 15);
     this.btnBottomToggle.TabIndex = 8;
     this.btnBottomToggle.TabStop = false;
     this.btnBottomToggle.UseVisualStyleBackColor = false;
     this.btnBottomToggle.Click += new System.EventHandler(this.btnBottomToggle_Click);
     //
     // spltLeft
     //
     this.spltLeft.BackColor = System.Drawing.SystemColors.Control;
     this.spltLeft.Location = new System.Drawing.Point(138, 24);
     this.spltLeft.Name = "spltLeft";
     this.spltLeft.Size = new System.Drawing.Size(4, 391);
     this.spltLeft.TabIndex = 9;
     this.spltLeft.TabStop = false;
     this.spltLeft.Visible = false;
     //
     // btnTopToggle
     //
     this.btnTopToggle.Dock = System.Windows.Forms.DockStyle.Top;
     this.btnTopToggle.Location = new System.Drawing.Point(157, 24);
     this.btnTopToggle.Name = "btnTopToggle";
     this.btnTopToggle.Size = new System.Drawing.Size(500, 15);
     this.btnTopToggle.TabIndex = 11;
     this.btnTopToggle.TabStop = false;
     this.btnTopToggle.UseVisualStyleBackColor = false;
     this.btnTopToggle.Click += new System.EventHandler(this.btnTopToggle_Click);
     //
     // menuStrip1
     //
     this.menuStrip1.BackColor = System.Drawing.SystemColors.Control;
     this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None;
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.fileToolStripMenuItem,
     this.editToolStripMenuItem,
     this.viewToolStripMenuItem1,
     this.toolsToolStripMenuItem,
     this.targetModelToolStripMenuItem,
     this.kinectToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(303, 24);
     this.menuStrip1.TabIndex = 13;
     this.menuStrip1.Text = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.newSceneToolStripMenuItem,
     this.openModelsToolStripMenuItem,
     this.openAnimationsToolStripMenuItem,
     this.openMovesetToolStripMenuItem});
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
     this.fileToolStripMenuItem.Text = "File";
     //
     // newSceneToolStripMenuItem
     //
     this.newSceneToolStripMenuItem.Name = "newSceneToolStripMenuItem";
     this.newSceneToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
     this.newSceneToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
     this.newSceneToolStripMenuItem.Text = "New Scene";
     this.newSceneToolStripMenuItem.Click += new System.EventHandler(this.newSceneToolStripMenuItem_Click);
     //
     // openModelsToolStripMenuItem
     //
     this.openModelsToolStripMenuItem.Name = "openModelsToolStripMenuItem";
     this.openModelsToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
     this.openModelsToolStripMenuItem.Text = "Load Models";
     this.openModelsToolStripMenuItem.Click += new System.EventHandler(this.openFileToolStripMenuItem_Click);
     //
     // openAnimationsToolStripMenuItem
     //
     this.openAnimationsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnOpenClose,
     this.saveToolStripMenuItem,
     this.saveAsToolStripMenuItem});
     this.openAnimationsToolStripMenuItem.Name = "openAnimationsToolStripMenuItem";
     this.openAnimationsToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
     this.openAnimationsToolStripMenuItem.Text = "Animations";
     //
     // btnOpenClose
     //
     this.btnOpenClose.Name = "btnOpenClose";
     this.btnOpenClose.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
     this.btnOpenClose.Size = new System.Drawing.Size(186, 22);
     this.btnOpenClose.Text = "Load";
     this.btnOpenClose.Click += new System.EventHandler(this.btnOpenClose_Click);
     //
     // saveToolStripMenuItem
     //
     this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
     this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
     this.saveToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
     this.saveToolStripMenuItem.Text = "Save ";
     this.saveToolStripMenuItem.Click += new System.EventHandler(this.btnSave_Click);
     //
     // saveAsToolStripMenuItem
     //
     this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
     this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
     | System.Windows.Forms.Keys.S)));
     this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
     this.saveAsToolStripMenuItem.Text = "Save As";
     this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.btnSaveAs_Click);
     //
     // openMovesetToolStripMenuItem
     //
     this.openMovesetToolStripMenuItem.Name = "openMovesetToolStripMenuItem";
     this.openMovesetToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
     this.openMovesetToolStripMenuItem.Text = "Load Moveset";
     this.openMovesetToolStripMenuItem.Visible = false;
     //
     // editToolStripMenuItem
     //
     this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnUndo,
     this.btnRedo,
     this.takeScreenshotToolStripMenuItem,
     this.modifyLightingToolStripMenuItem,
     this.settingsToolStripMenuItem,
     this.allSettingsToolStripMenuItem});
     this.editToolStripMenuItem.Name = "editToolStripMenuItem";
     this.editToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
     this.editToolStripMenuItem.Text = "Options";
     //
     // btnUndo
     //
     this.btnUndo.Enabled = false;
     this.btnUndo.Name = "btnUndo";
     this.btnUndo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
     this.btnUndo.Size = new System.Drawing.Size(187, 22);
     this.btnUndo.Text = "Undo";
     this.btnUndo.Click += new System.EventHandler(this.btnUndo_Click);
     //
     // btnRedo
     //
     this.btnRedo.Enabled = false;
     this.btnRedo.Name = "btnRedo";
     this.btnRedo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
     this.btnRedo.Size = new System.Drawing.Size(187, 22);
     this.btnRedo.Text = "Redo";
     this.btnRedo.Click += new System.EventHandler(this.btnRedo_Click);
     //
     // takeScreenshotToolStripMenuItem
     //
     this.takeScreenshotToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnExportToImgNoTransparency,
     this.btnExportToImgWithTransparency,
     this.btnExportToAnimatedGIF,
     this.saveLocationToolStripMenuItem,
     this.imageFormatToolStripMenuItem});
     this.takeScreenshotToolStripMenuItem.Name = "takeScreenshotToolStripMenuItem";
     this.takeScreenshotToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
     this.takeScreenshotToolStripMenuItem.Text = "Take Screenshot";
     //
     // btnExportToImgNoTransparency
     //
     this.btnExportToImgNoTransparency.Name = "btnExportToImgNoTransparency";
     this.btnExportToImgNoTransparency.ShortcutKeyDisplayString = "Ctrl+Shift+I";
     this.btnExportToImgNoTransparency.Size = new System.Drawing.Size(292, 22);
     this.btnExportToImgNoTransparency.Text = "With Background";
     this.btnExportToImgNoTransparency.Click += new System.EventHandler(this.btnExportToImgNoTransparency_Click);
     //
     // btnExportToImgWithTransparency
     //
     this.btnExportToImgWithTransparency.Name = "btnExportToImgWithTransparency";
     this.btnExportToImgWithTransparency.ShortcutKeyDisplayString = "Ctrl+Alt+I";
     this.btnExportToImgWithTransparency.Size = new System.Drawing.Size(292, 22);
     this.btnExportToImgWithTransparency.Text = "With Transparent Background";
     this.btnExportToImgWithTransparency.Click += new System.EventHandler(this.btnExportToImgWithTransparency_Click);
     //
     // btnExportToAnimatedGIF
     //
     this.btnExportToAnimatedGIF.Name = "btnExportToAnimatedGIF";
     this.btnExportToAnimatedGIF.Size = new System.Drawing.Size(292, 22);
     this.btnExportToAnimatedGIF.Text = "To Animated GIF";
     this.btnExportToAnimatedGIF.Click += new System.EventHandler(this.btnExportToAnimatedGIF_Click);
     //
     // saveLocationToolStripMenuItem
     //
     this.saveLocationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.ScreenCapBgLocText});
     this.saveLocationToolStripMenuItem.Name = "saveLocationToolStripMenuItem";
     this.saveLocationToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
     this.saveLocationToolStripMenuItem.Text = "Save Location";
     //
     // ScreenCapBgLocText
     //
     this.ScreenCapBgLocText.Name = "ScreenCapBgLocText";
     this.ScreenCapBgLocText.Size = new System.Drawing.Size(110, 22);
     this.ScreenCapBgLocText.Text = "<null>";
     this.ScreenCapBgLocText.Click += new System.EventHandler(this.ScreenCapBgLocText_Click);
     //
     // imageFormatToolStripMenuItem
     //
     this.imageFormatToolStripMenuItem.Name = "imageFormatToolStripMenuItem";
     this.imageFormatToolStripMenuItem.Size = new System.Drawing.Size(292, 22);
     this.imageFormatToolStripMenuItem.Text = "Image Format: PNG";
     this.imageFormatToolStripMenuItem.Click += new System.EventHandler(this.imageFormatToolStripMenuItem_Click);
     //
     // modifyLightingToolStripMenuItem
     //
     this.modifyLightingToolStripMenuItem.Name = "modifyLightingToolStripMenuItem";
     this.modifyLightingToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
     this.modifyLightingToolStripMenuItem.Text = "Environment Settings";
     this.modifyLightingToolStripMenuItem.Click += new System.EventHandler(this.modifyLightingToolStripMenuItem_Click);
     //
     // settingsToolStripMenuItem
     //
     this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.generateTangentsToolStripMenuItem,
     this.displayFrameCountDifferencesToolStripMenuItem,
     this.alwaysSyncFrameCountsToolStripMenuItem,
     this.syncAnimationsTogetherToolStripMenuItem,
     this.syncTexObjToolStripMenuItem,
     this.syncObjectsListToVIS0ToolStripMenuItem,
     this.disableBonesWhenPlayingToolStripMenuItem,
     this.chkDontRenderOffscreen,
     this.dontHighlightBonesAndVerticesToolStripMenuItem,
     this.enablePointAndLineSmoothingToolStripMenuItem,
     this.enableTextOverlaysToolStripMenuItem,
     this.syncStartendTangentsToolStripMenuItem,
     this.chkMaximize});
     this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
     this.settingsToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
     this.settingsToolStripMenuItem.Text = "Settings";
     //
     // generateTangentsToolStripMenuItem
     //
     this.generateTangentsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.chkGenTansCHR,
     this.chkGenTansSRT,
     this.chkGenTansSHP,
     this.chkGenTansLight,
     this.chkGenTansFog,
     this.chkGenTansCamera});
     this.generateTangentsToolStripMenuItem.Name = "generateTangentsToolStripMenuItem";
     this.generateTangentsToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.generateTangentsToolStripMenuItem.Text = "Generate tangents";
     //
     // chkGenTansCHR
     //
     this.chkGenTansCHR.Checked = true;
     this.chkGenTansCHR.CheckOnClick = true;
     this.chkGenTansCHR.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansCHR.Name = "chkGenTansCHR";
     this.chkGenTansCHR.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansCHR.Text = "CHR0";
     this.chkGenTansCHR.CheckedChanged += new System.EventHandler(this.cHR0ToolStripMenuItem1_CheckedChanged);
     //
     // chkGenTansSRT
     //
     this.chkGenTansSRT.Checked = true;
     this.chkGenTansSRT.CheckOnClick = true;
     this.chkGenTansSRT.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansSRT.Name = "chkGenTansSRT";
     this.chkGenTansSRT.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansSRT.Text = "SRT0";
     this.chkGenTansSRT.CheckedChanged += new System.EventHandler(this.sRT0ToolStripMenuItem1_CheckedChanged);
     //
     // chkGenTansSHP
     //
     this.chkGenTansSHP.Checked = true;
     this.chkGenTansSHP.CheckOnClick = true;
     this.chkGenTansSHP.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansSHP.Name = "chkGenTansSHP";
     this.chkGenTansSHP.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansSHP.Text = "SHP0";
     this.chkGenTansSHP.CheckedChanged += new System.EventHandler(this.sHP0ToolStripMenuItem1_CheckedChanged);
     //
     // chkGenTansLight
     //
     this.chkGenTansLight.Checked = true;
     this.chkGenTansLight.CheckOnClick = true;
     this.chkGenTansLight.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansLight.Name = "chkGenTansLight";
     this.chkGenTansLight.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansLight.Text = "SCN0 Light";
     this.chkGenTansLight.CheckedChanged += new System.EventHandler(this.sCN0LightToolStripMenuItem_CheckedChanged);
     //
     // chkGenTansFog
     //
     this.chkGenTansFog.Checked = true;
     this.chkGenTansFog.CheckOnClick = true;
     this.chkGenTansFog.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansFog.Name = "chkGenTansFog";
     this.chkGenTansFog.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansFog.Text = "SCN0 Fog";
     this.chkGenTansFog.CheckedChanged += new System.EventHandler(this.sCN0FogToolStripMenuItem_CheckedChanged);
     //
     // chkGenTansCamera
     //
     this.chkGenTansCamera.Checked = true;
     this.chkGenTansCamera.CheckOnClick = true;
     this.chkGenTansCamera.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkGenTansCamera.Name = "chkGenTansCamera";
     this.chkGenTansCamera.Size = new System.Drawing.Size(147, 22);
     this.chkGenTansCamera.Text = "SCN0 Camera";
     this.chkGenTansCamera.CheckedChanged += new System.EventHandler(this.sCN0CameraToolStripMenuItem_CheckedChanged);
     //
     // displayFrameCountDifferencesToolStripMenuItem
     //
     this.displayFrameCountDifferencesToolStripMenuItem.CheckOnClick = true;
     this.displayFrameCountDifferencesToolStripMenuItem.Enabled = false;
     this.displayFrameCountDifferencesToolStripMenuItem.Name = "displayFrameCountDifferencesToolStripMenuItem";
     this.displayFrameCountDifferencesToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.displayFrameCountDifferencesToolStripMenuItem.Text = "Warn if frame counts differ";
     this.displayFrameCountDifferencesToolStripMenuItem.Visible = false;
     //
     // alwaysSyncFrameCountsToolStripMenuItem
     //
     this.alwaysSyncFrameCountsToolStripMenuItem.CheckOnClick = true;
     this.alwaysSyncFrameCountsToolStripMenuItem.Enabled = false;
     this.alwaysSyncFrameCountsToolStripMenuItem.Name = "alwaysSyncFrameCountsToolStripMenuItem";
     this.alwaysSyncFrameCountsToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.alwaysSyncFrameCountsToolStripMenuItem.Text = "Always sync frame counts";
     this.alwaysSyncFrameCountsToolStripMenuItem.Visible = false;
     //
     // syncAnimationsTogetherToolStripMenuItem
     //
     this.syncAnimationsTogetherToolStripMenuItem.Checked = true;
     this.syncAnimationsTogetherToolStripMenuItem.CheckOnClick = true;
     this.syncAnimationsTogetherToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.syncAnimationsTogetherToolStripMenuItem.Name = "syncAnimationsTogetherToolStripMenuItem";
     this.syncAnimationsTogetherToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.syncAnimationsTogetherToolStripMenuItem.Text = "Retrieve corresponding animations";
     this.syncAnimationsTogetherToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncAnimationsTogetherToolStripMenuItem_CheckedChanged);
     //
     // syncTexObjToolStripMenuItem
     //
     this.syncTexObjToolStripMenuItem.CheckOnClick = true;
     this.syncTexObjToolStripMenuItem.Name = "syncTexObjToolStripMenuItem";
     this.syncTexObjToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.syncTexObjToolStripMenuItem.Text = "Sync texture list with object list";
     this.syncTexObjToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncTexObjToolStripMenuItem_CheckedChanged);
     //
     // syncObjectsListToVIS0ToolStripMenuItem
     //
     this.syncObjectsListToVIS0ToolStripMenuItem.CheckOnClick = true;
     this.syncObjectsListToVIS0ToolStripMenuItem.Name = "syncObjectsListToVIS0ToolStripMenuItem";
     this.syncObjectsListToVIS0ToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.syncObjectsListToVIS0ToolStripMenuItem.Text = "Sync objects list edits to VIS0";
     this.syncObjectsListToVIS0ToolStripMenuItem.CheckedChanged += new System.EventHandler(this.syncObjectsListToVIS0ToolStripMenuItem_CheckedChanged);
     //
     // disableBonesWhenPlayingToolStripMenuItem
     //
     this.disableBonesWhenPlayingToolStripMenuItem.Checked = true;
     this.disableBonesWhenPlayingToolStripMenuItem.CheckOnClick = true;
     this.disableBonesWhenPlayingToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.disableBonesWhenPlayingToolStripMenuItem.Name = "disableBonesWhenPlayingToolStripMenuItem";
     this.disableBonesWhenPlayingToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.disableBonesWhenPlayingToolStripMenuItem.Text = "Disable bones when playing";
     //
     // chkDontRenderOffscreen
     //
     this.chkDontRenderOffscreen.Enabled = false;
     this.chkDontRenderOffscreen.Name = "chkDontRenderOffscreen";
     this.chkDontRenderOffscreen.Size = new System.Drawing.Size(258, 22);
     this.chkDontRenderOffscreen.Text = "Don\'t render offscreen objects";
     this.chkDontRenderOffscreen.Visible = false;
     //
     // dontHighlightBonesAndVerticesToolStripMenuItem
     //
     this.dontHighlightBonesAndVerticesToolStripMenuItem.CheckOnClick = true;
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Name = "dontHighlightBonesAndVerticesToolStripMenuItem";
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.dontHighlightBonesAndVerticesToolStripMenuItem.Text = "Don\'t highlight bones and vertices";
     //
     // enablePointAndLineSmoothingToolStripMenuItem
     //
     this.enablePointAndLineSmoothingToolStripMenuItem.CheckOnClick = true;
     this.enablePointAndLineSmoothingToolStripMenuItem.Name = "enablePointAndLineSmoothingToolStripMenuItem";
     this.enablePointAndLineSmoothingToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.enablePointAndLineSmoothingToolStripMenuItem.Text = "Enable point and line smoothing";
     this.enablePointAndLineSmoothingToolStripMenuItem.CheckedChanged += new System.EventHandler(this.enablePointAndLineSmoothingToolStripMenuItem_CheckedChanged);
     //
     // enableTextOverlaysToolStripMenuItem
     //
     this.enableTextOverlaysToolStripMenuItem.CheckOnClick = true;
     this.enableTextOverlaysToolStripMenuItem.Name = "enableTextOverlaysToolStripMenuItem";
     this.enableTextOverlaysToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.enableTextOverlaysToolStripMenuItem.Text = "Enable text overlays";
     this.enableTextOverlaysToolStripMenuItem.CheckedChanged += new System.EventHandler(this.enableTextOverlaysToolStripMenuItem_CheckedChanged);
     //
     // syncStartendTangentsToolStripMenuItem
     //
     this.syncStartendTangentsToolStripMenuItem.CheckOnClick = true;
     this.syncStartendTangentsToolStripMenuItem.Enabled = false;
     this.syncStartendTangentsToolStripMenuItem.Name = "syncStartendTangentsToolStripMenuItem";
     this.syncStartendTangentsToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
     this.syncStartendTangentsToolStripMenuItem.Text = "Sync first && last frame tangents";
     this.syncStartendTangentsToolStripMenuItem.Visible = false;
     //
     // chkMaximize
     //
     this.chkMaximize.CheckOnClick = true;
     this.chkMaximize.Name = "chkMaximize";
     this.chkMaximize.Size = new System.Drawing.Size(258, 22);
     this.chkMaximize.Text = "Maximize upon opening";
     //
     // allSettingsToolStripMenuItem
     //
     this.allSettingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.resetToolStripMenuItem,
     this.exportToolStripMenuItem,
     this.importToolStripMenuItem});
     this.allSettingsToolStripMenuItem.Name = "allSettingsToolStripMenuItem";
     this.allSettingsToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
     this.allSettingsToolStripMenuItem.Text = "All Settings";
     //
     // resetToolStripMenuItem
     //
     this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
     this.resetToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
     this.resetToolStripMenuItem.Text = "Reset";
     this.resetToolStripMenuItem.Click += new System.EventHandler(this.clearSavedSettingsToolStripMenuItem_Click);
     //
     // exportToolStripMenuItem
     //
     this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
     this.exportToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
     this.exportToolStripMenuItem.Text = "Export";
     this.exportToolStripMenuItem.Click += new System.EventHandler(this.exportToolStripMenuItem_Click);
     //
     // importToolStripMenuItem
     //
     this.importToolStripMenuItem.Name = "importToolStripMenuItem";
     this.importToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
     this.importToolStripMenuItem.Text = "Import";
     this.importToolStripMenuItem.Click += new System.EventHandler(this.importToolStripMenuItem_Click);
     //
     // viewToolStripMenuItem1
     //
     this.viewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.editorsToolStripMenuItem,
     this.backColorToolStripMenuItem,
     this.modelToolStripMenuItem,
     this.fileTypesToolStripMenuItem,
     this.helpToolStripMenuItem});
     this.viewToolStripMenuItem1.Name = "viewToolStripMenuItem1";
     this.viewToolStripMenuItem1.Size = new System.Drawing.Size(44, 20);
     this.viewToolStripMenuItem1.Text = "View";
     //
     // editorsToolStripMenuItem
     //
     this.editorsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.showTop,
     this.showLeft,
     this.showBottom,
     this.showRight});
     this.editorsToolStripMenuItem.Name = "editorsToolStripMenuItem";
     this.editorsToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     this.editorsToolStripMenuItem.Text = "Panels";
     //
     // showTop
     //
     this.showTop.CheckOnClick = true;
     this.showTop.Name = "showTop";
     this.showTop.Size = new System.Drawing.Size(162, 22);
     this.showTop.Text = "Menu Bar";
     this.showTop.CheckedChanged += new System.EventHandler(this.showTop_CheckedChanged);
     //
     // showLeft
     //
     this.showLeft.CheckOnClick = true;
     this.showLeft.Name = "showLeft";
     this.showLeft.Size = new System.Drawing.Size(162, 22);
     this.showLeft.Text = "Left Panel";
     this.showLeft.CheckedChanged += new System.EventHandler(this.showLeft_CheckedChanged);
     //
     // showBottom
     //
     this.showBottom.CheckOnClick = true;
     this.showBottom.Name = "showBottom";
     this.showBottom.Size = new System.Drawing.Size(162, 22);
     this.showBottom.Text = "Animation Panel";
     this.showBottom.CheckedChanged += new System.EventHandler(this.showBottom_CheckedChanged);
     //
     // showRight
     //
     this.showRight.CheckOnClick = true;
     this.showRight.Name = "showRight";
     this.showRight.Size = new System.Drawing.Size(162, 22);
     this.showRight.Text = "Right Panel";
     this.showRight.CheckedChanged += new System.EventHandler(this.showRight_CheckedChanged);
     //
     // backColorToolStripMenuItem
     //
     this.backColorToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.backgroundToolStripMenuItem,
     this.editControlToolStripMenuItem,
     this.projectionToolStripMenuItem,
     this.toggleFloor,
     this.resetCameraToolStripMenuItem,
     this.showCameraCoordinatesToolStripMenuItem,
     this.detachViewerToolStripMenuItem});
     this.backColorToolStripMenuItem.Name = "backColorToolStripMenuItem";
     this.backColorToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     this.backColorToolStripMenuItem.Text = "Viewer";
     //
     // backgroundToolStripMenuItem
     //
     this.backgroundToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.setColorToolStripMenuItem,
     this.loadImageToolStripMenuItem,
     this.displaySettingToolStripMenuItem});
     this.backgroundToolStripMenuItem.Name = "backgroundToolStripMenuItem";
     this.backgroundToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.backgroundToolStripMenuItem.Text = "Background";
     //
     // setColorToolStripMenuItem
     //
     this.setColorToolStripMenuItem.Name = "setColorToolStripMenuItem";
     this.setColorToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.setColorToolStripMenuItem.Text = "Set Color";
     this.setColorToolStripMenuItem.Click += new System.EventHandler(this.setColorToolStripMenuItem_Click);
     //
     // loadImageToolStripMenuItem
     //
     this.loadImageToolStripMenuItem.Name = "loadImageToolStripMenuItem";
     this.loadImageToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.loadImageToolStripMenuItem.Text = "Load Image";
     this.loadImageToolStripMenuItem.Click += new System.EventHandler(this.loadImageToolStripMenuItem_Click);
     //
     // displaySettingToolStripMenuItem
     //
     this.displaySettingToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.stretchToolStripMenuItem1,
     this.centerToolStripMenuItem1,
     this.resizeToolStripMenuItem1});
     this.displaySettingToolStripMenuItem.Name = "displaySettingToolStripMenuItem";
     this.displaySettingToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.displaySettingToolStripMenuItem.Text = "Display Setting";
     //
     // stretchToolStripMenuItem1
     //
     this.stretchToolStripMenuItem1.Checked = true;
     this.stretchToolStripMenuItem1.CheckOnClick = true;
     this.stretchToolStripMenuItem1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.stretchToolStripMenuItem1.Name = "stretchToolStripMenuItem1";
     this.stretchToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.stretchToolStripMenuItem1.Text = "Stretch";
     this.stretchToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.stretchToolStripMenuItem_CheckedChanged);
     //
     // centerToolStripMenuItem1
     //
     this.centerToolStripMenuItem1.CheckOnClick = true;
     this.centerToolStripMenuItem1.Name = "centerToolStripMenuItem1";
     this.centerToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.centerToolStripMenuItem1.Text = "Center";
     this.centerToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.centerToolStripMenuItem_CheckedChanged);
     //
     // resizeToolStripMenuItem1
     //
     this.resizeToolStripMenuItem1.CheckOnClick = true;
     this.resizeToolStripMenuItem1.Name = "resizeToolStripMenuItem1";
     this.resizeToolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.resizeToolStripMenuItem1.Text = "Resize";
     this.resizeToolStripMenuItem1.CheckedChanged += new System.EventHandler(this.resizeToolStripMenuItem_CheckedChanged);
     //
     // editControlToolStripMenuItem
     //
     this.editControlToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.scaleToolStripMenuItem,
     this.rotationToolStripMenuItem,
     this.translationToolStripMenuItem});
     this.editControlToolStripMenuItem.Name = "editControlToolStripMenuItem";
     this.editControlToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.editControlToolStripMenuItem.Text = "Bone Control";
     //
     // scaleToolStripMenuItem
     //
     this.scaleToolStripMenuItem.CheckOnClick = true;
     this.scaleToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.SparentLocalToolStripMenuItem,
     this.SworldToolStripMenuItem});
     this.scaleToolStripMenuItem.Name = "scaleToolStripMenuItem";
     this.scaleToolStripMenuItem.ShortcutKeyDisplayString = "E Key";
     this.scaleToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.scaleToolStripMenuItem.Text = "Scale";
     this.scaleToolStripMenuItem.CheckedChanged += new System.EventHandler(this.scaleToolStripMenuItem_CheckedChanged);
     //
     // SparentLocalToolStripMenuItem
     //
     this.SparentLocalToolStripMenuItem.CheckOnClick = true;
     this.SparentLocalToolStripMenuItem.Enabled = false;
     this.SparentLocalToolStripMenuItem.Name = "SparentLocalToolStripMenuItem";
     this.SparentLocalToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.SparentLocalToolStripMenuItem.Text = "Parent Local";
     this.SparentLocalToolStripMenuItem.Visible = false;
     this.SparentLocalToolStripMenuItem.CheckedChanged += new System.EventHandler(this.SparentLocalToolStripMenuItem_CheckedChanged);
     //
     // SworldToolStripMenuItem
     //
     this.SworldToolStripMenuItem.Checked = true;
     this.SworldToolStripMenuItem.CheckOnClick = true;
     this.SworldToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.SworldToolStripMenuItem.Enabled = false;
     this.SworldToolStripMenuItem.Name = "SworldToolStripMenuItem";
     this.SworldToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.SworldToolStripMenuItem.Text = "World";
     this.SworldToolStripMenuItem.Visible = false;
     this.SworldToolStripMenuItem.CheckedChanged += new System.EventHandler(this.SworldToolStripMenuItem_CheckedChanged);
     //
     // rotationToolStripMenuItem
     //
     this.rotationToolStripMenuItem.Checked = true;
     this.rotationToolStripMenuItem.CheckOnClick = true;
     this.rotationToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.rotationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.RparentLocalToolStripMenuItem,
     this.RworldToolStripMenuItem});
     this.rotationToolStripMenuItem.Name = "rotationToolStripMenuItem";
     this.rotationToolStripMenuItem.ShortcutKeyDisplayString = "R Key";
     this.rotationToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.rotationToolStripMenuItem.Text = "Rotation";
     this.rotationToolStripMenuItem.CheckedChanged += new System.EventHandler(this.rotationToolStripMenuItem_CheckedChanged);
     //
     // RparentLocalToolStripMenuItem
     //
     this.RparentLocalToolStripMenuItem.Checked = true;
     this.RparentLocalToolStripMenuItem.CheckOnClick = true;
     this.RparentLocalToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.RparentLocalToolStripMenuItem.Enabled = false;
     this.RparentLocalToolStripMenuItem.Name = "RparentLocalToolStripMenuItem";
     this.RparentLocalToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.RparentLocalToolStripMenuItem.Text = "Parent Local";
     this.RparentLocalToolStripMenuItem.Visible = false;
     this.RparentLocalToolStripMenuItem.CheckedChanged += new System.EventHandler(this.RparentLocalToolStripMenuItem_CheckedChanged);
     //
     // RworldToolStripMenuItem
     //
     this.RworldToolStripMenuItem.CheckOnClick = true;
     this.RworldToolStripMenuItem.Enabled = false;
     this.RworldToolStripMenuItem.Name = "RworldToolStripMenuItem";
     this.RworldToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.RworldToolStripMenuItem.Text = "World";
     this.RworldToolStripMenuItem.Visible = false;
     this.RworldToolStripMenuItem.CheckedChanged += new System.EventHandler(this.RworldToolStripMenuItem_CheckedChanged);
     //
     // translationToolStripMenuItem
     //
     this.translationToolStripMenuItem.CheckOnClick = true;
     this.translationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.TparentLocalToolStripMenuItem,
     this.TworldToolStripMenuItem});
     this.translationToolStripMenuItem.Name = "translationToolStripMenuItem";
     this.translationToolStripMenuItem.ShortcutKeyDisplayString = "T Key";
     this.translationToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.translationToolStripMenuItem.Text = "Translation";
     this.translationToolStripMenuItem.CheckedChanged += new System.EventHandler(this.translationToolStripMenuItem_CheckedChanged);
     //
     // TparentLocalToolStripMenuItem
     //
     this.TparentLocalToolStripMenuItem.CheckOnClick = true;
     this.TparentLocalToolStripMenuItem.Enabled = false;
     this.TparentLocalToolStripMenuItem.Name = "TparentLocalToolStripMenuItem";
     this.TparentLocalToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.TparentLocalToolStripMenuItem.Text = "Parent Local";
     this.TparentLocalToolStripMenuItem.Visible = false;
     this.TparentLocalToolStripMenuItem.CheckedChanged += new System.EventHandler(this.TparentLocalToolStripMenuItem_CheckedChanged);
     //
     // TworldToolStripMenuItem
     //
     this.TworldToolStripMenuItem.Checked = true;
     this.TworldToolStripMenuItem.CheckOnClick = true;
     this.TworldToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.TworldToolStripMenuItem.Enabled = false;
     this.TworldToolStripMenuItem.Name = "TworldToolStripMenuItem";
     this.TworldToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
     this.TworldToolStripMenuItem.Text = "World";
     this.TworldToolStripMenuItem.Visible = false;
     this.TworldToolStripMenuItem.CheckedChanged += new System.EventHandler(this.TworldToolStripMenuItem_CheckedChanged);
     //
     // projectionToolStripMenuItem
     //
     this.projectionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.perspectiveToolStripMenuItem,
     this.orthographicToolStripMenuItem});
     this.projectionToolStripMenuItem.Enabled = false;
     this.projectionToolStripMenuItem.Name = "projectionToolStripMenuItem";
     this.projectionToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.projectionToolStripMenuItem.Text = "Projection";
     this.projectionToolStripMenuItem.Visible = false;
     //
     // perspectiveToolStripMenuItem
     //
     this.perspectiveToolStripMenuItem.Checked = true;
     this.perspectiveToolStripMenuItem.CheckOnClick = true;
     this.perspectiveToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.perspectiveToolStripMenuItem.Name = "perspectiveToolStripMenuItem";
     this.perspectiveToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
     this.perspectiveToolStripMenuItem.Text = "Perspective";
     this.perspectiveToolStripMenuItem.CheckedChanged += new System.EventHandler(this.perspectiveToolStripMenuItem_CheckedChanged);
     //
     // orthographicToolStripMenuItem
     //
     this.orthographicToolStripMenuItem.CheckOnClick = true;
     this.orthographicToolStripMenuItem.Name = "orthographicToolStripMenuItem";
     this.orthographicToolStripMenuItem.Size = new System.Drawing.Size(145, 22);
     this.orthographicToolStripMenuItem.Text = "Orthographic";
     this.orthographicToolStripMenuItem.CheckedChanged += new System.EventHandler(this.orthographicToolStripMenuItem_CheckedChanged);
     //
     // toggleFloor
     //
     this.toggleFloor.Name = "toggleFloor";
     this.toggleFloor.ShortcutKeyDisplayString = "F Key";
     this.toggleFloor.Size = new System.Drawing.Size(214, 22);
     this.toggleFloor.Text = "Floor";
     this.toggleFloor.Click += new System.EventHandler(this.toggleFloor_Click);
     //
     // resetCameraToolStripMenuItem
     //
     this.resetCameraToolStripMenuItem.Name = "resetCameraToolStripMenuItem";
     this.resetCameraToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+R";
     this.resetCameraToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.resetCameraToolStripMenuItem.Text = "Reset Camera";
     this.resetCameraToolStripMenuItem.Click += new System.EventHandler(this.resetCameraToolStripMenuItem_Click_1);
     //
     // showCameraCoordinatesToolStripMenuItem
     //
     this.showCameraCoordinatesToolStripMenuItem.CheckOnClick = true;
     this.showCameraCoordinatesToolStripMenuItem.Name = "showCameraCoordinatesToolStripMenuItem";
     this.showCameraCoordinatesToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.showCameraCoordinatesToolStripMenuItem.Text = "Show Camera Coordinates";
     this.showCameraCoordinatesToolStripMenuItem.CheckedChanged += new System.EventHandler(this.showCameraCoordinatesToolStripMenuItem_CheckedChanged);
     //
     // detachViewerToolStripMenuItem
     //
     this.detachViewerToolStripMenuItem.Name = "detachViewerToolStripMenuItem";
     this.detachViewerToolStripMenuItem.Size = new System.Drawing.Size(214, 22);
     this.detachViewerToolStripMenuItem.Text = "Detach";
     this.detachViewerToolStripMenuItem.Click += new System.EventHandler(this.detachViewerToolStripMenuItem_Click);
     //
     // modelToolStripMenuItem
     //
     this.modelToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toggleBones,
     this.togglePolygons,
     this.wireframeToolStripMenuItem,
     this.toggleVertices,
     this.toggleNormals,
     this.boundingBoxToolStripMenuItem});
     this.modelToolStripMenuItem.Name = "modelToolStripMenuItem";
     this.modelToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     this.modelToolStripMenuItem.Text = "Model";
     //
     // toggleBones
     //
     this.toggleBones.Checked = true;
     this.toggleBones.CheckState = System.Windows.Forms.CheckState.Checked;
     this.toggleBones.Name = "toggleBones";
     this.toggleBones.ShortcutKeyDisplayString = "B Key";
     this.toggleBones.Size = new System.Drawing.Size(159, 22);
     this.toggleBones.Text = "Bones";
     this.toggleBones.Click += new System.EventHandler(this.toggleBones_Click);
     //
     // togglePolygons
     //
     this.togglePolygons.Checked = true;
     this.togglePolygons.CheckState = System.Windows.Forms.CheckState.Checked;
     this.togglePolygons.Name = "togglePolygons";
     this.togglePolygons.ShortcutKeyDisplayString = "P Key";
     this.togglePolygons.Size = new System.Drawing.Size(159, 22);
     this.togglePolygons.Text = "Polygons";
     this.togglePolygons.Click += new System.EventHandler(this.togglePolygons_Click);
     //
     // wireframeToolStripMenuItem
     //
     this.wireframeToolStripMenuItem.Name = "wireframeToolStripMenuItem";
     this.wireframeToolStripMenuItem.ShortcutKeyDisplayString = "";
     this.wireframeToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
     this.wireframeToolStripMenuItem.Text = "Wireframe";
     this.wireframeToolStripMenuItem.Click += new System.EventHandler(this.wireframeToolStripMenuItem_Click);
     //
     // toggleVertices
     //
     this.toggleVertices.Name = "toggleVertices";
     this.toggleVertices.ShortcutKeyDisplayString = "V Key";
     this.toggleVertices.Size = new System.Drawing.Size(159, 22);
     this.toggleVertices.Text = "Vertices";
     this.toggleVertices.Click += new System.EventHandler(this.toggleVertices_Click);
     //
     // toggleNormals
     //
     this.toggleNormals.Name = "toggleNormals";
     this.toggleNormals.Size = new System.Drawing.Size(159, 22);
     this.toggleNormals.Text = "Normals";
     this.toggleNormals.Click += new System.EventHandler(this.toggleNormals_Click);
     //
     // boundingBoxToolStripMenuItem
     //
     this.boundingBoxToolStripMenuItem.Name = "boundingBoxToolStripMenuItem";
     this.boundingBoxToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
     this.boundingBoxToolStripMenuItem.Text = "Bounding Box";
     this.boundingBoxToolStripMenuItem.Click += new System.EventHandler(this.boundingBoxToolStripMenuItem_Click);
     //
     // fileTypesToolStripMenuItem
     //
     this.fileTypesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.playToolStripMenuItem,
     this.linearInterpolationToolStripMenuItem,
     this.sCN0ToolStripMenuItem});
     this.fileTypesToolStripMenuItem.Name = "fileTypesToolStripMenuItem";
     this.fileTypesToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     this.fileTypesToolStripMenuItem.Text = "Animations";
     //
     // playToolStripMenuItem
     //
     this.playToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.playCHR0ToolStripMenuItem,
     this.playSRT0ToolStripMenuItem,
     this.playSHP0ToolStripMenuItem,
     this.playPAT0ToolStripMenuItem,
     this.playVIS0ToolStripMenuItem,
     this.playCLR0ToolStripMenuItem});
     this.playToolStripMenuItem.Name = "playToolStripMenuItem";
     this.playToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.playToolStripMenuItem.Text = "Play";
     //
     // playCHR0ToolStripMenuItem
     //
     this.playCHR0ToolStripMenuItem.Checked = true;
     this.playCHR0ToolStripMenuItem.CheckOnClick = true;
     this.playCHR0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playCHR0ToolStripMenuItem.Name = "playCHR0ToolStripMenuItem";
     this.playCHR0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playCHR0ToolStripMenuItem.Text = "CHR0";
     //
     // playSRT0ToolStripMenuItem
     //
     this.playSRT0ToolStripMenuItem.Checked = true;
     this.playSRT0ToolStripMenuItem.CheckOnClick = true;
     this.playSRT0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playSRT0ToolStripMenuItem.Name = "playSRT0ToolStripMenuItem";
     this.playSRT0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playSRT0ToolStripMenuItem.Text = "SRT0";
     //
     // playSHP0ToolStripMenuItem
     //
     this.playSHP0ToolStripMenuItem.Checked = true;
     this.playSHP0ToolStripMenuItem.CheckOnClick = true;
     this.playSHP0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playSHP0ToolStripMenuItem.Name = "playSHP0ToolStripMenuItem";
     this.playSHP0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playSHP0ToolStripMenuItem.Text = "SHP0";
     //
     // playPAT0ToolStripMenuItem
     //
     this.playPAT0ToolStripMenuItem.Checked = true;
     this.playPAT0ToolStripMenuItem.CheckOnClick = true;
     this.playPAT0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playPAT0ToolStripMenuItem.Name = "playPAT0ToolStripMenuItem";
     this.playPAT0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playPAT0ToolStripMenuItem.Text = "PAT0";
     //
     // playVIS0ToolStripMenuItem
     //
     this.playVIS0ToolStripMenuItem.Checked = true;
     this.playVIS0ToolStripMenuItem.CheckOnClick = true;
     this.playVIS0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playVIS0ToolStripMenuItem.Name = "playVIS0ToolStripMenuItem";
     this.playVIS0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playVIS0ToolStripMenuItem.Text = "VIS0";
     //
     // playCLR0ToolStripMenuItem
     //
     this.playCLR0ToolStripMenuItem.Checked = true;
     this.playCLR0ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
     this.playCLR0ToolStripMenuItem.Name = "playCLR0ToolStripMenuItem";
     this.playCLR0ToolStripMenuItem.Size = new System.Drawing.Size(104, 22);
     this.playCLR0ToolStripMenuItem.Text = "CLR0";
     //
     // linearInterpolationToolStripMenuItem
     //
     this.linearInterpolationToolStripMenuItem.CheckOnClick = true;
     this.linearInterpolationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.chkLinearCHR,
     this.chkLinearSRT,
     this.chkLinearSHP,
     this.chkLinearLight,
     this.chkLinearFog,
     this.chkLinearCamera});
     this.linearInterpolationToolStripMenuItem.Name = "linearInterpolationToolStripMenuItem";
     this.linearInterpolationToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.linearInterpolationToolStripMenuItem.Text = "Linear Interpolation";
     //
     // chkLinearCHR
     //
     this.chkLinearCHR.CheckOnClick = true;
     this.chkLinearCHR.Name = "chkLinearCHR";
     this.chkLinearCHR.Size = new System.Drawing.Size(147, 22);
     this.chkLinearCHR.Text = "CHR0";
     this.chkLinearCHR.CheckedChanged += new System.EventHandler(this.cHR0ToolStripMenuItem_CheckedChanged);
     //
     // chkLinearSRT
     //
     this.chkLinearSRT.CheckOnClick = true;
     this.chkLinearSRT.Name = "chkLinearSRT";
     this.chkLinearSRT.Size = new System.Drawing.Size(147, 22);
     this.chkLinearSRT.Text = "SRT0";
     this.chkLinearSRT.CheckedChanged += new System.EventHandler(this.sRT0ToolStripMenuItem_CheckedChanged);
     //
     // chkLinearSHP
     //
     this.chkLinearSHP.CheckOnClick = true;
     this.chkLinearSHP.Name = "chkLinearSHP";
     this.chkLinearSHP.Size = new System.Drawing.Size(147, 22);
     this.chkLinearSHP.Text = "SHP0";
     this.chkLinearSHP.CheckedChanged += new System.EventHandler(this.sHP0ToolStripMenuItem_CheckedChanged);
     //
     // chkLinearLight
     //
     this.chkLinearLight.Name = "chkLinearLight";
     this.chkLinearLight.Size = new System.Drawing.Size(147, 22);
     this.chkLinearLight.Text = "SCN0 Light";
     this.chkLinearLight.CheckedChanged += new System.EventHandler(this.sCN0LightsToolStripMenuItem_CheckedChanged);
     //
     // chkLinearFog
     //
     this.chkLinearFog.Name = "chkLinearFog";
     this.chkLinearFog.Size = new System.Drawing.Size(147, 22);
     this.chkLinearFog.Text = "SCN0 Fog";
     this.chkLinearFog.CheckedChanged += new System.EventHandler(this.sCN0FogToolStripMenuItem1_CheckedChanged);
     //
     // chkLinearCamera
     //
     this.chkLinearCamera.Name = "chkLinearCamera";
     this.chkLinearCamera.Size = new System.Drawing.Size(147, 22);
     this.chkLinearCamera.Text = "SCN0 Camera";
     this.chkLinearCamera.CheckedChanged += new System.EventHandler(this.sCN0CameraToolStripMenuItem1_CheckedChanged);
     //
     // sCN0ToolStripMenuItem
     //
     this.sCN0ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.displayAmbienceToolStripMenuItem,
     this.displayLightsToolStripMenuItem,
     this.displayFogToolStripMenuItem,
     this.displayCameraToolStripMenuItem});
     this.sCN0ToolStripMenuItem.Name = "sCN0ToolStripMenuItem";
     this.sCN0ToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.sCN0ToolStripMenuItem.Text = "SCN0";
     //
     // displayAmbienceToolStripMenuItem
     //
     this.displayAmbienceToolStripMenuItem.Name = "displayAmbienceToolStripMenuItem";
     this.displayAmbienceToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayAmbienceToolStripMenuItem.Text = "Display Ambience";
     this.displayAmbienceToolStripMenuItem.Visible = false;
     //
     // displayLightsToolStripMenuItem
     //
     this.displayLightsToolStripMenuItem.Name = "displayLightsToolStripMenuItem";
     this.displayLightsToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayLightsToolStripMenuItem.Text = "Display Light";
     this.displayLightsToolStripMenuItem.Visible = false;
     //
     // displayFogToolStripMenuItem
     //
     this.displayFogToolStripMenuItem.Name = "displayFogToolStripMenuItem";
     this.displayFogToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayFogToolStripMenuItem.Text = "Display Fog";
     this.displayFogToolStripMenuItem.Visible = false;
     //
     // displayCameraToolStripMenuItem
     //
     this.displayCameraToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.displayToolStripMenuItem,
     this.stPersonToolStripMenuItem});
     this.displayCameraToolStripMenuItem.Name = "displayCameraToolStripMenuItem";
     this.displayCameraToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
     this.displayCameraToolStripMenuItem.Text = "Camera";
     //
     // displayToolStripMenuItem
     //
     this.displayToolStripMenuItem.Name = "displayToolStripMenuItem";
     this.displayToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.displayToolStripMenuItem.Text = "Display";
     this.displayToolStripMenuItem.Visible = false;
     //
     // stPersonToolStripMenuItem
     //
     this.stPersonToolStripMenuItem.CheckOnClick = true;
     this.stPersonToolStripMenuItem.Name = "stPersonToolStripMenuItem";
     this.stPersonToolStripMenuItem.Size = new System.Drawing.Size(128, 22);
     this.stPersonToolStripMenuItem.Text = "1st Person";
     this.stPersonToolStripMenuItem.CheckedChanged += new System.EventHandler(this.stPersonToolStripMenuItem_CheckedChanged);
     //
     // helpToolStripMenuItem
     //
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     this.helpToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     this.helpToolStripMenuItem.Text = "Help";
     this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click);
     //
     // toolsToolStripMenuItem
     //
     this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.interpolationEditorToolStripMenuItem,
     this.selectedAnimationToolStripMenuItem});
     this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
     this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
     this.toolsToolStripMenuItem.Text = "Tools";
     //
     // interpolationEditorToolStripMenuItem
     //
     this.interpolationEditorToolStripMenuItem.Name = "interpolationEditorToolStripMenuItem";
     this.interpolationEditorToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.interpolationEditorToolStripMenuItem.Text = "Interpolation Editor";
     this.interpolationEditorToolStripMenuItem.Click += new System.EventHandler(this.interpolationEditorToolStripMenuItem_Click);
     //
     // selectedAnimationToolStripMenuItem
     //
     this.selectedAnimationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.portToolStripMenuItem,
     this.mergeToolStripMenuItem,
     this.appendToolStripMenuItem,
     this.resizeToolStripMenuItem,
     this.interpolationToolStripMenuItem});
     this.selectedAnimationToolStripMenuItem.Enabled = false;
     this.selectedAnimationToolStripMenuItem.Name = "selectedAnimationToolStripMenuItem";
     this.selectedAnimationToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
     this.selectedAnimationToolStripMenuItem.Text = "Selected Animation";
     //
     // portToolStripMenuItem
     //
     this.portToolStripMenuItem.Enabled = false;
     this.portToolStripMenuItem.Name = "portToolStripMenuItem";
     this.portToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
     this.portToolStripMenuItem.Text = "Port";
     this.portToolStripMenuItem.Click += new System.EventHandler(this.portToolStripMenuItem_Click);
     //
     // mergeToolStripMenuItem
     //
     this.mergeToolStripMenuItem.Enabled = false;
     this.mergeToolStripMenuItem.Name = "mergeToolStripMenuItem";
     this.mergeToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
     this.mergeToolStripMenuItem.Text = "Merge";
     this.mergeToolStripMenuItem.Click += new System.EventHandler(this.mergeToolStripMenuItem_Click);
     //
     // appendToolStripMenuItem
     //
     this.appendToolStripMenuItem.Enabled = false;
     this.appendToolStripMenuItem.Name = "appendToolStripMenuItem";
     this.appendToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
     this.appendToolStripMenuItem.Text = "Append";
     this.appendToolStripMenuItem.Click += new System.EventHandler(this.appendToolStripMenuItem_Click);
     //
     // resizeToolStripMenuItem
     //
     this.resizeToolStripMenuItem.Enabled = false;
     this.resizeToolStripMenuItem.Name = "resizeToolStripMenuItem";
     this.resizeToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
     this.resizeToolStripMenuItem.Text = "Resize";
     this.resizeToolStripMenuItem.Click += new System.EventHandler(this.resizeToolStripMenuItem_Click);
     //
     // interpolationToolStripMenuItem
     //
     this.interpolationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.averageAllStartEndTangentsToolStripMenuItem,
     this.averageboneStartendTangentsToolStripMenuItem});
     this.interpolationToolStripMenuItem.Name = "interpolationToolStripMenuItem";
     this.interpolationToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
     this.interpolationToolStripMenuItem.Text = "Interpolation";
     //
     // averageAllStartEndTangentsToolStripMenuItem
     //
     this.averageAllStartEndTangentsToolStripMenuItem.Name = "averageAllStartEndTangentsToolStripMenuItem";
     this.averageAllStartEndTangentsToolStripMenuItem.Size = new System.Drawing.Size(255, 22);
     this.averageAllStartEndTangentsToolStripMenuItem.Text = "Average all start/end keyframes";
     this.averageAllStartEndTangentsToolStripMenuItem.Click += new System.EventHandler(this.averageAllStartEndTangentsToolStripMenuItem_Click);
     //
     // averageboneStartendTangentsToolStripMenuItem
     //
     this.averageboneStartendTangentsToolStripMenuItem.Enabled = false;
     this.averageboneStartendTangentsToolStripMenuItem.Name = "averageboneStartendTangentsToolStripMenuItem";
     this.averageboneStartendTangentsToolStripMenuItem.Size = new System.Drawing.Size(255, 22);
     this.averageboneStartendTangentsToolStripMenuItem.Text = "Average entry start/end keyframes";
     this.averageboneStartendTangentsToolStripMenuItem.Click += new System.EventHandler(this.averageboneStartendTangentsToolStripMenuItem_Click);
     //
     // targetModelToolStripMenuItem
     //
     this.targetModelToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.hideFromSceneToolStripMenuItem,
     this.deleteToolStripMenuItem,
     this.hideAllOtherModelsToolStripMenuItem,
     this.deleteAllOtherModelsToolStripMenuItem,
     this.chkExternalAnims,
     this.chkBRRESAnims,
     this.chkNonBRRESAnims});
     this.targetModelToolStripMenuItem.Name = "targetModelToolStripMenuItem";
     this.targetModelToolStripMenuItem.Size = new System.Drawing.Size(93, 20);
     this.targetModelToolStripMenuItem.Text = "Target Model:";
     //
     // hideFromSceneToolStripMenuItem
     //
     this.hideFromSceneToolStripMenuItem.Name = "hideFromSceneToolStripMenuItem";
     this.hideFromSceneToolStripMenuItem.Size = new System.Drawing.Size(244, 22);
     this.hideFromSceneToolStripMenuItem.Text = "Hide from scene";
     this.hideFromSceneToolStripMenuItem.Click += new System.EventHandler(this.hideFromSceneToolStripMenuItem_Click);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
     this.deleteToolStripMenuItem.Size = new System.Drawing.Size(244, 22);
     this.deleteToolStripMenuItem.Text = "Delete from scene";
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // hideAllOtherModelsToolStripMenuItem
     //
     this.hideAllOtherModelsToolStripMenuItem.Name = "hideAllOtherModelsToolStripMenuItem";
     this.hideAllOtherModelsToolStripMenuItem.Size = new System.Drawing.Size(244, 22);
     this.hideAllOtherModelsToolStripMenuItem.Text = "Hide all other models";
     this.hideAllOtherModelsToolStripMenuItem.Click += new System.EventHandler(this.hideAllOtherModelsToolStripMenuItem_Click);
     //
     // deleteAllOtherModelsToolStripMenuItem
     //
     this.deleteAllOtherModelsToolStripMenuItem.Name = "deleteAllOtherModelsToolStripMenuItem";
     this.deleteAllOtherModelsToolStripMenuItem.Size = new System.Drawing.Size(244, 22);
     this.deleteAllOtherModelsToolStripMenuItem.Text = "Delete all other models";
     this.deleteAllOtherModelsToolStripMenuItem.Click += new System.EventHandler(this.deleteAllOtherModelsToolStripMenuItem_Click);
     //
     // chkExternalAnims
     //
     this.chkExternalAnims.Checked = true;
     this.chkExternalAnims.CheckOnClick = true;
     this.chkExternalAnims.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkExternalAnims.Name = "chkExternalAnims";
     this.chkExternalAnims.Size = new System.Drawing.Size(244, 22);
     this.chkExternalAnims.Text = "Display external animations";
     this.chkExternalAnims.CheckedChanged += new System.EventHandler(this.chkExternalAnims_CheckedChanged);
     //
     // chkBRRESAnims
     //
     this.chkBRRESAnims.Checked = true;
     this.chkBRRESAnims.CheckOnClick = true;
     this.chkBRRESAnims.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkBRRESAnims.Name = "chkBRRESAnims";
     this.chkBRRESAnims.Size = new System.Drawing.Size(244, 22);
     this.chkBRRESAnims.Text = "Display animations in BRRES";
     this.chkBRRESAnims.CheckedChanged += new System.EventHandler(this.chkBRRESAnims_CheckedChanged);
     //
     // chkNonBRRESAnims
     //
     this.chkNonBRRESAnims.Checked = true;
     this.chkNonBRRESAnims.CheckOnClick = true;
     this.chkNonBRRESAnims.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkNonBRRESAnims.Name = "chkNonBRRESAnims";
     this.chkNonBRRESAnims.Size = new System.Drawing.Size(244, 22);
     this.chkNonBRRESAnims.Text = "Display animations not in BRRES";
     this.chkNonBRRESAnims.CheckedChanged += new System.EventHandler(this.chkNonBRRESAnims_CheckedChanged);
     //
     // kinectToolStripMenuItem
     //
     this.kinectToolStripMenuItem.Name = "kinectToolStripMenuItem";
     this.kinectToolStripMenuItem.Size = new System.Drawing.Size(12, 20);
     //
     // syncKinectToolStripMenuItem
     //
     this.syncKinectToolStripMenuItem.Name = "syncKinectToolStripMenuItem";
     this.syncKinectToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // notYetImplementedToolStripMenuItem
     //
     this.notYetImplementedToolStripMenuItem.Name = "notYetImplementedToolStripMenuItem";
     this.notYetImplementedToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // startTrackingToolStripMenuItem
     //
     this.startTrackingToolStripMenuItem.Name = "startTrackingToolStripMenuItem";
     this.startTrackingToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // models
     //
     this.models.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.models.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.models.FormattingEnabled = true;
     this.models.Items.AddRange(new object[] {
     "All"});
     this.models.Location = new System.Drawing.Point(294, 1);
     this.models.Name = "models";
     this.models.Size = new System.Drawing.Size(137, 21);
     this.models.TabIndex = 21;
     this.models.SelectedIndexChanged += new System.EventHandler(this.models_SelectedIndexChanged);
     //
     // controlPanel
     //
     this.controlPanel.Controls.Add(this.splitter1);
     this.controlPanel.Controls.Add(this.toolStrip1);
     this.controlPanel.Controls.Add(this.panel2);
     this.controlPanel.Dock = System.Windows.Forms.DockStyle.Top;
     this.controlPanel.Location = new System.Drawing.Point(0, 0);
     this.controlPanel.Name = "controlPanel";
     this.controlPanel.Size = new System.Drawing.Size(805, 24);
     this.controlPanel.TabIndex = 22;
     this.controlPanel.Visible = false;
     //
     // splitter1
     //
     this.splitter1.Location = new System.Drawing.Point(431, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(3, 24);
     this.splitter1.TabIndex = 31;
     this.splitter1.TabStop = false;
     //
     // toolStrip1
     //
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.chkBones,
     this.chkPolygons,
     this.chkShaders,
     this.chkVertices,
     this.toolStripSeparator1,
     this.chkFloor,
     this.button1,
     this.btnSaveCam});
     this.toolStrip1.Location = new System.Drawing.Point(431, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Padding = new System.Windows.Forms.Padding(6, 0, 0, 0);
     this.toolStrip1.Size = new System.Drawing.Size(374, 24);
     this.toolStrip1.TabIndex = 30;
     this.toolStrip1.Text = "toolStrip1";
     //
     // chkBones
     //
     this.chkBones.Checked = true;
     this.chkBones.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkBones.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkBones.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkBones.Name = "chkBones";
     this.chkBones.Size = new System.Drawing.Size(43, 21);
     this.chkBones.Text = "Bones";
     this.chkBones.Click += new System.EventHandler(this.chkBones_Click);
     //
     // chkPolygons
     //
     this.chkPolygons.Checked = true;
     this.chkPolygons.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkPolygons.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkPolygons.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkPolygons.Name = "chkPolygons";
     this.chkPolygons.Size = new System.Drawing.Size(60, 21);
     this.chkPolygons.Text = "Polygons";
     this.chkPolygons.Click += new System.EventHandler(this.chkPolygons_Click);
     //
     // chkShaders
     //
     this.chkShaders.CheckOnClick = true;
     this.chkShaders.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkShaders.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkShaders.Name = "chkShaders";
     this.chkShaders.Size = new System.Drawing.Size(52, 21);
     this.chkShaders.Text = "Shaders";
     this.chkShaders.Visible = false;
     this.chkShaders.CheckedChanged += new System.EventHandler(this.chkShaders_CheckedChanged);
     //
     // chkVertices
     //
     this.chkVertices.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkVertices.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkVertices.Name = "chkVertices";
     this.chkVertices.Size = new System.Drawing.Size(52, 21);
     this.chkVertices.Text = "Vertices";
     this.chkVertices.Click += new System.EventHandler(this.chkVertices_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 24);
     //
     // chkFloor
     //
     this.chkFloor.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.chkFloor.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.chkFloor.Name = "chkFloor";
     this.chkFloor.Size = new System.Drawing.Size(38, 21);
     this.chkFloor.Text = "Floor";
     this.chkFloor.Click += new System.EventHandler(this.chkFloor_Click);
     //
     // button1
     //
     this.button1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.button1.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(83, 21);
     this.button1.Text = "Reset Camera";
     this.button1.Click += new System.EventHandler(this.resetCameraToolStripMenuItem_Click_1);
     //
     // btnSaveCam
     //
     this.btnSaveCam.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnSaveCam.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSaveCam.Name = "btnSaveCam";
     this.btnSaveCam.Size = new System.Drawing.Size(79, 21);
     this.btnSaveCam.Text = "Save Camera";
     this.btnSaveCam.Click += new System.EventHandler(this.btnSaveCam_Click);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.models);
     this.panel2.Controls.Add(this.menuStrip1);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(431, 24);
     this.panel2.TabIndex = 29;
     //
     // spltRight
     //
     this.spltRight.Dock = System.Windows.Forms.DockStyle.Right;
     this.spltRight.Location = new System.Drawing.Point(672, 24);
     this.spltRight.Name = "spltRight";
     this.spltRight.Size = new System.Drawing.Size(4, 391);
     this.spltRight.TabIndex = 23;
     this.spltRight.TabStop = false;
     this.spltRight.Visible = false;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.modelPanel);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(157, 39);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(500, 361);
     this.panel1.TabIndex = 25;
     //
     // modelPanel
     //
     this.modelPanel.DefaultTranslate = ((System.Vector3)(resources.GetObject("modelPanel.DefaultTranslate")));
     this.modelPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this.modelPanel.InitialYFactor = 100;
     this.modelPanel.InitialZoomFactor = 5;
     this.modelPanel.Location = new System.Drawing.Point(0, 0);
     this.modelPanel.Name = "modelPanel";
     this.modelPanel.RotationScale = 0.4F;
     this.modelPanel.Size = new System.Drawing.Size(500, 361);
     this.modelPanel.TabIndex = 0;
     this.modelPanel.TranslationScale = 0.05F;
     this.modelPanel.ZoomScale = 2.5F;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(3, 157);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(33, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "Open";
     //
     // animEditors
     //
     this.animEditors.AutoScroll = true;
     this.animEditors.Controls.Add(this.pnlPlayback);
     this.animEditors.Controls.Add(this.animCtrlPnl);
     this.animEditors.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.animEditors.Location = new System.Drawing.Point(0, 415);
     this.animEditors.Name = "animEditors";
     this.animEditors.Size = new System.Drawing.Size(805, 60);
     this.animEditors.TabIndex = 29;
     this.animEditors.Visible = false;
     //
     // pnlPlayback
     //
     this.pnlPlayback.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlPlayback.Enabled = false;
     this.pnlPlayback.Location = new System.Drawing.Point(264, 0);
     this.pnlPlayback.MinimumSize = new System.Drawing.Size(290, 54);
     this.pnlPlayback.Name = "pnlPlayback";
     this.pnlPlayback.Size = new System.Drawing.Size(541, 60);
     this.pnlPlayback.TabIndex = 15;
     this.pnlPlayback.Resize += new System.EventHandler(this.pnlPlayback_Resize);
     //
     // animCtrlPnl
     //
     this.animCtrlPnl.AutoScroll = true;
     this.animCtrlPnl.Controls.Add(this.vis0Editor);
     this.animCtrlPnl.Controls.Add(this.pat0Editor);
     this.animCtrlPnl.Controls.Add(this.shp0Editor);
     this.animCtrlPnl.Controls.Add(this.srt0Editor);
     this.animCtrlPnl.Controls.Add(this.chr0Editor);
     this.animCtrlPnl.Controls.Add(this.scn0Editor);
     this.animCtrlPnl.Controls.Add(this.clr0Editor);
     this.animCtrlPnl.Controls.Add(this.weightEditor);
     this.animCtrlPnl.Controls.Add(this.vertexEditor);
     this.animCtrlPnl.Dock = System.Windows.Forms.DockStyle.Left;
     this.animCtrlPnl.Location = new System.Drawing.Point(0, 0);
     this.animCtrlPnl.Name = "animCtrlPnl";
     this.animCtrlPnl.Size = new System.Drawing.Size(264, 60);
     this.animCtrlPnl.TabIndex = 29;
     //
     // vis0Editor
     //
     this.vis0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.vis0Editor.Location = new System.Drawing.Point(0, 0);
     this.vis0Editor.Name = "vis0Editor";
     this.vis0Editor.Padding = new System.Windows.Forms.Padding(4);
     this.vis0Editor.Size = new System.Drawing.Size(264, 60);
     this.vis0Editor.TabIndex = 26;
     this.vis0Editor.Visible = false;
     //
     // pat0Editor
     //
     this.pat0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pat0Editor.Location = new System.Drawing.Point(0, 0);
     this.pat0Editor.Name = "pat0Editor";
     this.pat0Editor.Size = new System.Drawing.Size(264, 60);
     this.pat0Editor.TabIndex = 27;
     this.pat0Editor.Visible = false;
     //
     // shp0Editor
     //
     this.shp0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.shp0Editor.Location = new System.Drawing.Point(0, 0);
     this.shp0Editor.Name = "shp0Editor";
     this.shp0Editor.Size = new System.Drawing.Size(264, 60);
     this.shp0Editor.TabIndex = 28;
     this.shp0Editor.Visible = false;
     //
     // srt0Editor
     //
     this.srt0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.srt0Editor.Location = new System.Drawing.Point(0, 0);
     this.srt0Editor.Name = "srt0Editor";
     this.srt0Editor.Size = new System.Drawing.Size(264, 60);
     this.srt0Editor.TabIndex = 20;
     this.srt0Editor.Visible = false;
     //
     // chr0Editor
     //
     this.chr0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.chr0Editor.Location = new System.Drawing.Point(0, 0);
     this.chr0Editor.Name = "chr0Editor";
     this.chr0Editor.Size = new System.Drawing.Size(264, 60);
     this.chr0Editor.TabIndex = 19;
     this.chr0Editor.Visible = false;
     //
     // scn0Editor
     //
     this.scn0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.scn0Editor.Location = new System.Drawing.Point(0, 0);
     this.scn0Editor.Name = "scn0Editor";
     this.scn0Editor.Size = new System.Drawing.Size(264, 60);
     this.scn0Editor.TabIndex = 30;
     this.scn0Editor.Visible = false;
     //
     // clr0Editor
     //
     this.clr0Editor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.clr0Editor.Location = new System.Drawing.Point(0, 0);
     this.clr0Editor.Name = "clr0Editor";
     this.clr0Editor.Size = new System.Drawing.Size(264, 60);
     this.clr0Editor.TabIndex = 30;
     this.clr0Editor.Visible = false;
     //
     // weightEditor
     //
     this.weightEditor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.weightEditor.Location = new System.Drawing.Point(0, 0);
     this.weightEditor.Name = "weightEditor";
     this.weightEditor.Size = new System.Drawing.Size(264, 60);
     this.weightEditor.TabIndex = 31;
     this.weightEditor.Visible = false;
     this.weightEditor.WeightIncrement = 0.1F;
     //
     // vertexEditor
     //
     this.vertexEditor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.vertexEditor.Enabled = false;
     this.vertexEditor.Location = new System.Drawing.Point(0, 0);
     this.vertexEditor.Name = "vertexEditor";
     this.vertexEditor.Size = new System.Drawing.Size(264, 60);
     this.vertexEditor.TabIndex = 32;
     this.vertexEditor.Visible = false;
     //
     // splitter2
     //
     this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitter2.Location = new System.Drawing.Point(801, 24);
     this.splitter2.Name = "splitter2";
     this.splitter2.Size = new System.Drawing.Size(4, 391);
     this.splitter2.TabIndex = 31;
     this.splitter2.TabStop = false;
     this.splitter2.Visible = false;
     //
     // leftPanel
     //
     this.leftPanel.Dock = System.Windows.Forms.DockStyle.Left;
     this.leftPanel.Location = new System.Drawing.Point(0, 24);
     this.leftPanel.Name = "leftPanel";
     this.leftPanel.Size = new System.Drawing.Size(138, 391);
     this.leftPanel.TabIndex = 4;
     this.leftPanel.TargetAnimType = System.Windows.Forms.AnimType.None;
     this.leftPanel.Visible = false;
     //
     // rightPanel
     //
     this.rightPanel.Dock = System.Windows.Forms.DockStyle.Right;
     this.rightPanel.Location = new System.Drawing.Point(676, 24);
     this.rightPanel.Name = "rightPanel";
     this.rightPanel.Size = new System.Drawing.Size(125, 391);
     this.rightPanel.TabIndex = 32;
     this.rightPanel.Visible = false;
     //
     // ModelEditControl
     //
     this.AllowDrop = true;
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.btnTopToggle);
     this.Controls.Add(this.btnBottomToggle);
     this.Controls.Add(this.btnRightToggle);
     this.Controls.Add(this.spltRight);
     this.Controls.Add(this.rightPanel);
     this.Controls.Add(this.splitter2);
     this.Controls.Add(this.btnLeftToggle);
     this.Controls.Add(this.spltLeft);
     this.Controls.Add(this.leftPanel);
     this.Controls.Add(this.controlPanel);
     this.Controls.Add(this.animEditors);
     this.Name = "ModelEditControl";
     this.Size = new System.Drawing.Size(805, 475);
     this.SizeChanged += new System.EventHandler(this.ModelEditControl_SizeChanged);
     this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ModelEditControl_DragDrop);
     this.DragEnter += new System.Windows.Forms.DragEventHandler(this.ModelEditControl_DragEnter);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.controlPanel.ResumeLayout(false);
     this.controlPanel.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.animEditors.ResumeLayout(false);
     this.animCtrlPnl.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CollisionEditor));
     this.undoToolStrip = new System.Windows.Forms.SplitContainer();
     this.redoToolStrip = new System.Windows.Forms.SplitContainer();
     this.modelTree = new System.Windows.Forms.TreeView();
     this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.assignToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.snapToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.panel2 = new System.Windows.Forms.Panel();
     this.chkBones = new System.Windows.Forms.CheckBox();
     this.chkPoly = new System.Windows.Forms.CheckBox();
     this.chkAllModels = new System.Windows.Forms.CheckBox();
     this.lstObjects = new System.Windows.Forms.CheckedListBox();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.newObjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
     this.snapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.panel3 = new System.Windows.Forms.Panel();
     this.pnlObjProps = new System.Windows.Forms.Panel();
     this.chkObjSSEUnk = new System.Windows.Forms.CheckBox();
     this.chkObjModule = new System.Windows.Forms.CheckBox();
     this.chkObjUnk = new System.Windows.Forms.CheckBox();
     this.btnUnlink = new System.Windows.Forms.Button();
     this.btnRelink = new System.Windows.Forms.Button();
     this.txtBone = new System.Windows.Forms.TextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.txtModel = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.pnlPointProps = new System.Windows.Forms.Panel();
     this.label2 = new System.Windows.Forms.Label();
     this.numY = new System.Windows.Forms.NumericInputBox();
     this.label1 = new System.Windows.Forms.Label();
     this.numX = new System.Windows.Forms.NumericInputBox();
     this.pnlPlaneProps = new System.Windows.Forms.Panel();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.cboType = new System.Windows.Forms.ComboBox();
     this.chkTypeUnk2 = new System.Windows.Forms.CheckBox();
     this.chkTypeUnk1 = new System.Windows.Forms.CheckBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.chkLeftLedge = new System.Windows.Forms.CheckBox();
     this.chkNoWalljump = new System.Windows.Forms.CheckBox();
     this.chkRightLedge = new System.Windows.Forms.CheckBox();
     this.chkFallThrough = new System.Windows.Forms.CheckBox();
     this.cboMaterial = new System.Windows.Forms.ComboBox();
     this.label5 = new System.Windows.Forms.Label();
     this.panel4 = new System.Windows.Forms.Panel();
     this.btnPlayAnims = new System.Windows.Forms.Button();
     this.btnPrevFrame = new System.Windows.Forms.Button();
     this.btnNextFrame = new System.Windows.Forms.Button();
     this._modelPanel = new System.Windows.Forms.ModelPanel();
     this.panel1 = new System.Windows.Forms.Panel();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.btnUndo = new System.Windows.Forms.ToolStripButton();
     this.btnRedo = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
     this.btnSplit = new System.Windows.Forms.ToolStripButton();
     this.btnMerge = new System.Windows.Forms.ToolStripButton();
     this.btnDelete = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.btnSameX = new System.Windows.Forms.ToolStripButton();
     this.btnSameY = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.btnResetCam = new System.Windows.Forms.ToolStripButton();
     this.btnResetSnap = new System.Windows.Forms.ToolStripButton();
     this.btnHelp = new System.Windows.Forms.ToolStripButton();
     this.btnResetRot = new System.Windows.Forms.Button();
     this.trackBar1 = new System.Windows.Forms.TrackBar();
     ((System.ComponentModel.ISupportInitialize)(this.undoToolStrip)).BeginInit();
     this.undoToolStrip.Panel1.SuspendLayout();
     this.undoToolStrip.Panel2.SuspendLayout();
     this.undoToolStrip.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.redoToolStrip)).BeginInit();
     this.redoToolStrip.Panel1.SuspendLayout();
     this.redoToolStrip.Panel2.SuspendLayout();
     this.redoToolStrip.SuspendLayout();
     this.contextMenuStrip2.SuspendLayout();
     this.panel2.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.panel3.SuspendLayout();
     this.pnlObjProps.SuspendLayout();
     this.pnlPointProps.SuspendLayout();
     this.pnlPlaneProps.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.panel4.SuspendLayout();
     this.panel1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
     this.SuspendLayout();
     //
     // undoToolStrip
     //
     this.undoToolStrip.Dock = System.Windows.Forms.DockStyle.Fill;
     this.undoToolStrip.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
     this.undoToolStrip.Location = new System.Drawing.Point(0, 0);
     this.undoToolStrip.Name = "undoToolStrip";
     //
     // undoToolStrip.Panel1
     //
     this.undoToolStrip.Panel1.Controls.Add(this.redoToolStrip);
     //
     // undoToolStrip.Panel2
     //
     this.undoToolStrip.Panel2.Controls.Add(this._modelPanel);
     this.undoToolStrip.Panel2.Controls.Add(this.panel1);
     this.undoToolStrip.Size = new System.Drawing.Size(694, 467);
     this.undoToolStrip.SplitterDistance = 209;
     this.undoToolStrip.TabIndex = 1;
     //
     // redoToolStrip
     //
     this.redoToolStrip.Dock = System.Windows.Forms.DockStyle.Fill;
     this.redoToolStrip.Location = new System.Drawing.Point(0, 0);
     this.redoToolStrip.Name = "redoToolStrip";
     this.redoToolStrip.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // redoToolStrip.Panel1
     //
     this.redoToolStrip.Panel1.Controls.Add(this.modelTree);
     this.redoToolStrip.Panel1.Controls.Add(this.panel2);
     //
     // redoToolStrip.Panel2
     //
     this.redoToolStrip.Panel2.Controls.Add(this.lstObjects);
     this.redoToolStrip.Panel2.Controls.Add(this.panel3);
     this.redoToolStrip.Panel2.Controls.Add(this.panel4);
     this.redoToolStrip.Size = new System.Drawing.Size(209, 467);
     this.redoToolStrip.SplitterDistance = 242;
     this.redoToolStrip.TabIndex = 2;
     //
     // modelTree
     //
     this.modelTree.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.modelTree.CheckBoxes = true;
     this.modelTree.ContextMenuStrip = this.contextMenuStrip2;
     this.modelTree.Dock = System.Windows.Forms.DockStyle.Fill;
     this.modelTree.HideSelection = false;
     this.modelTree.Location = new System.Drawing.Point(0, 17);
     this.modelTree.Name = "modelTree";
     this.modelTree.Size = new System.Drawing.Size(209, 225);
     this.modelTree.TabIndex = 4;
     this.modelTree.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.modelTree_AfterCheck);
     this.modelTree.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.modelTree_BeforeSelect);
     this.modelTree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.modelTree_AfterSelect);
     //
     // contextMenuStrip2
     //
     this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.assignToolStripMenuItem,
     this.snapToolStripMenuItem1});
     this.contextMenuStrip2.Name = "contextMenuStrip2";
     this.contextMenuStrip2.Size = new System.Drawing.Size(110, 48);
     this.contextMenuStrip2.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip2_Opening);
     //
     // assignToolStripMenuItem
     //
     this.assignToolStripMenuItem.Name = "assignToolStripMenuItem";
     this.assignToolStripMenuItem.Size = new System.Drawing.Size(109, 22);
     this.assignToolStripMenuItem.Text = "Assign";
     this.assignToolStripMenuItem.Click += new System.EventHandler(this.btnRelink_Click);
     //
     // snapToolStripMenuItem1
     //
     this.snapToolStripMenuItem1.Name = "snapToolStripMenuItem1";
     this.snapToolStripMenuItem1.Size = new System.Drawing.Size(109, 22);
     this.snapToolStripMenuItem1.Text = "Snap";
     this.snapToolStripMenuItem1.Click += new System.EventHandler(this.snapToolStripMenuItem1_Click);
     //
     // panel2
     //
     this.panel2.Controls.Add(this.chkBones);
     this.panel2.Controls.Add(this.chkPoly);
     this.panel2.Controls.Add(this.chkAllModels);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(209, 17);
     this.panel2.TabIndex = 3;
     //
     // chkBones
     //
     this.chkBones.Location = new System.Drawing.Point(100, 0);
     this.chkBones.Name = "chkBones";
     this.chkBones.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
     this.chkBones.Size = new System.Drawing.Size(67, 17);
     this.chkBones.TabIndex = 4;
     this.chkBones.Text = "Bones";
     this.chkBones.UseVisualStyleBackColor = true;
     this.chkBones.CheckedChanged += new System.EventHandler(this.chkBones_CheckedChanged);
     //
     // chkPoly
     //
     this.chkPoly.Checked = true;
     this.chkPoly.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkPoly.Location = new System.Drawing.Point(44, 0);
     this.chkPoly.Name = "chkPoly";
     this.chkPoly.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
     this.chkPoly.Size = new System.Drawing.Size(54, 17);
     this.chkPoly.TabIndex = 3;
     this.chkPoly.Text = "Poly";
     this.chkPoly.ThreeState = true;
     this.chkPoly.UseVisualStyleBackColor = true;
     this.chkPoly.CheckStateChanged += new System.EventHandler(this.chkPoly_CheckStateChanged);
     //
     // chkAllModels
     //
     this.chkAllModels.Checked = true;
     this.chkAllModels.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkAllModels.Location = new System.Drawing.Point(0, 0);
     this.chkAllModels.Name = "chkAllModels";
     this.chkAllModels.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
     this.chkAllModels.Size = new System.Drawing.Size(41, 17);
     this.chkAllModels.TabIndex = 2;
     this.chkAllModels.Text = "All";
     this.chkAllModels.UseVisualStyleBackColor = true;
     this.chkAllModels.CheckedChanged += new System.EventHandler(this.chkAllModels_CheckedChanged);
     //
     // lstObjects
     //
     this.lstObjects.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.lstObjects.ContextMenuStrip = this.contextMenuStrip1;
     this.lstObjects.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lstObjects.FormattingEnabled = true;
     this.lstObjects.IntegralHeight = false;
     this.lstObjects.Location = new System.Drawing.Point(0, 0);
     this.lstObjects.Name = "lstObjects";
     this.lstObjects.Size = new System.Drawing.Size(209, 82);
     this.lstObjects.TabIndex = 1;
     this.lstObjects.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstObjects_ItemCheck);
     this.lstObjects.SelectedValueChanged += new System.EventHandler(this.lstObjects_SelectedValueChanged);
     this.lstObjects.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstObjects_MouseDown);
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.newObjectToolStripMenuItem,
     this.toolStripMenuItem2,
     this.snapToolStripMenuItem,
     this.toolStripMenuItem1,
     this.deleteToolStripMenuItem});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(137, 82);
     //
     // newObjectToolStripMenuItem
     //
     this.newObjectToolStripMenuItem.Name = "newObjectToolStripMenuItem";
     this.newObjectToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     this.newObjectToolStripMenuItem.Text = "New Object";
     this.newObjectToolStripMenuItem.Click += new System.EventHandler(this.newObjectToolStripMenuItem_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(133, 6);
     //
     // snapToolStripMenuItem
     //
     this.snapToolStripMenuItem.Name = "snapToolStripMenuItem";
     this.snapToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     this.snapToolStripMenuItem.Text = "Snap";
     this.snapToolStripMenuItem.Click += new System.EventHandler(this.snapToolStripMenuItem_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(133, 6);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
     this.deleteToolStripMenuItem.Size = new System.Drawing.Size(136, 22);
     this.deleteToolStripMenuItem.Text = "Delete";
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // panel3
     //
     this.panel3.Controls.Add(this.pnlPlaneProps);
     this.panel3.Controls.Add(this.pnlPointProps);
     this.panel3.Controls.Add(this.pnlObjProps);
     this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel3.Location = new System.Drawing.Point(0, 82);
     this.panel3.Name = "panel3";
     this.panel3.Size = new System.Drawing.Size(209, 115);
     this.panel3.TabIndex = 16;
     //
     // pnlObjProps
     //
     this.pnlObjProps.Controls.Add(this.chkObjSSEUnk);
     this.pnlObjProps.Controls.Add(this.chkObjModule);
     this.pnlObjProps.Controls.Add(this.chkObjUnk);
     this.pnlObjProps.Controls.Add(this.btnUnlink);
     this.pnlObjProps.Controls.Add(this.btnRelink);
     this.pnlObjProps.Controls.Add(this.txtBone);
     this.pnlObjProps.Controls.Add(this.label4);
     this.pnlObjProps.Controls.Add(this.txtModel);
     this.pnlObjProps.Controls.Add(this.label3);
     this.pnlObjProps.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.pnlObjProps.Location = new System.Drawing.Point(0, -15);
     this.pnlObjProps.Name = "pnlObjProps";
     this.pnlObjProps.Size = new System.Drawing.Size(209, 130);
     this.pnlObjProps.TabIndex = 1;
     this.pnlObjProps.Visible = false;
     //
     // chkObjSSEUnk
     //
     this.chkObjSSEUnk.AutoSize = true;
     this.chkObjSSEUnk.Location = new System.Drawing.Point(10, 102);
     this.chkObjSSEUnk.Name = "chkObjSSEUnk";
     this.chkObjSSEUnk.Size = new System.Drawing.Size(96, 17);
     this.chkObjSSEUnk.TabIndex = 15;
     this.chkObjSSEUnk.Text = "SSE Unknown";
     this.chkObjSSEUnk.UseVisualStyleBackColor = true;
     this.chkObjSSEUnk.CheckedChanged += new System.EventHandler(this.chkObjSSEUnk_CheckedChanged);
     //
     // chkObjModule
     //
     this.chkObjModule.AutoSize = true;
     this.chkObjModule.Location = new System.Drawing.Point(10, 79);
     this.chkObjModule.Name = "chkObjModule";
     this.chkObjModule.Size = new System.Drawing.Size(111, 17);
     this.chkObjModule.TabIndex = 14;
     this.chkObjModule.Text = "Module Controlled";
     this.chkObjModule.UseVisualStyleBackColor = true;
     this.chkObjModule.CheckedChanged += new System.EventHandler(this.chkObjModule_CheckedChanged);
     //
     // chkObjUnk
     //
     this.chkObjUnk.AutoSize = true;
     this.chkObjUnk.Location = new System.Drawing.Point(10, 56);
     this.chkObjUnk.Name = "chkObjUnk";
     this.chkObjUnk.Size = new System.Drawing.Size(72, 17);
     this.chkObjUnk.TabIndex = 13;
     this.chkObjUnk.Text = "Unknown";
     this.chkObjUnk.UseVisualStyleBackColor = true;
     this.chkObjUnk.CheckedChanged += new System.EventHandler(this.chkObjUnk_CheckedChanged);
     //
     // btnUnlink
     //
     this.btnUnlink.Location = new System.Drawing.Point(177, 22);
     this.btnUnlink.Name = "btnUnlink";
     this.btnUnlink.Size = new System.Drawing.Size(28, 21);
     this.btnUnlink.TabIndex = 12;
     this.btnUnlink.Text = "-";
     this.btnUnlink.UseVisualStyleBackColor = true;
     this.btnUnlink.Click += new System.EventHandler(this.btnUnlink_Click);
     //
     // btnRelink
     //
     this.btnRelink.Location = new System.Drawing.Point(177, 2);
     this.btnRelink.Name = "btnRelink";
     this.btnRelink.Size = new System.Drawing.Size(28, 21);
     this.btnRelink.TabIndex = 4;
     this.btnRelink.Text = "+";
     this.btnRelink.UseVisualStyleBackColor = true;
     this.btnRelink.Click += new System.EventHandler(this.btnRelink_Click);
     //
     // txtBone
     //
     this.txtBone.Location = new System.Drawing.Point(49, 23);
     this.txtBone.Name = "txtBone";
     this.txtBone.ReadOnly = true;
     this.txtBone.Size = new System.Drawing.Size(126, 20);
     this.txtBone.TabIndex = 3;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(4, 23);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(42, 20);
     this.label4.TabIndex = 2;
     this.label4.Text = "Bone:";
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // txtModel
     //
     this.txtModel.Location = new System.Drawing.Point(49, 3);
     this.txtModel.Name = "txtModel";
     this.txtModel.ReadOnly = true;
     this.txtModel.Size = new System.Drawing.Size(126, 20);
     this.txtModel.TabIndex = 1;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(4, 3);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(42, 20);
     this.label3.TabIndex = 0;
     this.label3.Text = "Model:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // pnlPointProps
     //
     this.pnlPointProps.Controls.Add(this.label2);
     this.pnlPointProps.Controls.Add(this.numY);
     this.pnlPointProps.Controls.Add(this.label1);
     this.pnlPointProps.Controls.Add(this.numX);
     this.pnlPointProps.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.pnlPointProps.Location = new System.Drawing.Point(0, -85);
     this.pnlPointProps.Name = "pnlPointProps";
     this.pnlPointProps.Size = new System.Drawing.Size(209, 70);
     this.pnlPointProps.TabIndex = 15;
     this.pnlPointProps.Visible = false;
     //
     // label2
     //
     this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label2.Location = new System.Drawing.Point(18, 32);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(42, 20);
     this.label2.TabIndex = 3;
     this.label2.Text = "Y";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numY
     //
     this.numY.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.numY.Integral = false;
     this.numY.Location = new System.Drawing.Point(59, 32);
     this.numY.MaximumValue = 3.402823E+38F;
     this.numY.MinimumValue = -3.402823E+38F;
     this.numY.Name = "numY";
     this.numY.Size = new System.Drawing.Size(100, 20);
     this.numY.TabIndex = 2;
     this.numY.Text = "0";
     this.numY.ValueChanged += new System.EventHandler(this.numY_ValueChanged);
     //
     // label1
     //
     this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label1.Location = new System.Drawing.Point(18, 13);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(42, 20);
     this.label1.TabIndex = 1;
     this.label1.Text = "X";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numX
     //
     this.numX.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.numX.Integral = false;
     this.numX.Location = new System.Drawing.Point(59, 13);
     this.numX.MaximumValue = 3.402823E+38F;
     this.numX.MinimumValue = -3.402823E+38F;
     this.numX.Name = "numX";
     this.numX.Size = new System.Drawing.Size(100, 20);
     this.numX.TabIndex = 0;
     this.numX.Text = "0";
     this.numX.ValueChanged += new System.EventHandler(this.numX_ValueChanged);
     //
     // pnlPlaneProps
     //
     this.pnlPlaneProps.Controls.Add(this.groupBox2);
     this.pnlPlaneProps.Controls.Add(this.groupBox1);
     this.pnlPlaneProps.Controls.Add(this.cboMaterial);
     this.pnlPlaneProps.Controls.Add(this.label5);
     this.pnlPlaneProps.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.pnlPlaneProps.Location = new System.Drawing.Point(0, -199);
     this.pnlPlaneProps.Name = "pnlPlaneProps";
     this.pnlPlaneProps.Size = new System.Drawing.Size(209, 114);
     this.pnlPlaneProps.TabIndex = 0;
     this.pnlPlaneProps.Visible = false;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox2.Controls.Add(this.cboType);
     this.groupBox2.Controls.Add(this.chkTypeUnk2);
     this.groupBox2.Controls.Add(this.chkTypeUnk1);
     this.groupBox2.Location = new System.Drawing.Point(104, 28);
     this.groupBox2.Margin = new System.Windows.Forms.Padding(0);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Padding = new System.Windows.Forms.Padding(0);
     this.groupBox2.Size = new System.Drawing.Size(105, 86);
     this.groupBox2.TabIndex = 14;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Types";
     //
     // cboType
     //
     this.cboType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboType.FormattingEnabled = true;
     this.cboType.Location = new System.Drawing.Point(8, 16);
     this.cboType.Name = "cboType";
     this.cboType.Size = new System.Drawing.Size(89, 21);
     this.cboType.TabIndex = 5;
     this.cboType.SelectedIndexChanged += new System.EventHandler(this.cboType_SelectedIndexChanged);
     //
     // chkTypeUnk2
     //
     this.chkTypeUnk2.Location = new System.Drawing.Point(8, 58);
     this.chkTypeUnk2.Margin = new System.Windows.Forms.Padding(0);
     this.chkTypeUnk2.Name = "chkTypeUnk2";
     this.chkTypeUnk2.Size = new System.Drawing.Size(86, 18);
     this.chkTypeUnk2.TabIndex = 3;
     this.chkTypeUnk2.Text = "Items";
     this.chkTypeUnk2.UseVisualStyleBackColor = true;
     this.chkTypeUnk2.CheckedChanged += new System.EventHandler(this.chkTypeUnk2_CheckedChanged);
     //
     // chkTypeUnk1
     //
     this.chkTypeUnk1.Location = new System.Drawing.Point(8, 40);
     this.chkTypeUnk1.Margin = new System.Windows.Forms.Padding(0);
     this.chkTypeUnk1.Name = "chkTypeUnk1";
     this.chkTypeUnk1.Size = new System.Drawing.Size(86, 18);
     this.chkTypeUnk1.TabIndex = 4;
     this.chkTypeUnk1.Text = "Characters";
     this.chkTypeUnk1.UseVisualStyleBackColor = true;
     this.chkTypeUnk1.CheckedChanged += new System.EventHandler(this.chkTypeUnk1_CheckedChanged);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBox1.Controls.Add(this.chkLeftLedge);
     this.groupBox1.Controls.Add(this.chkNoWalljump);
     this.groupBox1.Controls.Add(this.chkRightLedge);
     this.groupBox1.Controls.Add(this.chkFallThrough);
     this.groupBox1.Location = new System.Drawing.Point(0, 28);
     this.groupBox1.Margin = new System.Windows.Forms.Padding(0);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Padding = new System.Windows.Forms.Padding(0);
     this.groupBox1.Size = new System.Drawing.Size(104, 86);
     this.groupBox1.TabIndex = 13;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Flags";
     //
     // chkLeftLedge
     //
     this.chkLeftLedge.Location = new System.Drawing.Point(8, 33);
     this.chkLeftLedge.Margin = new System.Windows.Forms.Padding(0);
     this.chkLeftLedge.Name = "chkLeftLedge";
     this.chkLeftLedge.Size = new System.Drawing.Size(86, 18);
     this.chkLeftLedge.TabIndex = 4;
     this.chkLeftLedge.Text = "Left Ledge";
     this.chkLeftLedge.UseVisualStyleBackColor = true;
     this.chkLeftLedge.CheckedChanged += new System.EventHandler(this.chkLeftLedge_CheckedChanged);
     //
     // chkNoWalljump
     //
     this.chkNoWalljump.Location = new System.Drawing.Point(8, 65);
     this.chkNoWalljump.Margin = new System.Windows.Forms.Padding(0);
     this.chkNoWalljump.Name = "chkNoWalljump";
     this.chkNoWalljump.Size = new System.Drawing.Size(90, 18);
     this.chkNoWalljump.TabIndex = 2;
     this.chkNoWalljump.Text = "No Walljump";
     this.chkNoWalljump.UseVisualStyleBackColor = true;
     this.chkNoWalljump.CheckedChanged += new System.EventHandler(this.chkNoWalljump_CheckedChanged);
     //
     // chkRightLedge
     //
     this.chkRightLedge.Location = new System.Drawing.Point(8, 49);
     this.chkRightLedge.Margin = new System.Windows.Forms.Padding(0);
     this.chkRightLedge.Name = "chkRightLedge";
     this.chkRightLedge.Size = new System.Drawing.Size(86, 18);
     this.chkRightLedge.TabIndex = 1;
     this.chkRightLedge.Text = "Right Ledge";
     this.chkRightLedge.UseVisualStyleBackColor = true;
     this.chkRightLedge.CheckedChanged += new System.EventHandler(this.chkRightLedge_CheckedChanged);
     //
     // chkFallThrough
     //
     this.chkFallThrough.Location = new System.Drawing.Point(8, 17);
     this.chkFallThrough.Margin = new System.Windows.Forms.Padding(0);
     this.chkFallThrough.Name = "chkFallThrough";
     this.chkFallThrough.Size = new System.Drawing.Size(90, 18);
     this.chkFallThrough.TabIndex = 0;
     this.chkFallThrough.Text = "Fall-Through";
     this.chkFallThrough.UseVisualStyleBackColor = true;
     this.chkFallThrough.CheckedChanged += new System.EventHandler(this.chkFallThrough_CheckedChanged);
     //
     // cboMaterial
     //
     this.cboMaterial.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboMaterial.FormattingEnabled = true;
     this.cboMaterial.Location = new System.Drawing.Point(66, 4);
     this.cboMaterial.Name = "cboMaterial";
     this.cboMaterial.Size = new System.Drawing.Size(139, 21);
     this.cboMaterial.TabIndex = 12;
     this.cboMaterial.SelectedIndexChanged += new System.EventHandler(this.cboMaterial_SelectedIndexChanged);
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(7, 4);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(53, 21);
     this.label5.TabIndex = 8;
     this.label5.Text = "Material:";
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // panel4
     //
     this.panel4.Controls.Add(this.btnPlayAnims);
     this.panel4.Controls.Add(this.btnPrevFrame);
     this.panel4.Controls.Add(this.btnNextFrame);
     this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel4.Enabled = false;
     this.panel4.Location = new System.Drawing.Point(0, 197);
     this.panel4.Name = "panel4";
     this.panel4.Size = new System.Drawing.Size(209, 24);
     this.panel4.TabIndex = 17;
     this.panel4.Visible = false;
     //
     // btnPlayAnims
     //
     this.btnPlayAnims.Dock = System.Windows.Forms.DockStyle.Fill;
     this.btnPlayAnims.Location = new System.Drawing.Point(35, 0);
     this.btnPlayAnims.Name = "btnPlayAnims";
     this.btnPlayAnims.Size = new System.Drawing.Size(139, 24);
     this.btnPlayAnims.TabIndex = 16;
     this.btnPlayAnims.Text = "Play Animations";
     this.btnPlayAnims.UseVisualStyleBackColor = true;
     this.btnPlayAnims.Click += new System.EventHandler(this.btnPlayAnims_Click);
     //
     // btnPrevFrame
     //
     this.btnPrevFrame.Dock = System.Windows.Forms.DockStyle.Left;
     this.btnPrevFrame.Location = new System.Drawing.Point(0, 0);
     this.btnPrevFrame.Name = "btnPrevFrame";
     this.btnPrevFrame.Size = new System.Drawing.Size(35, 24);
     this.btnPrevFrame.TabIndex = 18;
     this.btnPrevFrame.Text = "<";
     this.btnPrevFrame.UseVisualStyleBackColor = true;
     this.btnPrevFrame.Click += new System.EventHandler(this.btnPrevFrame_Click);
     //
     // btnNextFrame
     //
     this.btnNextFrame.Dock = System.Windows.Forms.DockStyle.Right;
     this.btnNextFrame.Location = new System.Drawing.Point(174, 0);
     this.btnNextFrame.Name = "btnNextFrame";
     this.btnNextFrame.Size = new System.Drawing.Size(35, 24);
     this.btnNextFrame.TabIndex = 17;
     this.btnNextFrame.Text = ">";
     this.btnNextFrame.UseVisualStyleBackColor = true;
     this.btnNextFrame.Click += new System.EventHandler(this.btnNextFrame_Click);
     //
     // _modelPanel
     //
     this._modelPanel.DefaultTranslate = ((System.Vector3)(resources.GetObject("_modelPanel.DefaultTranslate")));
     this._modelPanel.Dock = System.Windows.Forms.DockStyle.Fill;
     this._modelPanel.InitialYFactor = 100;
     this._modelPanel.InitialZoomFactor = 5;
     this._modelPanel.Location = new System.Drawing.Point(0, 25);
     this._modelPanel.Name = "_modelPanel";
     this._modelPanel.RotationScale = 0.1F;
     this._modelPanel.Size = new System.Drawing.Size(481, 442);
     this._modelPanel.TabIndex = 0;
     this._modelPanel.TranslationScale = 0.05F;
     this._modelPanel.ZoomScale = 2.5F;
     this._modelPanel.PreRender += new System.Windows.Forms.GLRenderEventHandler(this._modelPanel_PreRender);
     this._modelPanel.PostRender += new System.Windows.Forms.GLRenderEventHandler(this._modelPanel_PostRender);
     this._modelPanel.KeyDown += new System.Windows.Forms.KeyEventHandler(this._modelPanel_KeyDown);
     this._modelPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this._modelPanel_MouseDown);
     this._modelPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this._modelPanel_MouseMove);
     this._modelPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this._modelPanel_MouseUp);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
     this.panel1.Controls.Add(this.toolStrip1);
     this.panel1.Controls.Add(this.btnResetRot);
     this.panel1.Controls.Add(this.trackBar1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(481, 25);
     this.panel1.TabIndex = 2;
     //
     // toolStrip1
     //
     this.toolStrip1.BackColor = System.Drawing.Color.WhiteSmoke;
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.btnUndo,
     this.btnRedo,
     this.toolStripSeparator3,
     this.btnSplit,
     this.btnMerge,
     this.btnDelete,
     this.toolStripSeparator2,
     this.btnSameX,
     this.btnSameY,
     this.toolStripSeparator1,
     this.btnResetCam,
     this.btnResetSnap,
     this.btnHelp});
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new System.Drawing.Size(335, 25);
     this.toolStrip1.TabIndex = 1;
     this.toolStrip1.Text = "toolStrip1";
     //
     // btnUndo
     //
     this.btnUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnUndo.Enabled = false;
     this.btnUndo.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnUndo.Name = "btnUndo";
     this.btnUndo.Size = new System.Drawing.Size(40, 22);
     this.btnUndo.Text = "Undo";
     this.btnUndo.Click += new System.EventHandler(this.Undo);
     //
     // btnRedo
     //
     this.btnRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnRedo.Enabled = false;
     this.btnRedo.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnRedo.Name = "btnRedo";
     this.btnRedo.Size = new System.Drawing.Size(38, 22);
     this.btnRedo.Text = "Redo";
     this.btnRedo.Click += new System.EventHandler(this.Redo);
     //
     // toolStripSeparator3
     //
     this.toolStripSeparator3.Name = "toolStripSeparator3";
     this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
     //
     // btnSplit
     //
     this.btnSplit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnSplit.Enabled = false;
     this.btnSplit.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSplit.Name = "btnSplit";
     this.btnSplit.Size = new System.Drawing.Size(34, 22);
     this.btnSplit.Text = "Split";
     this.btnSplit.Click += new System.EventHandler(this.btnSplit_Click);
     //
     // btnMerge
     //
     this.btnMerge.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnMerge.Enabled = false;
     this.btnMerge.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnMerge.Name = "btnMerge";
     this.btnMerge.Size = new System.Drawing.Size(45, 22);
     this.btnMerge.Text = "Merge";
     this.btnMerge.Click += new System.EventHandler(this.btnMerge_Click);
     //
     // btnDelete
     //
     this.btnDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnDelete.Enabled = false;
     this.btnDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnDelete.Name = "btnDelete";
     this.btnDelete.Size = new System.Drawing.Size(44, 22);
     this.btnDelete.Text = "Delete";
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // btnSameX
     //
     this.btnSameX.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnSameX.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSameX.Name = "btnSameX";
     this.btnSameX.Size = new System.Drawing.Size(49, 22);
     this.btnSameX.Text = "Align X";
     this.btnSameX.Click += new System.EventHandler(this.btnSameX_Click);
     //
     // btnSameY
     //
     this.btnSameY.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnSameY.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnSameY.Name = "btnSameY";
     this.btnSameY.Size = new System.Drawing.Size(49, 22);
     this.btnSameY.Text = "Align Y";
     this.btnSameY.Click += new System.EventHandler(this.btnSameY_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // btnResetCam
     //
     this.btnResetCam.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnResetCam.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnResetCam.Name = "btnResetCam";
     this.btnResetCam.Size = new System.Drawing.Size(83, 19);
     this.btnResetCam.Text = "Reset Camera";
     this.btnResetCam.Click += new System.EventHandler(this.btnResetCam_Click);
     //
     // btnResetSnap
     //
     this.btnResetSnap.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnResetSnap.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnResetSnap.Name = "btnResetSnap";
     this.btnResetSnap.Size = new System.Drawing.Size(57, 19);
     this.btnResetSnap.Text = "Un-Snap";
     this.btnResetSnap.Click += new System.EventHandler(this.btnResetSnap_Click);
     //
     // btnHelp
     //
     this.btnHelp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
     this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
     this.btnHelp.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btnHelp.Name = "btnHelp";
     this.btnHelp.Size = new System.Drawing.Size(36, 19);
     this.btnHelp.Text = "Help";
     this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
     //
     // btnResetRot
     //
     this.btnResetRot.Dock = System.Windows.Forms.DockStyle.Right;
     this.btnResetRot.Enabled = false;
     this.btnResetRot.FlatAppearance.BorderSize = 0;
     this.btnResetRot.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnResetRot.Location = new System.Drawing.Point(335, 0);
     this.btnResetRot.Name = "btnResetRot";
     this.btnResetRot.Size = new System.Drawing.Size(16, 25);
     this.btnResetRot.TabIndex = 4;
     this.btnResetRot.Text = "*";
     this.btnResetRot.UseVisualStyleBackColor = true;
     this.btnResetRot.Visible = false;
     this.btnResetRot.Click += new System.EventHandler(this.btnResetRot_Click);
     //
     // trackBar1
     //
     this.trackBar1.Dock = System.Windows.Forms.DockStyle.Right;
     this.trackBar1.Enabled = false;
     this.trackBar1.Location = new System.Drawing.Point(351, 0);
     this.trackBar1.Maximum = 180;
     this.trackBar1.Minimum = -180;
     this.trackBar1.Name = "trackBar1";
     this.trackBar1.Size = new System.Drawing.Size(130, 25);
     this.trackBar1.TabIndex = 3;
     this.trackBar1.TickStyle = System.Windows.Forms.TickStyle.None;
     this.trackBar1.Visible = false;
     this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
     //
     // CollisionEditor
     //
     this.BackColor = System.Drawing.Color.Lavender;
     this.Controls.Add(this.undoToolStrip);
     this.Name = "CollisionEditor";
     this.Size = new System.Drawing.Size(694, 467);
     this.undoToolStrip.Panel1.ResumeLayout(false);
     this.undoToolStrip.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.undoToolStrip)).EndInit();
     this.undoToolStrip.ResumeLayout(false);
     this.redoToolStrip.Panel1.ResumeLayout(false);
     this.redoToolStrip.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.redoToolStrip)).EndInit();
     this.redoToolStrip.ResumeLayout(false);
     this.contextMenuStrip2.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.panel3.ResumeLayout(false);
     this.pnlObjProps.ResumeLayout(false);
     this.pnlObjProps.PerformLayout();
     this.pnlPointProps.ResumeLayout(false);
     this.pnlPointProps.PerformLayout();
     this.pnlPlaneProps.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.panel4.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
     this.ResumeLayout(false);
 }
        public void Render(TKContext ctx, ModelPanel mainWindow)
        {
            if (!_visible)
                return;

            GL.Enable(EnableCap.Blend);
            GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);

            _mainWindow = mainWindow;

            if (_matrixOffset != Matrix.Identity && _matrixOffset != new Matrix())
            {
                GL.PushMatrix();
                Matrix m = _matrixOffset;
                GL.MultMatrix((float*)&m);
            }

            if (_renderPolygons || _renderWireframe)
            {
                GL.Enable(EnableCap.Lighting);
                GL.Enable(EnableCap.DepthTest);

                float maxDrawPriority = 0.0f;
                if (_objList != null)
                    foreach (MDL0ObjectNode p in _objList)
                        maxDrawPriority = Math.Max(maxDrawPriority, p.DrawPriority);

                //Draw objects in the prioritized order of materials.
                List<MDL0ObjectNode> rendered = new List<MDL0ObjectNode>();
                if (_matList != null)
                    foreach (MDL0MaterialNode m in _matList)
                        foreach (MDL0ObjectNode p in m._objects)
                        {
                            RenderObject(p, ctx, mainWindow, maxDrawPriority);
                            rendered.Add(p);
                        }

                //Render any remaining objects
                if (_objList != null)
                    foreach (MDL0ObjectNode p in _objList)
                        if (!rendered.Contains(p))
                            RenderObject(p, ctx, mainWindow, maxDrawPriority);
            }

            if (_renderBox)
            {
                //GL.LineWidth(1.0f);
                GL.Disable(EnableCap.Lighting);
                //GL.Disable(EnableCap.DepthTest);

                GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
                GL.Color4(Color.Gray);

                DrawBox();

                if (_objList != null)
                    if (_polyIndex != -1 && ((MDL0ObjectNode)_objList[_polyIndex])._render)
                        ((MDL0ObjectNode)_objList[_polyIndex]).DrawBox();
                //else
                //    foreach (MDL0ObjectNode p in _polyList)
                //        if (p._render)
                //            p.DrawBox();
            }

            //Turn off the last bound shader program.
            if (ctx._shadersEnabled) { GL.UseProgram(0); GL.ClientActiveTexture(TextureUnit.Texture0); }

            if (_renderBones)
            {
                GL.Enable(EnableCap.Blend);
                GL.Disable(EnableCap.Lighting);
                GL.Disable(EnableCap.DepthTest);
                GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
                //GL.LineWidth(2.0f);

                if (_boneList != null)
                    foreach (MDL0BoneNode bone in _boneList)
                        bone.Render(ctx, mainWindow);
            }

            //if (_billboardBones.Count > 0)
            //{
            //    //Transform bones
            //    if (_boneList != null)
            //        foreach (MDL0BoneNode b in _boneList)
            //            b.RecalcFrameState();
            //    //Transform nodes
            //    foreach (Influence inf in _influences._influences)
            //        inf.CalcMatrix();
            //    //Weight Vertices
            //    if (_objList != null)
            //        foreach (MDL0ObjectNode poly in _objList)
            //            poly.WeightVertices();
            //    //Morph vertices to currently selected SHP
            //    ApplySHP(_currentSHP, _currentSHPIndex);
            //}

            if (_matrixOffset != Matrix.Identity && _matrixOffset != new Matrix())
                GL.PopMatrix();
        }
        public void Render(TKContext ctx, ModelPanel mainWindow)
        {
            GL.Disable(EnableCap.Lighting);
            GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
            GL.Enable(EnableCap.CullFace);
            GL.CullFace(CullFaceMode.Front);

            foreach (CollisionObject obj in _objects)
                obj.Render(ctx);
        }
        public void RenderObject(MDL0ObjectNode p, TKContext ctx, ModelPanel mainWindow, float maxDrawPriority)
        {
            if (p._render)
            {
                if (_dontRenderOffscreen)
                {
                    Vector3 min = new Vector3(float.MaxValue);
                    Vector3 max = new Vector3(float.MinValue);

                    if (p._manager != null)
                        foreach (Vertex3 vertex in p._manager._vertices)
                        {
                            Vector3 v = mainWindow.Project(vertex.WeightedPosition);

                            min.Min(v);
                            max.Max(v);
                        }

                    if (max._x < 0 || min._x > mainWindow.Size.Width ||
                        max._y < 0 || min._y > mainWindow.Size.Height)
                        return;
                }

                if (_renderPolygons)
                {
                    float polyOffset = 0.0f;
                    //polyOffset -= p.DrawPriority;
                    //polyOffset += maxDrawPriority;
                    if (_renderWireframe)
                        polyOffset += 1.0f;
                    if (polyOffset != 0)
                    {
                        GL.Enable(EnableCap.PolygonOffsetFill);
                        GL.PolygonOffset(1.0f, polyOffset);
                    }
                    else
                        GL.Disable(EnableCap.PolygonOffsetFill);
                    GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
                    p.Render(ctx, false, mainWindow);
                }
                if (_renderWireframe)
                {
                    GL.Disable(EnableCap.PolygonOffsetFill);
                    GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line);
                    GL.LineWidth(0.5f);
                    p.Render(ctx, true, mainWindow);
                }
            }
        }
        public void Render(TKContext ctx, ModelPanel mainWindow)
        {
            GL.Enable(EnableCap.Lighting);
            GL.Enable(EnableCap.DepthTest);
            GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);

            Render(ctx, false, mainWindow);
        }