diff --git a/NHSE.WinForms/Editor.Designer.cs b/NHSE.WinForms/Editor.Designer.cs
index fc9dd0e..8212195 100644
--- a/NHSE.WinForms/Editor.Designer.cs
+++ b/NHSE.WinForms/Editor.Designer.cs
@@ -44,6 +44,8 @@ private void InitializeComponent()
this.CM_Picture = new System.Windows.Forms.ContextMenuStrip(this.components);
this.Menu_SavePNG = new System.Windows.Forms.ToolStripMenuItem();
this.Tab_Map = new System.Windows.Forms.TabPage();
+ this.B_EditDesignsTailor = new System.Windows.Forms.Button();
+ this.B_EditPatternFlag = new System.Windows.Forms.Button();
this.CB_AirportColor = new System.Windows.Forms.ComboBox();
this.L_AirportColor = new System.Windows.Forms.Label();
this.L_Hemisphere = new System.Windows.Forms.Label();
@@ -53,9 +55,6 @@ private void InitializeComponent()
this.CM_EditMap = new System.Windows.Forms.ContextMenuStrip(this.components);
this.B_EditLandFlags = new System.Windows.Forms.ToolStripMenuItem();
this.B_EditFieldItems = new System.Windows.Forms.ToolStripMenuItem();
- this.B_EditTerrain = new System.Windows.Forms.ToolStripMenuItem();
- this.B_EditBuildings = new System.Windows.Forms.ToolStripMenuItem();
- this.B_EditAcres = new System.Windows.Forms.ToolStripMenuItem();
this.B_EditBulletin = new System.Windows.Forms.ToolStripMenuItem();
this.B_EditFieldGoods = new System.Windows.Forms.ToolStripMenuItem();
this.B_EditPRODesigns = new System.Windows.Forms.Button();
@@ -95,8 +94,6 @@ private void InitializeComponent()
this.CB_Players = new System.Windows.Forms.ComboBox();
this.PB_Player = new System.Windows.Forms.PictureBox();
this.TC_Editors = new System.Windows.Forms.TabControl();
- this.B_EditPatternFlag = new System.Windows.Forms.Button();
- this.B_EditDesignsTailor = new System.Windows.Forms.Button();
this.Menu_Editor.SuspendLayout();
this.CM_Picture.SuspendLayout();
this.Tab_Map.SuspendLayout();
@@ -257,6 +254,26 @@ private void InitializeComponent()
this.Tab_Map.Text = "Map";
this.Tab_Map.UseVisualStyleBackColor = true;
//
+ // B_EditDesignsTailor
+ //
+ this.B_EditDesignsTailor.Location = new System.Drawing.Point(300, 98);
+ this.B_EditDesignsTailor.Name = "B_EditDesignsTailor";
+ this.B_EditDesignsTailor.Size = new System.Drawing.Size(92, 40);
+ this.B_EditDesignsTailor.TabIndex = 63;
+ this.B_EditDesignsTailor.Text = "Edit Tailor Designs";
+ this.B_EditDesignsTailor.UseVisualStyleBackColor = true;
+ this.B_EditDesignsTailor.Click += new System.EventHandler(this.B_EditDesignsTailor_Click);
+ //
+ // B_EditPatternFlag
+ //
+ this.B_EditPatternFlag.Location = new System.Drawing.Point(202, 98);
+ this.B_EditPatternFlag.Name = "B_EditPatternFlag";
+ this.B_EditPatternFlag.Size = new System.Drawing.Size(92, 40);
+ this.B_EditPatternFlag.TabIndex = 62;
+ this.B_EditPatternFlag.Text = "Edit Flag Design";
+ this.B_EditPatternFlag.UseVisualStyleBackColor = true;
+ this.B_EditPatternFlag.Click += new System.EventHandler(this.B_EditPatternFlag_Click);
+ //
// CB_AirportColor
//
this.CB_AirportColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -320,60 +337,36 @@ private void InitializeComponent()
this.CM_EditMap.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.B_EditLandFlags,
this.B_EditFieldItems,
- this.B_EditTerrain,
- this.B_EditBuildings,
- this.B_EditAcres,
this.B_EditBulletin,
this.B_EditFieldGoods});
this.CM_EditMap.Name = "CM_EditMap";
- this.CM_EditMap.Size = new System.Drawing.Size(172, 158);
+ this.CM_EditMap.Size = new System.Drawing.Size(181, 114);
//
// B_EditLandFlags
//
this.B_EditLandFlags.Name = "B_EditLandFlags";
- this.B_EditLandFlags.Size = new System.Drawing.Size(171, 22);
+ this.B_EditLandFlags.Size = new System.Drawing.Size(180, 22);
this.B_EditLandFlags.Text = "Edit Flags";
this.B_EditLandFlags.Click += new System.EventHandler(this.B_EditLandFlags_Click);
//
// B_EditFieldItems
//
this.B_EditFieldItems.Name = "B_EditFieldItems";
- this.B_EditFieldItems.Size = new System.Drawing.Size(171, 22);
+ this.B_EditFieldItems.Size = new System.Drawing.Size(180, 22);
this.B_EditFieldItems.Text = "Edit Field Items";
this.B_EditFieldItems.Click += new System.EventHandler(this.B_EditFieldItems_Click);
//
- // B_EditTerrain
- //
- this.B_EditTerrain.Name = "B_EditTerrain";
- this.B_EditTerrain.Size = new System.Drawing.Size(171, 22);
- this.B_EditTerrain.Text = "Edit Terrain";
- this.B_EditTerrain.Click += new System.EventHandler(this.B_EditTerrain_Click);
- //
- // B_EditBuildings
- //
- this.B_EditBuildings.Name = "B_EditBuildings";
- this.B_EditBuildings.Size = new System.Drawing.Size(171, 22);
- this.B_EditBuildings.Text = "Edit Buildings";
- this.B_EditBuildings.Click += new System.EventHandler(this.B_EditBuildings_Click);
- //
- // B_EditAcres
- //
- this.B_EditAcres.Name = "B_EditAcres";
- this.B_EditAcres.Size = new System.Drawing.Size(171, 22);
- this.B_EditAcres.Text = "Edit Acres";
- this.B_EditAcres.Click += new System.EventHandler(this.B_EditAcres_Click);
- //
// B_EditBulletin
//
this.B_EditBulletin.Name = "B_EditBulletin";
- this.B_EditBulletin.Size = new System.Drawing.Size(171, 22);
+ this.B_EditBulletin.Size = new System.Drawing.Size(180, 22);
this.B_EditBulletin.Text = "Edit Bulletin Board";
this.B_EditBulletin.Click += new System.EventHandler(this.B_EditBulletin_Click);
//
// B_EditFieldGoods
//
this.B_EditFieldGoods.Name = "B_EditFieldGoods";
- this.B_EditFieldGoods.Size = new System.Drawing.Size(171, 22);
+ this.B_EditFieldGoods.Size = new System.Drawing.Size(180, 22);
this.B_EditFieldGoods.Text = "Edit Field Goods";
this.B_EditFieldGoods.Click += new System.EventHandler(this.B_EditFieldGoods_Click);
//
@@ -772,26 +765,6 @@ private void InitializeComponent()
this.TC_Editors.Size = new System.Drawing.Size(404, 237);
this.TC_Editors.TabIndex = 1;
//
- // B_EditPatternFlag
- //
- this.B_EditPatternFlag.Location = new System.Drawing.Point(202, 98);
- this.B_EditPatternFlag.Name = "B_EditPatternFlag";
- this.B_EditPatternFlag.Size = new System.Drawing.Size(92, 40);
- this.B_EditPatternFlag.TabIndex = 62;
- this.B_EditPatternFlag.Text = "Edit Flag Design";
- this.B_EditPatternFlag.UseVisualStyleBackColor = true;
- this.B_EditPatternFlag.Click += new System.EventHandler(this.B_EditPatternFlag_Click);
- //
- // B_EditDesignsTailor
- //
- this.B_EditDesignsTailor.Location = new System.Drawing.Point(300, 98);
- this.B_EditDesignsTailor.Name = "B_EditDesignsTailor";
- this.B_EditDesignsTailor.Size = new System.Drawing.Size(92, 40);
- this.B_EditDesignsTailor.TabIndex = 63;
- this.B_EditDesignsTailor.Text = "Edit Tailor Designs";
- this.B_EditDesignsTailor.UseVisualStyleBackColor = true;
- this.B_EditDesignsTailor.Click += new System.EventHandler(this.B_EditDesignsTailor_Click);
- //
// Editor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -866,9 +839,6 @@ private void InitializeComponent()
private System.Windows.Forms.Button B_EditPRODesigns;
private System.Windows.Forms.Button B_EditMap;
private System.Windows.Forms.ContextMenuStrip CM_EditMap;
- private System.Windows.Forms.ToolStripMenuItem B_EditTerrain;
- private System.Windows.Forms.ToolStripMenuItem B_EditBuildings;
- private System.Windows.Forms.ToolStripMenuItem B_EditAcres;
private System.Windows.Forms.ToolStripMenuItem B_EditFieldItems;
private System.Windows.Forms.ContextMenuStrip CM_EditPlayer;
private System.Windows.Forms.ToolStripMenuItem B_EditPlayerStorage;
diff --git a/NHSE.WinForms/Editor.cs b/NHSE.WinForms/Editor.cs
index 476ba2d..cae7795 100644
--- a/NHSE.WinForms/Editor.cs
+++ b/NHSE.WinForms/Editor.cs
@@ -393,12 +393,6 @@ private void Menu_SavePNG_Click(object sender, EventArgs e)
bmp.Save(sfd.FileName, ImageFormat.Png);
}
- private void B_EditBuildings_Click(object sender, EventArgs e)
- {
- using var editor = new BuildingEditor(SAV.Main);
- editor.ShowDialog();
- }
-
private void B_EditTurnipExchange_Click(object sender, EventArgs e)
{
var turnips = SAV.Main.Turnips;
@@ -407,18 +401,6 @@ private void B_EditTurnipExchange_Click(object sender, EventArgs e)
SAV.Main.Turnips = turnips;
}
- private void B_EditAcres_Click(object sender, EventArgs e)
- {
- using var editor = new AcreEditor(SAV.Main);
- editor.ShowDialog();
- }
-
- private void B_EditTerrain_Click(object sender, EventArgs e)
- {
- using var editor = new TerrainEditor(SAV.Main);
- editor.ShowDialog();
- }
-
private void B_EditFieldItems_Click(object sender, EventArgs e)
{
using var editor = new FieldItemEditor(SAV.Main);
diff --git a/NHSE.WinForms/NHSE.WinForms.csproj b/NHSE.WinForms/NHSE.WinForms.csproj
index 2aa9f0a..5b6fde5 100644
--- a/NHSE.WinForms/NHSE.WinForms.csproj
+++ b/NHSE.WinForms/NHSE.WinForms.csproj
@@ -71,9 +71,6 @@
Form
-
- Form
-
Form
diff --git a/NHSE.WinForms/Subforms/Map/AcreEditor.Designer.cs b/NHSE.WinForms/Subforms/Map/AcreEditor.Designer.cs
deleted file mode 100644
index fcbfabf..0000000
--- a/NHSE.WinForms/Subforms/Map/AcreEditor.Designer.cs
+++ /dev/null
@@ -1,1763 +0,0 @@
-namespace NHSE.WinForms
-{
- partial class AcreEditor
- {
- ///
- /// 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.NUD_00 = new System.Windows.Forms.NumericUpDown();
- this.NUD_01 = new System.Windows.Forms.NumericUpDown();
- this.NUD_02 = new System.Windows.Forms.NumericUpDown();
- this.NUD_03 = new System.Windows.Forms.NumericUpDown();
- this.NUD_04 = new System.Windows.Forms.NumericUpDown();
- this.NUD_05 = new System.Windows.Forms.NumericUpDown();
- this.NUD_06 = new System.Windows.Forms.NumericUpDown();
- this.NUD_07 = new System.Windows.Forms.NumericUpDown();
- this.NUD_08 = new System.Windows.Forms.NumericUpDown();
- this.NUD_09 = new System.Windows.Forms.NumericUpDown();
- this.NUD_0A = new System.Windows.Forms.NumericUpDown();
- this.NUD_0B = new System.Windows.Forms.NumericUpDown();
- this.NUD_0C = new System.Windows.Forms.NumericUpDown();
- this.NUD_0D = new System.Windows.Forms.NumericUpDown();
- this.NUD_0E = new System.Windows.Forms.NumericUpDown();
- this.NUD_0F = new System.Windows.Forms.NumericUpDown();
- this.NUD_10 = new System.Windows.Forms.NumericUpDown();
- this.NUD_11 = new System.Windows.Forms.NumericUpDown();
- this.NUD_12 = new System.Windows.Forms.NumericUpDown();
- this.NUD_13 = new System.Windows.Forms.NumericUpDown();
- this.NUD_14 = new System.Windows.Forms.NumericUpDown();
- this.NUD_15 = new System.Windows.Forms.NumericUpDown();
- this.NUD_16 = new System.Windows.Forms.NumericUpDown();
- this.NUD_17 = new System.Windows.Forms.NumericUpDown();
- this.NUD_18 = new System.Windows.Forms.NumericUpDown();
- this.NUD_19 = new System.Windows.Forms.NumericUpDown();
- this.NUD_1A = new System.Windows.Forms.NumericUpDown();
- this.NUD_1B = new System.Windows.Forms.NumericUpDown();
- this.NUD_1C = new System.Windows.Forms.NumericUpDown();
- this.NUD_1D = new System.Windows.Forms.NumericUpDown();
- this.NUD_1E = new System.Windows.Forms.NumericUpDown();
- this.NUD_1F = new System.Windows.Forms.NumericUpDown();
- this.NUD_20 = new System.Windows.Forms.NumericUpDown();
- this.NUD_21 = new System.Windows.Forms.NumericUpDown();
- this.NUD_22 = new System.Windows.Forms.NumericUpDown();
- this.NUD_23 = new System.Windows.Forms.NumericUpDown();
- this.NUD_24 = new System.Windows.Forms.NumericUpDown();
- this.NUD_25 = new System.Windows.Forms.NumericUpDown();
- this.NUD_26 = new System.Windows.Forms.NumericUpDown();
- this.NUD_27 = new System.Windows.Forms.NumericUpDown();
- this.NUD_28 = new System.Windows.Forms.NumericUpDown();
- this.NUD_29 = new System.Windows.Forms.NumericUpDown();
- this.NUD_2A = new System.Windows.Forms.NumericUpDown();
- this.NUD_2B = new System.Windows.Forms.NumericUpDown();
- this.NUD_2C = new System.Windows.Forms.NumericUpDown();
- this.NUD_2D = new System.Windows.Forms.NumericUpDown();
- this.NUD_2E = new System.Windows.Forms.NumericUpDown();
- this.NUD_2F = new System.Windows.Forms.NumericUpDown();
- this.NUD_30 = new System.Windows.Forms.NumericUpDown();
- this.NUD_31 = new System.Windows.Forms.NumericUpDown();
- this.NUD_32 = new System.Windows.Forms.NumericUpDown();
- this.NUD_33 = new System.Windows.Forms.NumericUpDown();
- this.NUD_34 = new System.Windows.Forms.NumericUpDown();
- this.NUD_35 = new System.Windows.Forms.NumericUpDown();
- this.NUD_36 = new System.Windows.Forms.NumericUpDown();
- this.NUD_37 = new System.Windows.Forms.NumericUpDown();
- this.NUD_38 = new System.Windows.Forms.NumericUpDown();
- this.NUD_39 = new System.Windows.Forms.NumericUpDown();
- this.NUD_3A = new System.Windows.Forms.NumericUpDown();
- this.NUD_3B = new System.Windows.Forms.NumericUpDown();
- this.NUD_3C = new System.Windows.Forms.NumericUpDown();
- this.NUD_3D = new System.Windows.Forms.NumericUpDown();
- this.NUD_3E = new System.Windows.Forms.NumericUpDown();
- this.NUD_3F = new System.Windows.Forms.NumericUpDown();
- this.NUD_40 = new System.Windows.Forms.NumericUpDown();
- this.NUD_41 = new System.Windows.Forms.NumericUpDown();
- this.NUD_42 = new System.Windows.Forms.NumericUpDown();
- this.NUD_43 = new System.Windows.Forms.NumericUpDown();
- this.NUD_44 = new System.Windows.Forms.NumericUpDown();
- this.NUD_45 = new System.Windows.Forms.NumericUpDown();
- this.NUD_46 = new System.Windows.Forms.NumericUpDown();
- this.NUD_47 = new System.Windows.Forms.NumericUpDown();
- this.L_X1 = new System.Windows.Forms.Label();
- this.L_X2 = new System.Windows.Forms.Label();
- this.L_X3 = new System.Windows.Forms.Label();
- this.L_X4 = new System.Windows.Forms.Label();
- this.L_X5 = new System.Windows.Forms.Label();
- this.L_X6 = new System.Windows.Forms.Label();
- this.L_X7 = new System.Windows.Forms.Label();
- this.L_X8 = new System.Windows.Forms.Label();
- this.L_X0 = new System.Windows.Forms.Label();
- this.L_Y0 = new System.Windows.Forms.Label();
- this.L_Y1 = new System.Windows.Forms.Label();
- this.L_Y3 = new System.Windows.Forms.Label();
- this.L_Y2 = new System.Windows.Forms.Label();
- this.L_Y7 = new System.Windows.Forms.Label();
- this.L_Y6 = new System.Windows.Forms.Label();
- this.L_Y5 = new System.Windows.Forms.Label();
- this.L_Y4 = new System.Windows.Forms.Label();
- this.B_Cancel = new System.Windows.Forms.Button();
- this.B_Save = new System.Windows.Forms.Button();
- this.CB_AcreNames = new System.Windows.Forms.ComboBox();
- this.L_AcreList = new System.Windows.Forms.Label();
- this.B_Export = new System.Windows.Forms.Button();
- this.B_Import = new System.Windows.Forms.Button();
- this.L_Hovered = new System.Windows.Forms.Label();
- this.PAN_Sea = new System.Windows.Forms.Panel();
- this.PAN_Beach = new System.Windows.Forms.Panel();
- this.PAN_Land = new System.Windows.Forms.Panel();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_00)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_01)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_02)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_03)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_04)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_05)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_06)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_07)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_08)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_09)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0A)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0B)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0C)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0D)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0E)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0F)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_10)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_11)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_12)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_13)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_14)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_15)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_16)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_17)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_18)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_19)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1A)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1B)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1C)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1D)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1E)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1F)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_20)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_21)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_22)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_23)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_24)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_25)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_26)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_27)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_28)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_29)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2A)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2B)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2C)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2D)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2E)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2F)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_30)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_31)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_32)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_33)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_34)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_35)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_36)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_37)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_38)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_39)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3A)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3B)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3C)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3D)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3E)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3F)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_40)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_41)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_42)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_43)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_44)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_45)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_46)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_47)).BeginInit();
- this.PAN_Sea.SuspendLayout();
- this.PAN_Beach.SuspendLayout();
- this.SuspendLayout();
- //
- // NUD_00
- //
- this.NUD_00.Hexadecimal = true;
- this.NUD_00.Location = new System.Drawing.Point(63, 32);
- this.NUD_00.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_00.Name = "NUD_00";
- this.NUD_00.Size = new System.Drawing.Size(45, 20);
- this.NUD_00.TabIndex = 0;
- this.NUD_00.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_01
- //
- this.NUD_01.Hexadecimal = true;
- this.NUD_01.Location = new System.Drawing.Point(114, 32);
- this.NUD_01.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_01.Name = "NUD_01";
- this.NUD_01.Size = new System.Drawing.Size(45, 20);
- this.NUD_01.TabIndex = 1;
- this.NUD_01.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_02
- //
- this.NUD_02.Hexadecimal = true;
- this.NUD_02.Location = new System.Drawing.Point(165, 32);
- this.NUD_02.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_02.Name = "NUD_02";
- this.NUD_02.Size = new System.Drawing.Size(45, 20);
- this.NUD_02.TabIndex = 2;
- this.NUD_02.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_03
- //
- this.NUD_03.Hexadecimal = true;
- this.NUD_03.Location = new System.Drawing.Point(216, 32);
- this.NUD_03.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_03.Name = "NUD_03";
- this.NUD_03.Size = new System.Drawing.Size(45, 20);
- this.NUD_03.TabIndex = 3;
- this.NUD_03.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_04
- //
- this.NUD_04.Hexadecimal = true;
- this.NUD_04.Location = new System.Drawing.Point(267, 32);
- this.NUD_04.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_04.Name = "NUD_04";
- this.NUD_04.Size = new System.Drawing.Size(45, 20);
- this.NUD_04.TabIndex = 4;
- this.NUD_04.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_05
- //
- this.NUD_05.Hexadecimal = true;
- this.NUD_05.Location = new System.Drawing.Point(318, 32);
- this.NUD_05.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_05.Name = "NUD_05";
- this.NUD_05.Size = new System.Drawing.Size(45, 20);
- this.NUD_05.TabIndex = 5;
- this.NUD_05.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_06
- //
- this.NUD_06.Hexadecimal = true;
- this.NUD_06.Location = new System.Drawing.Point(369, 32);
- this.NUD_06.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_06.Name = "NUD_06";
- this.NUD_06.Size = new System.Drawing.Size(45, 20);
- this.NUD_06.TabIndex = 6;
- this.NUD_06.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_07
- //
- this.NUD_07.Hexadecimal = true;
- this.NUD_07.Location = new System.Drawing.Point(420, 32);
- this.NUD_07.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_07.Name = "NUD_07";
- this.NUD_07.Size = new System.Drawing.Size(45, 20);
- this.NUD_07.TabIndex = 7;
- this.NUD_07.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_08
- //
- this.NUD_08.Hexadecimal = true;
- this.NUD_08.Location = new System.Drawing.Point(471, 32);
- this.NUD_08.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_08.Name = "NUD_08";
- this.NUD_08.Size = new System.Drawing.Size(45, 20);
- this.NUD_08.TabIndex = 15;
- this.NUD_08.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_09
- //
- this.NUD_09.Hexadecimal = true;
- this.NUD_09.Location = new System.Drawing.Point(63, 58);
- this.NUD_09.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_09.Name = "NUD_09";
- this.NUD_09.Size = new System.Drawing.Size(45, 20);
- this.NUD_09.TabIndex = 14;
- this.NUD_09.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0A
- //
- this.NUD_0A.Hexadecimal = true;
- this.NUD_0A.Location = new System.Drawing.Point(114, 58);
- this.NUD_0A.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0A.Name = "NUD_0A";
- this.NUD_0A.Size = new System.Drawing.Size(45, 20);
- this.NUD_0A.TabIndex = 13;
- this.NUD_0A.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0B
- //
- this.NUD_0B.Hexadecimal = true;
- this.NUD_0B.Location = new System.Drawing.Point(165, 58);
- this.NUD_0B.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0B.Name = "NUD_0B";
- this.NUD_0B.Size = new System.Drawing.Size(45, 20);
- this.NUD_0B.TabIndex = 12;
- this.NUD_0B.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0C
- //
- this.NUD_0C.Hexadecimal = true;
- this.NUD_0C.Location = new System.Drawing.Point(216, 58);
- this.NUD_0C.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0C.Name = "NUD_0C";
- this.NUD_0C.Size = new System.Drawing.Size(45, 20);
- this.NUD_0C.TabIndex = 11;
- this.NUD_0C.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0D
- //
- this.NUD_0D.Hexadecimal = true;
- this.NUD_0D.Location = new System.Drawing.Point(267, 58);
- this.NUD_0D.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0D.Name = "NUD_0D";
- this.NUD_0D.Size = new System.Drawing.Size(45, 20);
- this.NUD_0D.TabIndex = 10;
- this.NUD_0D.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0E
- //
- this.NUD_0E.Hexadecimal = true;
- this.NUD_0E.Location = new System.Drawing.Point(318, 58);
- this.NUD_0E.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0E.Name = "NUD_0E";
- this.NUD_0E.Size = new System.Drawing.Size(45, 20);
- this.NUD_0E.TabIndex = 9;
- this.NUD_0E.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_0F
- //
- this.NUD_0F.Hexadecimal = true;
- this.NUD_0F.Location = new System.Drawing.Point(369, 58);
- this.NUD_0F.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_0F.Name = "NUD_0F";
- this.NUD_0F.Size = new System.Drawing.Size(45, 20);
- this.NUD_0F.TabIndex = 8;
- this.NUD_0F.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_10
- //
- this.NUD_10.Hexadecimal = true;
- this.NUD_10.Location = new System.Drawing.Point(420, 58);
- this.NUD_10.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_10.Name = "NUD_10";
- this.NUD_10.Size = new System.Drawing.Size(45, 20);
- this.NUD_10.TabIndex = 23;
- this.NUD_10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_11
- //
- this.NUD_11.Hexadecimal = true;
- this.NUD_11.Location = new System.Drawing.Point(471, 58);
- this.NUD_11.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_11.Name = "NUD_11";
- this.NUD_11.Size = new System.Drawing.Size(45, 20);
- this.NUD_11.TabIndex = 22;
- this.NUD_11.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_12
- //
- this.NUD_12.Hexadecimal = true;
- this.NUD_12.Location = new System.Drawing.Point(63, 84);
- this.NUD_12.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_12.Name = "NUD_12";
- this.NUD_12.Size = new System.Drawing.Size(45, 20);
- this.NUD_12.TabIndex = 21;
- this.NUD_12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_13
- //
- this.NUD_13.Hexadecimal = true;
- this.NUD_13.Location = new System.Drawing.Point(114, 84);
- this.NUD_13.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_13.Name = "NUD_13";
- this.NUD_13.Size = new System.Drawing.Size(45, 20);
- this.NUD_13.TabIndex = 20;
- this.NUD_13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_14
- //
- this.NUD_14.Hexadecimal = true;
- this.NUD_14.Location = new System.Drawing.Point(165, 84);
- this.NUD_14.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_14.Name = "NUD_14";
- this.NUD_14.Size = new System.Drawing.Size(45, 20);
- this.NUD_14.TabIndex = 19;
- this.NUD_14.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_15
- //
- this.NUD_15.Hexadecimal = true;
- this.NUD_15.Location = new System.Drawing.Point(216, 84);
- this.NUD_15.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_15.Name = "NUD_15";
- this.NUD_15.Size = new System.Drawing.Size(45, 20);
- this.NUD_15.TabIndex = 18;
- this.NUD_15.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_16
- //
- this.NUD_16.Hexadecimal = true;
- this.NUD_16.Location = new System.Drawing.Point(267, 84);
- this.NUD_16.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_16.Name = "NUD_16";
- this.NUD_16.Size = new System.Drawing.Size(45, 20);
- this.NUD_16.TabIndex = 17;
- this.NUD_16.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_17
- //
- this.NUD_17.Hexadecimal = true;
- this.NUD_17.Location = new System.Drawing.Point(318, 84);
- this.NUD_17.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_17.Name = "NUD_17";
- this.NUD_17.Size = new System.Drawing.Size(45, 20);
- this.NUD_17.TabIndex = 16;
- this.NUD_17.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_18
- //
- this.NUD_18.Hexadecimal = true;
- this.NUD_18.Location = new System.Drawing.Point(369, 84);
- this.NUD_18.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_18.Name = "NUD_18";
- this.NUD_18.Size = new System.Drawing.Size(45, 20);
- this.NUD_18.TabIndex = 31;
- this.NUD_18.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_19
- //
- this.NUD_19.Hexadecimal = true;
- this.NUD_19.Location = new System.Drawing.Point(420, 84);
- this.NUD_19.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_19.Name = "NUD_19";
- this.NUD_19.Size = new System.Drawing.Size(45, 20);
- this.NUD_19.TabIndex = 30;
- this.NUD_19.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1A
- //
- this.NUD_1A.Hexadecimal = true;
- this.NUD_1A.Location = new System.Drawing.Point(471, 84);
- this.NUD_1A.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1A.Name = "NUD_1A";
- this.NUD_1A.Size = new System.Drawing.Size(45, 20);
- this.NUD_1A.TabIndex = 29;
- this.NUD_1A.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1B
- //
- this.NUD_1B.Hexadecimal = true;
- this.NUD_1B.Location = new System.Drawing.Point(63, 110);
- this.NUD_1B.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1B.Name = "NUD_1B";
- this.NUD_1B.Size = new System.Drawing.Size(45, 20);
- this.NUD_1B.TabIndex = 28;
- this.NUD_1B.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1C
- //
- this.NUD_1C.Hexadecimal = true;
- this.NUD_1C.Location = new System.Drawing.Point(114, 110);
- this.NUD_1C.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1C.Name = "NUD_1C";
- this.NUD_1C.Size = new System.Drawing.Size(45, 20);
- this.NUD_1C.TabIndex = 27;
- this.NUD_1C.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1D
- //
- this.NUD_1D.Hexadecimal = true;
- this.NUD_1D.Location = new System.Drawing.Point(165, 110);
- this.NUD_1D.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1D.Name = "NUD_1D";
- this.NUD_1D.Size = new System.Drawing.Size(45, 20);
- this.NUD_1D.TabIndex = 26;
- this.NUD_1D.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1E
- //
- this.NUD_1E.Hexadecimal = true;
- this.NUD_1E.Location = new System.Drawing.Point(216, 110);
- this.NUD_1E.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1E.Name = "NUD_1E";
- this.NUD_1E.Size = new System.Drawing.Size(45, 20);
- this.NUD_1E.TabIndex = 25;
- this.NUD_1E.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_1F
- //
- this.NUD_1F.Hexadecimal = true;
- this.NUD_1F.Location = new System.Drawing.Point(267, 110);
- this.NUD_1F.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_1F.Name = "NUD_1F";
- this.NUD_1F.Size = new System.Drawing.Size(45, 20);
- this.NUD_1F.TabIndex = 24;
- this.NUD_1F.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_20
- //
- this.NUD_20.Hexadecimal = true;
- this.NUD_20.Location = new System.Drawing.Point(318, 110);
- this.NUD_20.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_20.Name = "NUD_20";
- this.NUD_20.Size = new System.Drawing.Size(45, 20);
- this.NUD_20.TabIndex = 39;
- this.NUD_20.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_21
- //
- this.NUD_21.Hexadecimal = true;
- this.NUD_21.Location = new System.Drawing.Point(369, 110);
- this.NUD_21.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_21.Name = "NUD_21";
- this.NUD_21.Size = new System.Drawing.Size(45, 20);
- this.NUD_21.TabIndex = 38;
- this.NUD_21.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_22
- //
- this.NUD_22.Hexadecimal = true;
- this.NUD_22.Location = new System.Drawing.Point(420, 110);
- this.NUD_22.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_22.Name = "NUD_22";
- this.NUD_22.Size = new System.Drawing.Size(45, 20);
- this.NUD_22.TabIndex = 37;
- this.NUD_22.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_23
- //
- this.NUD_23.Hexadecimal = true;
- this.NUD_23.Location = new System.Drawing.Point(471, 110);
- this.NUD_23.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_23.Name = "NUD_23";
- this.NUD_23.Size = new System.Drawing.Size(45, 20);
- this.NUD_23.TabIndex = 36;
- this.NUD_23.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_24
- //
- this.NUD_24.Hexadecimal = true;
- this.NUD_24.Location = new System.Drawing.Point(63, 136);
- this.NUD_24.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_24.Name = "NUD_24";
- this.NUD_24.Size = new System.Drawing.Size(45, 20);
- this.NUD_24.TabIndex = 35;
- this.NUD_24.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_25
- //
- this.NUD_25.Hexadecimal = true;
- this.NUD_25.Location = new System.Drawing.Point(114, 136);
- this.NUD_25.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_25.Name = "NUD_25";
- this.NUD_25.Size = new System.Drawing.Size(45, 20);
- this.NUD_25.TabIndex = 34;
- this.NUD_25.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_26
- //
- this.NUD_26.Hexadecimal = true;
- this.NUD_26.Location = new System.Drawing.Point(165, 136);
- this.NUD_26.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_26.Name = "NUD_26";
- this.NUD_26.Size = new System.Drawing.Size(45, 20);
- this.NUD_26.TabIndex = 33;
- this.NUD_26.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_27
- //
- this.NUD_27.Hexadecimal = true;
- this.NUD_27.Location = new System.Drawing.Point(216, 136);
- this.NUD_27.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_27.Name = "NUD_27";
- this.NUD_27.Size = new System.Drawing.Size(45, 20);
- this.NUD_27.TabIndex = 32;
- this.NUD_27.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_28
- //
- this.NUD_28.Hexadecimal = true;
- this.NUD_28.Location = new System.Drawing.Point(267, 136);
- this.NUD_28.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_28.Name = "NUD_28";
- this.NUD_28.Size = new System.Drawing.Size(45, 20);
- this.NUD_28.TabIndex = 71;
- this.NUD_28.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_29
- //
- this.NUD_29.Hexadecimal = true;
- this.NUD_29.Location = new System.Drawing.Point(318, 136);
- this.NUD_29.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_29.Name = "NUD_29";
- this.NUD_29.Size = new System.Drawing.Size(45, 20);
- this.NUD_29.TabIndex = 70;
- this.NUD_29.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2A
- //
- this.NUD_2A.Hexadecimal = true;
- this.NUD_2A.Location = new System.Drawing.Point(369, 136);
- this.NUD_2A.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2A.Name = "NUD_2A";
- this.NUD_2A.Size = new System.Drawing.Size(45, 20);
- this.NUD_2A.TabIndex = 69;
- this.NUD_2A.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2B
- //
- this.NUD_2B.Hexadecimal = true;
- this.NUD_2B.Location = new System.Drawing.Point(420, 136);
- this.NUD_2B.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2B.Name = "NUD_2B";
- this.NUD_2B.Size = new System.Drawing.Size(45, 20);
- this.NUD_2B.TabIndex = 68;
- this.NUD_2B.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2C
- //
- this.NUD_2C.Hexadecimal = true;
- this.NUD_2C.Location = new System.Drawing.Point(471, 136);
- this.NUD_2C.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2C.Name = "NUD_2C";
- this.NUD_2C.Size = new System.Drawing.Size(45, 20);
- this.NUD_2C.TabIndex = 67;
- this.NUD_2C.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2D
- //
- this.NUD_2D.Hexadecimal = true;
- this.NUD_2D.Location = new System.Drawing.Point(63, 162);
- this.NUD_2D.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2D.Name = "NUD_2D";
- this.NUD_2D.Size = new System.Drawing.Size(45, 20);
- this.NUD_2D.TabIndex = 66;
- this.NUD_2D.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2E
- //
- this.NUD_2E.Hexadecimal = true;
- this.NUD_2E.Location = new System.Drawing.Point(114, 162);
- this.NUD_2E.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2E.Name = "NUD_2E";
- this.NUD_2E.Size = new System.Drawing.Size(45, 20);
- this.NUD_2E.TabIndex = 65;
- this.NUD_2E.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_2F
- //
- this.NUD_2F.Hexadecimal = true;
- this.NUD_2F.Location = new System.Drawing.Point(165, 162);
- this.NUD_2F.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_2F.Name = "NUD_2F";
- this.NUD_2F.Size = new System.Drawing.Size(45, 20);
- this.NUD_2F.TabIndex = 64;
- this.NUD_2F.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_30
- //
- this.NUD_30.Hexadecimal = true;
- this.NUD_30.Location = new System.Drawing.Point(216, 162);
- this.NUD_30.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_30.Name = "NUD_30";
- this.NUD_30.Size = new System.Drawing.Size(45, 20);
- this.NUD_30.TabIndex = 63;
- this.NUD_30.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_31
- //
- this.NUD_31.Hexadecimal = true;
- this.NUD_31.Location = new System.Drawing.Point(267, 162);
- this.NUD_31.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_31.Name = "NUD_31";
- this.NUD_31.Size = new System.Drawing.Size(45, 20);
- this.NUD_31.TabIndex = 62;
- this.NUD_31.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_32
- //
- this.NUD_32.Hexadecimal = true;
- this.NUD_32.Location = new System.Drawing.Point(318, 162);
- this.NUD_32.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_32.Name = "NUD_32";
- this.NUD_32.Size = new System.Drawing.Size(45, 20);
- this.NUD_32.TabIndex = 61;
- this.NUD_32.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_33
- //
- this.NUD_33.Hexadecimal = true;
- this.NUD_33.Location = new System.Drawing.Point(369, 162);
- this.NUD_33.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_33.Name = "NUD_33";
- this.NUD_33.Size = new System.Drawing.Size(45, 20);
- this.NUD_33.TabIndex = 60;
- this.NUD_33.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_34
- //
- this.NUD_34.Hexadecimal = true;
- this.NUD_34.Location = new System.Drawing.Point(420, 162);
- this.NUD_34.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_34.Name = "NUD_34";
- this.NUD_34.Size = new System.Drawing.Size(45, 20);
- this.NUD_34.TabIndex = 59;
- this.NUD_34.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_35
- //
- this.NUD_35.Hexadecimal = true;
- this.NUD_35.Location = new System.Drawing.Point(471, 162);
- this.NUD_35.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_35.Name = "NUD_35";
- this.NUD_35.Size = new System.Drawing.Size(45, 20);
- this.NUD_35.TabIndex = 58;
- this.NUD_35.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_36
- //
- this.NUD_36.Hexadecimal = true;
- this.NUD_36.Location = new System.Drawing.Point(63, 188);
- this.NUD_36.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_36.Name = "NUD_36";
- this.NUD_36.Size = new System.Drawing.Size(45, 20);
- this.NUD_36.TabIndex = 57;
- this.NUD_36.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_37
- //
- this.NUD_37.Hexadecimal = true;
- this.NUD_37.Location = new System.Drawing.Point(114, 188);
- this.NUD_37.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_37.Name = "NUD_37";
- this.NUD_37.Size = new System.Drawing.Size(45, 20);
- this.NUD_37.TabIndex = 56;
- this.NUD_37.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_38
- //
- this.NUD_38.Hexadecimal = true;
- this.NUD_38.Location = new System.Drawing.Point(165, 188);
- this.NUD_38.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_38.Name = "NUD_38";
- this.NUD_38.Size = new System.Drawing.Size(45, 20);
- this.NUD_38.TabIndex = 55;
- this.NUD_38.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_39
- //
- this.NUD_39.Hexadecimal = true;
- this.NUD_39.Location = new System.Drawing.Point(216, 188);
- this.NUD_39.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_39.Name = "NUD_39";
- this.NUD_39.Size = new System.Drawing.Size(45, 20);
- this.NUD_39.TabIndex = 54;
- this.NUD_39.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3A
- //
- this.NUD_3A.Hexadecimal = true;
- this.NUD_3A.Location = new System.Drawing.Point(267, 188);
- this.NUD_3A.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3A.Name = "NUD_3A";
- this.NUD_3A.Size = new System.Drawing.Size(45, 20);
- this.NUD_3A.TabIndex = 53;
- this.NUD_3A.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3B
- //
- this.NUD_3B.Hexadecimal = true;
- this.NUD_3B.Location = new System.Drawing.Point(318, 188);
- this.NUD_3B.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3B.Name = "NUD_3B";
- this.NUD_3B.Size = new System.Drawing.Size(45, 20);
- this.NUD_3B.TabIndex = 52;
- this.NUD_3B.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3C
- //
- this.NUD_3C.Hexadecimal = true;
- this.NUD_3C.Location = new System.Drawing.Point(369, 188);
- this.NUD_3C.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3C.Name = "NUD_3C";
- this.NUD_3C.Size = new System.Drawing.Size(45, 20);
- this.NUD_3C.TabIndex = 51;
- this.NUD_3C.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3D
- //
- this.NUD_3D.Hexadecimal = true;
- this.NUD_3D.Location = new System.Drawing.Point(420, 188);
- this.NUD_3D.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3D.Name = "NUD_3D";
- this.NUD_3D.Size = new System.Drawing.Size(45, 20);
- this.NUD_3D.TabIndex = 50;
- this.NUD_3D.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3E
- //
- this.NUD_3E.Hexadecimal = true;
- this.NUD_3E.Location = new System.Drawing.Point(471, 188);
- this.NUD_3E.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3E.Name = "NUD_3E";
- this.NUD_3E.Size = new System.Drawing.Size(45, 20);
- this.NUD_3E.TabIndex = 49;
- this.NUD_3E.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_3F
- //
- this.NUD_3F.Hexadecimal = true;
- this.NUD_3F.Location = new System.Drawing.Point(63, 214);
- this.NUD_3F.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_3F.Name = "NUD_3F";
- this.NUD_3F.Size = new System.Drawing.Size(45, 20);
- this.NUD_3F.TabIndex = 48;
- this.NUD_3F.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_40
- //
- this.NUD_40.Hexadecimal = true;
- this.NUD_40.Location = new System.Drawing.Point(114, 214);
- this.NUD_40.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_40.Name = "NUD_40";
- this.NUD_40.Size = new System.Drawing.Size(45, 20);
- this.NUD_40.TabIndex = 47;
- this.NUD_40.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_41
- //
- this.NUD_41.Hexadecimal = true;
- this.NUD_41.Location = new System.Drawing.Point(165, 214);
- this.NUD_41.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_41.Name = "NUD_41";
- this.NUD_41.Size = new System.Drawing.Size(45, 20);
- this.NUD_41.TabIndex = 46;
- this.NUD_41.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_42
- //
- this.NUD_42.Hexadecimal = true;
- this.NUD_42.Location = new System.Drawing.Point(216, 214);
- this.NUD_42.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_42.Name = "NUD_42";
- this.NUD_42.Size = new System.Drawing.Size(45, 20);
- this.NUD_42.TabIndex = 45;
- this.NUD_42.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_43
- //
- this.NUD_43.Hexadecimal = true;
- this.NUD_43.Location = new System.Drawing.Point(267, 214);
- this.NUD_43.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_43.Name = "NUD_43";
- this.NUD_43.Size = new System.Drawing.Size(45, 20);
- this.NUD_43.TabIndex = 44;
- this.NUD_43.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_44
- //
- this.NUD_44.Hexadecimal = true;
- this.NUD_44.Location = new System.Drawing.Point(318, 214);
- this.NUD_44.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_44.Name = "NUD_44";
- this.NUD_44.Size = new System.Drawing.Size(45, 20);
- this.NUD_44.TabIndex = 43;
- this.NUD_44.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_45
- //
- this.NUD_45.Hexadecimal = true;
- this.NUD_45.Location = new System.Drawing.Point(369, 214);
- this.NUD_45.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_45.Name = "NUD_45";
- this.NUD_45.Size = new System.Drawing.Size(45, 20);
- this.NUD_45.TabIndex = 42;
- this.NUD_45.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_46
- //
- this.NUD_46.Hexadecimal = true;
- this.NUD_46.Location = new System.Drawing.Point(420, 214);
- this.NUD_46.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_46.Name = "NUD_46";
- this.NUD_46.Size = new System.Drawing.Size(45, 20);
- this.NUD_46.TabIndex = 41;
- this.NUD_46.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // NUD_47
- //
- this.NUD_47.Hexadecimal = true;
- this.NUD_47.Location = new System.Drawing.Point(471, 214);
- this.NUD_47.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_47.Name = "NUD_47";
- this.NUD_47.Size = new System.Drawing.Size(45, 20);
- this.NUD_47.TabIndex = 40;
- this.NUD_47.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // L_X1
- //
- this.L_X1.Location = new System.Drawing.Point(114, 9);
- this.L_X1.Name = "L_X1";
- this.L_X1.Size = new System.Drawing.Size(45, 20);
- this.L_X1.TabIndex = 72;
- this.L_X1.Text = "1";
- this.L_X1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X2
- //
- this.L_X2.Location = new System.Drawing.Point(165, 9);
- this.L_X2.Name = "L_X2";
- this.L_X2.Size = new System.Drawing.Size(45, 20);
- this.L_X2.TabIndex = 73;
- this.L_X2.Text = "2";
- this.L_X2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X3
- //
- this.L_X3.Location = new System.Drawing.Point(216, 9);
- this.L_X3.Name = "L_X3";
- this.L_X3.Size = new System.Drawing.Size(45, 20);
- this.L_X3.TabIndex = 74;
- this.L_X3.Text = "3";
- this.L_X3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X4
- //
- this.L_X4.Location = new System.Drawing.Point(267, 9);
- this.L_X4.Name = "L_X4";
- this.L_X4.Size = new System.Drawing.Size(45, 20);
- this.L_X4.TabIndex = 75;
- this.L_X4.Text = "4";
- this.L_X4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X5
- //
- this.L_X5.Location = new System.Drawing.Point(318, 9);
- this.L_X5.Name = "L_X5";
- this.L_X5.Size = new System.Drawing.Size(45, 20);
- this.L_X5.TabIndex = 76;
- this.L_X5.Text = "5";
- this.L_X5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X6
- //
- this.L_X6.Location = new System.Drawing.Point(369, 9);
- this.L_X6.Name = "L_X6";
- this.L_X6.Size = new System.Drawing.Size(45, 20);
- this.L_X6.TabIndex = 77;
- this.L_X6.Text = "6";
- this.L_X6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X7
- //
- this.L_X7.Location = new System.Drawing.Point(420, 9);
- this.L_X7.Name = "L_X7";
- this.L_X7.Size = new System.Drawing.Size(45, 20);
- this.L_X7.TabIndex = 78;
- this.L_X7.Text = "7";
- this.L_X7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X8
- //
- this.L_X8.Location = new System.Drawing.Point(471, 9);
- this.L_X8.Name = "L_X8";
- this.L_X8.Size = new System.Drawing.Size(45, 20);
- this.L_X8.TabIndex = 79;
- this.L_X8.Text = "x";
- this.L_X8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_X0
- //
- this.L_X0.Location = new System.Drawing.Point(63, 9);
- this.L_X0.Name = "L_X0";
- this.L_X0.Size = new System.Drawing.Size(45, 20);
- this.L_X0.TabIndex = 80;
- this.L_X0.Text = "x";
- this.L_X0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y0
- //
- this.L_Y0.Location = new System.Drawing.Point(12, 32);
- this.L_Y0.Name = "L_Y0";
- this.L_Y0.Size = new System.Drawing.Size(45, 20);
- this.L_Y0.TabIndex = 81;
- this.L_Y0.Text = "y";
- this.L_Y0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y1
- //
- this.L_Y1.Location = new System.Drawing.Point(12, 58);
- this.L_Y1.Name = "L_Y1";
- this.L_Y1.Size = new System.Drawing.Size(45, 20);
- this.L_Y1.TabIndex = 82;
- this.L_Y1.Text = "A";
- this.L_Y1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y3
- //
- this.L_Y3.Location = new System.Drawing.Point(12, 110);
- this.L_Y3.Name = "L_Y3";
- this.L_Y3.Size = new System.Drawing.Size(45, 20);
- this.L_Y3.TabIndex = 84;
- this.L_Y3.Text = "C";
- this.L_Y3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y2
- //
- this.L_Y2.Location = new System.Drawing.Point(12, 84);
- this.L_Y2.Name = "L_Y2";
- this.L_Y2.Size = new System.Drawing.Size(45, 20);
- this.L_Y2.TabIndex = 83;
- this.L_Y2.Text = "B";
- this.L_Y2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y7
- //
- this.L_Y7.Location = new System.Drawing.Point(12, 214);
- this.L_Y7.Name = "L_Y7";
- this.L_Y7.Size = new System.Drawing.Size(45, 20);
- this.L_Y7.TabIndex = 88;
- this.L_Y7.Text = "y";
- this.L_Y7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y6
- //
- this.L_Y6.Location = new System.Drawing.Point(12, 188);
- this.L_Y6.Name = "L_Y6";
- this.L_Y6.Size = new System.Drawing.Size(45, 20);
- this.L_Y6.TabIndex = 87;
- this.L_Y6.Text = "F";
- this.L_Y6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y5
- //
- this.L_Y5.Location = new System.Drawing.Point(12, 162);
- this.L_Y5.Name = "L_Y5";
- this.L_Y5.Size = new System.Drawing.Size(45, 20);
- this.L_Y5.TabIndex = 86;
- this.L_Y5.Text = "E";
- this.L_Y5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // L_Y4
- //
- this.L_Y4.Location = new System.Drawing.Point(12, 136);
- this.L_Y4.Name = "L_Y4";
- this.L_Y4.Size = new System.Drawing.Size(45, 20);
- this.L_Y4.TabIndex = 85;
- this.L_Y4.Text = "D";
- this.L_Y4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // B_Cancel
- //
- this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Cancel.Location = new System.Drawing.Point(445, 276);
- this.B_Cancel.Name = "B_Cancel";
- this.B_Cancel.Size = new System.Drawing.Size(72, 23);
- this.B_Cancel.TabIndex = 90;
- this.B_Cancel.Text = "Cancel";
- this.B_Cancel.UseVisualStyleBackColor = true;
- this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
- //
- // B_Save
- //
- this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Save.Location = new System.Drawing.Point(445, 247);
- this.B_Save.Name = "B_Save";
- this.B_Save.Size = new System.Drawing.Size(72, 23);
- this.B_Save.TabIndex = 89;
- this.B_Save.Text = "Save";
- this.B_Save.UseVisualStyleBackColor = true;
- this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
- //
- // CB_AcreNames
- //
- this.CB_AcreNames.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.CB_AcreNames.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
- this.CB_AcreNames.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
- this.CB_AcreNames.DropDownWidth = 322;
- this.CB_AcreNames.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.CB_AcreNames.FormattingEnabled = true;
- this.CB_AcreNames.Location = new System.Drawing.Point(216, 276);
- this.CB_AcreNames.Name = "CB_AcreNames";
- this.CB_AcreNames.Size = new System.Drawing.Size(198, 22);
- this.CB_AcreNames.TabIndex = 91;
- //
- // L_AcreList
- //
- this.L_AcreList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.L_AcreList.Location = new System.Drawing.Point(111, 277);
- this.L_AcreList.Name = "L_AcreList";
- this.L_AcreList.Size = new System.Drawing.Size(96, 20);
- this.L_AcreList.TabIndex = 92;
- this.L_AcreList.Text = "Name Table:";
- this.L_AcreList.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // B_Export
- //
- this.B_Export.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.B_Export.Location = new System.Drawing.Point(12, 247);
- this.B_Export.Name = "B_Export";
- this.B_Export.Size = new System.Drawing.Size(75, 23);
- this.B_Export.TabIndex = 93;
- this.B_Export.Text = "Export";
- this.B_Export.UseVisualStyleBackColor = true;
- this.B_Export.Click += new System.EventHandler(this.B_Export_Click);
- //
- // B_Import
- //
- this.B_Import.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.B_Import.Location = new System.Drawing.Point(12, 276);
- this.B_Import.Name = "B_Import";
- this.B_Import.Size = new System.Drawing.Size(75, 23);
- this.B_Import.TabIndex = 94;
- this.B_Import.Text = "Import";
- this.B_Import.UseVisualStyleBackColor = true;
- this.B_Import.Click += new System.EventHandler(this.B_Import_Click);
- //
- // L_Hovered
- //
- this.L_Hovered.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.L_Hovered.AutoSize = true;
- this.L_Hovered.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.L_Hovered.Location = new System.Drawing.Point(151, 252);
- this.L_Hovered.Name = "L_Hovered";
- this.L_Hovered.Size = new System.Drawing.Size(56, 14);
- this.L_Hovered.TabIndex = 95;
- this.L_Hovered.Text = "Hovered";
- this.L_Hovered.Visible = false;
- //
- // PAN_Sea
- //
- this.PAN_Sea.BackColor = System.Drawing.Color.PaleTurquoise;
- this.PAN_Sea.Controls.Add(this.PAN_Beach);
- this.PAN_Sea.Location = new System.Drawing.Point(61, 30);
- this.PAN_Sea.Name = "PAN_Sea";
- this.PAN_Sea.Size = new System.Drawing.Size(457, 206);
- this.PAN_Sea.TabIndex = 96;
- //
- // PAN_Beach
- //
- this.PAN_Beach.BackColor = System.Drawing.Color.LemonChiffon;
- this.PAN_Beach.Controls.Add(this.PAN_Land);
- this.PAN_Beach.Location = new System.Drawing.Point(51, 26);
- this.PAN_Beach.Name = "PAN_Beach";
- this.PAN_Beach.Size = new System.Drawing.Size(355, 154);
- this.PAN_Beach.TabIndex = 97;
- //
- // PAN_Land
- //
- this.PAN_Land.BackColor = System.Drawing.Color.PaleGreen;
- this.PAN_Land.Location = new System.Drawing.Point(51, 26);
- this.PAN_Land.Name = "PAN_Land";
- this.PAN_Land.Size = new System.Drawing.Size(253, 102);
- this.PAN_Land.TabIndex = 98;
- //
- // AcreEditor
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(529, 311);
- this.Controls.Add(this.L_Hovered);
- this.Controls.Add(this.B_Import);
- this.Controls.Add(this.B_Export);
- this.Controls.Add(this.L_AcreList);
- this.Controls.Add(this.CB_AcreNames);
- this.Controls.Add(this.B_Cancel);
- this.Controls.Add(this.B_Save);
- this.Controls.Add(this.L_Y7);
- this.Controls.Add(this.L_Y6);
- this.Controls.Add(this.L_Y5);
- this.Controls.Add(this.L_Y4);
- this.Controls.Add(this.L_Y3);
- this.Controls.Add(this.L_Y2);
- this.Controls.Add(this.L_Y1);
- this.Controls.Add(this.L_Y0);
- this.Controls.Add(this.L_X0);
- this.Controls.Add(this.L_X8);
- this.Controls.Add(this.L_X7);
- this.Controls.Add(this.L_X6);
- this.Controls.Add(this.L_X5);
- this.Controls.Add(this.L_X4);
- this.Controls.Add(this.L_X3);
- this.Controls.Add(this.L_X2);
- this.Controls.Add(this.L_X1);
- this.Controls.Add(this.NUD_28);
- this.Controls.Add(this.NUD_29);
- this.Controls.Add(this.NUD_2A);
- this.Controls.Add(this.NUD_2B);
- this.Controls.Add(this.NUD_2C);
- this.Controls.Add(this.NUD_2D);
- this.Controls.Add(this.NUD_2E);
- this.Controls.Add(this.NUD_2F);
- this.Controls.Add(this.NUD_30);
- this.Controls.Add(this.NUD_31);
- this.Controls.Add(this.NUD_32);
- this.Controls.Add(this.NUD_33);
- this.Controls.Add(this.NUD_34);
- this.Controls.Add(this.NUD_35);
- this.Controls.Add(this.NUD_36);
- this.Controls.Add(this.NUD_37);
- this.Controls.Add(this.NUD_38);
- this.Controls.Add(this.NUD_39);
- this.Controls.Add(this.NUD_3A);
- this.Controls.Add(this.NUD_3B);
- this.Controls.Add(this.NUD_3C);
- this.Controls.Add(this.NUD_3D);
- this.Controls.Add(this.NUD_3E);
- this.Controls.Add(this.NUD_3F);
- this.Controls.Add(this.NUD_40);
- this.Controls.Add(this.NUD_41);
- this.Controls.Add(this.NUD_42);
- this.Controls.Add(this.NUD_43);
- this.Controls.Add(this.NUD_44);
- this.Controls.Add(this.NUD_45);
- this.Controls.Add(this.NUD_46);
- this.Controls.Add(this.NUD_47);
- this.Controls.Add(this.NUD_20);
- this.Controls.Add(this.NUD_21);
- this.Controls.Add(this.NUD_22);
- this.Controls.Add(this.NUD_23);
- this.Controls.Add(this.NUD_24);
- this.Controls.Add(this.NUD_25);
- this.Controls.Add(this.NUD_26);
- this.Controls.Add(this.NUD_27);
- this.Controls.Add(this.NUD_18);
- this.Controls.Add(this.NUD_19);
- this.Controls.Add(this.NUD_1A);
- this.Controls.Add(this.NUD_1B);
- this.Controls.Add(this.NUD_1C);
- this.Controls.Add(this.NUD_1D);
- this.Controls.Add(this.NUD_1E);
- this.Controls.Add(this.NUD_1F);
- this.Controls.Add(this.NUD_10);
- this.Controls.Add(this.NUD_11);
- this.Controls.Add(this.NUD_12);
- this.Controls.Add(this.NUD_13);
- this.Controls.Add(this.NUD_14);
- this.Controls.Add(this.NUD_15);
- this.Controls.Add(this.NUD_16);
- this.Controls.Add(this.NUD_17);
- this.Controls.Add(this.NUD_08);
- this.Controls.Add(this.NUD_09);
- this.Controls.Add(this.NUD_0A);
- this.Controls.Add(this.NUD_0B);
- this.Controls.Add(this.NUD_0C);
- this.Controls.Add(this.NUD_0D);
- this.Controls.Add(this.NUD_0E);
- this.Controls.Add(this.NUD_0F);
- this.Controls.Add(this.NUD_07);
- this.Controls.Add(this.NUD_06);
- this.Controls.Add(this.NUD_05);
- this.Controls.Add(this.NUD_04);
- this.Controls.Add(this.NUD_03);
- this.Controls.Add(this.NUD_02);
- this.Controls.Add(this.NUD_01);
- this.Controls.Add(this.NUD_00);
- this.Controls.Add(this.PAN_Sea);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "AcreEditor";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Acre Editor";
- ((System.ComponentModel.ISupportInitialize)(this.NUD_00)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_01)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_02)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_03)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_04)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_05)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_06)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_07)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_08)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_09)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0A)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0B)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0C)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0D)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0E)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_0F)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_10)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_11)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_12)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_13)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_14)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_15)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_16)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_17)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_18)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_19)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1A)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1B)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1C)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1D)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1E)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_1F)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_20)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_21)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_22)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_23)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_24)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_25)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_26)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_27)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_28)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_29)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2A)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2B)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2C)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2D)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2E)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_2F)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_30)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_31)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_32)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_33)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_34)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_35)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_36)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_37)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_38)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_39)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3A)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3B)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3C)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3D)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3E)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_3F)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_40)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_41)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_42)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_43)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_44)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_45)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_46)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_47)).EndInit();
- this.PAN_Sea.ResumeLayout(false);
- this.PAN_Beach.ResumeLayout(false);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.NumericUpDown NUD_00;
- private System.Windows.Forms.NumericUpDown NUD_01;
- private System.Windows.Forms.NumericUpDown NUD_02;
- private System.Windows.Forms.NumericUpDown NUD_03;
- private System.Windows.Forms.NumericUpDown NUD_04;
- private System.Windows.Forms.NumericUpDown NUD_05;
- private System.Windows.Forms.NumericUpDown NUD_06;
- private System.Windows.Forms.NumericUpDown NUD_07;
- private System.Windows.Forms.NumericUpDown NUD_08;
- private System.Windows.Forms.NumericUpDown NUD_09;
- private System.Windows.Forms.NumericUpDown NUD_0A;
- private System.Windows.Forms.NumericUpDown NUD_0B;
- private System.Windows.Forms.NumericUpDown NUD_0C;
- private System.Windows.Forms.NumericUpDown NUD_0D;
- private System.Windows.Forms.NumericUpDown NUD_0E;
- private System.Windows.Forms.NumericUpDown NUD_0F;
- private System.Windows.Forms.NumericUpDown NUD_10;
- private System.Windows.Forms.NumericUpDown NUD_11;
- private System.Windows.Forms.NumericUpDown NUD_12;
- private System.Windows.Forms.NumericUpDown NUD_13;
- private System.Windows.Forms.NumericUpDown NUD_14;
- private System.Windows.Forms.NumericUpDown NUD_15;
- private System.Windows.Forms.NumericUpDown NUD_16;
- private System.Windows.Forms.NumericUpDown NUD_17;
- private System.Windows.Forms.NumericUpDown NUD_18;
- private System.Windows.Forms.NumericUpDown NUD_19;
- private System.Windows.Forms.NumericUpDown NUD_1A;
- private System.Windows.Forms.NumericUpDown NUD_1B;
- private System.Windows.Forms.NumericUpDown NUD_1C;
- private System.Windows.Forms.NumericUpDown NUD_1D;
- private System.Windows.Forms.NumericUpDown NUD_1E;
- private System.Windows.Forms.NumericUpDown NUD_1F;
- private System.Windows.Forms.NumericUpDown NUD_20;
- private System.Windows.Forms.NumericUpDown NUD_21;
- private System.Windows.Forms.NumericUpDown NUD_22;
- private System.Windows.Forms.NumericUpDown NUD_23;
- private System.Windows.Forms.NumericUpDown NUD_24;
- private System.Windows.Forms.NumericUpDown NUD_25;
- private System.Windows.Forms.NumericUpDown NUD_26;
- private System.Windows.Forms.NumericUpDown NUD_27;
- private System.Windows.Forms.NumericUpDown NUD_28;
- private System.Windows.Forms.NumericUpDown NUD_29;
- private System.Windows.Forms.NumericUpDown NUD_2A;
- private System.Windows.Forms.NumericUpDown NUD_2B;
- private System.Windows.Forms.NumericUpDown NUD_2C;
- private System.Windows.Forms.NumericUpDown NUD_2D;
- private System.Windows.Forms.NumericUpDown NUD_2E;
- private System.Windows.Forms.NumericUpDown NUD_2F;
- private System.Windows.Forms.NumericUpDown NUD_30;
- private System.Windows.Forms.NumericUpDown NUD_31;
- private System.Windows.Forms.NumericUpDown NUD_32;
- private System.Windows.Forms.NumericUpDown NUD_33;
- private System.Windows.Forms.NumericUpDown NUD_34;
- private System.Windows.Forms.NumericUpDown NUD_35;
- private System.Windows.Forms.NumericUpDown NUD_36;
- private System.Windows.Forms.NumericUpDown NUD_37;
- private System.Windows.Forms.NumericUpDown NUD_38;
- private System.Windows.Forms.NumericUpDown NUD_39;
- private System.Windows.Forms.NumericUpDown NUD_3A;
- private System.Windows.Forms.NumericUpDown NUD_3B;
- private System.Windows.Forms.NumericUpDown NUD_3C;
- private System.Windows.Forms.NumericUpDown NUD_3D;
- private System.Windows.Forms.NumericUpDown NUD_3E;
- private System.Windows.Forms.NumericUpDown NUD_3F;
- private System.Windows.Forms.NumericUpDown NUD_40;
- private System.Windows.Forms.NumericUpDown NUD_41;
- private System.Windows.Forms.NumericUpDown NUD_42;
- private System.Windows.Forms.NumericUpDown NUD_43;
- private System.Windows.Forms.NumericUpDown NUD_44;
- private System.Windows.Forms.NumericUpDown NUD_45;
- private System.Windows.Forms.NumericUpDown NUD_46;
- private System.Windows.Forms.NumericUpDown NUD_47;
- private System.Windows.Forms.Label L_X1;
- private System.Windows.Forms.Label L_X2;
- private System.Windows.Forms.Label L_X3;
- private System.Windows.Forms.Label L_X4;
- private System.Windows.Forms.Label L_X5;
- private System.Windows.Forms.Label L_X6;
- private System.Windows.Forms.Label L_X7;
- private System.Windows.Forms.Label L_X8;
- private System.Windows.Forms.Label L_X0;
- private System.Windows.Forms.Label L_Y0;
- private System.Windows.Forms.Label L_Y1;
- private System.Windows.Forms.Label L_Y3;
- private System.Windows.Forms.Label L_Y2;
- private System.Windows.Forms.Label L_Y7;
- private System.Windows.Forms.Label L_Y6;
- private System.Windows.Forms.Label L_Y5;
- private System.Windows.Forms.Label L_Y4;
- private System.Windows.Forms.Button B_Cancel;
- private System.Windows.Forms.Button B_Save;
- private System.Windows.Forms.ComboBox CB_AcreNames;
- private System.Windows.Forms.Label L_AcreList;
- private System.Windows.Forms.Button B_Export;
- private System.Windows.Forms.Button B_Import;
- private System.Windows.Forms.Label L_Hovered;
- private System.Windows.Forms.Panel PAN_Sea;
- private System.Windows.Forms.Panel PAN_Beach;
- private System.Windows.Forms.Panel PAN_Land;
- }
-}
\ No newline at end of file
diff --git a/NHSE.WinForms/Subforms/Map/AcreEditor.cs b/NHSE.WinForms/Subforms/Map/AcreEditor.cs
deleted file mode 100644
index 6982b6e..0000000
--- a/NHSE.WinForms/Subforms/Map/AcreEditor.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
-using NHSE.Core;
-
-namespace NHSE.WinForms
-{
- public partial class AcreEditor : Form
- {
- private readonly NumericUpDown[] Acres;
- private readonly MainSave SAV;
-
- public AcreEditor(MainSave sav)
- {
- InitializeComponent();
- this.TranslateInterface(GameInfo.CurrentLanguage);
- SAV = sav;
-
- Acres = new[]
- {
- NUD_00, NUD_01, NUD_02, NUD_03, NUD_04, NUD_05, NUD_06, NUD_07, NUD_08,
- NUD_09, NUD_0A, NUD_0B, NUD_0C, NUD_0D, NUD_0E, NUD_0F, NUD_10, NUD_11,
- NUD_12, NUD_13, NUD_14, NUD_15, NUD_16, NUD_17, NUD_18, NUD_19, NUD_1A,
- NUD_1B, NUD_1C, NUD_1D, NUD_1E, NUD_1F, NUD_20, NUD_21, NUD_22, NUD_23,
- NUD_24, NUD_25, NUD_26, NUD_27, NUD_28, NUD_29, NUD_2A, NUD_2B, NUD_2C,
- NUD_2D, NUD_2E, NUD_2F, NUD_30, NUD_31, NUD_32, NUD_33, NUD_34, NUD_35,
- NUD_36, NUD_37, NUD_38, NUD_39, NUD_3A, NUD_3B, NUD_3C, NUD_3D, NUD_3E,
- NUD_3F, NUD_40, NUD_41, NUD_42, NUD_43, NUD_44, NUD_45, NUD_46, NUD_47,
- };
-
- LoadAcres();
-
- LoadHintComboBox();
- for (var i = 0; i < Acres.Length; i++)
- {
- var a = Acres[i];
- var x = i % MainSave.AcreWidth;
- var y = i / MainSave.AcreWidth;
- a.MouseEnter += (sender, args) => UpdateAcre((ushort)a.Value, x, y);
- a.ValueChanged += (sender, args) => UpdateAcre((ushort)a.Value, x, y);
- }
- }
-
- private void UpdateAcre(ushort val, int x, int y)
- {
- var name = (OutsideAcre)val;
- L_Hovered.Text = $"{x},{y} - 0x{val:X2} = {name}";
- L_Hovered.Visible = true;
- }
-
- private void LoadHintComboBox()
- {
- CB_AcreNames.DisplayMember = nameof(ComboItem.Text);
- CB_AcreNames.ValueMember = nameof(ComboItem.Value);
- CB_AcreNames.DataSource = ComboItemUtil.GetArray(typeof(OutsideAcre));
-
- CB_AcreNames.SelectedIndex = 0;
- }
-
- private void LoadAcres()
- {
- for (int i = 0; i < Acres.Length; i++)
- Acres[i].Value = SAV.GetAcre(i);
- }
-
- private void SaveAcres()
- {
- for (int i = 0; i < Acres.Length; i++)
- SAV.SetAcre(i, (ushort)Acres[i].Value);
- }
-
- private void B_Save_Click(object sender, EventArgs e) { SaveAcres(); Close(); }
- private void B_Cancel_Click(object sender, EventArgs e) => Close();
-
- private void B_Export_Click(object sender, EventArgs e)
- {
- using var sfd = new SaveFileDialog
- {
- Filter = "New Horizons Acres (*.nha)|*.nha|All files (*.*)|*.*",
- FileName = "acres.nha",
- };
-
- if (sfd.ShowDialog() != DialogResult.OK)
- return;
-
- var original = SAV.GetAcreBytes();
- SaveAcres();
- var modified = SAV.GetAcreBytes();
- SAV.SetAcreBytes(original);
-
- File.WriteAllBytes(sfd.FileName, modified);
- }
-
- private void B_Import_Click(object sender, EventArgs e)
- {
- using var ofd = new OpenFileDialog
- {
- Filter = "New Horizons Acres (*.nha)|*.nha|All files (*.*)|*.*",
- FileName = "acres.nha",
- };
-
- if (ofd.ShowDialog() != DialogResult.OK)
- return;
-
- var path = ofd.FileName;
- var original = SAV.GetAcreBytes();
- var modified = File.ReadAllBytes(path);
- if (original.Length != modified.Length)
- {
- WinFormsUtil.Error(string.Format(MessageStrings.MsgDataSizeMismatchImport, modified.Length, original.Length), path);
- return;
- }
- SAV.SetAcreBytes(modified);
- LoadAcres();
- SAV.SetAcreBytes(original);
- }
- }
-}
diff --git a/NHSE.WinForms/Subforms/Map/AcreEditor.resx b/NHSE.WinForms/Subforms/Map/AcreEditor.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NHSE.WinForms/Subforms/Map/AcreEditor.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/NHSE.WinForms/Subforms/Map/BuildingEditor.Designer.cs b/NHSE.WinForms/Subforms/Map/BuildingEditor.Designer.cs
deleted file mode 100644
index 5c852ee..0000000
--- a/NHSE.WinForms/Subforms/Map/BuildingEditor.Designer.cs
+++ /dev/null
@@ -1,538 +0,0 @@
-namespace NHSE.WinForms
-{
- partial class BuildingEditor
- {
- ///
- /// 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();
- Map.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.B_Save = new System.Windows.Forms.Button();
- this.B_Cancel = new System.Windows.Forms.Button();
- this.LB_Items = new System.Windows.Forms.ListBox();
- this.PB_Map = new System.Windows.Forms.PictureBox();
- this.L_BuildingType = new System.Windows.Forms.Label();
- this.NUD_BuildingType = new System.Windows.Forms.NumericUpDown();
- this.NUD_X = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingX = new System.Windows.Forms.Label();
- this.NUD_Y = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingY = new System.Windows.Forms.Label();
- this.NUD_Angle = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingRotation = new System.Windows.Forms.Label();
- this.NUD_Type = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingStructureType = new System.Windows.Forms.Label();
- this.NUD_TypeArg = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingStructureArg = new System.Windows.Forms.Label();
- this.NUD_UniqueID = new System.Windows.Forms.NumericUpDown();
- this.L_BuildingUniqueID = new System.Windows.Forms.Label();
- this.GB_Building = new System.Windows.Forms.GroupBox();
- this.L_Bit = new System.Windows.Forms.Label();
- this.NUD_Bit = new System.Windows.Forms.NumericUpDown();
- this.GB_Info = new System.Windows.Forms.GroupBox();
- this.L_StructureValues = new System.Windows.Forms.Label();
- this.CB_StructureValues = new System.Windows.Forms.ComboBox();
- this.L_StructureType = new System.Windows.Forms.Label();
- this.CB_StructureType = new System.Windows.Forms.ComboBox();
- this.L_PlazaX = new System.Windows.Forms.Label();
- this.NUD_PlazaX = new System.Windows.Forms.NumericUpDown();
- this.L_PlazaY = new System.Windows.Forms.Label();
- this.NUD_PlazaY = new System.Windows.Forms.NumericUpDown();
- this.B_Import = new System.Windows.Forms.Button();
- this.B_Dump = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.PB_Map)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_BuildingType)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_X)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Y)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Angle)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Type)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_TypeArg)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_UniqueID)).BeginInit();
- this.GB_Building.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Bit)).BeginInit();
- this.GB_Info.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_PlazaX)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_PlazaY)).BeginInit();
- this.SuspendLayout();
- //
- // B_Save
- //
- this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Save.Location = new System.Drawing.Point(609, 528);
- this.B_Save.Name = "B_Save";
- this.B_Save.Size = new System.Drawing.Size(65, 23);
- this.B_Save.TabIndex = 1;
- this.B_Save.Text = "Save";
- this.B_Save.UseVisualStyleBackColor = true;
- this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
- //
- // B_Cancel
- //
- this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Cancel.Location = new System.Drawing.Point(609, 554);
- this.B_Cancel.Name = "B_Cancel";
- this.B_Cancel.Size = new System.Drawing.Size(65, 23);
- this.B_Cancel.TabIndex = 2;
- this.B_Cancel.Text = "Cancel";
- this.B_Cancel.UseVisualStyleBackColor = true;
- this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
- //
- // LB_Items
- //
- this.LB_Items.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.LB_Items.FormattingEnabled = true;
- this.LB_Items.Location = new System.Drawing.Point(12, 12);
- this.LB_Items.Name = "LB_Items";
- this.LB_Items.Size = new System.Drawing.Size(206, 563);
- this.LB_Items.TabIndex = 3;
- this.LB_Items.SelectedIndexChanged += new System.EventHandler(this.LB_Items_SelectedIndexChanged);
- //
- // PB_Map
- //
- this.PB_Map.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.PB_Map.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.PB_Map.Location = new System.Drawing.Point(224, 12);
- this.PB_Map.Name = "PB_Map";
- this.PB_Map.Size = new System.Drawing.Size(450, 386);
- this.PB_Map.TabIndex = 5;
- this.PB_Map.TabStop = false;
- //
- // L_BuildingType
- //
- this.L_BuildingType.Location = new System.Drawing.Point(6, 12);
- this.L_BuildingType.Name = "L_BuildingType";
- this.L_BuildingType.Size = new System.Drawing.Size(100, 18);
- this.L_BuildingType.TabIndex = 6;
- this.L_BuildingType.Text = "Building Type:";
- this.L_BuildingType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_BuildingType
- //
- this.NUD_BuildingType.Location = new System.Drawing.Point(112, 13);
- this.NUD_BuildingType.Name = "NUD_BuildingType";
- this.NUD_BuildingType.Size = new System.Drawing.Size(69, 20);
- this.NUD_BuildingType.TabIndex = 7;
- this.NUD_BuildingType.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // NUD_X
- //
- this.NUD_X.Location = new System.Drawing.Point(61, 34);
- this.NUD_X.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.NUD_X.Name = "NUD_X";
- this.NUD_X.Size = new System.Drawing.Size(45, 20);
- this.NUD_X.TabIndex = 9;
- this.NUD_X.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingX
- //
- this.L_BuildingX.Location = new System.Drawing.Point(35, 33);
- this.L_BuildingX.Name = "L_BuildingX";
- this.L_BuildingX.Size = new System.Drawing.Size(20, 18);
- this.L_BuildingX.TabIndex = 8;
- this.L_BuildingX.Text = "X:";
- this.L_BuildingX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_Y
- //
- this.NUD_Y.Location = new System.Drawing.Point(136, 34);
- this.NUD_Y.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.NUD_Y.Name = "NUD_Y";
- this.NUD_Y.Size = new System.Drawing.Size(45, 20);
- this.NUD_Y.TabIndex = 11;
- this.NUD_Y.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingY
- //
- this.L_BuildingY.Location = new System.Drawing.Point(107, 33);
- this.L_BuildingY.Name = "L_BuildingY";
- this.L_BuildingY.Size = new System.Drawing.Size(23, 18);
- this.L_BuildingY.TabIndex = 10;
- this.L_BuildingY.Text = "Y:";
- this.L_BuildingY.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_Angle
- //
- this.NUD_Angle.Location = new System.Drawing.Point(112, 59);
- this.NUD_Angle.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.NUD_Angle.Name = "NUD_Angle";
- this.NUD_Angle.Size = new System.Drawing.Size(69, 20);
- this.NUD_Angle.TabIndex = 13;
- this.NUD_Angle.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingRotation
- //
- this.L_BuildingRotation.Location = new System.Drawing.Point(6, 58);
- this.L_BuildingRotation.Name = "L_BuildingRotation";
- this.L_BuildingRotation.Size = new System.Drawing.Size(100, 18);
- this.L_BuildingRotation.TabIndex = 12;
- this.L_BuildingRotation.Text = "Angle:";
- this.L_BuildingRotation.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_Type
- //
- this.NUD_Type.Location = new System.Drawing.Point(112, 105);
- this.NUD_Type.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.NUD_Type.Name = "NUD_Type";
- this.NUD_Type.Size = new System.Drawing.Size(69, 20);
- this.NUD_Type.TabIndex = 15;
- this.NUD_Type.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingStructureType
- //
- this.L_BuildingStructureType.Location = new System.Drawing.Point(6, 104);
- this.L_BuildingStructureType.Name = "L_BuildingStructureType";
- this.L_BuildingStructureType.Size = new System.Drawing.Size(100, 18);
- this.L_BuildingStructureType.TabIndex = 14;
- this.L_BuildingStructureType.Text = "Type:";
- this.L_BuildingStructureType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_TypeArg
- //
- this.NUD_TypeArg.Location = new System.Drawing.Point(112, 126);
- this.NUD_TypeArg.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.NUD_TypeArg.Name = "NUD_TypeArg";
- this.NUD_TypeArg.Size = new System.Drawing.Size(69, 20);
- this.NUD_TypeArg.TabIndex = 17;
- this.NUD_TypeArg.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingStructureArg
- //
- this.L_BuildingStructureArg.Location = new System.Drawing.Point(6, 125);
- this.L_BuildingStructureArg.Name = "L_BuildingStructureArg";
- this.L_BuildingStructureArg.Size = new System.Drawing.Size(100, 18);
- this.L_BuildingStructureArg.TabIndex = 16;
- this.L_BuildingStructureArg.Text = "TypeArg:";
- this.L_BuildingStructureArg.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_UniqueID
- //
- this.NUD_UniqueID.Location = new System.Drawing.Point(112, 147);
- this.NUD_UniqueID.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.NUD_UniqueID.Name = "NUD_UniqueID";
- this.NUD_UniqueID.Size = new System.Drawing.Size(69, 20);
- this.NUD_UniqueID.TabIndex = 19;
- this.NUD_UniqueID.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // L_BuildingUniqueID
- //
- this.L_BuildingUniqueID.Location = new System.Drawing.Point(6, 146);
- this.L_BuildingUniqueID.Name = "L_BuildingUniqueID";
- this.L_BuildingUniqueID.Size = new System.Drawing.Size(100, 18);
- this.L_BuildingUniqueID.TabIndex = 18;
- this.L_BuildingUniqueID.Text = "UniqueID:";
- this.L_BuildingUniqueID.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // GB_Building
- //
- this.GB_Building.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.GB_Building.Controls.Add(this.L_Bit);
- this.GB_Building.Controls.Add(this.NUD_Bit);
- this.GB_Building.Controls.Add(this.L_BuildingType);
- this.GB_Building.Controls.Add(this.NUD_BuildingType);
- this.GB_Building.Controls.Add(this.NUD_UniqueID);
- this.GB_Building.Controls.Add(this.L_BuildingX);
- this.GB_Building.Controls.Add(this.L_BuildingUniqueID);
- this.GB_Building.Controls.Add(this.NUD_X);
- this.GB_Building.Controls.Add(this.NUD_TypeArg);
- this.GB_Building.Controls.Add(this.L_BuildingY);
- this.GB_Building.Controls.Add(this.L_BuildingStructureArg);
- this.GB_Building.Controls.Add(this.NUD_Y);
- this.GB_Building.Controls.Add(this.NUD_Type);
- this.GB_Building.Controls.Add(this.L_BuildingRotation);
- this.GB_Building.Controls.Add(this.L_BuildingStructureType);
- this.GB_Building.Controls.Add(this.NUD_Angle);
- this.GB_Building.Location = new System.Drawing.Point(224, 401);
- this.GB_Building.Name = "GB_Building";
- this.GB_Building.Size = new System.Drawing.Size(194, 176);
- this.GB_Building.TabIndex = 21;
- this.GB_Building.TabStop = false;
- this.GB_Building.Text = "Editor";
- //
- // L_Bit
- //
- this.L_Bit.Location = new System.Drawing.Point(6, 79);
- this.L_Bit.Name = "L_Bit";
- this.L_Bit.Size = new System.Drawing.Size(100, 18);
- this.L_Bit.TabIndex = 20;
- this.L_Bit.Text = "Bit:";
- this.L_Bit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_Bit
- //
- this.NUD_Bit.Location = new System.Drawing.Point(112, 80);
- this.NUD_Bit.Maximum = new decimal(new int[] {
- 200,
- 0,
- 0,
- 0});
- this.NUD_Bit.Minimum = new decimal(new int[] {
- 200,
- 0,
- 0,
- -2147483648});
- this.NUD_Bit.Name = "NUD_Bit";
- this.NUD_Bit.Size = new System.Drawing.Size(69, 20);
- this.NUD_Bit.TabIndex = 21;
- this.NUD_Bit.ValueChanged += new System.EventHandler(this.NUD_BuildingType_ValueChanged);
- //
- // GB_Info
- //
- this.GB_Info.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.GB_Info.Controls.Add(this.L_StructureValues);
- this.GB_Info.Controls.Add(this.CB_StructureValues);
- this.GB_Info.Controls.Add(this.L_StructureType);
- this.GB_Info.Controls.Add(this.CB_StructureType);
- this.GB_Info.Location = new System.Drawing.Point(424, 401);
- this.GB_Info.Name = "GB_Info";
- this.GB_Info.Size = new System.Drawing.Size(250, 117);
- this.GB_Info.TabIndex = 22;
- this.GB_Info.TabStop = false;
- this.GB_Info.Text = "Info";
- //
- // L_StructureValues
- //
- this.L_StructureValues.AutoSize = true;
- this.L_StructureValues.Location = new System.Drawing.Point(17, 64);
- this.L_StructureValues.Name = "L_StructureValues";
- this.L_StructureValues.Size = new System.Drawing.Size(42, 13);
- this.L_StructureValues.TabIndex = 22;
- this.L_StructureValues.Text = "Values:";
- this.L_StructureValues.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // CB_StructureValues
- //
- this.CB_StructureValues.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.CB_StructureValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.CB_StructureValues.DropDownWidth = 322;
- this.CB_StructureValues.FormattingEnabled = true;
- this.CB_StructureValues.Location = new System.Drawing.Point(20, 80);
- this.CB_StructureValues.Name = "CB_StructureValues";
- this.CB_StructureValues.Size = new System.Drawing.Size(221, 21);
- this.CB_StructureValues.TabIndex = 21;
- //
- // L_StructureType
- //
- this.L_StructureType.AutoSize = true;
- this.L_StructureType.Location = new System.Drawing.Point(17, 18);
- this.L_StructureType.Name = "L_StructureType";
- this.L_StructureType.Size = new System.Drawing.Size(80, 13);
- this.L_StructureType.TabIndex = 20;
- this.L_StructureType.Text = "Structure Type:";
- this.L_StructureType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // CB_StructureType
- //
- this.CB_StructureType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.CB_StructureType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.CB_StructureType.FormattingEnabled = true;
- this.CB_StructureType.Location = new System.Drawing.Point(20, 35);
- this.CB_StructureType.Name = "CB_StructureType";
- this.CB_StructureType.Size = new System.Drawing.Size(221, 21);
- this.CB_StructureType.TabIndex = 0;
- this.CB_StructureType.SelectedIndexChanged += new System.EventHandler(this.CB_StructureType_SelectedIndexChanged);
- //
- // L_PlazaX
- //
- this.L_PlazaX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.L_PlazaX.Location = new System.Drawing.Point(497, 530);
- this.L_PlazaX.Name = "L_PlazaX";
- this.L_PlazaX.Size = new System.Drawing.Size(62, 20);
- this.L_PlazaX.TabIndex = 104;
- this.L_PlazaX.Text = "Plaza X:";
- this.L_PlazaX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_PlazaX
- //
- this.NUD_PlazaX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.NUD_PlazaX.Location = new System.Drawing.Point(560, 531);
- this.NUD_PlazaX.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_PlazaX.Name = "NUD_PlazaX";
- this.NUD_PlazaX.Size = new System.Drawing.Size(39, 20);
- this.NUD_PlazaX.TabIndex = 103;
- this.NUD_PlazaX.Value = new decimal(new int[] {
- 555,
- 0,
- 0,
- 0});
- this.NUD_PlazaX.ValueChanged += new System.EventHandler(this.NUD_PlazaCoordinate_ValueChanged);
- //
- // L_PlazaY
- //
- this.L_PlazaY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.L_PlazaY.Location = new System.Drawing.Point(497, 553);
- this.L_PlazaY.Name = "L_PlazaY";
- this.L_PlazaY.Size = new System.Drawing.Size(62, 20);
- this.L_PlazaY.TabIndex = 102;
- this.L_PlazaY.Text = "Plaza Y:";
- this.L_PlazaY.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- //
- // NUD_PlazaY
- //
- this.NUD_PlazaY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.NUD_PlazaY.Location = new System.Drawing.Point(560, 554);
- this.NUD_PlazaY.Maximum = new decimal(new int[] {
- 1024,
- 0,
- 0,
- 0});
- this.NUD_PlazaY.Name = "NUD_PlazaY";
- this.NUD_PlazaY.Size = new System.Drawing.Size(39, 20);
- this.NUD_PlazaY.TabIndex = 101;
- this.NUD_PlazaY.Value = new decimal(new int[] {
- 555,
- 0,
- 0,
- 0});
- this.NUD_PlazaY.ValueChanged += new System.EventHandler(this.NUD_PlazaCoordinate_ValueChanged);
- //
- // B_Import
- //
- this.B_Import.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Import.Location = new System.Drawing.Point(424, 554);
- this.B_Import.Name = "B_Import";
- this.B_Import.Size = new System.Drawing.Size(65, 23);
- this.B_Import.TabIndex = 106;
- this.B_Import.Text = "Import";
- this.B_Import.UseVisualStyleBackColor = true;
- this.B_Import.Click += new System.EventHandler(this.B_ImportAll_Click);
- //
- // B_Dump
- //
- this.B_Dump.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Dump.Location = new System.Drawing.Point(424, 528);
- this.B_Dump.Name = "B_Dump";
- this.B_Dump.Size = new System.Drawing.Size(65, 23);
- this.B_Dump.TabIndex = 105;
- this.B_Dump.Text = "Dump";
- this.B_Dump.UseVisualStyleBackColor = true;
- this.B_Dump.Click += new System.EventHandler(this.B_DumpAll_Click);
- //
- // BuildingEditor
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(684, 588);
- this.Controls.Add(this.B_Import);
- this.Controls.Add(this.B_Dump);
- this.Controls.Add(this.L_PlazaX);
- this.Controls.Add(this.NUD_PlazaX);
- this.Controls.Add(this.L_PlazaY);
- this.Controls.Add(this.NUD_PlazaY);
- this.Controls.Add(this.GB_Info);
- this.Controls.Add(this.GB_Building);
- this.Controls.Add(this.PB_Map);
- this.Controls.Add(this.LB_Items);
- this.Controls.Add(this.B_Cancel);
- this.Controls.Add(this.B_Save);
- this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "BuildingEditor";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Building Editor";
- ((System.ComponentModel.ISupportInitialize)(this.PB_Map)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_BuildingType)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_X)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Y)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Angle)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Type)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_TypeArg)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_UniqueID)).EndInit();
- this.GB_Building.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.NUD_Bit)).EndInit();
- this.GB_Info.ResumeLayout(false);
- this.GB_Info.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_PlazaX)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.NUD_PlazaY)).EndInit();
- this.ResumeLayout(false);
-
- }
-
- #endregion
- private System.Windows.Forms.Button B_Save;
- private System.Windows.Forms.Button B_Cancel;
- private System.Windows.Forms.ListBox LB_Items;
- private System.Windows.Forms.PictureBox PB_Map;
- private System.Windows.Forms.Label L_BuildingType;
- private System.Windows.Forms.NumericUpDown NUD_BuildingType;
- private System.Windows.Forms.NumericUpDown NUD_X;
- private System.Windows.Forms.Label L_BuildingX;
- private System.Windows.Forms.NumericUpDown NUD_Y;
- private System.Windows.Forms.Label L_BuildingY;
- private System.Windows.Forms.NumericUpDown NUD_Angle;
- private System.Windows.Forms.Label L_BuildingRotation;
- private System.Windows.Forms.NumericUpDown NUD_Type;
- private System.Windows.Forms.Label L_BuildingStructureType;
- private System.Windows.Forms.NumericUpDown NUD_TypeArg;
- private System.Windows.Forms.Label L_BuildingStructureArg;
- private System.Windows.Forms.NumericUpDown NUD_UniqueID;
- private System.Windows.Forms.Label L_BuildingUniqueID;
- private System.Windows.Forms.GroupBox GB_Building;
- private System.Windows.Forms.GroupBox GB_Info;
- private System.Windows.Forms.Label L_StructureValues;
- private System.Windows.Forms.ComboBox CB_StructureValues;
- private System.Windows.Forms.Label L_StructureType;
- private System.Windows.Forms.ComboBox CB_StructureType;
- private System.Windows.Forms.Label L_PlazaX;
- private System.Windows.Forms.NumericUpDown NUD_PlazaX;
- private System.Windows.Forms.Label L_PlazaY;
- private System.Windows.Forms.NumericUpDown NUD_PlazaY;
- private System.Windows.Forms.Button B_Import;
- private System.Windows.Forms.Button B_Dump;
- private System.Windows.Forms.Label L_Bit;
- private System.Windows.Forms.NumericUpDown NUD_Bit;
- }
-}
\ No newline at end of file
diff --git a/NHSE.WinForms/Subforms/Map/BuildingEditor.cs b/NHSE.WinForms/Subforms/Map/BuildingEditor.cs
deleted file mode 100644
index e633991..0000000
--- a/NHSE.WinForms/Subforms/Map/BuildingEditor.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Windows.Forms;
-using NHSE.Core;
-using NHSE.Sprites;
-
-namespace NHSE.WinForms
-{
- public partial class BuildingEditor : Form
- {
- private readonly IReadOnlyList Buildings;
- private readonly MainSave SAV;
- private static readonly IReadOnlyDictionary HelpDictionary = StructureUtil.GetStructureHelpList();
-
- private readonly Bitmap Map;
- private readonly int[] Scale1;
- private readonly int[] ScaleX;
- private readonly MapTerrainStructure Manager;
- private const int scale = 4;
-
- public BuildingEditor(MainSave sav)
- {
- InitializeComponent();
- this.TranslateInterface(GameInfo.CurrentLanguage);
- Manager = new MapTerrainStructure(sav);
- SAV = sav;
- Buildings = Manager.Buildings;
-
- Scale1 = new int[Manager.Terrain.MapWidth * Manager.Terrain.MapHeight];
- ScaleX = new int[Scale1.Length * scale * scale];
- Map = new Bitmap(Manager.Terrain.MapWidth * scale, Manager.Terrain.MapHeight * scale);
- NUD_PlazaX.Value = sav.EventPlazaLeftUpX;
- NUD_PlazaY.Value = sav.EventPlazaLeftUpZ;
-
- foreach (var obj in Manager.Buildings)
- LB_Items.Items.Add(obj.ToString());
-
- LB_Items.SelectedIndex = 0;
- foreach (var entry in HelpDictionary)
- CB_StructureType.Items.Add(entry.Key);
- CB_StructureType.SelectedIndex = 0;
-
- DialogResult = DialogResult.Cancel;
- }
-
- private void B_Cancel_Click(object sender, EventArgs e) => Close();
-
- private void B_Save_Click(object sender, EventArgs e)
- {
- SAV.EventPlazaLeftUpX = (uint)NUD_PlazaX.Value;
- SAV.EventPlazaLeftUpZ = (uint)NUD_PlazaY.Value;
-
- DialogResult = DialogResult.OK;
- SAV.Buildings = Manager.Buildings;
- Close();
- }
-
- private int Index;
- private bool Loading;
-
- private void DrawMap(in int index)
- {
- var font = B_Save.Font;
- Manager.PlazaX = (ushort) NUD_PlazaX.Value;
- Manager.PlazaY = (ushort) NUD_PlazaY.Value;
- PB_Map.Image = TerrainSprite.GetMapWithBuildings(Manager, font, Scale1, ScaleX, Map, scale, index);
- }
-
- private void LB_Items_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (LB_Items.SelectedIndex < 0)
- return;
- LoadIndex(LB_Items.SelectedIndex);
- DrawMap(Index);
- }
-
- private void LoadIndex(int index)
- {
- Loading = true;
- Index = index;
- var b = Buildings[index];
- NUD_BuildingType.Value = (int)b.BuildingType;
- NUD_X.Value = b.X;
- NUD_Y.Value = b.Y;
- NUD_Angle.Value = b.Angle;
- NUD_Bit.Value = b.Bit;
- NUD_Type.Value = b.Type;
- NUD_TypeArg.Value = b.TypeArg;
- NUD_UniqueID.Value = b.UniqueID;
- Loading = false;
- }
-
- private void NUD_BuildingType_ValueChanged(object sender, EventArgs e)
- {
- if (Loading || !(sender is NumericUpDown n))
- return;
-
- var b = Buildings[Index];
- if (sender == NUD_BuildingType)
- b.BuildingType = (BuildingType)n.Value;
- else if (sender == NUD_X)
- b.X = (ushort)n.Value;
- else if (sender == NUD_Y)
- b.Y = (ushort)n.Value;
- else if (sender == NUD_Angle)
- b.Angle = (byte)n.Value;
- else if (sender == NUD_Bit)
- b.Bit = (sbyte)n.Value;
- else if (sender == NUD_Type)
- b.Type = (ushort)n.Value;
- else if (sender == NUD_TypeArg)
- b.TypeArg = (byte)n.Value;
- else if (sender == NUD_UniqueID)
- b.UniqueID = (ushort)n.Value;
-
- LB_Items.Items[Index] = Buildings[Index].ToString();
- DrawMap(Index);
- }
-
- private void CB_StructureType_SelectedIndexChanged(object sender, EventArgs e)
- {
- var name = CB_StructureType.Text;
- var values = HelpDictionary[name];
- CB_StructureValues.Items.Clear();
- foreach (var item in values)
- CB_StructureValues.Items.Add(item);
- CB_StructureValues.SelectedIndex = 0;
- }
-
- private void NUD_PlazaCoordinate_ValueChanged(object sender, EventArgs e) => DrawMap(Index);
-
- private void B_DumpAll_Click(object sender, EventArgs e) => MapDumpHelper.DumpBuildings(Buildings);
-
- private void B_ImportAll_Click(object sender, EventArgs e)
- {
- if (!MapDumpHelper.ImportBuildings(Buildings))
- return;
-
- for (int i = 0; i < Buildings.Count; i++)
- LB_Items.Items[i] = Buildings[i].ToString();
- LB_Items.SelectedIndex = 0;
- DrawMap(0);
- System.Media.SystemSounds.Asterisk.Play();
- }
- }
-}
diff --git a/NHSE.WinForms/Subforms/Map/BuildingEditor.resx b/NHSE.WinForms/Subforms/Map/BuildingEditor.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NHSE.WinForms/Subforms/Map/BuildingEditor.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/NHSE.WinForms/Subforms/Map/TerrainEditor.Designer.cs b/NHSE.WinForms/Subforms/Map/TerrainEditor.Designer.cs
deleted file mode 100644
index 634248f..0000000
--- a/NHSE.WinForms/Subforms/Map/TerrainEditor.Designer.cs
+++ /dev/null
@@ -1,369 +0,0 @@
-namespace NHSE.WinForms
-{
- partial class TerrainEditor
- {
- ///
- /// 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();
- Map.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.components = new System.ComponentModel.Container();
- this.B_Cancel = new System.Windows.Forms.Button();
- this.B_Save = new System.Windows.Forms.Button();
- this.FLP_Tile = new System.Windows.Forms.FlowLayoutPanel();
- this.PG_Tile = new System.Windows.Forms.PropertyGrid();
- this.CB_Acre = new System.Windows.Forms.ComboBox();
- this.L_Acre = new System.Windows.Forms.Label();
- this.B_ZeroElevation = new System.Windows.Forms.Button();
- this.B_SetAll = new System.Windows.Forms.Button();
- this.B_DumpAcre = new System.Windows.Forms.Button();
- this.B_DumpAllAcres = new System.Windows.Forms.Button();
- this.B_ImportAllAcres = new System.Windows.Forms.Button();
- this.B_ImportAcre = new System.Windows.Forms.Button();
- this.CM_Click = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.Menu_View = new System.Windows.Forms.ToolStripMenuItem();
- this.Menu_Set = new System.Windows.Forms.ToolStripMenuItem();
- this.Menu_Reset = new System.Windows.Forms.ToolStripMenuItem();
- this.B_Up = new System.Windows.Forms.Button();
- this.B_Left = new System.Windows.Forms.Button();
- this.B_Right = new System.Windows.Forms.Button();
- this.B_Down = new System.Windows.Forms.Button();
- this.PB_Map = new System.Windows.Forms.PictureBox();
- this.CM_Picture = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.Menu_SavePNG = new System.Windows.Forms.ToolStripMenuItem();
- this.CHK_SnapToAcre = new System.Windows.Forms.CheckBox();
- this.L_Coordinates = new System.Windows.Forms.Label();
- this.CM_Click.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.PB_Map)).BeginInit();
- this.CM_Picture.SuspendLayout();
- this.SuspendLayout();
- //
- // B_Cancel
- //
- this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Cancel.Location = new System.Drawing.Point(899, 787);
- this.B_Cancel.Name = "B_Cancel";
- this.B_Cancel.Size = new System.Drawing.Size(72, 23);
- this.B_Cancel.TabIndex = 7;
- this.B_Cancel.Text = "Cancel";
- this.B_Cancel.UseVisualStyleBackColor = true;
- this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
- //
- // B_Save
- //
- this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.B_Save.Location = new System.Drawing.Point(977, 787);
- this.B_Save.Name = "B_Save";
- this.B_Save.Size = new System.Drawing.Size(72, 23);
- this.B_Save.TabIndex = 6;
- this.B_Save.Text = "Save";
- this.B_Save.UseVisualStyleBackColor = true;
- this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
- //
- // FLP_Tile
- //
- this.FLP_Tile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.FLP_Tile.Location = new System.Drawing.Point(12, 12);
- this.FLP_Tile.Name = "FLP_Tile";
- this.FLP_Tile.Size = new System.Drawing.Size(802, 802);
- this.FLP_Tile.TabIndex = 8;
- //
- // PG_Tile
- //
- this.PG_Tile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.PG_Tile.Location = new System.Drawing.Point(820, 12);
- this.PG_Tile.Name = "PG_Tile";
- this.PG_Tile.PropertySort = System.Windows.Forms.PropertySort.Categorized;
- this.PG_Tile.Size = new System.Drawing.Size(229, 244);
- this.PG_Tile.TabIndex = 9;
- this.PG_Tile.ToolbarVisible = false;
- //
- // CB_Acre
- //
- this.CB_Acre.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.CB_Acre.FormattingEnabled = true;
- this.CB_Acre.Location = new System.Drawing.Point(978, 598);
- this.CB_Acre.Name = "CB_Acre";
- this.CB_Acre.Size = new System.Drawing.Size(49, 21);
- this.CB_Acre.TabIndex = 10;
- this.CB_Acre.SelectedIndexChanged += new System.EventHandler(this.ChangeAcre);
- //
- // L_Acre
- //
- this.L_Acre.AutoSize = true;
- this.L_Acre.Location = new System.Drawing.Point(940, 601);
- this.L_Acre.Name = "L_Acre";
- this.L_Acre.Size = new System.Drawing.Size(32, 13);
- this.L_Acre.TabIndex = 11;
- this.L_Acre.Text = "Acre:";
- //
- // B_ZeroElevation
- //
- this.B_ZeroElevation.Location = new System.Drawing.Point(820, 262);
- this.B_ZeroElevation.Name = "B_ZeroElevation";
- this.B_ZeroElevation.Size = new System.Drawing.Size(112, 40);
- this.B_ZeroElevation.TabIndex = 12;
- this.B_ZeroElevation.Text = "Zero All Elevation";
- this.B_ZeroElevation.UseVisualStyleBackColor = true;
- this.B_ZeroElevation.Click += new System.EventHandler(this.B_ZeroElevation_Click);
- //
- // B_SetAll
- //
- this.B_SetAll.Location = new System.Drawing.Point(937, 262);
- this.B_SetAll.Name = "B_SetAll";
- this.B_SetAll.Size = new System.Drawing.Size(112, 40);
- this.B_SetAll.TabIndex = 13;
- this.B_SetAll.Text = "Set All Tiles using Tile from Editor";
- this.B_SetAll.UseVisualStyleBackColor = true;
- this.B_SetAll.Click += new System.EventHandler(this.B_SetAll_Click);
- //
- // B_DumpAcre
- //
- this.B_DumpAcre.Location = new System.Drawing.Point(820, 672);
- this.B_DumpAcre.Name = "B_DumpAcre";
- this.B_DumpAcre.Size = new System.Drawing.Size(112, 40);
- this.B_DumpAcre.TabIndex = 14;
- this.B_DumpAcre.Text = "Dump Acre";
- this.B_DumpAcre.UseVisualStyleBackColor = true;
- this.B_DumpAcre.Click += new System.EventHandler(this.B_DumpAcre_Click);
- //
- // B_DumpAllAcres
- //
- this.B_DumpAllAcres.Location = new System.Drawing.Point(820, 718);
- this.B_DumpAllAcres.Name = "B_DumpAllAcres";
- this.B_DumpAllAcres.Size = new System.Drawing.Size(112, 40);
- this.B_DumpAllAcres.TabIndex = 15;
- this.B_DumpAllAcres.Text = "Dump All Acres";
- this.B_DumpAllAcres.UseVisualStyleBackColor = true;
- this.B_DumpAllAcres.Click += new System.EventHandler(this.B_DumpAllAcres_Click);
- //
- // B_ImportAllAcres
- //
- this.B_ImportAllAcres.Location = new System.Drawing.Point(937, 718);
- this.B_ImportAllAcres.Name = "B_ImportAllAcres";
- this.B_ImportAllAcres.Size = new System.Drawing.Size(112, 40);
- this.B_ImportAllAcres.TabIndex = 17;
- this.B_ImportAllAcres.Text = "Import All Acres";
- this.B_ImportAllAcres.UseVisualStyleBackColor = true;
- this.B_ImportAllAcres.Click += new System.EventHandler(this.B_ImportAllAcres_Click);
- //
- // B_ImportAcre
- //
- this.B_ImportAcre.Location = new System.Drawing.Point(937, 672);
- this.B_ImportAcre.Name = "B_ImportAcre";
- this.B_ImportAcre.Size = new System.Drawing.Size(112, 40);
- this.B_ImportAcre.TabIndex = 16;
- this.B_ImportAcre.Text = "Import Acre";
- this.B_ImportAcre.UseVisualStyleBackColor = true;
- this.B_ImportAcre.Click += new System.EventHandler(this.B_ImportAcre_Click);
- //
- // CM_Click
- //
- this.CM_Click.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.Menu_View,
- this.Menu_Set,
- this.Menu_Reset});
- this.CM_Click.Name = "CM_Click";
- this.CM_Click.Size = new System.Drawing.Size(103, 70);
- //
- // Menu_View
- //
- this.Menu_View.Name = "Menu_View";
- this.Menu_View.Size = new System.Drawing.Size(102, 22);
- this.Menu_View.Text = "View";
- this.Menu_View.Click += new System.EventHandler(this.Menu_View_Click);
- //
- // Menu_Set
- //
- this.Menu_Set.Name = "Menu_Set";
- this.Menu_Set.Size = new System.Drawing.Size(102, 22);
- this.Menu_Set.Text = "Set";
- this.Menu_Set.Click += new System.EventHandler(this.Menu_Set_Click);
- //
- // Menu_Reset
- //
- this.Menu_Reset.Name = "Menu_Reset";
- this.Menu_Reset.Size = new System.Drawing.Size(102, 22);
- this.Menu_Reset.Text = "Reset";
- this.Menu_Reset.Click += new System.EventHandler(this.Menu_Reset_Click);
- //
- // B_Up
- //
- this.B_Up.Location = new System.Drawing.Point(868, 561);
- this.B_Up.Name = "B_Up";
- this.B_Up.Size = new System.Drawing.Size(32, 32);
- this.B_Up.TabIndex = 18;
- this.B_Up.Text = "↑";
- this.B_Up.UseVisualStyleBackColor = true;
- this.B_Up.Click += new System.EventHandler(this.B_Up_Click);
- //
- // B_Left
- //
- this.B_Left.Location = new System.Drawing.Point(838, 591);
- this.B_Left.Name = "B_Left";
- this.B_Left.Size = new System.Drawing.Size(32, 32);
- this.B_Left.TabIndex = 19;
- this.B_Left.Text = "←";
- this.B_Left.UseVisualStyleBackColor = true;
- this.B_Left.Click += new System.EventHandler(this.B_Left_Click);
- //
- // B_Right
- //
- this.B_Right.Location = new System.Drawing.Point(898, 591);
- this.B_Right.Name = "B_Right";
- this.B_Right.Size = new System.Drawing.Size(32, 32);
- this.B_Right.TabIndex = 20;
- this.B_Right.Text = "→";
- this.B_Right.UseVisualStyleBackColor = true;
- this.B_Right.Click += new System.EventHandler(this.B_Right_Click);
- //
- // B_Down
- //
- this.B_Down.Location = new System.Drawing.Point(868, 621);
- this.B_Down.Name = "B_Down";
- this.B_Down.Size = new System.Drawing.Size(32, 32);
- this.B_Down.TabIndex = 22;
- this.B_Down.Text = "↓";
- this.B_Down.UseVisualStyleBackColor = true;
- this.B_Down.Click += new System.EventHandler(this.B_Down_Click);
- //
- // PB_Map
- //
- this.PB_Map.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.PB_Map.ContextMenuStrip = this.CM_Picture;
- this.PB_Map.Location = new System.Drawing.Point(821, 343);
- this.PB_Map.Name = "PB_Map";
- this.PB_Map.Size = new System.Drawing.Size(226, 194);
- this.PB_Map.TabIndex = 23;
- this.PB_Map.TabStop = false;
- this.PB_Map.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PB_Map_MouseDown);
- this.PB_Map.MouseMove += new System.Windows.Forms.MouseEventHandler(this.PB_Map_MouseMove);
- //
- // CM_Picture
- //
- this.CM_Picture.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.Menu_SavePNG});
- this.CM_Picture.Name = "CM_Picture";
- this.CM_Picture.ShowImageMargin = false;
- this.CM_Picture.Size = new System.Drawing.Size(101, 26);
- //
- // Menu_SavePNG
- //
- this.Menu_SavePNG.Name = "Menu_SavePNG";
- this.Menu_SavePNG.Size = new System.Drawing.Size(100, 22);
- this.Menu_SavePNG.Text = "Save .png";
- this.Menu_SavePNG.Click += new System.EventHandler(this.Menu_SavePNG_Click);
- //
- // CHK_SnapToAcre
- //
- this.CHK_SnapToAcre.AutoSize = true;
- this.CHK_SnapToAcre.Checked = true;
- this.CHK_SnapToAcre.CheckState = System.Windows.Forms.CheckState.Checked;
- this.CHK_SnapToAcre.Location = new System.Drawing.Point(820, 320);
- this.CHK_SnapToAcre.Name = "CHK_SnapToAcre";
- this.CHK_SnapToAcre.Size = new System.Drawing.Size(167, 17);
- this.CHK_SnapToAcre.TabIndex = 24;
- this.CHK_SnapToAcre.Text = "Snap to nearest Acre on Click";
- this.CHK_SnapToAcre.UseVisualStyleBackColor = true;
- //
- // L_Coordinates
- //
- this.L_Coordinates.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.L_Coordinates.Location = new System.Drawing.Point(876, 540);
- this.L_Coordinates.Name = "L_Coordinates";
- this.L_Coordinates.Size = new System.Drawing.Size(173, 15);
- this.L_Coordinates.TabIndex = 25;
- this.L_Coordinates.Text = "(000,000) = (0x00,0x00)";
- this.L_Coordinates.TextAlign = System.Drawing.ContentAlignment.TopRight;
- //
- // TerrainEditor
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1061, 822);
- this.Controls.Add(this.L_Coordinates);
- this.Controls.Add(this.CHK_SnapToAcre);
- this.Controls.Add(this.PB_Map);
- this.Controls.Add(this.B_Down);
- this.Controls.Add(this.B_Right);
- this.Controls.Add(this.B_Left);
- this.Controls.Add(this.B_Up);
- this.Controls.Add(this.B_ImportAllAcres);
- this.Controls.Add(this.B_ImportAcre);
- this.Controls.Add(this.B_DumpAllAcres);
- this.Controls.Add(this.B_DumpAcre);
- this.Controls.Add(this.B_SetAll);
- this.Controls.Add(this.B_ZeroElevation);
- this.Controls.Add(this.L_Acre);
- this.Controls.Add(this.CB_Acre);
- this.Controls.Add(this.PG_Tile);
- this.Controls.Add(this.FLP_Tile);
- this.Controls.Add(this.B_Cancel);
- this.Controls.Add(this.B_Save);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "TerrainEditor";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Terrain Editor";
- this.CM_Click.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.PB_Map)).EndInit();
- this.CM_Picture.ResumeLayout(false);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button B_Cancel;
- private System.Windows.Forms.Button B_Save;
- private System.Windows.Forms.FlowLayoutPanel FLP_Tile;
- private System.Windows.Forms.PropertyGrid PG_Tile;
- private System.Windows.Forms.ComboBox CB_Acre;
- private System.Windows.Forms.Label L_Acre;
- private System.Windows.Forms.Button B_ZeroElevation;
- private System.Windows.Forms.Button B_SetAll;
- private System.Windows.Forms.Button B_DumpAcre;
- private System.Windows.Forms.Button B_DumpAllAcres;
- private System.Windows.Forms.Button B_ImportAllAcres;
- private System.Windows.Forms.Button B_ImportAcre;
- private System.Windows.Forms.ContextMenuStrip CM_Click;
- private System.Windows.Forms.ToolStripMenuItem Menu_View;
- private System.Windows.Forms.ToolStripMenuItem Menu_Set;
- private System.Windows.Forms.ToolStripMenuItem Menu_Reset;
- private System.Windows.Forms.Button B_Up;
- private System.Windows.Forms.Button B_Left;
- private System.Windows.Forms.Button B_Right;
- private System.Windows.Forms.Button B_Down;
- private System.Windows.Forms.PictureBox PB_Map;
- private System.Windows.Forms.ContextMenuStrip CM_Picture;
- private System.Windows.Forms.ToolStripMenuItem Menu_SavePNG;
- private System.Windows.Forms.CheckBox CHK_SnapToAcre;
- private System.Windows.Forms.Label L_Coordinates;
- }
-}
\ No newline at end of file
diff --git a/NHSE.WinForms/Subforms/Map/TerrainEditor.cs b/NHSE.WinForms/Subforms/Map/TerrainEditor.cs
deleted file mode 100644
index 65e84f3..0000000
--- a/NHSE.WinForms/Subforms/Map/TerrainEditor.cs
+++ /dev/null
@@ -1,341 +0,0 @@
-using System;
-using System.Drawing;
-using System.Drawing.Imaging;
-using System.Windows.Forms;
-using NHSE.Core;
-using NHSE.Sprites;
-
-namespace NHSE.WinForms
-{
- public partial class TerrainEditor : Form
- {
- private readonly MainSave SAV;
- private readonly Button[] Grid;
- private readonly TerrainManager Terrain;
-
- private int GridWidth => Terrain.GridWidth;
- private int GridHeight => Terrain.GridHeight;
-
- private const int SquareSize = 50;
- private const int MapScale = 2;
-
- private readonly int[] Scale1;
- private readonly int[] ScaleX;
- private readonly Bitmap Map;
-
- public TerrainEditor(MainSave sav)
- {
- InitializeComponent();
- this.TranslateInterface(GameInfo.CurrentLanguage);
-
- SAV = sav;
- Terrain = new TerrainManager(SAV.GetTerrainTiles(), sav.GetAcreBytes());
- Grid = GenerateGrid(GridWidth, GridHeight);
-
- foreach (var acre in MapGrid.Acres)
- CB_Acre.Items.Add(acre.Name);
-
- Scale1 = new int[Terrain.MapWidth * Terrain.MapHeight];
- ScaleX = new int[Scale1.Length * MapScale * MapScale];
- Map = new Bitmap(Terrain.MapWidth * MapScale, Terrain.MapHeight * MapScale);
-
- PG_Tile.SelectedObject = new TerrainTile();
- CB_Acre.SelectedIndex = 0;
- ReloadMap();
- }
-
- private int X;
- private int Y;
-
- private int AcreIndex => CB_Acre.SelectedIndex;
-
- private void ChangeAcre(object sender, EventArgs e) => ChangeViewToAcre(AcreIndex);
-
- private void ChangeViewToAcre(int acre)
- {
- Terrain.GetViewAnchorCoordinates(acre, out X, out Y);
- LoadGrid(X, Y);
- UpdateArrowVisibility(acre);
- }
-
- private void ReloadMap() => PB_Map.Image = TerrainSprite.CreateMap(Terrain, MapScale, X, Y, Scale1, ScaleX, Map);
-
- private void LoadGrid(int topX, int topY)
- {
- for (int x = 0; x < GridWidth; x++)
- {
- for (int y = 0; y < GridHeight; y++)
- {
- var controlIndex = (y * GridWidth) + x;
- var b = Grid[controlIndex];
-
- var rx = topX + x;
- var ry = topY + y;
- var tile = Terrain.GetTile(rx, ry);
- RefreshTile(b, tile);
- }
- }
- ReloadMap();
- }
-
- private void UpdateArrowVisibility(int index)
- {
- B_Up.Enabled = index >= MapGrid.AcreWidth;
- B_Down.Enabled = index < MapGrid.AcreWidth * (MapGrid.AcreHeight - 1);
- B_Left.Enabled = index % MapGrid.AcreWidth != 0;
- B_Right.Enabled = index % MapGrid.AcreWidth != MapGrid.AcreWidth - 1;
- }
-
- private Button[] GenerateGrid(int w, int h)
- {
- var grid = new Button[w * h];
- int i = 0;
- for (int y = 0; y < h; y++)
- {
- for (int x = 0; x < w; x++)
- {
- var item = CreateGridItem(index: i, x, y);
- FLP_Tile.Controls.Add(item);
- grid[i++] = item;
- }
-
- var last = grid[i - 1];
- FLP_Tile.SetFlowBreak(last, true);
- }
-
- return grid;
- }
-
- private Button CreateGridItem(int index, int x, int y)
- {
- var button = new Button
- {
- Name = index.ToString(),
- Text = $"{index:000} ({x},{y})",
- Size = new Size(SquareSize, SquareSize),
- Padding = Padding.Empty,
- Margin = Padding.Empty,
- ContextMenuStrip = CM_Click,
- FlatStyle = FlatStyle.Flat,
- };
-
- button.Click += (sender, args) =>
- {
- var tile = GetTile(index);
- switch (ModifierKeys)
- {
- default: ViewTile(tile); return;
- case Keys.Shift: SetTile(tile, button); return;
- case Keys.Alt: DeleteTile(tile, button); return;
- }
- };
- return button;
- }
-
- private void ViewTile(TerrainTile tile)
- {
- var pgt = (TerrainTile)PG_Tile.SelectedObject;
- pgt.CopyFrom(tile);
- PG_Tile.SelectedObject = pgt;
- }
-
- private void SetTile(TerrainTile tile, Control obj)
- {
- var pgt = (TerrainTile)PG_Tile.SelectedObject;
- tile.CopyFrom(pgt);
- RefreshTile(obj, tile);
- ReloadMap();
- }
-
- private void DeleteTile(TerrainTile tile, Control obj)
- {
- tile.Clear();
- RefreshTile(obj, tile);
- ReloadMap();
- }
-
- private void B_Cancel_Click(object sender, EventArgs e) => Close();
-
- private void B_Save_Click(object sender, EventArgs e)
- {
- SAV.SetTerrainTiles(Terrain.Tiles);
- Close();
- }
-
- private void Menu_View_Click(object sender, EventArgs e)
- {
- GetTile(sender, out var tile, out _);
- ViewTile(tile);
- }
-
- private void Menu_Set_Click(object sender, EventArgs e)
- {
- GetTile(sender, out var tile, out var obj);
- SetTile(tile, obj);
- }
-
- private void Menu_Reset_Click(object sender, EventArgs e)
- {
- GetTile(sender, out var tile, out var obj);
- DeleteTile(tile, obj);
- }
-
- private void GetTile(object sender, out TerrainTile tile, out Button obj)
- {
- obj = WinFormsUtil.GetUnderlyingControl