Esempio n. 1
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MapListForm));

            this.MapList              = new ListView();
            this.MapHdr               = new ColumnHeader();
            this.ListContext          = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.ListContextAdd       = new ToolStripMenuItem();
            this.ListContextRemove    = new ToolStripMenuItem();
            this.ListContextEdit      = new ToolStripMenuItem();
            this.toolStripMenuItem1   = new ToolStripSeparator();
            this.ListContextCategory  = new ToolStripMenuItem();
            this.toolStripMenuItem2   = new ToolStripSeparator();
            this.ListContextDelve     = new ToolStripMenuItem();
            this.ListContextBreakdown = new ToolStripMenuItem();
            this.ListToolbar          = new ToolStrip();
            this.AddBtn               = new ToolStripDropDownButton();
            this.AddBuild             = new ToolStripMenuItem();
            this.toolStripSeparator5  = new ToolStripSeparator();
            this.AddImport            = new ToolStripMenuItem();
            this.AddImportProject     = new ToolStripMenuItem();
            this.toolStripSeparator3  = new ToolStripSeparator();
            this.AddTile              = new ToolStripMenuItem();
            this.RemoveBtn            = new ToolStripButton();
            this.EditBtn              = new ToolStripButton();
            this.Splitter             = new SplitContainer();
            this.MapView              = new Masterplan.Controls.MapView();
            this.MapToolbar           = new ToolStrip();
            this.PrintMenu            = new ToolStripDropDownButton();
            this.PrintMap             = new ToolStripMenuItem();
            this.PrintBlank           = new ToolStripMenuItem();
            this.ToolsBtn             = new ToolStripDropDownButton();
            this.ToolsCategory        = new ToolStripMenuItem();
            this.ToolsBreakdown       = new ToolStripMenuItem();
            this.toolStripSeparator1  = new ToolStripSeparator();
            this.ToolsScreenshot      = new ToolStripMenuItem();
            this.ToolsPlayerView      = new ToolStripMenuItem();
            this.DelveBtn             = new ToolStripDropDownButton();
            this.DelveAutoBuild       = new ToolStripMenuItem();
            this.DelveAdvanced        = new ToolStripMenuItem();
            this.toolStripSeparator4  = new ToolStripSeparator();
            this.DelveDeck            = new ToolStripMenuItem();
            this.toolStripSeparator2  = new ToolStripSeparator();
            this.AreaLbl              = new ToolStripLabel();
            this.AreaBox              = new ToolStripComboBox();
            this.CloseBtn             = new Button();
            this.ListContext.SuspendLayout();
            this.ListToolbar.SuspendLayout();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            this.MapToolbar.SuspendLayout();
            base.SuspendLayout();
            this.MapList.Columns.AddRange(new ColumnHeader[] { this.MapHdr });
            this.MapList.ContextMenuStrip = this.ListContext;
            this.MapList.Dock             = DockStyle.Fill;
            this.MapList.FullRowSelect    = true;
            this.MapList.HeaderStyle      = ColumnHeaderStyle.Nonclickable;
            this.MapList.HideSelection    = false;
            this.MapList.Location         = new Point(0, 25);
            this.MapList.MultiSelect      = false;
            this.MapList.Name             = "MapList";
            this.MapList.Size             = new System.Drawing.Size(199, 317);
            this.MapList.TabIndex         = 1;
            this.MapList.UseCompatibleStateImageBehavior = false;
            this.MapList.View = View.Details;
            this.MapList.SelectedIndexChanged += new EventHandler(this.MapList_SelectedIndexChanged);
            this.MapList.DoubleClick          += new EventHandler(this.EditBtn_Click);
            this.MapHdr.Text  = "Map";
            this.MapHdr.Width = 172;
            ToolStripItem[] listContextAdd = new ToolStripItem[] { this.ListContextAdd, this.ListContextRemove, this.ListContextEdit, this.toolStripMenuItem1, this.ListContextCategory, this.toolStripMenuItem2, this.ListContextDelve, this.ListContextBreakdown };
            this.ListContext.Items.AddRange(listContextAdd);
            this.ListContext.Name            = "ListContext";
            this.ListContext.Size            = new System.Drawing.Size(160, 148);
            this.ListContextAdd.Name         = "ListContextAdd";
            this.ListContextAdd.Size         = new System.Drawing.Size(159, 22);
            this.ListContextAdd.Text         = "Add...";
            this.ListContextRemove.Name      = "ListContextRemove";
            this.ListContextRemove.Size      = new System.Drawing.Size(159, 22);
            this.ListContextRemove.Text      = "Remove";
            this.ListContextRemove.Click    += new EventHandler(this.RemoveBtn_Click);
            this.ListContextEdit.Name        = "ListContextEdit";
            this.ListContextEdit.Size        = new System.Drawing.Size(159, 22);
            this.ListContextEdit.Text        = "Edit";
            this.ListContextEdit.Click      += new EventHandler(this.EditBtn_Click);
            this.toolStripMenuItem1.Name     = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size     = new System.Drawing.Size(156, 6);
            this.ListContextCategory.Name    = "ListContextCategory";
            this.ListContextCategory.Size    = new System.Drawing.Size(159, 22);
            this.ListContextCategory.Text    = "Set Category...";
            this.ListContextCategory.Click  += new EventHandler(this.ToolsCategory_Click);
            this.toolStripMenuItem2.Name     = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size     = new System.Drawing.Size(156, 6);
            this.ListContextDelve.Name       = "ListContextDelve";
            this.ListContextDelve.Size       = new System.Drawing.Size(159, 22);
            this.ListContextDelve.Text       = "Delve AutoBuild";
            this.ListContextDelve.Click     += new EventHandler(this.DelveBtn_Click);
            this.ListContextBreakdown.Name   = "ListContextBreakdown";
            this.ListContextBreakdown.Size   = new System.Drawing.Size(159, 22);
            this.ListContextBreakdown.Text   = "Tile Breakdown";
            this.ListContextBreakdown.Click += new EventHandler(this.ToolsBreakdown_Click);
            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn };
            this.ListToolbar.Items.AddRange(addBtn);
            this.ListToolbar.Location = new Point(0, 0);
            this.ListToolbar.Name     = "ListToolbar";
            this.ListToolbar.Size     = new System.Drawing.Size(199, 25);
            this.ListToolbar.TabIndex = 0;
            this.ListToolbar.Text     = "toolStrip1";
            this.AddBtn.DisplayStyle  = ToolStripItemDisplayStyle.Text;
            ToolStripItem[] addBuild = new ToolStripItem[] { this.AddBuild, this.toolStripSeparator5, this.AddImport, this.AddImportProject, this.toolStripSeparator3, this.AddTile };
            this.AddBtn.DropDownItems.AddRange(addBuild);
            this.AddBtn.Image = (Image)resources.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                     = "AddBtn";
            this.AddBtn.Size                     = new System.Drawing.Size(42, 22);
            this.AddBtn.Text                     = "Add";
            this.AddBuild.Name                   = "AddBuild";
            this.AddBuild.Size                   = new System.Drawing.Size(209, 22);
            this.AddBuild.Text                   = "Build a Map...";
            this.AddBuild.Click                 += new EventHandler(this.AddBuild_Click);
            this.toolStripSeparator5.Name        = "toolStripSeparator5";
            this.toolStripSeparator5.Size        = new System.Drawing.Size(206, 6);
            this.AddImport.Name                  = "AddImport";
            this.AddImport.Size                  = new System.Drawing.Size(209, 22);
            this.AddImport.Text                  = "Import Map Image...";
            this.AddImport.Click                += new EventHandler(this.AddImport_Click);
            this.AddImportProject.Name           = "AddImportProject";
            this.AddImportProject.Size           = new System.Drawing.Size(209, 22);
            this.AddImportProject.Text           = "Import from Project File...";
            this.AddImportProject.Click         += new EventHandler(this.AddImportProject_Click);
            this.toolStripSeparator3.Name        = "toolStripSeparator3";
            this.toolStripSeparator3.Size        = new System.Drawing.Size(206, 6);
            this.AddTile.Name                    = "AddTile";
            this.AddTile.Size                    = new System.Drawing.Size(209, 22);
            this.AddTile.Text                    = "Use Map Tile...";
            this.AddTile.Click                  += new EventHandler(this.AddTile_Click);
            this.RemoveBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                 = (Image)resources.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor = Color.Magenta;
            this.RemoveBtn.Name                  = "RemoveBtn";
            this.RemoveBtn.Size                  = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                  = "Remove";
            this.RemoveBtn.Click                += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle            = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                   = (Image)resources.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor   = Color.Magenta;
            this.EditBtn.Name                    = "EditBtn";
            this.EditBtn.Size                    = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                    = "Edit";
            this.EditBtn.Click                  += new EventHandler(this.EditBtn_Click);
            this.Splitter.Anchor                 = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Splitter.Location               = new Point(12, 12);
            this.Splitter.Name                   = "Splitter";
            this.Splitter.Panel1.Controls.Add(this.MapList);
            this.Splitter.Panel1.Controls.Add(this.ListToolbar);
            this.Splitter.Panel2.Controls.Add(this.MapView);
            this.Splitter.Panel2.Controls.Add(this.MapToolbar);
            this.Splitter.Size             = new System.Drawing.Size(750, 342);
            this.Splitter.SplitterDistance = 199;
            this.Splitter.TabIndex         = 11;
            this.MapView.AllowDrawing      = false;
            this.MapView.AllowDrop         = true;
            this.MapView.AllowLinkCreation = false;
            this.MapView.AllowScrolling    = false;
            this.MapView.BackgroundMap     = null;
            this.MapView.BorderSize        = 1;
            this.MapView.BorderStyle       = BorderStyle.FixedSingle;
            this.MapView.Caption           = "";
            this.MapView.Cursor            = Cursors.Default;
            this.MapView.Dock               = DockStyle.Fill;
            this.MapView.Encounter          = null;
            this.MapView.FrameType          = MapDisplayType.Dimmed;
            this.MapView.HighlightAreas     = false;
            this.MapView.HoverToken         = null;
            this.MapView.LineOfSight        = false;
            this.MapView.Location           = new Point(0, 25);
            this.MapView.Map                = null;
            this.MapView.Mode               = MapViewMode.Thumbnail;
            this.MapView.Name               = "MapView";
            this.MapView.Plot               = null;
            this.MapView.ScalingFactor      = 1;
            this.MapView.SelectedArea       = null;
            this.MapView.SelectedTiles      = null;
            this.MapView.Selection          = new Rectangle(0, 0, 0, 0);
            this.MapView.ShowAuras          = true;
            this.MapView.ShowConditions     = true;
            this.MapView.ShowCreatureLabels = true;
            this.MapView.ShowCreatures      = CreatureViewMode.All;
            this.MapView.ShowGrid           = MapGridMode.None;
            this.MapView.ShowGridLabels     = false;
            this.MapView.ShowHealthBars     = false;
            this.MapView.ShowPictureTokens  = true;
            this.MapView.Size               = new System.Drawing.Size(547, 317);
            this.MapView.TabIndex           = 0;
            this.MapView.Tactical           = false;
            this.MapView.TokenLinks         = null;
            this.MapView.Viewpoint          = new Rectangle(0, 0, 0, 0);
            ToolStripItem[] printMenu = new ToolStripItem[] { this.PrintMenu, this.ToolsBtn, this.DelveBtn, this.toolStripSeparator2, this.AreaLbl, this.AreaBox };
            this.MapToolbar.Items.AddRange(printMenu);
            this.MapToolbar.Location    = new Point(0, 0);
            this.MapToolbar.Name        = "MapToolbar";
            this.MapToolbar.Size        = new System.Drawing.Size(547, 25);
            this.MapToolbar.TabIndex    = 1;
            this.MapToolbar.Text        = "toolStrip1";
            this.PrintMenu.DisplayStyle = ToolStripItemDisplayStyle.Text;
            ToolStripItem[] printMap = new ToolStripItem[] { this.PrintMap, this.PrintBlank };
            this.PrintMenu.DropDownItems.AddRange(printMap);
            this.PrintMenu.Image = (Image)resources.GetObject("PrintMenu.Image");
            this.PrintMenu.ImageTransparentColor = Color.Magenta;
            this.PrintMenu.Name        = "PrintMenu";
            this.PrintMenu.Size        = new System.Drawing.Size(45, 22);
            this.PrintMenu.Text        = "Print";
            this.PrintMap.Name         = "PrintMap";
            this.PrintMap.Size         = new System.Drawing.Size(156, 22);
            this.PrintMap.Text         = "Print Map...";
            this.PrintMap.Click       += new EventHandler(this.PrintMap_Click);
            this.PrintBlank.Name       = "PrintBlank";
            this.PrintBlank.Size       = new System.Drawing.Size(156, 22);
            this.PrintBlank.Text       = "Print Blank Grid";
            this.PrintBlank.Click     += new EventHandler(this.PrintBlank_Click);
            this.ToolsBtn.DisplayStyle = ToolStripItemDisplayStyle.Text;
            ToolStripItem[] toolsCategory = new ToolStripItem[] { this.ToolsCategory, this.ToolsBreakdown, this.toolStripSeparator1, this.ToolsScreenshot, this.ToolsPlayerView };
            this.ToolsBtn.DropDownItems.AddRange(toolsCategory);
            this.ToolsBtn.Image = (Image)resources.GetObject("ToolsBtn.Image");
            this.ToolsBtn.ImageTransparentColor = Color.Magenta;
            this.ToolsBtn.Name            = "ToolsBtn";
            this.ToolsBtn.Size            = new System.Drawing.Size(49, 22);
            this.ToolsBtn.Text            = "Tools";
            this.ToolsCategory.Name       = "ToolsCategory";
            this.ToolsCategory.Size       = new System.Drawing.Size(177, 22);
            this.ToolsCategory.Text       = "Set Category...";
            this.ToolsCategory.Click     += new EventHandler(this.ToolsCategory_Click);
            this.ToolsBreakdown.Name      = "ToolsBreakdown";
            this.ToolsBreakdown.Size      = new System.Drawing.Size(177, 22);
            this.ToolsBreakdown.Text      = "Tile Breakdown";
            this.ToolsBreakdown.Click    += new EventHandler(this.ToolsBreakdown_Click);
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(174, 6);
            this.ToolsScreenshot.Name     = "ToolsScreenshot";
            this.ToolsScreenshot.Size     = new System.Drawing.Size(177, 22);
            this.ToolsScreenshot.Text     = "Export Map";
            this.ToolsScreenshot.Click   += new EventHandler(this.ToolsExport_Click);
            this.ToolsPlayerView.Name     = "ToolsPlayerView";
            this.ToolsPlayerView.Size     = new System.Drawing.Size(177, 22);
            this.ToolsPlayerView.Text     = "Send to Player View";
            this.ToolsPlayerView.Click   += new EventHandler(this.ToolsPlayerView_Click);
            this.DelveBtn.DisplayStyle    = ToolStripItemDisplayStyle.Text;
            ToolStripItem[] delveAutoBuild = new ToolStripItem[] { this.DelveAutoBuild, this.DelveAdvanced, this.toolStripSeparator4, this.DelveDeck };
            this.DelveBtn.DropDownItems.AddRange(delveAutoBuild);
            this.DelveBtn.Image = (Image)resources.GetObject("DelveBtn.Image");
            this.DelveBtn.ImageTransparentColor = Color.Magenta;
            this.DelveBtn.Name                    = "DelveBtn";
            this.DelveBtn.Size                    = new System.Drawing.Size(105, 22);
            this.DelveBtn.Text                    = "Delve AutoBuild";
            this.DelveAutoBuild.Name              = "DelveAutoBuild";
            this.DelveAutoBuild.Size              = new System.Drawing.Size(245, 22);
            this.DelveAutoBuild.Text              = "Build a Delve";
            this.DelveAutoBuild.Click            += new EventHandler(this.DelveBtn_Click);
            this.DelveAdvanced.Name               = "DelveAdvanced";
            this.DelveAdvanced.Size               = new System.Drawing.Size(245, 22);
            this.DelveAdvanced.Text               = "Advanced Options...";
            this.DelveAdvanced.Click             += new EventHandler(this.DelveAdvanced_Click);
            this.toolStripSeparator4.Name         = "toolStripSeparator4";
            this.toolStripSeparator4.Size         = new System.Drawing.Size(242, 6);
            this.DelveDeck.Name                   = "DelveDeck";
            this.DelveDeck.Size                   = new System.Drawing.Size(245, 22);
            this.DelveDeck.Text                   = "Build Using an Encounter Deck...";
            this.DelveDeck.Click                 += new EventHandler(this.DelveDeck_Click);
            this.toolStripSeparator2.Name         = "toolStripSeparator2";
            this.toolStripSeparator2.Size         = new System.Drawing.Size(6, 25);
            this.AreaLbl.Name                     = "AreaLbl";
            this.AreaLbl.Size                     = new System.Drawing.Size(39, 22);
            this.AreaLbl.Text                     = "Show:";
            this.AreaBox.DropDownStyle            = ComboBoxStyle.DropDownList;
            this.AreaBox.Name                     = "AreaBox";
            this.AreaBox.Size                     = new System.Drawing.Size(121, 25);
            this.AreaBox.SelectedIndexChanged    += new EventHandler(this.AreaBox_SelectedIndexChanged);
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(687, 360);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 12;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton                     = this.CloseBtn;
            base.AutoScaleDimensions              = new SizeF(6f, 13f);
            base.AutoScaleMode                    = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new System.Drawing.Size(774, 395);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Splitter);
            base.MinimizeBox   = false;
            base.Name          = "MapListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Tactical Maps";
            this.ListContext.ResumeLayout(false);
            this.ListToolbar.ResumeLayout(false);
            this.ListToolbar.PerformLayout();
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel1.PerformLayout();
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.Panel2.PerformLayout();
            this.Splitter.ResumeLayout(false);
            this.MapToolbar.ResumeLayout(false);
            this.MapToolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Esempio n. 2
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PausedCombatListForm));

            this.Splitter      = new SplitContainer();
            this.EncounterList = new ListView();
            this.EncounterHdr  = new ColumnHeader();
            this.Toolbar       = new ToolStrip();
            this.RunBtn        = new ToolStripButton();
            this.RemoveBtn     = new ToolStripButton();
            this.MapView       = new Masterplan.Controls.MapView();
            this.CloseBtn      = new Button();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            this.Toolbar.SuspendLayout();
            base.SuspendLayout();
            this.Splitter.Anchor     = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Splitter.FixedPanel = FixedPanel.Panel1;
            this.Splitter.Location   = new Point(12, 12);
            this.Splitter.Name       = "Splitter";
            this.Splitter.Panel1.Controls.Add(this.EncounterList);
            this.Splitter.Panel1.Controls.Add(this.Toolbar);
            this.Splitter.Panel2.Controls.Add(this.MapView);
            this.Splitter.Size             = new System.Drawing.Size(461, 239);
            this.Splitter.SplitterDistance = 180;
            this.Splitter.TabIndex         = 0;
            this.EncounterList.Columns.AddRange(new ColumnHeader[] { this.EncounterHdr });
            this.EncounterList.Dock          = DockStyle.Fill;
            this.EncounterList.FullRowSelect = true;
            this.EncounterList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.EncounterList.HideSelection = false;
            this.EncounterList.Location      = new Point(0, 25);
            this.EncounterList.MultiSelect   = false;
            this.EncounterList.Name          = "EncounterList";
            this.EncounterList.Size          = new System.Drawing.Size(180, 214);
            this.EncounterList.TabIndex      = 1;
            this.EncounterList.UseCompatibleStateImageBehavior = false;
            this.EncounterList.View = View.Details;
            this.EncounterList.SelectedIndexChanged += new EventHandler(this.EncounterList_SelectedIndexChanged);
            this.EncounterList.DoubleClick          += new EventHandler(this.RunBtn_Click);
            this.EncounterHdr.Text  = "Encounters";
            this.EncounterHdr.Width = 150;
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] runBtn = new ToolStripItem[] { this.RunBtn, this.RemoveBtn };
            items.AddRange(runBtn);
            this.Toolbar.Location             = new Point(0, 0);
            this.Toolbar.Name                 = "Toolbar";
            this.Toolbar.Size                 = new System.Drawing.Size(180, 25);
            this.Toolbar.TabIndex             = 0;
            this.Toolbar.Text                 = "toolStrip1";
            this.RunBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RunBtn.Image                 = (Image)componentResourceManager.GetObject("RunBtn.Image");
            this.RunBtn.ImageTransparentColor = Color.Magenta;
            this.RunBtn.Name                      = "RunBtn";
            this.RunBtn.Size                      = new System.Drawing.Size(32, 22);
            this.RunBtn.Text                      = "Run";
            this.RunBtn.Click                    += new EventHandler(this.RunBtn_Click);
            this.RemoveBtn.DisplayStyle           = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                  = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor  = Color.Magenta;
            this.RemoveBtn.Name                   = "RemoveBtn";
            this.RemoveBtn.Size                   = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                   = "Remove";
            this.RemoveBtn.Click                 += new EventHandler(this.RemoveBtn_Click);
            this.MapView.AllowDrop                = true;
            this.MapView.AllowLinkCreation        = false;
            this.MapView.AllowScrolling           = false;
            this.MapView.BackgroundMap            = null;
            this.MapView.BorderSize               = 0;
            this.MapView.BorderStyle              = BorderStyle.FixedSingle;
            this.MapView.Dock                     = DockStyle.Fill;
            this.MapView.Encounter                = null;
            this.MapView.FrameType                = MapDisplayType.Dimmed;
            this.MapView.HighlightAreas           = false;
            this.MapView.LineOfSight              = false;
            this.MapView.Location                 = new Point(0, 0);
            this.MapView.Map                      = null;
            this.MapView.Mode                     = MapViewMode.Thumbnail;
            this.MapView.Name                     = "MapView";
            this.MapView.ScalingFactor            = 1;
            this.MapView.SelectedTiles            = null;
            this.MapView.Selection                = new Rectangle(0, 0, 0, 0);
            this.MapView.ShowCreatureLabels       = true;
            this.MapView.ShowCreatures            = CreatureViewMode.All;
            this.MapView.ShowGrid                 = MapGridMode.None;
            this.MapView.ShowHealthBars           = false;
            this.MapView.Size                     = new System.Drawing.Size(277, 239);
            this.MapView.TabIndex                 = 0;
            this.MapView.Tactical                 = false;
            this.MapView.TokenLinks               = null;
            this.MapView.Viewpoint                = new Rectangle(0, 0, 0, 0);
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(398, 257);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 1;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton                     = this.CloseBtn;
            base.AutoScaleDimensions              = new SizeF(6f, 13f);
            base.AutoScaleMode                    = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new System.Drawing.Size(485, 292);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Splitter);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "PausedCombatListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Paused Encounters";
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel1.PerformLayout();
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.ResumeLayout(false);
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            base.ResumeLayout(false);
        }
