示例#1
0
        private void InitializeComponent()
        {
            this.components            = new Container();
            this.codeMapViewerDock1    = new CodeMapViewerDock();
            this.sandDockManager1      = new SandDockManager();
            this.statusStrip1          = new StatusStrip();
            this.toolStripStatusLabel1 = new ToolStripStatusLabel();
            this.lineStatusLabel       = new ToolStripStatusLabel();
            this.columnStatusLabel     = new ToolStripStatusLabel();
            this.sandBarManager1       = new SandBarManager(this.components);
            this.leftSandBarDock       = new ToolBarContainer();
            this.rightSandBarDock      = new ToolBarContainer();
            this.bottomSandBarDock     = new ToolBarContainer();
            this.topSandBarDock        = new ToolBarContainer();
            this.menuBar1                                 = new MenuBar();
            this.menuBarItem1                             = new MenuBarItem();
            this.newFileMenuItem                          = new MenuButtonItem();
            this.openScriptMenuItem                       = new MenuButtonItem();
            this.saveScriptMenuItem                       = new MenuButtonItem();
            this.exitMenuItem                             = new MenuButtonItem();
            this.menuBarItem2                             = new MenuBarItem();
            this.undoMenuItem                             = new MenuButtonItem();
            this.redoMenuItem                             = new MenuButtonItem();
            this.cutMenuItem                              = new MenuButtonItem();
            this.copyMenuItem                             = new MenuButtonItem();
            this.pasteMenuItem                            = new MenuButtonItem();
            this.menuBarItem3                             = new MenuBarItem();
            this.mapViewerMenuItem                        = new MenuButtonItem();
            this.menuBarItem4                             = new MenuBarItem();
            this.runMenuItem                              = new MenuButtonItem();
            this.menuBarItem5                             = new MenuBarItem();
            this.toolBar1                                 = new TD.SandBar.ToolBar();
            this.buttonItem1                              = new ButtonItem();
            this.buttonItem3                              = new ButtonItem();
            this.buttonItem2                              = new ButtonItem();
            this.buttonItem4                              = new ButtonItem();
            this.buttonItem5                              = new ButtonItem();
            this.buttonItem6                              = new ButtonItem();
            this.buttonItem8                              = new ButtonItem();
            this.buttonItem9                              = new ButtonItem();
            this.buttonItem7                              = new ButtonItem();
            this.openFileDialog                           = new OpenFileDialog();
            this.contextMenuStrip1                        = new ContextMenuStrip(this.components);
            this.cutToolStripMenuItem                     = new ToolStripMenuItem();
            this.copyToolStripMenuItem                    = new ToolStripMenuItem();
            this.pasteToolStripMenuItem                   = new ToolStripMenuItem();
            this.toolStripSeparator1                      = new ToolStripSeparator();
            this.insertFunctionToolStripMenuItem          = new ToolStripMenuItem();
            this.insertTextureEntryIDToolStripMenuItem    = new ToolStripMenuItem();
            this.insertCollectionEntryIDToolStripMenuItem = new ToolStripMenuItem();
            DockContainer dockContainer = new DockContainer();

            dockContainer.SuspendLayout();
            this.statusStrip1.SuspendLayout();
            this.topSandBarDock.SuspendLayout();
            this.contextMenuStrip1.SuspendLayout();
            base.SuspendLayout();
            dockContainer.Controls.Add(this.codeMapViewerDock1);
            dockContainer.Dock         = DockStyle.Right;
            dockContainer.LayoutSystem = new SplitLayoutSystem(250, 312, Orientation.Horizontal, new LayoutSystemBase[]
            {
                new ControlLayoutSystem(250, 312, new DockControl[]
                {
                    this.codeMapViewerDock1
                }, this.codeMapViewerDock1)
            });
            dockContainer.Location                             = new Point(274, 49);
            dockContainer.Manager                              = this.sandDockManager1;
            dockContainer.Name                                 = "dockContainer1";
            dockContainer.Size                                 = new Size(254, 312);
            dockContainer.TabIndex                             = 6;
            this.codeMapViewerDock1.Guid                       = new Guid("40b77176-f5ac-44ce-a28c-d2f296197e1d");
            this.codeMapViewerDock1.Image                      = null;
            this.codeMapViewerDock1.Location                   = new Point(4, 18);
            this.codeMapViewerDock1.Name                       = "codeMapViewerDock1";
            this.codeMapViewerDock1.Size                       = new Size(250, 270);
            this.codeMapViewerDock1.TabIndex                   = 0;
            this.codeMapViewerDock1.Text                       = "Map Viewer";
            this.sandDockManager1.DockSystemContainer          = this;
            this.sandDockManager1.OwnerForm                    = this;
            this.sandDockManager1.ActiveTabbedDocumentChanged += new EventHandler(this.sandDockManager1_ActiveTabbedDocumentChanged);
            this.statusStrip1.Items.AddRange(new ToolStripItem[]
            {
                this.toolStripStatusLabel1,
                this.lineStatusLabel,
                this.columnStatusLabel
            });
            this.statusStrip1.Location        = new Point(0, 361);
            this.statusStrip1.Name            = "statusStrip1";
            this.statusStrip1.Size            = new Size(528, 22);
            this.statusStrip1.TabIndex        = 1;
            this.statusStrip1.Text            = "statusStrip1";
            this.toolStripStatusLabel1.Name   = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size   = new Size(447, 17);
            this.toolStripStatusLabel1.Spring = true;
            this.lineStatusLabel.Name         = "lineStatusLabel";
            this.lineStatusLabel.Size         = new Size(35, 17);
            this.lineStatusLabel.Text         = "Line 0";
            this.columnStatusLabel.Name       = "columnStatusLabel";
            this.columnStatusLabel.Size       = new Size(31, 17);
            this.columnStatusLabel.Text       = "Col 0";
            this.sandBarManager1.OwnerForm    = this;
            this.leftSandBarDock.Dock         = DockStyle.Left;
            this.leftSandBarDock.Guid         = new Guid("f51f9d3c-d12d-4b04-b3c1-dba150a785e6");
            this.leftSandBarDock.Location     = new Point(0, 49);
            this.leftSandBarDock.Manager      = this.sandBarManager1;
            this.leftSandBarDock.Name         = "leftSandBarDock";
            this.leftSandBarDock.Size         = new Size(0, 334);
            this.leftSandBarDock.TabIndex     = 2;
            this.rightSandBarDock.Dock        = DockStyle.Right;
            this.rightSandBarDock.Guid        = new Guid("c3e7b6e1-de74-4788-aa84-badf07d4feb3");
            this.rightSandBarDock.Location    = new Point(528, 49);
            this.rightSandBarDock.Manager     = this.sandBarManager1;
            this.rightSandBarDock.Name        = "rightSandBarDock";
            this.rightSandBarDock.Size        = new Size(0, 334);
            this.rightSandBarDock.TabIndex    = 3;
            this.bottomSandBarDock.Dock       = DockStyle.Bottom;
            this.bottomSandBarDock.Guid       = new Guid("214365d9-c066-4c57-b2e9-f4e9b8b58fd5");
            this.bottomSandBarDock.Location   = new Point(0, 383);
            this.bottomSandBarDock.Manager    = this.sandBarManager1;
            this.bottomSandBarDock.Name       = "bottomSandBarDock";
            this.bottomSandBarDock.Size       = new Size(528, 0);
            this.bottomSandBarDock.TabIndex   = 4;
            this.topSandBarDock.Controls.Add(this.menuBar1);
            this.topSandBarDock.Controls.Add(this.toolBar1);
            this.topSandBarDock.Dock     = DockStyle.Top;
            this.topSandBarDock.Guid     = new Guid("31bfec4a-f321-4810-8e02-c4eccad1d7f9");
            this.topSandBarDock.Location = new Point(0, 0);
            this.topSandBarDock.Manager  = this.sandBarManager1;
            this.topSandBarDock.Name     = "topSandBarDock";
            this.topSandBarDock.Size     = new Size(528, 49);
            this.topSandBarDock.TabIndex = 5;
            this.menuBar1.Guid           = new Guid("0188290c-f307-4042-a99f-b3a2a1517a38");
            this.menuBar1.Items.AddRange(new ToolbarItemBase[]
            {
                this.menuBarItem1,
                this.menuBarItem2,
                this.menuBarItem3,
                this.menuBarItem4,
                this.menuBarItem5
            });
            this.menuBar1.Location  = new Point(2, 0);
            this.menuBar1.Name      = "menuBar1";
            this.menuBar1.OwnerForm = this;
            this.menuBar1.Size      = new Size(526, 23);
            this.menuBar1.TabIndex  = 0;
            this.menuBar1.Text      = "menuBar1";
            this.menuBarItem1.Items.AddRange(new ToolbarItemBase[]
            {
                this.newFileMenuItem,
                this.openScriptMenuItem,
                this.saveScriptMenuItem,
                this.exitMenuItem
            });
            this.menuBarItem1.Text             = "&File";
            this.newFileMenuItem.Image         = Resources.newMap;
            this.newFileMenuItem.Shortcut      = Shortcut.CtrlN;
            this.newFileMenuItem.Text          = "New script";
            this.newFileMenuItem.Activate     += new EventHandler(this.newFileMenuItem_Activate);
            this.openScriptMenuItem.Image      = Resources.openMap;
            this.openScriptMenuItem.Shortcut   = Shortcut.CtrlO;
            this.openScriptMenuItem.Text       = "Open script";
            this.openScriptMenuItem.Activate  += new EventHandler(this.openScriptMenuItem_Activate);
            this.saveScriptMenuItem.BeginGroup = true;
            this.saveScriptMenuItem.Image      = Resources.save;
            this.saveScriptMenuItem.Shortcut   = Shortcut.CtrlS;
            this.saveScriptMenuItem.Text       = "Save script";
            this.saveScriptMenuItem.Activate  += new EventHandler(this.saveScriptMenuItem_Activate);
            this.exitMenuItem.Text             = "Exit";
            this.menuBarItem2.Items.AddRange(new ToolbarItemBase[]
            {
                this.undoMenuItem,
                this.redoMenuItem,
                this.cutMenuItem,
                this.copyMenuItem,
                this.pasteMenuItem
            });
            this.menuBarItem2.Text       = "&Edit";
            this.undoMenuItem.Image      = Resources.undo;
            this.undoMenuItem.Shortcut   = Shortcut.CtrlZ;
            this.undoMenuItem.Text       = "&Undo";
            this.undoMenuItem.Activate  += new EventHandler(this.undoMenuItem_Activate);
            this.redoMenuItem.Image      = Resources.redo;
            this.redoMenuItem.Shortcut   = Shortcut.CtrlShiftZ;
            this.redoMenuItem.Text       = "&Redo";
            this.cutMenuItem.BeginGroup  = true;
            this.cutMenuItem.Image       = Resources.cut;
            this.cutMenuItem.Shortcut    = Shortcut.CtrlX;
            this.cutMenuItem.Text        = "C&ut";
            this.cutMenuItem.Activate   += new EventHandler(this.cutMenuItem_Activate);
            this.copyMenuItem.Image      = Resources.copy;
            this.copyMenuItem.Shortcut   = Shortcut.CtrlC;
            this.copyMenuItem.Text       = "&Copy";
            this.copyMenuItem.Activate  += new EventHandler(this.copyMenuItem_Activate);
            this.pasteMenuItem.Image     = Resources.paste;
            this.pasteMenuItem.Shortcut  = Shortcut.CtrlV;
            this.pasteMenuItem.Text      = "&Paste";
            this.pasteMenuItem.Activate += new EventHandler(this.pasteMenuItem_Activate);
            this.menuBarItem3.Items.AddRange(new ToolbarItemBase[]
            {
                this.mapViewerMenuItem
            });
            this.menuBarItem3.Text           = "&View";
            this.mapViewerMenuItem.Text      = "Map Viewer";
            this.mapViewerMenuItem.Activate += new EventHandler(this.mapViewerMenuItem_Activate);
            this.menuBarItem4.Items.AddRange(new ToolbarItemBase[]
            {
                this.runMenuItem
            });
            this.menuBarItem4.MdiWindowList = true;
            this.menuBarItem4.Text          = "&Script";
            this.runMenuItem.Image          = Resources.PlayHS;
            this.runMenuItem.Shortcut       = Shortcut.F5;
            this.runMenuItem.Text           = "&Run";
            this.runMenuItem.Activate      += new EventHandler(this.runMenuItem_Activate);
            this.menuBarItem5.Text          = "&Help";
            this.toolBar1.DockLine          = 1;
            this.toolBar1.Guid = new Guid("46756475-373b-4e41-8b89-f8ab1b41c370");
            this.toolBar1.Items.AddRange(new ToolbarItemBase[]
            {
                this.buttonItem1,
                this.buttonItem3,
                this.buttonItem2,
                this.buttonItem4,
                this.buttonItem5,
                this.buttonItem6,
                this.buttonItem8,
                this.buttonItem9,
                this.buttonItem7
            });
            this.toolBar1.Location         = new Point(2, 23);
            this.toolBar1.Name             = "toolBar1";
            this.toolBar1.Size             = new Size(252, 26);
            this.toolBar1.TabIndex         = 1;
            this.toolBar1.Text             = "toolBar1";
            this.buttonItem1.BuddyMenu     = this.newFileMenuItem;
            this.buttonItem1.Image         = Resources.newMap;
            this.buttonItem3.BuddyMenu     = this.openScriptMenuItem;
            this.buttonItem3.Image         = Resources.openMap;
            this.buttonItem2.BuddyMenu     = this.saveScriptMenuItem;
            this.buttonItem2.Image         = Resources.save;
            this.buttonItem4.BeginGroup    = true;
            this.buttonItem4.BuddyMenu     = this.cutMenuItem;
            this.buttonItem4.Image         = Resources.cut;
            this.buttonItem5.BuddyMenu     = this.copyMenuItem;
            this.buttonItem5.Image         = Resources.copy;
            this.buttonItem6.BuddyMenu     = this.pasteMenuItem;
            this.buttonItem6.Image         = Resources.paste;
            this.buttonItem8.BeginGroup    = true;
            this.buttonItem8.BuddyMenu     = this.undoMenuItem;
            this.buttonItem8.Image         = Resources.undo;
            this.buttonItem9.BuddyMenu     = this.redoMenuItem;
            this.buttonItem9.Image         = Resources.redo;
            this.buttonItem7.BeginGroup    = true;
            this.buttonItem7.BuddyMenu     = this.runMenuItem;
            this.buttonItem7.Image         = Resources.PlayHS;
            this.openFileDialog.DefaultExt = "lua";
            this.openFileDialog.FileName   = "openFileDialog1";
            this.openFileDialog.Filter     = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*";
            this.openFileDialog.Title      = "Open script";
            this.contextMenuStrip1.Items.AddRange(new ToolStripItem[]
            {
                this.cutToolStripMenuItem,
                this.copyToolStripMenuItem,
                this.pasteToolStripMenuItem,
                this.toolStripSeparator1,
                this.insertFunctionToolStripMenuItem,
                this.insertTextureEntryIDToolStripMenuItem,
                this.insertCollectionEntryIDToolStripMenuItem
            });
            this.contextMenuStrip1.Name                        = "contextMenuStrip1";
            this.contextMenuStrip1.Size                        = new Size(194, 164);
            this.cutToolStripMenuItem.Name                     = "cutToolStripMenuItem";
            this.cutToolStripMenuItem.Size                     = new Size(193, 22);
            this.cutToolStripMenuItem.Text                     = "Cut";
            this.cutToolStripMenuItem.Click                   += new EventHandler(this.cutToolStripMenuItem_Click);
            this.copyToolStripMenuItem.Name                    = "copyToolStripMenuItem";
            this.copyToolStripMenuItem.Size                    = new Size(193, 22);
            this.copyToolStripMenuItem.Text                    = "Copy";
            this.copyToolStripMenuItem.Click                  += new EventHandler(this.copyToolStripMenuItem_Click);
            this.pasteToolStripMenuItem.Name                   = "pasteToolStripMenuItem";
            this.pasteToolStripMenuItem.Size                   = new Size(193, 22);
            this.pasteToolStripMenuItem.Text                   = "Paste";
            this.pasteToolStripMenuItem.Click                 += new EventHandler(this.pasteToolStripMenuItem_Click);
            this.toolStripSeparator1.Name                      = "toolStripSeparator1";
            this.toolStripSeparator1.Size                      = new Size(190, 6);
            this.insertFunctionToolStripMenuItem.Name          = "insertFunctionToolStripMenuItem";
            this.insertFunctionToolStripMenuItem.Size          = new Size(193, 22);
            this.insertFunctionToolStripMenuItem.Text          = "Insert function";
            this.insertTextureEntryIDToolStripMenuItem.Name    = "insertTextureEntryIDToolStripMenuItem";
            this.insertTextureEntryIDToolStripMenuItem.Size    = new Size(193, 22);
            this.insertTextureEntryIDToolStripMenuItem.Text    = "Insert texture entry ID";
            this.insertCollectionEntryIDToolStripMenuItem.Name = "insertCollectionEntryIDToolStripMenuItem";
            this.insertCollectionEntryIDToolStripMenuItem.Size = new Size(193, 22);
            this.insertCollectionEntryIDToolStripMenuItem.Text = "Insert collection entry ID";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(528, 383);
            base.Controls.Add(dockContainer);
            base.Controls.Add(this.statusStrip1);
            base.Controls.Add(this.leftSandBarDock);
            base.Controls.Add(this.rightSandBarDock);
            base.Controls.Add(this.bottomSandBarDock);
            base.Controls.Add(this.topSandBarDock);
            base.Name = "CodeEditor";
            this.Text = "Far Cry 2 Script Editor";
            dockContainer.ResumeLayout(false);
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.topSandBarDock.ResumeLayout(false);
            this.contextMenuStrip1.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
示例#2
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.codeMapViewerDock1 = new CodeMapViewerDock();
     this.sandDockManager1 = new SandDockManager();
     this.statusStrip1 = new StatusStrip();
     this.toolStripStatusLabel1 = new ToolStripStatusLabel();
     this.lineStatusLabel = new ToolStripStatusLabel();
     this.columnStatusLabel = new ToolStripStatusLabel();
     this.sandBarManager1 = new SandBarManager(this.components);
     this.leftSandBarDock = new ToolBarContainer();
     this.rightSandBarDock = new ToolBarContainer();
     this.bottomSandBarDock = new ToolBarContainer();
     this.topSandBarDock = new ToolBarContainer();
     this.menuBar1 = new MenuBar();
     this.menuBarItem1 = new MenuBarItem();
     this.newFileMenuItem = new MenuButtonItem();
     this.openScriptMenuItem = new MenuButtonItem();
     this.saveScriptMenuItem = new MenuButtonItem();
     this.exitMenuItem = new MenuButtonItem();
     this.menuBarItem2 = new MenuBarItem();
     this.undoMenuItem = new MenuButtonItem();
     this.redoMenuItem = new MenuButtonItem();
     this.cutMenuItem = new MenuButtonItem();
     this.copyMenuItem = new MenuButtonItem();
     this.pasteMenuItem = new MenuButtonItem();
     this.menuBarItem3 = new MenuBarItem();
     this.mapViewerMenuItem = new MenuButtonItem();
     this.menuBarItem4 = new MenuBarItem();
     this.runMenuItem = new MenuButtonItem();
     this.menuBarItem5 = new MenuBarItem();
     this.toolBar1 = new TD.SandBar.ToolBar();
     this.buttonItem1 = new ButtonItem();
     this.buttonItem3 = new ButtonItem();
     this.buttonItem2 = new ButtonItem();
     this.buttonItem4 = new ButtonItem();
     this.buttonItem5 = new ButtonItem();
     this.buttonItem6 = new ButtonItem();
     this.buttonItem8 = new ButtonItem();
     this.buttonItem9 = new ButtonItem();
     this.buttonItem7 = new ButtonItem();
     this.openFileDialog = new OpenFileDialog();
     this.contextMenuStrip1 = new ContextMenuStrip(this.components);
     this.cutToolStripMenuItem = new ToolStripMenuItem();
     this.copyToolStripMenuItem = new ToolStripMenuItem();
     this.pasteToolStripMenuItem = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.insertFunctionToolStripMenuItem = new ToolStripMenuItem();
     this.insertTextureEntryIDToolStripMenuItem = new ToolStripMenuItem();
     this.insertCollectionEntryIDToolStripMenuItem = new ToolStripMenuItem();
     DockContainer dockContainer = new DockContainer();
     dockContainer.SuspendLayout();
     this.statusStrip1.SuspendLayout();
     this.topSandBarDock.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     base.SuspendLayout();
     dockContainer.Controls.Add(this.codeMapViewerDock1);
     dockContainer.Dock = DockStyle.Right;
     dockContainer.LayoutSystem = new SplitLayoutSystem(250, 312, Orientation.Horizontal, new LayoutSystemBase[]
     {
         new ControlLayoutSystem(250, 312, new DockControl[]
         {
             this.codeMapViewerDock1
         }, this.codeMapViewerDock1)
     });
     dockContainer.Location = new Point(274, 49);
     dockContainer.Manager = this.sandDockManager1;
     dockContainer.Name = "dockContainer1";
     dockContainer.Size = new Size(254, 312);
     dockContainer.TabIndex = 6;
     this.codeMapViewerDock1.Guid = new Guid("40b77176-f5ac-44ce-a28c-d2f296197e1d");
     this.codeMapViewerDock1.Image = null;
     this.codeMapViewerDock1.Location = new Point(4, 18);
     this.codeMapViewerDock1.Name = "codeMapViewerDock1";
     this.codeMapViewerDock1.Size = new Size(250, 270);
     this.codeMapViewerDock1.TabIndex = 0;
     this.codeMapViewerDock1.Text = "Map Viewer";
     this.sandDockManager1.DockSystemContainer = this;
     this.sandDockManager1.OwnerForm = this;
     this.sandDockManager1.ActiveTabbedDocumentChanged += new EventHandler(this.sandDockManager1_ActiveTabbedDocumentChanged);
     this.statusStrip1.Items.AddRange(new ToolStripItem[]
     {
         this.toolStripStatusLabel1,
         this.lineStatusLabel,
         this.columnStatusLabel
     });
     this.statusStrip1.Location = new Point(0, 361);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new Size(528, 22);
     this.statusStrip1.TabIndex = 1;
     this.statusStrip1.Text = "statusStrip1";
     this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
     this.toolStripStatusLabel1.Size = new Size(447, 17);
     this.toolStripStatusLabel1.Spring = true;
     this.lineStatusLabel.Name = "lineStatusLabel";
     this.lineStatusLabel.Size = new Size(35, 17);
     this.lineStatusLabel.Text = "Line 0";
     this.columnStatusLabel.Name = "columnStatusLabel";
     this.columnStatusLabel.Size = new Size(31, 17);
     this.columnStatusLabel.Text = "Col 0";
     this.sandBarManager1.OwnerForm = this;
     this.leftSandBarDock.Dock = DockStyle.Left;
     this.leftSandBarDock.Guid = new Guid("f51f9d3c-d12d-4b04-b3c1-dba150a785e6");
     this.leftSandBarDock.Location = new Point(0, 49);
     this.leftSandBarDock.Manager = this.sandBarManager1;
     this.leftSandBarDock.Name = "leftSandBarDock";
     this.leftSandBarDock.Size = new Size(0, 334);
     this.leftSandBarDock.TabIndex = 2;
     this.rightSandBarDock.Dock = DockStyle.Right;
     this.rightSandBarDock.Guid = new Guid("c3e7b6e1-de74-4788-aa84-badf07d4feb3");
     this.rightSandBarDock.Location = new Point(528, 49);
     this.rightSandBarDock.Manager = this.sandBarManager1;
     this.rightSandBarDock.Name = "rightSandBarDock";
     this.rightSandBarDock.Size = new Size(0, 334);
     this.rightSandBarDock.TabIndex = 3;
     this.bottomSandBarDock.Dock = DockStyle.Bottom;
     this.bottomSandBarDock.Guid = new Guid("214365d9-c066-4c57-b2e9-f4e9b8b58fd5");
     this.bottomSandBarDock.Location = new Point(0, 383);
     this.bottomSandBarDock.Manager = this.sandBarManager1;
     this.bottomSandBarDock.Name = "bottomSandBarDock";
     this.bottomSandBarDock.Size = new Size(528, 0);
     this.bottomSandBarDock.TabIndex = 4;
     this.topSandBarDock.Controls.Add(this.menuBar1);
     this.topSandBarDock.Controls.Add(this.toolBar1);
     this.topSandBarDock.Dock = DockStyle.Top;
     this.topSandBarDock.Guid = new Guid("31bfec4a-f321-4810-8e02-c4eccad1d7f9");
     this.topSandBarDock.Location = new Point(0, 0);
     this.topSandBarDock.Manager = this.sandBarManager1;
     this.topSandBarDock.Name = "topSandBarDock";
     this.topSandBarDock.Size = new Size(528, 49);
     this.topSandBarDock.TabIndex = 5;
     this.menuBar1.Guid = new Guid("0188290c-f307-4042-a99f-b3a2a1517a38");
     this.menuBar1.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuBarItem1,
         this.menuBarItem2,
         this.menuBarItem3,
         this.menuBarItem4,
         this.menuBarItem5
     });
     this.menuBar1.Location = new Point(2, 0);
     this.menuBar1.Name = "menuBar1";
     this.menuBar1.OwnerForm = this;
     this.menuBar1.Size = new Size(526, 23);
     this.menuBar1.TabIndex = 0;
     this.menuBar1.Text = "menuBar1";
     this.menuBarItem1.Items.AddRange(new ToolbarItemBase[]
     {
         this.newFileMenuItem,
         this.openScriptMenuItem,
         this.saveScriptMenuItem,
         this.exitMenuItem
     });
     this.menuBarItem1.Text = "&File";
     this.newFileMenuItem.Image = Resources.newMap;
     this.newFileMenuItem.Shortcut = Shortcut.CtrlN;
     this.newFileMenuItem.Text = "New script";
     this.newFileMenuItem.Activate += new EventHandler(this.newFileMenuItem_Activate);
     this.openScriptMenuItem.Image = Resources.openMap;
     this.openScriptMenuItem.Shortcut = Shortcut.CtrlO;
     this.openScriptMenuItem.Text = "Open script";
     this.openScriptMenuItem.Activate += new EventHandler(this.openScriptMenuItem_Activate);
     this.saveScriptMenuItem.BeginGroup = true;
     this.saveScriptMenuItem.Image = Resources.save;
     this.saveScriptMenuItem.Shortcut = Shortcut.CtrlS;
     this.saveScriptMenuItem.Text = "Save script";
     this.saveScriptMenuItem.Activate += new EventHandler(this.saveScriptMenuItem_Activate);
     this.exitMenuItem.Text = "Exit";
     this.menuBarItem2.Items.AddRange(new ToolbarItemBase[]
     {
         this.undoMenuItem,
         this.redoMenuItem,
         this.cutMenuItem,
         this.copyMenuItem,
         this.pasteMenuItem
     });
     this.menuBarItem2.Text = "&Edit";
     this.undoMenuItem.Image = Resources.undo;
     this.undoMenuItem.Shortcut = Shortcut.CtrlZ;
     this.undoMenuItem.Text = "&Undo";
     this.undoMenuItem.Activate += new EventHandler(this.undoMenuItem_Activate);
     this.redoMenuItem.Image = Resources.redo;
     this.redoMenuItem.Shortcut = Shortcut.CtrlShiftZ;
     this.redoMenuItem.Text = "&Redo";
     this.cutMenuItem.BeginGroup = true;
     this.cutMenuItem.Image = Resources.cut;
     this.cutMenuItem.Shortcut = Shortcut.CtrlX;
     this.cutMenuItem.Text = "C&ut";
     this.cutMenuItem.Activate += new EventHandler(this.cutMenuItem_Activate);
     this.copyMenuItem.Image = Resources.copy;
     this.copyMenuItem.Shortcut = Shortcut.CtrlC;
     this.copyMenuItem.Text = "&Copy";
     this.copyMenuItem.Activate += new EventHandler(this.copyMenuItem_Activate);
     this.pasteMenuItem.Image = Resources.paste;
     this.pasteMenuItem.Shortcut = Shortcut.CtrlV;
     this.pasteMenuItem.Text = "&Paste";
     this.pasteMenuItem.Activate += new EventHandler(this.pasteMenuItem_Activate);
     this.menuBarItem3.Items.AddRange(new ToolbarItemBase[]
     {
         this.mapViewerMenuItem
     });
     this.menuBarItem3.Text = "&View";
     this.mapViewerMenuItem.Text = "Map Viewer";
     this.mapViewerMenuItem.Activate += new EventHandler(this.mapViewerMenuItem_Activate);
     this.menuBarItem4.Items.AddRange(new ToolbarItemBase[]
     {
         this.runMenuItem
     });
     this.menuBarItem4.MdiWindowList = true;
     this.menuBarItem4.Text = "&Script";
     this.runMenuItem.Image = Resources.PlayHS;
     this.runMenuItem.Shortcut = Shortcut.F5;
     this.runMenuItem.Text = "&Run";
     this.runMenuItem.Activate += new EventHandler(this.runMenuItem_Activate);
     this.menuBarItem5.Text = "&Help";
     this.toolBar1.DockLine = 1;
     this.toolBar1.Guid = new Guid("46756475-373b-4e41-8b89-f8ab1b41c370");
     this.toolBar1.Items.AddRange(new ToolbarItemBase[]
     {
         this.buttonItem1,
         this.buttonItem3,
         this.buttonItem2,
         this.buttonItem4,
         this.buttonItem5,
         this.buttonItem6,
         this.buttonItem8,
         this.buttonItem9,
         this.buttonItem7
     });
     this.toolBar1.Location = new Point(2, 23);
     this.toolBar1.Name = "toolBar1";
     this.toolBar1.Size = new Size(252, 26);
     this.toolBar1.TabIndex = 1;
     this.toolBar1.Text = "toolBar1";
     this.buttonItem1.BuddyMenu = this.newFileMenuItem;
     this.buttonItem1.Image = Resources.newMap;
     this.buttonItem3.BuddyMenu = this.openScriptMenuItem;
     this.buttonItem3.Image = Resources.openMap;
     this.buttonItem2.BuddyMenu = this.saveScriptMenuItem;
     this.buttonItem2.Image = Resources.save;
     this.buttonItem4.BeginGroup = true;
     this.buttonItem4.BuddyMenu = this.cutMenuItem;
     this.buttonItem4.Image = Resources.cut;
     this.buttonItem5.BuddyMenu = this.copyMenuItem;
     this.buttonItem5.Image = Resources.copy;
     this.buttonItem6.BuddyMenu = this.pasteMenuItem;
     this.buttonItem6.Image = Resources.paste;
     this.buttonItem8.BeginGroup = true;
     this.buttonItem8.BuddyMenu = this.undoMenuItem;
     this.buttonItem8.Image = Resources.undo;
     this.buttonItem9.BuddyMenu = this.redoMenuItem;
     this.buttonItem9.Image = Resources.redo;
     this.buttonItem7.BeginGroup = true;
     this.buttonItem7.BuddyMenu = this.runMenuItem;
     this.buttonItem7.Image = Resources.PlayHS;
     this.openFileDialog.DefaultExt = "lua";
     this.openFileDialog.FileName = "openFileDialog1";
     this.openFileDialog.Filter = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*";
     this.openFileDialog.Title = "Open script";
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[]
     {
         this.cutToolStripMenuItem,
         this.copyToolStripMenuItem,
         this.pasteToolStripMenuItem,
         this.toolStripSeparator1,
         this.insertFunctionToolStripMenuItem,
         this.insertTextureEntryIDToolStripMenuItem,
         this.insertCollectionEntryIDToolStripMenuItem
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new Size(194, 164);
     this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
     this.cutToolStripMenuItem.Size = new Size(193, 22);
     this.cutToolStripMenuItem.Text = "Cut";
     this.cutToolStripMenuItem.Click += new EventHandler(this.cutToolStripMenuItem_Click);
     this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
     this.copyToolStripMenuItem.Size = new Size(193, 22);
     this.copyToolStripMenuItem.Text = "Copy";
     this.copyToolStripMenuItem.Click += new EventHandler(this.copyToolStripMenuItem_Click);
     this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
     this.pasteToolStripMenuItem.Size = new Size(193, 22);
     this.pasteToolStripMenuItem.Text = "Paste";
     this.pasteToolStripMenuItem.Click += new EventHandler(this.pasteToolStripMenuItem_Click);
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new Size(190, 6);
     this.insertFunctionToolStripMenuItem.Name = "insertFunctionToolStripMenuItem";
     this.insertFunctionToolStripMenuItem.Size = new Size(193, 22);
     this.insertFunctionToolStripMenuItem.Text = "Insert function";
     this.insertTextureEntryIDToolStripMenuItem.Name = "insertTextureEntryIDToolStripMenuItem";
     this.insertTextureEntryIDToolStripMenuItem.Size = new Size(193, 22);
     this.insertTextureEntryIDToolStripMenuItem.Text = "Insert texture entry ID";
     this.insertCollectionEntryIDToolStripMenuItem.Name = "insertCollectionEntryIDToolStripMenuItem";
     this.insertCollectionEntryIDToolStripMenuItem.Size = new Size(193, 22);
     this.insertCollectionEntryIDToolStripMenuItem.Text = "Insert collection entry ID";
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(528, 383);
     base.Controls.Add(dockContainer);
     base.Controls.Add(this.statusStrip1);
     base.Controls.Add(this.leftSandBarDock);
     base.Controls.Add(this.rightSandBarDock);
     base.Controls.Add(this.bottomSandBarDock);
     base.Controls.Add(this.topSandBarDock);
     base.Name = "CodeEditor";
     this.Text = "Far Cry 2 Script Editor";
     dockContainer.ResumeLayout(false);
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.topSandBarDock.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
示例#3
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.sandDockManager = new SandDockManager();
     this.sandBarManager = new SandBarManager(this.components);
     this.leftSandBarDock = new ToolBarContainer();
     this.rightSandBarDock = new ToolBarContainer();
     this.bottomSandBarDock = new ToolBarContainer();
     this.topSandBarDock = new ToolBarContainer();
     this.menuBar = new MenuBar();
     this.menuBarItem1 = new MenuBarItem();
     this.menuItem_newMap = new MenuButtonItem();
     this.menuItem_newWilderness = new MenuButtonItem();
     this.menuItem_loadMap = new MenuButtonItem();
     this.menuItem_saveMap = new MenuButtonItem();
     this.menuItem_saveMapAs = new MenuButtonItem();
     this.menuItem_exit = new MenuButtonItem();
     this.menuBarItem3 = new MenuBarItem();
     this.menuItem_Undo = new MenuButtonItem();
     this.menuItem_Redo = new MenuButtonItem();
     this.menuBarItem2 = new MenuBarItem();
     this.menuItem_viewToolParameters = new MenuButtonItem();
     this.menuItem_viewEditorSettings = new MenuButtonItem();
     this.menuItem_viewContextHelp = new MenuButtonItem();
     this.menuBarItem4 = new MenuBarItem();
     this.menuItem_TestIngame = new MenuButtonItem();
     this.menuBarItem5 = new MenuBarItem();
     this.menuItem_OpenCodeEditor = new MenuButtonItem();
     this.menuItem_DumpMap = new MenuButtonItem();
     this.menuItem_ExtractBigFile = new MenuButtonItem();
     this.menuItem_ExportToPC = new MenuButtonItem();
     this.menuItem_ExportToConsole = new MenuButtonItem();
     this.menuItem_ResetLayout = new MenuButtonItem();
     this.menuItem_PrepareThumbnails = new MenuButtonItem();
     this.menuItem_ReloadEditor = new MenuButtonItem();
     this.menuItem_ImportWorld = new MenuButtonItem();
     this.menuItem_ObjectAdmin = new MenuButtonItem();
     this.menuBarItem6 = new MenuBarItem();
     this.menuItem_visitWebsite = new MenuButtonItem();
     this.menuItem_about = new MenuButtonItem();
     this.toolBarMain = new TD.SandBar.ToolBar();
     this.buttonItem1 = new ButtonItem();
     this.buttonItem2 = new ButtonItem();
     this.buttonItem3 = new ButtonItem();
     this.buttonItem4 = new ButtonItem();
     this.buttonItem5 = new ButtonItem();
     this.toolTip = new ToolTip(this.components);
     this.openMapDialog = new OpenFileDialog();
     this.saveMapDialog = new SaveFileDialog();
     this.timerUIUpdate = new Timer(this.components);
     this.statusBar = new StatusStrip();
     this.statusBarContextMenu = new ContextMenuStrip(this.components);
     this.whatsThisToolStripMenuItem = new ToolStripMenuItem();
     this.statusCaption = new ToolStripStatusLabel();
     this.statusBarCameraSpeed = new ToolStripDropDownButton();
     this.cameraSpeedStrip = new ContextMenuStrip(this.components);
     this.statusBarCameraPos = new ToolStripStatusLabel();
     this.statusBarCursorPos = new ToolStripStatusLabel();
     this.statusBarMemoryUsage = new ToolStripStatusLabel();
     this.statusBarObjectUsage = new ToolStripStatusLabel();
     this.statusBarFpsItem = new ToolStripStatusLabel();
     this.folderBrowserDialog = new FolderBrowserDialog();
     this.viewport = new ViewportControl();
     this.topSandBarDock.SuspendLayout();
     this.statusBar.SuspendLayout();
     this.statusBarContextMenu.SuspendLayout();
     base.SuspendLayout();
     this.sandDockManager.DockSystemContainer = this;
     this.sandDockManager.MaximumDockContainerSize = 2000;
     this.sandDockManager.OwnerForm = this;
     this.sandBarManager.OwnerForm = this;
     this.sandBarManager.Renderer = new WhidbeyRenderer();
     this.leftSandBarDock.Dock = DockStyle.Left;
     this.leftSandBarDock.Guid = new Guid("5af42533-b4bf-4ff9-b113-19c06ff822ad");
     this.leftSandBarDock.Location = new Point(0, 49);
     this.leftSandBarDock.Manager = this.sandBarManager;
     this.leftSandBarDock.Name = "leftSandBarDock";
     this.leftSandBarDock.Size = new Size(0, 592);
     this.leftSandBarDock.TabIndex = 0;
     this.rightSandBarDock.Dock = DockStyle.Right;
     this.rightSandBarDock.Guid = new Guid("dd1d865e-52de-4df1-b60b-8d95778c6a99");
     this.rightSandBarDock.Location = new Point(973, 49);
     this.rightSandBarDock.Manager = this.sandBarManager;
     this.rightSandBarDock.Name = "rightSandBarDock";
     this.rightSandBarDock.Size = new Size(0, 592);
     this.rightSandBarDock.TabIndex = 1;
     this.bottomSandBarDock.Dock = DockStyle.Bottom;
     this.bottomSandBarDock.Guid = new Guid("241b4d86-e08e-4fbd-9187-85417e2a6762");
     this.bottomSandBarDock.Location = new Point(0, 641);
     this.bottomSandBarDock.Manager = this.sandBarManager;
     this.bottomSandBarDock.Name = "bottomSandBarDock";
     this.bottomSandBarDock.Size = new Size(973, 0);
     this.bottomSandBarDock.TabIndex = 2;
     this.topSandBarDock.Controls.Add(this.menuBar);
     this.topSandBarDock.Controls.Add(this.toolBarMain);
     this.topSandBarDock.Dock = DockStyle.Top;
     this.topSandBarDock.Guid = new Guid("9d4d899c-2f1c-48a5-b6b3-c2965fee85b0");
     this.topSandBarDock.Location = new Point(0, 0);
     this.topSandBarDock.Manager = this.sandBarManager;
     this.topSandBarDock.Name = "topSandBarDock";
     this.topSandBarDock.Size = new Size(973, 49);
     this.topSandBarDock.TabIndex = 3;
     this.menuBar.Guid = new Guid("67d4f929-8914-4b23-9c2d-b9539a54dd9b");
     this.menuBar.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuBarItem1,
         this.menuBarItem3,
         this.menuBarItem2,
         this.menuBarItem4,
         this.menuBarItem5,
         this.menuBarItem6
     });
     this.menuBar.Location = new Point(2, 0);
     this.menuBar.Movable = false;
     this.menuBar.Name = "menuBar";
     this.menuBar.OwnerForm = this;
     this.menuBar.Size = new Size(971, 23);
     this.menuBar.TabIndex = 0;
     this.menuBar.Text = "menuBar1";
     this.menuBarItem1.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_newMap,
         this.menuItem_newWilderness,
         this.menuItem_loadMap,
         this.menuItem_saveMap,
         this.menuItem_saveMapAs,
         this.menuItem_exit
     });
     this.menuBarItem1.Text = "MENU_FILE";
     this.menuItem_newMap.Shortcut = Shortcut.CtrlN;
     this.menuItem_newMap.Text = "MENUITEM_FILE_NEW_MAP";
     this.menuItem_newMap.Activate += new EventHandler(this.menuItem_newMap_Activate);
     this.menuItem_newWilderness.Text = "MENUITEM_FILE_NEW_WILDERNESS";
     this.menuItem_newWilderness.Activate += new EventHandler(this.menuItem_newWilderness_Activate);
     this.menuItem_loadMap.Shortcut = Shortcut.CtrlO;
     this.menuItem_loadMap.Text = "MENUITEM_FILE_LOAD_MAP";
     this.menuItem_loadMap.Activate += new EventHandler(this.menuItem_loadMap_Activate);
     this.menuItem_saveMap.BeginGroup = true;
     this.menuItem_saveMap.Shortcut = Shortcut.CtrlS;
     this.menuItem_saveMap.Text = "MENUITEM_FILE_SAVE_MAP";
     this.menuItem_saveMap.Activate += new EventHandler(this.menuItem_saveMap_Activate);
     this.menuItem_saveMapAs.Text = "MENUITEM_FILE_SAVE_MAP_AS";
     this.menuItem_saveMapAs.Activate += new EventHandler(this.menuItem_saveMapAs_Activate);
     this.menuItem_exit.BeginGroup = true;
     this.menuItem_exit.Text = "MENUITEM_FILE_EXIT";
     this.menuItem_exit.Activate += new EventHandler(this.menuItem_exit_Activate);
     this.menuBarItem3.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_Undo,
         this.menuItem_Redo
     });
     this.menuBarItem3.Text = "MENU_EDIT";
     this.menuItem_Undo.Shortcut = Shortcut.CtrlZ;
     this.menuItem_Undo.Text = "MENUITEM_EDIT_UNDO";
     this.menuItem_Undo.Activate += new EventHandler(this.menuItem_Undo_Activate);
     this.menuItem_Redo.Shortcut = Shortcut.CtrlShiftZ;
     this.menuItem_Redo.Text = "MENUITEM_EDIT_REDO";
     this.menuItem_Redo.Activate += new EventHandler(this.menuItem_Redo_Activate);
     this.menuBarItem2.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_viewToolParameters,
         this.menuItem_viewEditorSettings,
         this.menuItem_viewContextHelp
     });
     this.menuBarItem2.Text = "MENU_VIEW";
     this.menuItem_viewToolParameters.Text = "DOCK_TOOL_PARAMETERS";
     this.menuItem_viewToolParameters.Activate += new EventHandler(this.menuItem_viewToolParameters_Activate);
     this.menuItem_viewEditorSettings.Text = "DOCK_EDITOR_SETTINGS";
     this.menuItem_viewEditorSettings.Activate += new EventHandler(this.menuItem_viewEditorSettings_Activate);
     this.menuItem_viewContextHelp.Text = "DOCK_CONTEXT_HELP";
     this.menuItem_viewContextHelp.Activate += new EventHandler(this.menuItem_viewContextHelp_Activate);
     this.menuBarItem4.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_TestIngame
     });
     this.menuBarItem4.Text = "MENU_GAME";
     this.menuItem_TestIngame.Shortcut = Shortcut.CtrlG;
     this.menuItem_TestIngame.Text = "MENUITEM_GAME_TEST_INGAME";
     this.menuItem_TestIngame.Activate += new EventHandler(this.menuItem_TestIngame_Activate);
     this.menuBarItem5.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_OpenCodeEditor,
         this.menuItem_DumpMap,
         this.menuItem_ExtractBigFile,
         this.menuItem_ExportToPC,
         this.menuItem_ExportToConsole,
         this.menuItem_ResetLayout,
         this.menuItem_PrepareThumbnails,
         this.menuItem_ReloadEditor,
         this.menuItem_ImportWorld,
         this.menuItem_ObjectAdmin
     });
     this.menuBarItem5.Text = "MENU_ADVANCED";
     this.menuItem_OpenCodeEditor.Text = "*Code Editor";
     this.menuItem_OpenCodeEditor.Activate += new EventHandler(this.menuItem_OpenCodeEditor_Activate);
     this.menuItem_DumpMap.BeginGroup = true;
     this.menuItem_DumpMap.Text = "*Dump map";
     this.menuItem_DumpMap.Activate += new EventHandler(this.menuItem_DumpMap_Activate);
     this.menuItem_ExtractBigFile.Text = "*Extract Bigfile";
     this.menuItem_ExtractBigFile.Activate += new EventHandler(this.menuItem_ExtractBigFile_Activate);
     this.menuItem_ExportToPC.BeginGroup = true;
     this.menuItem_ExportToPC.Text = "*Export to PC";
     this.menuItem_ExportToPC.Activate += new EventHandler(this.menuItem_ExportToPC_Activate);
     this.menuItem_ExportToConsole.Text = "*Export to Console";
     this.menuItem_ExportToConsole.Activate += new EventHandler(this.menuItem_ExportToConsole_Activate);
     this.menuItem_ResetLayout.Text = "MENUITEM_ADVANCED_RESET_LAYOUT";
     this.menuItem_ResetLayout.Activate += new EventHandler(this.menuItem_ResetLayout_Activate);
     this.menuItem_PrepareThumbnails.BeginGroup = true;
     this.menuItem_PrepareThumbnails.Text = "*Prepare thumbnails";
     this.menuItem_PrepareThumbnails.Activate += new EventHandler(this.menuItem_PrepareThumbnails_Activate);
     this.menuItem_ReloadEditor.BeginGroup = true;
     this.menuItem_ReloadEditor.Text = "*Reload editor DLL";
     this.menuItem_ReloadEditor.Activate += new EventHandler(this.menuItem_ReloadEditor_Activate);
     this.menuItem_ImportWorld.BeginGroup = true;
     this.menuItem_ImportWorld.Text = "*Import world";
     this.menuItem_ImportWorld.Activate += new EventHandler(this.menuItem_ImportWorld_Activate);
     this.menuItem_ObjectAdmin.Text = "*Object admin";
     this.menuItem_ObjectAdmin.Activate += new EventHandler(this.menuItem_ObjectAdmin_Activate);
     this.menuBarItem6.Items.AddRange(new ToolbarItemBase[]
     {
         this.menuItem_visitWebsite,
         this.menuItem_about
     });
     this.menuBarItem6.Text = "MENU_HELP";
     this.menuItem_visitWebsite.Text = "MENUITEM_HELP_VISIT_WEBSITE";
     this.menuItem_visitWebsite.Activate += new EventHandler(this.menuItem_visitWebsite_Activate);
     this.menuItem_about.BeginGroup = true;
     this.menuItem_about.Text = "MENUITEM_HELP_ABOUT";
     this.menuItem_about.Activate += new EventHandler(this.menuItem_about_Activate);
     this.toolBarMain.DockLine = 1;
     this.toolBarMain.FlipLastItem = true;
     this.toolBarMain.Guid = new Guid("472238c1-4ade-4ff2-ba4f-4429ed30f50f");
     this.toolBarMain.Items.AddRange(new ToolbarItemBase[]
     {
         this.buttonItem1,
         this.buttonItem2,
         this.buttonItem3,
         this.buttonItem4,
         this.buttonItem5
     });
     this.toolBarMain.Location = new Point(2, 23);
     this.toolBarMain.Name = "toolBarMain";
     this.toolBarMain.Size = new Size(146, 26);
     this.toolBarMain.TabIndex = 1;
     this.toolBarMain.Text = "TOOLBAR_MAIN";
     this.buttonItem1.BuddyMenu = this.menuItem_newMap;
     this.buttonItem1.Image = Resources.newMap;
     this.buttonItem2.BuddyMenu = this.menuItem_loadMap;
     this.buttonItem2.Image = Resources.openMap;
     this.buttonItem3.BuddyMenu = this.menuItem_saveMap;
     this.buttonItem3.Image = Resources.save;
     this.buttonItem4.BeginGroup = true;
     this.buttonItem4.BuddyMenu = this.menuItem_Undo;
     this.buttonItem4.Image = Resources.undo;
     this.buttonItem5.BuddyMenu = this.menuItem_Redo;
     this.buttonItem5.Image = Resources.redo;
     this.openMapDialog.DefaultExt = "fc3map";
     this.openMapDialog.Filter = "Far Cry 3 maps (*.fc3map)|*.fc3map|All files (*.*)|*.*";
     this.openMapDialog.Title = "Open Far Cry 3 map";
     this.saveMapDialog.DefaultExt = "fc3map";
     this.saveMapDialog.Filter = "Far Cry 3 maps (*.fc3map)|*.fc3map|All files (*.*)|*.*";
     this.saveMapDialog.Title = "Save Far Cry 3 map";
     this.timerUIUpdate.Enabled = true;
     this.timerUIUpdate.Tick += new EventHandler(this.timerUIUpdate_Tick);
     this.statusBar.ContextMenuStrip = this.statusBarContextMenu;
     this.statusBar.Items.AddRange(new ToolStripItem[]
     {
         this.statusCaption,
         this.statusBarCameraSpeed,
         this.statusBarCameraPos,
         this.statusBarCursorPos,
         this.statusBarMemoryUsage,
         this.statusBarObjectUsage,
         this.statusBarFpsItem
     });
     this.statusBar.Location = new Point(0, 641);
     this.statusBar.Name = "statusBar";
     this.statusBar.Size = new Size(973, 22);
     this.statusBar.TabIndex = 7;
     this.statusBar.Text = "statusStrip1";
     this.statusBarContextMenu.Items.AddRange(new ToolStripItem[]
     {
         this.whatsThisToolStripMenuItem
     });
     this.statusBarContextMenu.Name = "statusBarContextMenu";
     this.statusBarContextMenu.Size = new Size(179, 26);
     this.statusBarContextMenu.Opening += new CancelEventHandler(this.statusBarContextMenu_Opening);
     this.whatsThisToolStripMenuItem.Name = "whatsThisToolStripMenuItem";
     this.whatsThisToolStripMenuItem.Size = new Size(178, 22);
     this.whatsThisToolStripMenuItem.Text = "HELP_WHATS_THIS";
     this.whatsThisToolStripMenuItem.Click += new EventHandler(this.whatsThisToolStripMenuItem_Click);
     this.statusCaption.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusCaption.Name = "statusCaption";
     this.statusCaption.Size = new Size(408, 17);
     this.statusCaption.Spring = true;
     this.statusCaption.Text = "Ready";
     this.statusCaption.TextAlign = ContentAlignment.MiddleLeft;
     this.statusBarCameraSpeed.AutoSize = false;
     this.statusBarCameraSpeed.DropDown = this.cameraSpeedStrip;
     this.statusBarCameraSpeed.Image = Resources.speed;
     this.statusBarCameraSpeed.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarCameraSpeed.ImageTransparentColor = Color.Magenta;
     this.statusBarCameraSpeed.Name = "statusBarCameraSpeed";
     this.statusBarCameraSpeed.Size = new Size(55, 20);
     this.statusBarCameraSpeed.Text = "0";
     this.statusBarCameraSpeed.TextAlign = ContentAlignment.MiddleLeft;
     this.cameraSpeedStrip.Name = "cameraSpeedStrip";
     this.cameraSpeedStrip.OwnerItem = this.statusBarCameraSpeed;
     this.cameraSpeedStrip.ShowImageMargin = false;
     this.cameraSpeedStrip.Size = new Size(36, 4);
     this.statusBarCameraPos.AutoSize = false;
     this.statusBarCameraPos.Image = Resources.camera;
     this.statusBarCameraPos.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarCameraPos.Name = "statusBarCameraPos";
     this.statusBarCameraPos.Size = new Size(150, 17);
     this.statusBarCameraPos.Text = "(0, 0, 0)";
     this.statusBarCameraPos.TextAlign = ContentAlignment.MiddleLeft;
     this.statusBarCursorPos.AutoSize = false;
     this.statusBarCursorPos.Image = Resources.cursor;
     this.statusBarCursorPos.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarCursorPos.Name = "statusBarCursorPos";
     this.statusBarCursorPos.Size = new Size(150, 17);
     this.statusBarCursorPos.Text = "(0, 0, 0)";
     this.statusBarCursorPos.TextAlign = ContentAlignment.MiddleLeft;
     this.statusBarMemoryUsage.AutoSize = false;
     this.statusBarMemoryUsage.Image = Resources.MemoryUsage;
     this.statusBarMemoryUsage.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarMemoryUsage.Name = "statusBarMemoryUsage";
     this.statusBarMemoryUsage.Size = new Size(60, 17);
     this.statusBarMemoryUsage.Text = "0";
     this.statusBarMemoryUsage.TextAlign = ContentAlignment.MiddleLeft;
     this.statusBarObjectUsage.AutoSize = false;
     this.statusBarObjectUsage.Image = Resources.ObjectUsage;
     this.statusBarObjectUsage.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarObjectUsage.Name = "statusBarObjectUsage";
     this.statusBarObjectUsage.Size = new Size(60, 17);
     this.statusBarObjectUsage.Text = "0";
     this.statusBarObjectUsage.TextAlign = ContentAlignment.MiddleLeft;
     this.statusBarFpsItem.AutoSize = false;
     this.statusBarFpsItem.Image = Resources.frametime;
     this.statusBarFpsItem.ImageAlign = ContentAlignment.MiddleLeft;
     this.statusBarFpsItem.Name = "statusBarFpsItem";
     this.statusBarFpsItem.Size = new Size(75, 17);
     this.statusBarFpsItem.Text = "0.0 fps";
     this.statusBarFpsItem.TextAlign = ContentAlignment.MiddleLeft;
     this.folderBrowserDialog.Description = "Select export folder";
     this.viewport.BackColor = SystemColors.AppWorkspace;
     this.viewport.BlockNextKeyRepeats = false;
     this.viewport.BorderStyle = BorderStyle.Fixed3D;
     this.viewport.CameraEnabled = true;
     this.viewport.CaptureMouse = false;
     this.viewport.CaptureWheel = false;
     this.viewport.Cursor = Cursors.Default;
     this.viewport.DefaultCursor = Cursors.Default;
     this.viewport.Dock = DockStyle.Fill;
     this.viewport.Location = new Point(0, 49);
     this.viewport.Name = "viewport";
     this.viewport.Size = new Size(973, 592);
     this.viewport.TabIndex = 5;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(973, 663);
     base.Controls.Add(this.viewport);
     base.Controls.Add(this.leftSandBarDock);
     base.Controls.Add(this.rightSandBarDock);
     base.Controls.Add(this.bottomSandBarDock);
     base.Controls.Add(this.topSandBarDock);
     base.Controls.Add(this.statusBar);
     base.Name = "MainForm";
     this.Text = "Far Cry 3 Editor";
     base.Activated += new EventHandler(this.MainForm_Activated);
     base.Deactivate += new EventHandler(this.MainForm_Deactivate);
     base.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing);
     base.FormClosed += new FormClosedEventHandler(this.MainForm_FormClosed);
     base.Load += new EventHandler(this.MainForm_Load);
     base.LocationChanged += new EventHandler(this.MainForm_LocationChanged);
     base.SizeChanged += new EventHandler(this.MainForm_SizeChanged);
     this.topSandBarDock.ResumeLayout(false);
     this.statusBar.ResumeLayout(false);
     this.statusBar.PerformLayout();
     this.statusBarContextMenu.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }