From 8306c82657d41a8684e7ebe5ca301f30968da2ed Mon Sep 17 00:00:00 2001 From: AdAstra-LD Date: Sun, 31 Jan 2021 03:46:37 +0100 Subject: [PATCH] Foundations of header advanced search --- DS_Map/DS Map.csproj | 9 + DS_Map/Header.cs | 20 +- DS_Map/HeaderSearch.Designer.cs | 187 ++++++++++++++++ DS_Map/HeaderSearch.cs | 95 ++++++++ DS_Map/HeaderSearch.resx | 120 ++++++++++ DS_Map/Main Window.Designer.cs | 378 ++++++++++++++++---------------- DS_Map/Main Window.cs | 36 ++- DS_Map/Main Window.resx | 194 ++++++++-------- 8 files changed, 722 insertions(+), 317 deletions(-) create mode 100644 DS_Map/HeaderSearch.Designer.cs create mode 100644 DS_Map/HeaderSearch.cs create mode 100644 DS_Map/HeaderSearch.resx diff --git a/DS_Map/DS Map.csproj b/DS_Map/DS Map.csproj index ddf39c7..d119f79 100644 --- a/DS_Map/DS Map.csproj +++ b/DS_Map/DS Map.csproj @@ -118,6 +118,12 @@ True ScriptComparisonOperators.resx + + Form + + + HeaderSearch.cs + Form @@ -253,6 +259,9 @@ SPK.cs + + HeaderSearch.cs + ResXFileCodeGenerator ARM9ExpansionDB.Designer.cs diff --git a/DS_Map/Header.cs b/DS_Map/Header.cs index 862c005..c32b897 100644 --- a/DS_Map/Header.cs +++ b/DS_Map/Header.cs @@ -98,6 +98,8 @@ namespace DSPRE public ushort levelScript { get; set; } public ushort matrix { get; set; } public ushort script { get; set; } + public ushort musicDay { get; set; } + public ushort musicNight { get; set; } public byte showName { get; set; } public byte battleBackground { get; set; } public ushort text { get; set; } @@ -140,8 +142,6 @@ namespace DSPRE { #region Fields (5) public byte unknown1 { get; set; } - public ushort musicDay { get; set; } - public ushort musicNight { get; set; } public ushort locationName { get; set; } #endregion Fields @@ -236,9 +236,7 @@ namespace DSPRE { #region Fields (5) public byte areaIcon { get; set; } - public byte mapName { get; set; } - public ushort musicDay { get; set; } - public ushort musicNight { get; set; } + public byte locationName { get; set; } public byte unknown1 { get; set; } #endregion Fields @@ -259,7 +257,7 @@ namespace DSPRE musicNight = reader.ReadUInt16(); wildPokémon = reader.ReadUInt16(); eventID = reader.ReadUInt16(); - mapName = reader.ReadByte(); + locationName = reader.ReadByte(); areaIcon = reader.ReadByte(); weather = reader.ReadByte(); camera = reader.ReadByte(); @@ -292,7 +290,7 @@ namespace DSPRE writer.Write(musicNight); writer.Write(wildPokémon); writer.Write(eventID); - writer.Write(mapName); + writer.Write(locationName); writer.Write(areaIcon); writer.Write(weather); writer.Write(camera); @@ -313,9 +311,7 @@ namespace DSPRE #region Fields (7) public byte areaIcon { get; set; } public byte followMode { get; set; } - public byte mapName { get; set; } - public ushort musicDay { get; set; } - public ushort musicNight { get; set; } + public byte locationName { get; set; } public byte areaSettings { get; set; } // 4 bits only [4 bits for the camera as well] public byte unknown0 { get; set; } //4 bits only public byte worldmapX { get; set; } //6 bits only @@ -344,7 +340,7 @@ namespace DSPRE musicDay = reader.ReadUInt16(); musicNight = reader.ReadUInt16(); eventID = reader.ReadUInt16(); - mapName = reader.ReadByte(); + locationName = reader.ReadByte(); areaIcon = StandardizeAreaIcon(reader.ReadByte()); weather = reader.ReadByte(); @@ -382,7 +378,7 @@ namespace DSPRE writer.Write(musicDay); writer.Write(musicNight); writer.Write(eventID); - writer.Write(mapName); + writer.Write(locationName); writer.Write(areaIcon); writer.Write(weather); diff --git a/DS_Map/HeaderSearch.Designer.cs b/DS_Map/HeaderSearch.Designer.cs new file mode 100644 index 0000000..37d825b --- /dev/null +++ b/DS_Map/HeaderSearch.Designer.cs @@ -0,0 +1,187 @@ +namespace DSPRE { + partial class HeaderSearch { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) { + if (disposing && (components != null)) { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() { + this.arm9expansionTextLBL = new System.Windows.Forms.Label(); + this.fieldToSearch1ComboBox = new System.Windows.Forms.ComboBox(); + this.explanationLabel = new System.Windows.Forms.Label(); + this.operator1ComboBox = new System.Windows.Forms.ComboBox(); + this.value1TextBox = new System.Windows.Forms.TextBox(); + this.value2TextBox = new System.Windows.Forms.TextBox(); + this.operator2ComboBox = new System.Windows.Forms.ComboBox(); + this.fieldToSearch2ComboBox = new System.Windows.Forms.ComboBox(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.startSearchButton = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // arm9expansionTextLBL + // + this.arm9expansionTextLBL.Location = new System.Drawing.Point(0, 0); + this.arm9expansionTextLBL.Name = "arm9expansionTextLBL"; + this.arm9expansionTextLBL.Size = new System.Drawing.Size(100, 23); + this.arm9expansionTextLBL.TabIndex = 15; + // + // fieldToSearch1ComboBox + // + this.fieldToSearch1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.fieldToSearch1ComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.fieldToSearch1ComboBox.FormattingEnabled = true; + this.fieldToSearch1ComboBox.Location = new System.Drawing.Point(39, 42); + this.fieldToSearch1ComboBox.Name = "fieldToSearch1ComboBox"; + this.fieldToSearch1ComboBox.Size = new System.Drawing.Size(165, 24); + this.fieldToSearch1ComboBox.TabIndex = 6; + this.fieldToSearch1ComboBox.SelectedIndexChanged += new System.EventHandler(this.fieldToSearch1ComboBox_SelectedIndexChanged); + // + // explanationLabel + // + this.explanationLabel.AutoSize = true; + this.explanationLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.explanationLabel.Location = new System.Drawing.Point(18, 13); + this.explanationLabel.Name = "explanationLabel"; + this.explanationLabel.Size = new System.Drawing.Size(307, 15); + this.explanationLabel.TabIndex = 7; + this.explanationLabel.Text = "Find all headers that meet these requirements:"; + // + // operator1ComboBox + // + this.operator1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.operator1ComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.operator1ComboBox.FormattingEnabled = true; + this.operator1ComboBox.Location = new System.Drawing.Point(210, 42); + this.operator1ComboBox.Name = "operator1ComboBox"; + this.operator1ComboBox.Size = new System.Drawing.Size(176, 24); + this.operator1ComboBox.TabIndex = 8; + this.operator1ComboBox.SelectedIndexChanged += new System.EventHandler(this.operator1ComboBox_SelectedIndexChanged); + // + // value1TextBox + // + this.value1TextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.value1TextBox.Location = new System.Drawing.Point(392, 42); + this.value1TextBox.Name = "value1TextBox"; + this.value1TextBox.Size = new System.Drawing.Size(117, 22); + this.value1TextBox.TabIndex = 9; + // + // value2TextBox + // + this.value2TextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.value2TextBox.Location = new System.Drawing.Point(392, 97); + this.value2TextBox.Name = "value2TextBox"; + this.value2TextBox.Size = new System.Drawing.Size(117, 22); + this.value2TextBox.TabIndex = 12; + // + // operator2ComboBox + // + this.operator2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.operator2ComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.operator2ComboBox.FormattingEnabled = true; + this.operator2ComboBox.Location = new System.Drawing.Point(210, 97); + this.operator2ComboBox.Name = "operator2ComboBox"; + this.operator2ComboBox.Size = new System.Drawing.Size(176, 24); + this.operator2ComboBox.TabIndex = 11; + this.operator2ComboBox.SelectedIndexChanged += new System.EventHandler(this.operator2ComboBox_SelectedIndexChanged); + // + // fieldToSearch2ComboBox + // + this.fieldToSearch2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.fieldToSearch2ComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.fieldToSearch2ComboBox.FormattingEnabled = true; + this.fieldToSearch2ComboBox.Location = new System.Drawing.Point(39, 96); + this.fieldToSearch2ComboBox.Name = "fieldToSearch2ComboBox"; + this.fieldToSearch2ComboBox.Size = new System.Drawing.Size(165, 24); + this.fieldToSearch2ComboBox.TabIndex = 10; + this.fieldToSearch2ComboBox.SelectedIndexChanged += new System.EventHandler(this.fieldToSearch2ComboBox_SelectedIndexChanged); + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(12, 46); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(15, 14); + this.checkBox1.TabIndex = 13; + this.checkBox1.UseVisualStyleBackColor = true; + // + // checkBox2 + // + this.checkBox2.AutoSize = true; + this.checkBox2.Location = new System.Drawing.Point(12, 101); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(15, 14); + this.checkBox2.TabIndex = 14; + this.checkBox2.UseVisualStyleBackColor = true; + // + // startSearchButton + // + this.startSearchButton.Image = global::DSPRE.Properties.Resources.wideLensImage; + this.startSearchButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.startSearchButton.Location = new System.Drawing.Point(39, 142); + this.startSearchButton.Name = "startSearchButton"; + this.startSearchButton.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.startSearchButton.Size = new System.Drawing.Size(106, 43); + this.startSearchButton.TabIndex = 16; + this.startSearchButton.Text = "Start Search"; + this.startSearchButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.startSearchButton.UseVisualStyleBackColor = true; + this.startSearchButton.Click += new System.EventHandler(this.startSearchButton_Click); + // + // HeaderSearch + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.ClientSize = new System.Drawing.Size(556, 188); + this.Controls.Add(this.startSearchButton); + this.Controls.Add(this.checkBox2); + this.Controls.Add(this.checkBox1); + this.Controls.Add(this.value2TextBox); + this.Controls.Add(this.operator2ComboBox); + this.Controls.Add(this.fieldToSearch2ComboBox); + this.Controls.Add(this.value1TextBox); + this.Controls.Add(this.operator1ComboBox); + this.Controls.Add(this.explanationLabel); + this.Controls.Add(this.fieldToSearch1ComboBox); + this.Controls.Add(this.arm9expansionTextLBL); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "HeaderSearch"; + this.Text = "ROM Toolbox"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.Label arm9expansionTextLBL; + private System.Windows.Forms.ComboBox fieldToSearch1ComboBox; + private System.Windows.Forms.Label explanationLabel; + private System.Windows.Forms.ComboBox operator1ComboBox; + private System.Windows.Forms.TextBox value1TextBox; + private System.Windows.Forms.TextBox value2TextBox; + private System.Windows.Forms.ComboBox operator2ComboBox; + private System.Windows.Forms.ComboBox fieldToSearch2ComboBox; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.Button startSearchButton; + } +} \ No newline at end of file diff --git a/DS_Map/HeaderSearch.cs b/DS_Map/HeaderSearch.cs new file mode 100644 index 0000000..1c24fa3 --- /dev/null +++ b/DS_Map/HeaderSearch.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace DSPRE { + public partial class HeaderSearch : Form + { + private List searchableHeaderFieldsList = new List() { + "AreaData ID", + "Camera Angle ID", + "Event File ID", + "Internal Name", + "Level Script File ID", + "Location Name", + "Matrix ID", + "Music Day ID", + "Music Night ID", + "Script File ID", + "Text Archive ID", + "Weather ID", + }; + private List headerSearchNumericOperatorsList = new List() { + "Is Less than", + "Equals", + "Is Greater than", + "Is Less than or Equal to", + "Is Greater than or Equal to", + "Is Different than", + }; + private List headerSearchTextOperatorsList = new List() { + "Is Exactly", + "Contains", + "Does not contain" + }; + + private string[] searchableHeaderFields; + private string[] headerSearchNumericOperators; + private string[] headerSearchTextOperators; + + private List intNames; + + public HeaderSearch(ref List internalNames) { + InitializeComponent(); + searchableHeaderFields = searchableHeaderFieldsList.ToArray(); + headerSearchNumericOperators = headerSearchNumericOperatorsList.ToArray(); + headerSearchTextOperators = headerSearchTextOperatorsList.ToArray(); + + intNames = internalNames; + + fieldToSearch1ComboBox.Items.AddRange(searchableHeaderFields); + fieldToSearch2ComboBox.Items.AddRange(searchableHeaderFields); + + fieldToSearch1ComboBox.SelectedIndex = 0; + operator1ComboBox.SelectedIndex = 0; + } + + private void fieldToSearch1ComboBox_SelectedIndexChanged(object sender, EventArgs e) { + UpdateOperators(operator1ComboBox, fieldToSearch1ComboBox); + } + + private void operator1ComboBox_SelectedIndexChanged(object sender, EventArgs e) { + + } + + private void fieldToSearch2ComboBox_SelectedIndexChanged(object sender, EventArgs e) { + UpdateOperators(operator2ComboBox, fieldToSearch2ComboBox); + } + + private void operator2ComboBox_SelectedIndexChanged(object sender, EventArgs e) { + + } + + #region Helper Methods + private void UpdateOperators(ComboBox operatorComboBox, ComboBox fieldToSearchComboBox) { + operatorComboBox.Items.Clear(); + + if (fieldToSearchComboBox.SelectedItem.ToString().Contains("ID")) { + operatorComboBox.Items.AddRange(headerSearchNumericOperators); + } else { + operatorComboBox.Items.AddRange(headerSearchTextOperators); + } + + fieldToSearchComboBox.SelectedIndex = 0; + operatorComboBox.SelectedIndex = 0; + } + #endregion + + private void startSearchButton_Click(object sender, EventArgs e) { + for (short i = 0; i < intNames.Count; i++) { + Header h = Header.LoadFromARM9(i); + + } + } + } +} diff --git a/DS_Map/HeaderSearch.resx b/DS_Map/HeaderSearch.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/DS_Map/HeaderSearch.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/DS_Map/Main Window.Designer.cs b/DS_Map/Main Window.Designer.cs index 0982bb3..7850bba 100644 --- a/DS_Map/Main Window.Designer.cs +++ b/DS_Map/Main Window.Designer.cs @@ -30,21 +30,21 @@ { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainProgram)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle91 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle92 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle93 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle94 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle95 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle96 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle97 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle98 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle99 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle100 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle101 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle102 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle103 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle104 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle105 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); this.mainTabControl = new System.Windows.Forms.TabControl(); this.headerEditorTabPage = new System.Windows.Forms.TabPage(); this.worldmapCoordsGroupBox = new System.Windows.Forms.GroupBox(); @@ -175,8 +175,11 @@ this.matrixNameLabel = new System.Windows.Forms.Label(); this.matrixTabControl = new System.Windows.Forms.TabControl(); this.headersTabPage = new System.Windows.Forms.TabPage(); + this.headersGridView = new DSPRE.DataGridViewDoubleBuffered(); this.heightsTabPage = new System.Windows.Forms.TabPage(); + this.heightsGridView = new DSPRE.DataGridViewDoubleBuffered(); this.mapFilesTabPage = new System.Windows.Forms.TabPage(); + this.mapFilesGridView = new DSPRE.DataGridViewDoubleBuffered(); this.matrixNameTextBox = new System.Windows.Forms.TextBox(); this.heightUpDown = new System.Windows.Forms.NumericUpDown(); this.widthUpDown = new System.Windows.Forms.NumericUpDown(); @@ -592,9 +595,6 @@ this.headerSearchToolStripButton = new System.Windows.Forms.ToolStripButton(); this.versionLabel = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.headersGridView = new DSPRE.DataGridViewDoubleBuffered(); - this.heightsGridView = new DSPRE.DataGridViewDoubleBuffered(); - this.mapFilesGridView = new DSPRE.DataGridViewDoubleBuffered(); this.mainTabControl.SuspendLayout(); this.headerEditorTabPage.SuspendLayout(); this.worldmapCoordsGroupBox.SuspendLayout(); @@ -625,8 +625,11 @@ this.matrixEditorTabPage.SuspendLayout(); this.matrixTabControl.SuspendLayout(); this.headersTabPage.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.headersGridView)).BeginInit(); this.heightsTabPage.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.heightsGridView)).BeginInit(); this.mapFilesTabPage.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.mapFilesGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.heightUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.widthUpDown)).BeginInit(); this.mapEditorTabPage.SuspendLayout(); @@ -746,9 +749,6 @@ this.menuStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.mainToolStrip.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.headersGridView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.heightsGridView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.mapFilesGridView)).BeginInit(); this.SuspendLayout(); // // mainTabControl @@ -2281,6 +2281,62 @@ this.headersTabPage.Text = "Map Headers"; this.headersTabPage.UseVisualStyleBackColor = true; // + // headersGridView + // + this.headersGridView.AllowUserToAddRows = false; + this.headersGridView.AllowUserToDeleteRows = false; + this.headersGridView.AllowUserToResizeColumns = false; + this.headersGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.headersGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; + this.headersGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.headersGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.headersGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; + this.headersGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle18.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle18.Format = "D4"; + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.headersGridView.DefaultCellStyle = dataGridViewCellStyle18; + this.headersGridView.Location = new System.Drawing.Point(0, 0); + this.headersGridView.Name = "headersGridView"; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.headersGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle19; + this.headersGridView.RowHeadersWidth = 50; + this.headersGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle20.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.headersGridView.RowsDefaultCellStyle = dataGridViewCellStyle20; + this.headersGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.headersGridView.RowTemplate.Height = 18; + this.headersGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.headersGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.headersGridView.ShowCellErrors = false; + this.headersGridView.Size = new System.Drawing.Size(1032, 566); + this.headersGridView.TabIndex = 1; + this.headersGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.headersGridView_CellFormatting); + this.headersGridView.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.headersGridView_CellMouseDoubleClick); + this.headersGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.headersGridView_CellValueChanged); + // // heightsTabPage // this.heightsTabPage.Controls.Add(this.heightsGridView); @@ -2291,6 +2347,60 @@ this.heightsTabPage.Text = "Map Heights"; this.heightsTabPage.UseVisualStyleBackColor = true; // + // heightsGridView + // + this.heightsGridView.AllowUserToAddRows = false; + this.heightsGridView.AllowUserToDeleteRows = false; + this.heightsGridView.AllowUserToResizeColumns = false; + this.heightsGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.heightsGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; + this.heightsGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.heightsGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle22.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.heightsGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; + this.heightsGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle23.Font = new System.Drawing.Font("Tahoma", 8.25F); + dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle23.Format = "D2"; + dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.heightsGridView.DefaultCellStyle = dataGridViewCellStyle23; + this.heightsGridView.Location = new System.Drawing.Point(0, 0); + this.heightsGridView.Name = "heightsGridView"; + dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.heightsGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; + this.heightsGridView.RowHeadersWidth = 50; + this.heightsGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle25.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.heightsGridView.RowsDefaultCellStyle = dataGridViewCellStyle25; + this.heightsGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.heightsGridView.RowTemplate.Height = 18; + this.heightsGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.heightsGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.heightsGridView.Size = new System.Drawing.Size(1032, 566); + this.heightsGridView.TabIndex = 2; + this.heightsGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.heightsGridView_CellFormatting); + this.heightsGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.heightsGridView_CellValueChanged); + // // mapFilesTabPage // this.mapFilesTabPage.Controls.Add(this.mapFilesGridView); @@ -2301,6 +2411,61 @@ this.mapFilesTabPage.Text = "Map Files"; this.mapFilesTabPage.UseVisualStyleBackColor = true; // + // mapFilesGridView + // + this.mapFilesGridView.AllowUserToAddRows = false; + this.mapFilesGridView.AllowUserToDeleteRows = false; + this.mapFilesGridView.AllowUserToResizeColumns = false; + this.mapFilesGridView.AllowUserToResizeRows = false; + dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.mapFilesGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle26; + this.mapFilesGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mapFilesGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.mapFilesGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle27; + this.mapFilesGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle28.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle28.Format = "D4"; + dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.mapFilesGridView.DefaultCellStyle = dataGridViewCellStyle28; + this.mapFilesGridView.Location = new System.Drawing.Point(0, 0); + this.mapFilesGridView.Name = "mapFilesGridView"; + dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle29.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); + dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.mapFilesGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle29; + this.mapFilesGridView.RowHeadersWidth = 50; + this.mapFilesGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle30.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.mapFilesGridView.RowsDefaultCellStyle = dataGridViewCellStyle30; + this.mapFilesGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.mapFilesGridView.RowTemplate.Height = 18; + this.mapFilesGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.mapFilesGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.mapFilesGridView.Size = new System.Drawing.Size(1032, 566); + this.mapFilesGridView.TabIndex = 2; + this.mapFilesGridView.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mapFilesGridView_CellMouseDoubleClick); + this.mapFilesGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.mapFilesGridView_CellFormatting); + this.mapFilesGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.mapFilesGridView_CellValueChanged); + // // matrixNameTextBox // this.matrixNameTextBox.Location = new System.Drawing.Point(13, 73); @@ -7422,171 +7587,6 @@ this.versionLabel.TabIndex = 9; this.versionLabel.Text = "ROM:"; // - // headersGridView - // - this.headersGridView.AllowUserToAddRows = false; - this.headersGridView.AllowUserToDeleteRows = false; - this.headersGridView.AllowUserToResizeColumns = false; - this.headersGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle91.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.headersGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle91; - this.headersGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.headersGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - dataGridViewCellStyle92.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle92.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle92.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle92.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle92.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle92.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle92.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.headersGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle92; - this.headersGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle93.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle93.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle93.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle93.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle93.Format = "D4"; - dataGridViewCellStyle93.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle93.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle93.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.headersGridView.DefaultCellStyle = dataGridViewCellStyle93; - this.headersGridView.Location = new System.Drawing.Point(0, 0); - this.headersGridView.Name = "headersGridView"; - dataGridViewCellStyle94.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle94.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle94.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle94.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle94.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle94.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle94.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.headersGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle94; - this.headersGridView.RowHeadersWidth = 50; - this.headersGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - dataGridViewCellStyle95.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle95.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.headersGridView.RowsDefaultCellStyle = dataGridViewCellStyle95; - this.headersGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.headersGridView.RowTemplate.Height = 18; - this.headersGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.headersGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.headersGridView.ShowCellErrors = false; - this.headersGridView.Size = new System.Drawing.Size(1032, 566); - this.headersGridView.TabIndex = 1; - this.headersGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.headersGridView_CellFormatting); - this.headersGridView.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.headersGridView_CellMouseDoubleClick); - this.headersGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.headersGridView_CellValueChanged); - // - // heightsGridView - // - this.heightsGridView.AllowUserToAddRows = false; - this.heightsGridView.AllowUserToDeleteRows = false; - this.heightsGridView.AllowUserToResizeColumns = false; - this.heightsGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle96.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.heightsGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle96; - this.heightsGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.heightsGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - dataGridViewCellStyle97.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle97.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle97.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle97.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle97.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle97.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle97.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.heightsGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle97; - this.heightsGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle98.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle98.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle98.Font = new System.Drawing.Font("Tahoma", 8.25F); - dataGridViewCellStyle98.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle98.Format = "D2"; - dataGridViewCellStyle98.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle98.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle98.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.heightsGridView.DefaultCellStyle = dataGridViewCellStyle98; - this.heightsGridView.Location = new System.Drawing.Point(0, 0); - this.heightsGridView.Name = "heightsGridView"; - dataGridViewCellStyle99.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle99.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle99.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle99.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle99.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle99.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle99.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.heightsGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle99; - this.heightsGridView.RowHeadersWidth = 50; - this.heightsGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - dataGridViewCellStyle100.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle100.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.heightsGridView.RowsDefaultCellStyle = dataGridViewCellStyle100; - this.heightsGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.heightsGridView.RowTemplate.Height = 18; - this.heightsGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.heightsGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.heightsGridView.Size = new System.Drawing.Size(1032, 566); - this.heightsGridView.TabIndex = 2; - this.heightsGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.heightsGridView_CellFormatting); - this.heightsGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.heightsGridView_CellValueChanged); - // - // mapFilesGridView - // - this.mapFilesGridView.AllowUserToAddRows = false; - this.mapFilesGridView.AllowUserToDeleteRows = false; - this.mapFilesGridView.AllowUserToResizeColumns = false; - this.mapFilesGridView.AllowUserToResizeRows = false; - dataGridViewCellStyle101.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.mapFilesGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle101; - this.mapFilesGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.mapFilesGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - dataGridViewCellStyle102.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle102.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle102.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle102.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle102.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle102.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle102.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.mapFilesGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle102; - this.mapFilesGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle103.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle103.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle103.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle103.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle103.Format = "D4"; - dataGridViewCellStyle103.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle103.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle103.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.mapFilesGridView.DefaultCellStyle = dataGridViewCellStyle103; - this.mapFilesGridView.Location = new System.Drawing.Point(0, 0); - this.mapFilesGridView.Name = "mapFilesGridView"; - dataGridViewCellStyle104.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle104.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle104.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); - dataGridViewCellStyle104.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle104.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle104.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle104.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.mapFilesGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle104; - this.mapFilesGridView.RowHeadersWidth = 50; - this.mapFilesGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - dataGridViewCellStyle105.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle105.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.mapFilesGridView.RowsDefaultCellStyle = dataGridViewCellStyle105; - this.mapFilesGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.mapFilesGridView.RowTemplate.Height = 18; - this.mapFilesGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.mapFilesGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.mapFilesGridView.Size = new System.Drawing.Size(1032, 566); - this.mapFilesGridView.TabIndex = 2; - this.mapFilesGridView.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.mapFilesGridView_CellMouseDoubleClick); - this.mapFilesGridView.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.mapFilesGridView_CellFormatting); - this.mapFilesGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.mapFilesGridView_CellValueChanged); - // // MainProgram // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -7646,8 +7646,11 @@ this.matrixEditorTabPage.PerformLayout(); this.matrixTabControl.ResumeLayout(false); this.headersTabPage.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.headersGridView)).EndInit(); this.heightsTabPage.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.heightsGridView)).EndInit(); this.mapFilesTabPage.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.mapFilesGridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.heightUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.widthUpDown)).EndInit(); this.mapEditorTabPage.ResumeLayout(false); @@ -7804,9 +7807,6 @@ this.statusStrip1.PerformLayout(); this.mainToolStrip.ResumeLayout(false); this.mainToolStrip.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.headersGridView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.heightsGridView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.mapFilesGridView)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/DS_Map/Main Window.cs b/DS_Map/Main Window.cs index b3fa992..002816c 100644 --- a/DS_Map/Main Window.cs +++ b/DS_Map/Main Window.cs @@ -874,6 +874,7 @@ namespace DSPRE { romToolboxButton.Enabled = true; buildingEditorButton.Enabled = true; wildEditorButton.Enabled = true; + headerSearchToolStripButton.Enabled = true; loadRomButton.Enabled = false; openROMToolStripMenuItem.Enabled = false; @@ -1202,7 +1203,7 @@ namespace DSPRE { break; case "Plat": areaIconComboBox.SelectedIndex = ((HeaderPt)currentHeader).areaIcon; - locationNameComboBox.SelectedIndex = ((HeaderPt)currentHeader).mapName; + locationNameComboBox.SelectedIndex = ((HeaderPt)currentHeader).locationName; musicDayUpDown.Value = ((HeaderPt)currentHeader).musicDay; musicNightUpDown.Value = ((HeaderPt)currentHeader).musicNight; areaSettingsComboBox.SelectedIndex = areaSettingsComboBox.FindString("[" + $"{currentHeader.showName:D3}"); @@ -1210,7 +1211,7 @@ namespace DSPRE { break; default: areaIconComboBox.SelectedIndex = areaIconComboBox.FindString("[" + $"{((HeaderHGSS)currentHeader).areaIcon:D3}"); - locationNameComboBox.SelectedIndex = ((HeaderHGSS)currentHeader).mapName; + locationNameComboBox.SelectedIndex = ((HeaderHGSS)currentHeader).locationName; musicDayUpDown.Value = ((HeaderHGSS)currentHeader).musicDay; musicNightUpDown.Value = ((HeaderHGSS)currentHeader).musicNight; worldmapXCoordUpDown.Value = ((HeaderHGSS)currentHeader).worldmapX; @@ -1271,10 +1272,10 @@ namespace DSPRE { ((HeaderDP)currentHeader).locationName = (ushort)locationNameComboBox.SelectedIndex; break; case "Plat": - ((HeaderPt)currentHeader).mapName = (byte)locationNameComboBox.SelectedIndex; + ((HeaderPt)currentHeader).locationName = (byte)locationNameComboBox.SelectedIndex; break; default: - ((HeaderHGSS)currentHeader).mapName = (byte)locationNameComboBox.SelectedIndex; + ((HeaderHGSS)currentHeader).locationName = (byte)locationNameComboBox.SelectedIndex; break; } } @@ -1289,13 +1290,13 @@ namespace DSPRE { switch (RomInfo.gameVersion) { case "D": case "P": - ((HeaderDP)currentHeader).musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.DPMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); + currentHeader.musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.DPMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); break; case "Plat": - ((HeaderPt)currentHeader).musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.PtMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); + currentHeader.musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.PtMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); break; default: - ((HeaderHGSS)currentHeader).musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.HGSSMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); + currentHeader.musicDay = (ushort)(musicDayUpDown.Value = PokeDatabase.MusicDB.HGSSMusicDict.Keys.ElementAt(musicDayComboBox.SelectedIndex)); break; } } @@ -1306,13 +1307,13 @@ namespace DSPRE { switch (RomInfo.gameVersion) { case "D": case "P": - ((HeaderDP)currentHeader).musicNight = (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.DPMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); + currentHeader.musicNight= (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.DPMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); break; case "Plat": - ((HeaderPt)currentHeader).musicNight = (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.PtMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); + currentHeader.musicNight = (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.PtMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); break; default: - ((HeaderHGSS)currentHeader).musicNight = (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.HGSSMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); + currentHeader.musicNight = (ushort)(musicNightUpDown.Value = PokeDatabase.MusicDB.HGSSMusicDict.Keys.ElementAt(musicNightComboBox.SelectedIndex)); break; } } @@ -1323,18 +1324,16 @@ namespace DSPRE { disableHandlers = true; try { ushort updValue = (ushort)((NumericUpDown)sender).Value; + currentHeader.musicDay = updValue; switch (RomInfo.gameVersion) { case "D": case "P": - ((HeaderDP)currentHeader).musicDay = updValue; musicDayComboBox.SelectedItem = PokeDatabase.MusicDB.DPMusicDict[updValue]; break; case "Plat": - ((HeaderPt)currentHeader).musicDay = updValue; musicDayComboBox.SelectedItem = PokeDatabase.MusicDB.PtMusicDict[updValue]; break; default: - ((HeaderHGSS)currentHeader).musicDay = (ushort) ((NumericUpDown)sender).Value; musicDayComboBox.SelectedItem = PokeDatabase.MusicDB.HGSSMusicDict[updValue]; break; } @@ -1350,18 +1349,16 @@ namespace DSPRE { disableHandlers = true; try { ushort updValue = (ushort)((NumericUpDown)sender).Value; + currentHeader.musicNight = updValue; switch (RomInfo.gameVersion) { case "D": case "P": - ((HeaderDP)currentHeader).musicNight = updValue; musicNightComboBox.SelectedItem = PokeDatabase.MusicDB.DPMusicDict[updValue]; break; case "Plat": - ((HeaderPt)currentHeader).musicNight = updValue; musicNightComboBox.SelectedItem = PokeDatabase.MusicDB.PtMusicDict[updValue]; break; default: - ((HeaderHGSS)currentHeader).musicNight = updValue; musicNightComboBox.SelectedItem = PokeDatabase.MusicDB.HGSSMusicDict[updValue]; break; } @@ -1574,7 +1571,7 @@ namespace DSPRE { break; case "Plat": for (short i = 0; i < internalNames.Count; i++) { - String locationName = locationNameComboBox.Items[((HeaderPt)Header.LoadFromARM9(i)).mapName].ToString(); + String locationName = locationNameComboBox.Items[((HeaderPt)Header.LoadFromARM9(i)).locationName].ToString(); if (locationName.IndexOf(searchLocationTextBox.Text, StringComparison.InvariantCultureIgnoreCase) >= 0) { headerListBox.Items.Add(i.ToString("D3") + nameSeparator + internalNames[i]); noResult = false; @@ -1584,7 +1581,7 @@ namespace DSPRE { case "HG": case "SS": for (short i = 0; i < internalNames.Count; i++) { - String locationName = locationNameComboBox.Items[((HeaderHGSS)Header.LoadFromARM9(i)).mapName].ToString(); + String locationName = locationNameComboBox.Items[((HeaderHGSS)Header.LoadFromARM9(i)).locationName].ToString(); if (locationName.IndexOf(searchLocationTextBox.Text, StringComparison.InvariantCultureIgnoreCase) >= 0) { headerListBox.Items.Add(i.ToString("D3") + nameSeparator + internalNames[i]); noResult = false; @@ -6426,7 +6423,8 @@ namespace DSPRE { #endregion private void headerSearchToolStripButton_Click(object sender, EventArgs e) { - + HeaderSearch h = new HeaderSearch(ref internalNames); + h.Show(); } } } \ No newline at end of file diff --git a/DS_Map/Main Window.resx b/DS_Map/Main Window.resx index 658677e..ba014bd 100644 --- a/DS_Map/Main Window.resx +++ b/DS_Map/Main Window.resx @@ -117,102 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAtRJREFUWEfVl09PE0EYxvsB+CBVevWmX8CDGjEU2yJFSlu67fYv2toSah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BCgFUAQoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + DwAAAk1TRnQBSQFMAgEBBwEAAVwBCgFcAQoBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -290,6 +194,7 @@ AR8BAAEBAQABAQL/Cw== + iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO @@ -811,6 +716,101 @@ 50GccR7EGedBnHEexBm/+WdhnHEexBnnQZxxHsQZ50GccR7EGedBnHEexPt2+7DhWedBnHEexBnnQZxx HsQZ50GccR7EGedBnPGbfxbGGedBnHEexBnnQZxxHsQZ50GccR7EGedBvG+3DxuedR7EGedBnHEexBnn QZxxHsQZ50GccR7EEX8+38T8gAGeHzYoAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAtRJREFUWEfVl09PE0EYxvsB+CBVevWmX8CDGjEU2yJFSlu67fYv2toSahok/Ems + gUQNIAnVgxcJoIDRmBgjaoxoqdiDBy/eOXBAPTD2rTPJZvrMdrc3n+SXHiDze3bmnW3qUKXy6HFXcjRf + iOij9ZCWZFeDMcj5nsuQHnc/c3v9dZ9/uDA1c7uLL2st5fl7zqCWrJdu3WDrT7fYp89Vtvf1WwuiAPvg + bOHX2262v3GaZfNF1usZ+J7Njzv58uahJ288cR0JBbvVWvNTFFiYd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