Esempio n. 3
0
 private void InitializeComponent()
 {
     this.MapLbl     = new Label();
     this.MapBox     = new ComboBox();
     this.AreaLbl    = new Label();
     this.AreaBox    = new ComboBox();
     this.OKBtn      = new Button();
     this.CancelBtn  = new Button();
     this.MapView    = new Masterplan.Controls.MapView();
     this.NewBtn     = new Button();
     this.ImportBtn  = new Button();
     this.UseTileBtn = new Button();
     base.SuspendLayout();
     this.MapLbl.AutoSize               = true;
     this.MapLbl.Location               = new Point(12, 15);
     this.MapLbl.Name                   = "MapLbl";
     this.MapLbl.Size                   = new System.Drawing.Size(31, 13);
     this.MapLbl.TabIndex               = 0;
     this.MapLbl.Text                   = "Map:";
     this.MapBox.Anchor                 = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.MapBox.DropDownStyle          = ComboBoxStyle.DropDownList;
     this.MapBox.FormattingEnabled      = true;
     this.MapBox.Location               = new Point(50, 12);
     this.MapBox.Name                   = "MapBox";
     this.MapBox.Size                   = new System.Drawing.Size(497, 21);
     this.MapBox.Sorted                 = true;
     this.MapBox.TabIndex               = 1;
     this.MapBox.SelectedIndexChanged  += new EventHandler(this.MapBox_SelectedIndexChanged);
     this.AreaLbl.AutoSize              = true;
     this.AreaLbl.Location              = new Point(12, 42);
     this.AreaLbl.Name                  = "AreaLbl";
     this.AreaLbl.Size                  = new System.Drawing.Size(32, 13);
     this.AreaLbl.TabIndex              = 2;
     this.AreaLbl.Text                  = "Area:";
     this.AreaBox.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
     this.AreaBox.DropDownStyle         = ComboBoxStyle.DropDownList;
     this.AreaBox.FormattingEnabled     = true;
     this.AreaBox.Location              = new Point(50, 39);
     this.AreaBox.Name                  = "AreaBox";
     this.AreaBox.Size                  = new System.Drawing.Size(497, 21);
     this.AreaBox.Sorted                = true;
     this.AreaBox.TabIndex              = 3;
     this.AreaBox.SelectedIndexChanged += new EventHandler(this.AreaBox_SelectedIndexChanged);
     this.OKBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.OKBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.OKBtn.Location                = new Point(391, 357);
     this.OKBtn.Name     = "OKBtn";
     this.OKBtn.Size     = new System.Drawing.Size(75, 23);
     this.OKBtn.TabIndex = 8;
     this.OKBtn.Text     = "OK";
     this.OKBtn.UseVisualStyleBackColor = true;
     this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
     this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this.CancelBtn.Location                = new Point(472, 357);
     this.CancelBtn.Name                    = "CancelBtn";
     this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
     this.CancelBtn.TabIndex                = 9;
     this.CancelBtn.Text                    = "Cancel";
     this.CancelBtn.UseVisualStyleBackColor = true;
     this.MapView.AllowDrawing              = false;
     this.MapView.AllowDrop                 = true;
     this.MapView.AllowLinkCreation         = false;
     this.MapView.AllowScrolling            = false;
     this.MapView.Anchor                    = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.MapView.BackgroundMap             = null;
     this.MapView.BorderSize                = 0;
     this.MapView.BorderStyle               = BorderStyle.FixedSingle;
     this.MapView.Cursor                    = Cursors.Default;
     this.MapView.Encounter                 = null;
     this.MapView.FrameType                 = MapDisplayType.Dimmed;
     this.MapView.HighlightAreas            = false;
     this.MapView.HoverToken                = null;
     this.MapView.LineOfSight               = false;
     this.MapView.Location                  = new Point(12, 66);
     this.MapView.Map                        = null;
     this.MapView.Mode                       = MapViewMode.Plain;
     this.MapView.Name                       = "MapView";
     this.MapView.ScalingFactor              = 1;
     this.MapView.SelectedArea               = null;
     this.MapView.SelectedTiles              = null;
     this.MapView.Selection                  = new Rectangle(0, 0, 0, 0);
     this.MapView.ShowAuras                  = true;
     this.MapView.ShowCreatureLabels         = true;
     this.MapView.ShowCreatures              = CreatureViewMode.All;
     this.MapView.ShowGrid                   = MapGridMode.None;
     this.MapView.ShowGridLabels             = false;
     this.MapView.ShowHealthBars             = false;
     this.MapView.ShowPictureTokens          = true;
     this.MapView.Size                       = new System.Drawing.Size(535, 285);
     this.MapView.TabIndex                   = 4;
     this.MapView.Tactical                   = false;
     this.MapView.TokenLinks                 = null;
     this.MapView.Viewpoint                  = new Rectangle(0, 0, 0, 0);
     this.NewBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Left;
     this.NewBtn.Location                    = new Point(12, 357);
     this.NewBtn.Name                        = "NewBtn";
     this.NewBtn.Size                        = new System.Drawing.Size(100, 23);
     this.NewBtn.TabIndex                    = 5;
     this.NewBtn.Text                        = "Create New Map";
     this.NewBtn.UseVisualStyleBackColor     = true;
     this.NewBtn.Click                      += new EventHandler(this.NewBtn_Click);
     this.ImportBtn.Anchor                   = AnchorStyles.Bottom | AnchorStyles.Left;
     this.ImportBtn.Location                 = new Point(118, 357);
     this.ImportBtn.Name                     = "ImportBtn";
     this.ImportBtn.Size                     = new System.Drawing.Size(100, 23);
     this.ImportBtn.TabIndex                 = 6;
     this.ImportBtn.Text                     = "Import Map File";
     this.ImportBtn.UseVisualStyleBackColor  = true;
     this.ImportBtn.Click                   += new EventHandler(this.ImportBtn_Click);
     this.UseTileBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Left;
     this.UseTileBtn.Location                = new Point(224, 357);
     this.UseTileBtn.Name                    = "UseTileBtn";
     this.UseTileBtn.Size                    = new System.Drawing.Size(100, 23);
     this.UseTileBtn.TabIndex                = 7;
     this.UseTileBtn.Text                    = "Use Map Tile";
     this.UseTileBtn.UseVisualStyleBackColor = true;
     this.UseTileBtn.Click                  += new EventHandler(this.UseTileBtn_Click);
     base.AcceptButton                       = this.OKBtn;
     base.AutoScaleDimensions                = new SizeF(6f, 13f);
     base.AutoScaleMode                      = System.Windows.Forms.AutoScaleMode.Font;
     base.CancelButton                       = this.CancelBtn;
     base.ClientSize = new System.Drawing.Size(559, 392);
     base.Controls.Add(this.UseTileBtn);
     base.Controls.Add(this.ImportBtn);
     base.Controls.Add(this.NewBtn);
     base.Controls.Add(this.MapView);
     base.Controls.Add(this.CancelBtn);
     base.Controls.Add(this.OKBtn);
     base.Controls.Add(this.AreaBox);
     base.Controls.Add(this.AreaLbl);
     base.Controls.Add(this.MapBox);
     base.Controls.Add(this.MapLbl);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "MapAreaSelectForm";
     base.ShowIcon      = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     this.Text          = "Location";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Esempio n. 4
0
        public MapData(MapView mapview, double scaling_factor)
        {
            Rectangle rectangle;

            this.ScalingFactor = scaling_factor;
            if ((mapview.Map == null || mapview.Map.Tiles.Count == 0) && (mapview.BackgroundMap == null || mapview.BackgroundMap.Tiles.Count == 0))
            {
                this.MinX = 0;
                this.MinY = 0;
                this.MaxX = 0;
                this.MaxY = 0;
            }
            else
            {
                List <TileData> tileDatas = new List <TileData>();
                tileDatas.AddRange(mapview.Map.Tiles);
                if (mapview.BackgroundMap != null)
                {
                    tileDatas.AddRange(mapview.BackgroundMap.Tiles);
                }
                foreach (TileData tileData in tileDatas)
                {
                    Tile tile = Session.FindTile(tileData.TileID, SearchType.Global);
                    if (tile == null)
                    {
                        continue;
                    }
                    this.Tiles[tileData] = tile;
                    if (tileData.Rotations % 2 != 0)
                    {
                        int  x      = tileData.Location.X;
                        int  y      = tileData.Location.Y;
                        int  height = tile.Size.Height;
                        Size size   = tile.Size;
                        rectangle = new Rectangle(x, y, height, size.Width);
                    }
                    else
                    {
                        int  num   = tileData.Location.X;
                        int  y1    = tileData.Location.Y;
                        int  width = tile.Size.Width;
                        Size size1 = tile.Size;
                        rectangle = new Rectangle(num, y1, width, size1.Height);
                    }
                    this.TileSquares[tileData] = rectangle;
                    if (rectangle.X < this.MinX)
                    {
                        this.MinX = rectangle.X;
                    }
                    if (rectangle.Y < this.MinY)
                    {
                        this.MinY = rectangle.Y;
                    }
                    int x1 = rectangle.X + rectangle.Width;
                    if (x1 > this.MaxX)
                    {
                        this.MaxX = x1;
                    }
                    int num1 = rectangle.Y + rectangle.Height;
                    if (num1 <= this.MaxY)
                    {
                        continue;
                    }
                    this.MaxY = num1;
                }
            }
            this.OverallMaxX = this.MaxX;
            this.OverallMaxY = this.MaxY;
            if (mapview.Map == null || !(mapview.Viewpoint != Rectangle.Empty))
            {
                this.MinX -= mapview.BorderSize;
                this.MinY -= mapview.BorderSize;
                this.MaxX += mapview.BorderSize;
                this.MaxY += mapview.BorderSize;
            }
            else
            {
                this.MinX = mapview.Viewpoint.X;
                this.MinY = mapview.Viewpoint.Y;
                int       x2        = mapview.Viewpoint.X;
                Rectangle viewpoint = mapview.Viewpoint;
                this.MaxX = x2 + viewpoint.Width - 1;
                int       y2         = mapview.Viewpoint.Y;
                Rectangle viewpoint1 = mapview.Viewpoint;
                this.MaxY = y2 + viewpoint1.Height - 1;
            }
            Rectangle clientRectangle  = mapview.ClientRectangle;
            int       single           = clientRectangle.Width / this.Width;
            Rectangle clientRectangle1 = mapview.ClientRectangle;
            int       height1          = clientRectangle1.Height / this.Height;

            this.SquareSize  = (int)Math.Min(single, height1);
            this.SquareSize *= (int)this.ScalingFactor;
            int width1  = this.Width * this.SquareSize;
            int single1 = this.Height * this.SquareSize;
            int width2  = mapview.ClientRectangle.Width - width1;
            int height2 = mapview.ClientRectangle.Height - single1;

            this.MapOffset = new Size(width2 / 2, height2 / 2);
            if (mapview.Map != null)
            {
                foreach (TileData key in this.Tiles.Keys)
                {
                    Rectangle item = this.TileSquares[key];
                    this.TileRegions[key] = this.GetRegion(item.Location, item.Size);
                }
            }
        }
Esempio n. 5
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MapAreaForm));

            this.NameLbl        = new Label();
            this.NameBox        = new TextBox();
            this.OKBtn          = new Button();
            this.CancelBtn      = new Button();
            this.Pages          = new TabControl();
            this.DetailsPage    = new TabPage();
            this.DetailsBox     = new TextBox();
            this.DetailsToolbar = new ToolStrip();
            this.RandomDescBtn  = new ToolStripButton();
            this.MovePage       = new TabPage();
            this.MoveTable      = new TableLayoutPanel();
            this.MoveUpBtn      = new Button();
            this.MoveDownBtn    = new Button();
            this.MoveLeftBtn    = new Button();
            this.MoveRightBtn   = new Button();
            this.ResizePage     = new TabPage();
            this.ResizeTable    = new TableLayoutPanel();
            this.TopMoreBtn     = new Button();
            this.TopLessBtn     = new Button();
            this.LeftMoreBtn    = new Button();
            this.LeftLessBtn    = new Button();
            this.RightLessBtn   = new Button();
            this.RightMoreBtn   = new Button();
            this.BottomLessBtn  = new Button();
            this.BottomMoreBtn  = new Button();
            this.MapView        = new Masterplan.Controls.MapView();
            this.RandomNameBtn  = new ToolStripButton();
            this.Pages.SuspendLayout();
            this.DetailsPage.SuspendLayout();
            this.DetailsToolbar.SuspendLayout();
            this.MovePage.SuspendLayout();
            this.MoveTable.SuspendLayout();
            this.ResizePage.SuspendLayout();
            this.ResizeTable.SuspendLayout();
            base.SuspendLayout();
            this.NameLbl.AutoSize                  = true;
            this.NameLbl.Location                  = new Point(12, 15);
            this.NameLbl.Name                      = "NameLbl";
            this.NameLbl.Size                      = new System.Drawing.Size(38, 13);
            this.NameLbl.TabIndex                  = 0;
            this.NameLbl.Text                      = "Name:";
            this.NameBox.Anchor                    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.NameBox.Location                  = new Point(56, 12);
            this.NameBox.Name                      = "NameBox";
            this.NameBox.Size                      = new System.Drawing.Size(343, 20);
            this.NameBox.TabIndex                  = 1;
            this.OKBtn.Anchor                      = AnchorStyles.Bottom | AnchorStyles.Right;
            this.OKBtn.DialogResult                = System.Windows.Forms.DialogResult.OK;
            this.OKBtn.Location                    = new Point(594, 382);
            this.OKBtn.Name                        = "OKBtn";
            this.OKBtn.Size                        = new System.Drawing.Size(75, 23);
            this.OKBtn.TabIndex                    = 4;
            this.OKBtn.Text                        = "OK";
            this.OKBtn.UseVisualStyleBackColor     = true;
            this.OKBtn.Click                      += new EventHandler(this.OKBtn_Click);
            this.CancelBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CancelBtn.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
            this.CancelBtn.Location                = new Point(675, 382);
            this.CancelBtn.Name                    = "CancelBtn";
            this.CancelBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CancelBtn.TabIndex                = 5;
            this.CancelBtn.Text                    = "Cancel";
            this.CancelBtn.UseVisualStyleBackColor = true;
            this.Pages.Anchor                      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Pages.Controls.Add(this.DetailsPage);
            this.Pages.Controls.Add(this.MovePage);
            this.Pages.Controls.Add(this.ResizePage);
            this.Pages.Location      = new Point(12, 38);
            this.Pages.Name          = "Pages";
            this.Pages.SelectedIndex = 0;
            this.Pages.Size          = new System.Drawing.Size(387, 338);
            this.Pages.TabIndex      = 6;
            this.DetailsPage.Controls.Add(this.DetailsBox);
            this.DetailsPage.Controls.Add(this.DetailsToolbar);
            this.DetailsPage.Location = new Point(4, 22);
            this.DetailsPage.Name     = "DetailsPage";
            this.DetailsPage.Padding  = new System.Windows.Forms.Padding(3);
            this.DetailsPage.Size     = new System.Drawing.Size(379, 312);
            this.DetailsPage.TabIndex = 0;
            this.DetailsPage.Text     = "Details";
            this.DetailsPage.UseVisualStyleBackColor = true;
            this.DetailsBox.AcceptsReturn            = true;
            this.DetailsBox.AcceptsTab = true;
            this.DetailsBox.Dock       = DockStyle.Fill;
            this.DetailsBox.Location   = new Point(3, 28);
            this.DetailsBox.Multiline  = true;
            this.DetailsBox.Name       = "DetailsBox";
            this.DetailsBox.ScrollBars = ScrollBars.Vertical;
            this.DetailsBox.Size       = new System.Drawing.Size(373, 281);
            this.DetailsBox.TabIndex   = 0;
            ToolStripItemCollection items = this.DetailsToolbar.Items;

            ToolStripItem[] randomNameBtn = new ToolStripItem[] { this.RandomNameBtn, this.RandomDescBtn };
            items.AddRange(randomNameBtn);
            this.DetailsToolbar.Location             = new Point(3, 3);
            this.DetailsToolbar.Name                 = "DetailsToolbar";
            this.DetailsToolbar.Size                 = new System.Drawing.Size(373, 25);
            this.DetailsToolbar.TabIndex             = 1;
            this.DetailsToolbar.Text                 = "toolStrip1";
            this.RandomDescBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RandomDescBtn.Image                 = (Image)componentResourceManager.GetObject("RandomDescBtn.Image");
            this.RandomDescBtn.ImageTransparentColor = Color.Magenta;
            this.RandomDescBtn.Name   = "RandomDescBtn";
            this.RandomDescBtn.Size   = new System.Drawing.Size(119, 22);
            this.RandomDescBtn.Text   = "Random Description";
            this.RandomDescBtn.Click += new EventHandler(this.RandomDescBtn_Click);
            this.MovePage.Controls.Add(this.MoveTable);
            this.MovePage.Location = new Point(4, 22);
            this.MovePage.Name     = "MovePage";
            this.MovePage.Padding  = new System.Windows.Forms.Padding(3);
            this.MovePage.Size     = new System.Drawing.Size(379, 312);
            this.MovePage.TabIndex = 2;
            this.MovePage.Text     = "Move";
            this.MovePage.UseVisualStyleBackColor = true;
            this.MoveTable.ColumnCount            = 3;
            this.MoveTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f));
            this.MoveTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 34f));
            this.MoveTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f));
            this.MoveTable.Controls.Add(this.MoveUpBtn, 1, 0);
            this.MoveTable.Controls.Add(this.MoveDownBtn, 1, 2);
            this.MoveTable.Controls.Add(this.MoveLeftBtn, 0, 1);
            this.MoveTable.Controls.Add(this.MoveRightBtn, 2, 1);
            this.MoveTable.Dock     = DockStyle.Fill;
            this.MoveTable.Location = new Point(3, 3);
            this.MoveTable.Name     = "MoveTable";
            this.MoveTable.RowCount = 3;
            this.MoveTable.RowStyles.Add(new RowStyle(SizeType.Percent, 33f));
            this.MoveTable.RowStyles.Add(new RowStyle(SizeType.Percent, 34f));
            this.MoveTable.RowStyles.Add(new RowStyle(SizeType.Percent, 33f));
            this.MoveTable.Size     = new System.Drawing.Size(373, 306);
            this.MoveTable.TabIndex = 0;
            this.MoveUpBtn.Dock     = DockStyle.Fill;
            this.MoveUpBtn.Location = new Point(126, 3);
            this.MoveUpBtn.Name     = "MoveUpBtn";
            this.MoveUpBtn.Size     = new System.Drawing.Size(120, 94);
            this.MoveUpBtn.TabIndex = 0;
            this.MoveUpBtn.Text     = "Up";
            this.MoveUpBtn.UseVisualStyleBackColor = true;
            this.MoveUpBtn.Click     += new EventHandler(this.MoveUpBtn_Click);
            this.MoveDownBtn.Dock     = DockStyle.Fill;
            this.MoveDownBtn.Location = new Point(126, 207);
            this.MoveDownBtn.Name     = "MoveDownBtn";
            this.MoveDownBtn.Size     = new System.Drawing.Size(120, 96);
            this.MoveDownBtn.TabIndex = 3;
            this.MoveDownBtn.Text     = "Down";
            this.MoveDownBtn.UseVisualStyleBackColor = true;
            this.MoveDownBtn.Click   += new EventHandler(this.MoveDownBtn_Click);
            this.MoveLeftBtn.Dock     = DockStyle.Fill;
            this.MoveLeftBtn.Location = new Point(3, 103);
            this.MoveLeftBtn.Name     = "MoveLeftBtn";
            this.MoveLeftBtn.Size     = new System.Drawing.Size(117, 98);
            this.MoveLeftBtn.TabIndex = 1;
            this.MoveLeftBtn.Text     = "Left";
            this.MoveLeftBtn.UseVisualStyleBackColor = true;
            this.MoveLeftBtn.Click    += new EventHandler(this.MoveLeftBtn_Click);
            this.MoveRightBtn.Dock     = DockStyle.Fill;
            this.MoveRightBtn.Location = new Point(252, 103);
            this.MoveRightBtn.Name     = "MoveRightBtn";
            this.MoveRightBtn.Size     = new System.Drawing.Size(118, 98);
            this.MoveRightBtn.TabIndex = 2;
            this.MoveRightBtn.Text     = "Right";
            this.MoveRightBtn.UseVisualStyleBackColor = true;
            this.MoveRightBtn.Click += new EventHandler(this.MoveRightBtn_Click);
            this.ResizePage.Controls.Add(this.ResizeTable);
            this.ResizePage.Location = new Point(4, 22);
            this.ResizePage.Name     = "ResizePage";
            this.ResizePage.Padding  = new System.Windows.Forms.Padding(3);
            this.ResizePage.Size     = new System.Drawing.Size(391, 312);
            this.ResizePage.TabIndex = 1;
            this.ResizePage.Text     = "Resize";
            this.ResizePage.UseVisualStyleBackColor = true;
            this.ResizeTable.ColumnCount            = 4;
            this.ResizeTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20f));
            this.ResizeTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20f));
            this.ResizeTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20f));
            this.ResizeTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 20f));
            this.ResizeTable.Controls.Add(this.TopMoreBtn, 1, 0);
            this.ResizeTable.Controls.Add(this.TopLessBtn, 2, 0);
            this.ResizeTable.Controls.Add(this.LeftMoreBtn, 0, 1);
            this.ResizeTable.Controls.Add(this.LeftLessBtn, 0, 2);
            this.ResizeTable.Controls.Add(this.RightLessBtn, 3, 2);
            this.ResizeTable.Controls.Add(this.RightMoreBtn, 3, 1);
            this.ResizeTable.Controls.Add(this.BottomLessBtn, 2, 3);
            this.ResizeTable.Controls.Add(this.BottomMoreBtn, 1, 3);
            this.ResizeTable.Dock     = DockStyle.Fill;
            this.ResizeTable.Location = new Point(3, 3);
            this.ResizeTable.Name     = "ResizeTable";
            this.ResizeTable.RowCount = 4;
            this.ResizeTable.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
            this.ResizeTable.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
            this.ResizeTable.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
            this.ResizeTable.RowStyles.Add(new RowStyle(SizeType.Percent, 20f));
            this.ResizeTable.Size     = new System.Drawing.Size(385, 306);
            this.ResizeTable.TabIndex = 0;
            this.TopMoreBtn.Dock      = DockStyle.Fill;
            this.TopMoreBtn.Location  = new Point(99, 3);
            this.TopMoreBtn.Name      = "TopMoreBtn";
            this.TopMoreBtn.Size      = new System.Drawing.Size(90, 70);
            this.TopMoreBtn.TabIndex  = 0;
            this.TopMoreBtn.Text      = "More";
            this.TopMoreBtn.UseVisualStyleBackColor = true;
            this.TopMoreBtn.Click   += new EventHandler(this.TopMoreBtn_Click);
            this.TopLessBtn.Dock     = DockStyle.Fill;
            this.TopLessBtn.Location = new Point(195, 3);
            this.TopLessBtn.Name     = "TopLessBtn";
            this.TopLessBtn.Size     = new System.Drawing.Size(90, 70);
            this.TopLessBtn.TabIndex = 1;
            this.TopLessBtn.Text     = "Less";
            this.TopLessBtn.UseVisualStyleBackColor = true;
            this.TopLessBtn.Click    += new EventHandler(this.TopLessBtn_Click);
            this.LeftMoreBtn.Dock     = DockStyle.Fill;
            this.LeftMoreBtn.Location = new Point(3, 79);
            this.LeftMoreBtn.Name     = "LeftMoreBtn";
            this.LeftMoreBtn.Size     = new System.Drawing.Size(90, 70);
            this.LeftMoreBtn.TabIndex = 2;
            this.LeftMoreBtn.Text     = "More";
            this.LeftMoreBtn.UseVisualStyleBackColor = true;
            this.LeftMoreBtn.Click   += new EventHandler(this.LeftMoreBtn_Click);
            this.LeftLessBtn.Dock     = DockStyle.Fill;
            this.LeftLessBtn.Location = new Point(3, 155);
            this.LeftLessBtn.Name     = "LeftLessBtn";
            this.LeftLessBtn.Size     = new System.Drawing.Size(90, 70);
            this.LeftLessBtn.TabIndex = 3;
            this.LeftLessBtn.Text     = "Less";
            this.LeftLessBtn.UseVisualStyleBackColor = true;
            this.LeftLessBtn.Click    += new EventHandler(this.LeftLessBtn_Click);
            this.RightLessBtn.Dock     = DockStyle.Fill;
            this.RightLessBtn.Location = new Point(291, 155);
            this.RightLessBtn.Name     = "RightLessBtn";
            this.RightLessBtn.Size     = new System.Drawing.Size(91, 70);
            this.RightLessBtn.TabIndex = 4;
            this.RightLessBtn.Text     = "Less";
            this.RightLessBtn.UseVisualStyleBackColor = true;
            this.RightLessBtn.Click   += new EventHandler(this.RightLessBtn_Click);
            this.RightMoreBtn.Dock     = DockStyle.Fill;
            this.RightMoreBtn.Location = new Point(291, 79);
            this.RightMoreBtn.Name     = "RightMoreBtn";
            this.RightMoreBtn.Size     = new System.Drawing.Size(91, 70);
            this.RightMoreBtn.TabIndex = 5;
            this.RightMoreBtn.Text     = "More";
            this.RightMoreBtn.UseVisualStyleBackColor = true;
            this.RightMoreBtn.Click    += new EventHandler(this.RightMoreBtn_Click);
            this.BottomLessBtn.Dock     = DockStyle.Fill;
            this.BottomLessBtn.Location = new Point(195, 231);
            this.BottomLessBtn.Name     = "BottomLessBtn";
            this.BottomLessBtn.Size     = new System.Drawing.Size(90, 72);
            this.BottomLessBtn.TabIndex = 6;
            this.BottomLessBtn.Text     = "Less";
            this.BottomLessBtn.UseVisualStyleBackColor = true;
            this.BottomLessBtn.Click   += new EventHandler(this.BottomLessBtn_Click);
            this.BottomMoreBtn.Dock     = DockStyle.Fill;
            this.BottomMoreBtn.Location = new Point(99, 231);
            this.BottomMoreBtn.Name     = "BottomMoreBtn";
            this.BottomMoreBtn.Size     = new System.Drawing.Size(90, 72);
            this.BottomMoreBtn.TabIndex = 7;
            this.BottomMoreBtn.Text     = "More";
            this.BottomMoreBtn.UseVisualStyleBackColor = true;
            this.BottomMoreBtn.Click      += new EventHandler(this.BottomMoreBtn_Click);
            this.MapView.AllowDrawing      = false;
            this.MapView.AllowDrop         = true;
            this.MapView.AllowLinkCreation = false;
            this.MapView.AllowScrolling    = false;
            this.MapView.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            this.MapView.BackgroundMap     = null;
            this.MapView.BorderSize        = 0;
            this.MapView.BorderStyle       = BorderStyle.FixedSingle;
            this.MapView.Cursor            = Cursors.Default;
            this.MapView.Encounter         = null;
            this.MapView.FrameType         = MapDisplayType.Dimmed;
            this.MapView.HighlightAreas    = false;
            this.MapView.HoverToken        = null;
            this.MapView.LineOfSight       = false;
            this.MapView.Location          = new Point(405, 12);
            this.MapView.Map                         = null;
            this.MapView.Mode                        = MapViewMode.Thumbnail;
            this.MapView.Name                        = "MapView";
            this.MapView.ScalingFactor               = 1;
            this.MapView.SelectedArea                = null;
            this.MapView.SelectedTiles               = null;
            this.MapView.Selection                   = new Rectangle(0, 0, 0, 0);
            this.MapView.ShowAuras                   = true;
            this.MapView.ShowConditions              = true;
            this.MapView.ShowCreatureLabels          = true;
            this.MapView.ShowCreatures               = CreatureViewMode.All;
            this.MapView.ShowGrid                    = MapGridMode.None;
            this.MapView.ShowGridLabels              = false;
            this.MapView.ShowHealthBars              = false;
            this.MapView.ShowPictureTokens           = true;
            this.MapView.Size                        = new System.Drawing.Size(345, 364);
            this.MapView.TabIndex                    = 3;
            this.MapView.Tactical                    = false;
            this.MapView.TokenLinks                  = null;
            this.MapView.Viewpoint                   = new Rectangle(0, 0, 0, 0);
            this.RandomNameBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.RandomNameBtn.Image                 = (Image)componentResourceManager.GetObject("RandomNameBtn.Image");
            this.RandomNameBtn.ImageTransparentColor = Color.Magenta;
            this.RandomNameBtn.Name                  = "RandomNameBtn";
            this.RandomNameBtn.Size                  = new System.Drawing.Size(91, 22);
            this.RandomNameBtn.Text                  = "Random Name";
            this.RandomNameBtn.Click                += new EventHandler(this.RandomNameBtn_Click);
            base.AcceptButton                        = this.OKBtn;
            base.AutoScaleDimensions                 = new SizeF(6f, 13f);
            base.AutoScaleMode                       = System.Windows.Forms.AutoScaleMode.Font;
            base.CancelButton                        = this.CancelBtn;
            base.ClientSize = new System.Drawing.Size(762, 417);
            base.Controls.Add(this.Pages);
            base.Controls.Add(this.MapView);
            base.Controls.Add(this.CancelBtn);
            base.Controls.Add(this.OKBtn);
            base.Controls.Add(this.NameBox);
            base.Controls.Add(this.NameLbl);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "MapAreaForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Map Area";
            this.Pages.ResumeLayout(false);
            this.DetailsPage.ResumeLayout(false);
            this.DetailsPage.PerformLayout();
            this.DetailsToolbar.ResumeLayout(false);
            this.DetailsToolbar.PerformLayout();
            this.MovePage.ResumeLayout(false);
            this.MoveTable.ResumeLayout(false);
            this.ResizePage.ResumeLayout(false);
            this.ResizeTable.ResumeLayout(false);
            base.ResumeLayout(false);
            base.PerformLayout();
        }