MLO editing progress

This commit is contained in:
dexy
2019-12-28 23:24:36 +11:00
Unverified
parent ab0e007cfe
commit 0e11478d7b
10 changed files with 450 additions and 203 deletions
+29 -1
View File
@@ -39,6 +39,8 @@
this.label4 = new System.Windows.Forms.Label();
this.SelectedLocationEntityLabel = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.AddEntityButton = new System.Windows.Forms.Button();
this.DeleteButton = new System.Windows.Forms.Button();
this.SelectedLocationGroupBox.SuspendLayout();
this.SuspendLayout();
//
@@ -89,7 +91,7 @@
this.LocationsListBox.FormattingEnabled = true;
this.LocationsListBox.Location = new System.Drawing.Point(72, 50);
this.LocationsListBox.Name = "LocationsListBox";
this.LocationsListBox.Size = new System.Drawing.Size(200, 433);
this.LocationsListBox.Size = new System.Drawing.Size(200, 381);
this.LocationsListBox.TabIndex = 10;
this.LocationsListBox.SelectedIndexChanged += new System.EventHandler(this.LocationsListBox_SelectedIndexChanged);
//
@@ -147,11 +149,35 @@
this.label2.TabIndex = 10;
this.label2.Text = "Entity:";
//
// AddEntityButton
//
this.AddEntityButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.AddEntityButton.Location = new System.Drawing.Point(72, 453);
this.AddEntityButton.Name = "AddEntityButton";
this.AddEntityButton.Size = new System.Drawing.Size(95, 23);
this.AddEntityButton.TabIndex = 39;
this.AddEntityButton.Text = "Add Entity";
this.AddEntityButton.UseVisualStyleBackColor = true;
this.AddEntityButton.Click += new System.EventHandler(this.AddEntityButton_Click);
//
// DeleteButton
//
this.DeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.DeleteButton.Location = new System.Drawing.Point(313, 453);
this.DeleteButton.Name = "DeleteButton";
this.DeleteButton.Size = new System.Drawing.Size(95, 23);
this.DeleteButton.TabIndex = 40;
this.DeleteButton.Text = "Delete Entity Set";
this.DeleteButton.UseVisualStyleBackColor = true;
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
//
// EditYtypMloEntSetPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 505);
this.Controls.Add(this.AddEntityButton);
this.Controls.Add(this.DeleteButton);
this.Controls.Add(this.SelectedLocationGroupBox);
this.Controls.Add(this.LocationsListBox);
this.Controls.Add(this.label1);
@@ -180,5 +206,7 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox SelectedLocationRoomCombo;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button AddEntityButton;
private System.Windows.Forms.Button DeleteButton;
}
}
+12
View File
@@ -166,6 +166,18 @@ namespace CodeWalker.Project.Panels
}
private void AddEntityButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentEntitySet);
ProjectForm.NewMloEntity();
}
private void DeleteButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentEntitySet);
ProjectForm.DeleteMloEntitySet();
}
+32 -5
View File
@@ -44,6 +44,8 @@
this.CornersTextBox = new CodeWalker.WinForms.TextBoxFix();
this.label6 = new System.Windows.Forms.Label();
this.FlagsCheckedListBox = new System.Windows.Forms.CheckedListBox();
this.AddEntityButton = new System.Windows.Forms.Button();
this.DeleteButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// FlagsTextBox
@@ -175,17 +177,17 @@
this.FlagsCheckedListBox.CheckOnClick = true;
this.FlagsCheckedListBox.FormattingEnabled = true;
this.FlagsCheckedListBox.Items.AddRange(new object[] {
"1 - Hide from outside",
"2 - Unk02",
"1 - Hide inside from outside",
"2 - Hide outside from inside",
"4 - Mirror",
"8 - Extra bloom",
"16 - Unk05",
"32 - Unk06",
"32 - Use exterior LOD",
"64 - Hide when door closed",
"128 - Unk08",
"256 - Render sky light",
"256 - Mirror exterior portals",
"512 - Unk10",
"1024 - Render exterior",
"1024 - Mirror limbo entities",
"2048 - Unk12",
"4096 - Unk13",
"8192 - Unk14"});
@@ -195,11 +197,34 @@
this.FlagsCheckedListBox.TabIndex = 36;
this.FlagsCheckedListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.FlagsCheckedListBox_ItemCheck);
//
// AddEntityButton
//
this.AddEntityButton.Location = new System.Drawing.Point(107, 372);
this.AddEntityButton.Name = "AddEntityButton";
this.AddEntityButton.Size = new System.Drawing.Size(95, 23);
this.AddEntityButton.TabIndex = 37;
this.AddEntityButton.Text = "Add Entity";
this.AddEntityButton.UseVisualStyleBackColor = true;
this.AddEntityButton.Click += new System.EventHandler(this.AddEntityButton_Click);
//
// DeleteButton
//
this.DeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.DeleteButton.Location = new System.Drawing.Point(348, 372);
this.DeleteButton.Name = "DeleteButton";
this.DeleteButton.Size = new System.Drawing.Size(95, 23);
this.DeleteButton.TabIndex = 38;
this.DeleteButton.Text = "Delete Portal";
this.DeleteButton.UseVisualStyleBackColor = true;
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
//
// EditYtypMloPortalPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 505);
this.Controls.Add(this.AddEntityButton);
this.Controls.Add(this.DeleteButton);
this.Controls.Add(this.FlagsCheckedListBox);
this.Controls.Add(this.label6);
this.Controls.Add(this.CornersTextBox);
@@ -240,5 +265,7 @@
private WinForms.TextBoxFix CornersTextBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.CheckedListBox FlagsCheckedListBox;
private System.Windows.Forms.Button AddEntityButton;
private System.Windows.Forms.Button DeleteButton;
}
}
+12
View File
@@ -252,5 +252,17 @@ namespace CodeWalker.Project.Panels
ProjectForm.SetYtypHasChanged(true);
}
}
private void AddEntityButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentPortal);
ProjectForm.NewMloEntity();
}
private void DeleteButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentPortal);
ProjectForm.DeleteMloPortal();
}
}
}
+50 -23
View File
@@ -50,6 +50,8 @@
this.label8 = new System.Windows.Forms.Label();
this.ExteriorVisDepthTextBox = new CodeWalker.WinForms.TextBoxFix();
this.label9 = new System.Windows.Forms.Label();
this.DeleteButton = new System.Windows.Forms.Button();
this.AddEntityButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
@@ -58,7 +60,7 @@
this.label1.Location = new System.Drawing.Point(60, 44);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 13);
this.label1.TabIndex = 0;
this.label1.TabIndex = 3;
this.label1.Text = "BB Min:";
//
// label2
@@ -67,7 +69,7 @@
this.label2.Location = new System.Drawing.Point(57, 70);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 13);
this.label2.TabIndex = 1;
this.label2.TabIndex = 5;
this.label2.Text = "BB Max:";
//
// MinBoundsTextBox
@@ -77,7 +79,7 @@
this.MinBoundsTextBox.Location = new System.Drawing.Point(110, 41);
this.MinBoundsTextBox.Name = "MinBoundsTextBox";
this.MinBoundsTextBox.Size = new System.Drawing.Size(231, 20);
this.MinBoundsTextBox.TabIndex = 2;
this.MinBoundsTextBox.TabIndex = 4;
this.MinBoundsTextBox.TextChanged += new System.EventHandler(this.MinBoundsTextBox_TextChanged);
//
// MaxBoundsTextBox
@@ -87,7 +89,7 @@
this.MaxBoundsTextBox.Location = new System.Drawing.Point(110, 67);
this.MaxBoundsTextBox.Name = "MaxBoundsTextBox";
this.MaxBoundsTextBox.Size = new System.Drawing.Size(231, 20);
this.MaxBoundsTextBox.TabIndex = 3;
this.MaxBoundsTextBox.TabIndex = 6;
this.MaxBoundsTextBox.TextChanged += new System.EventHandler(this.MaxBoundsTextBox_TextChanged);
//
// label3
@@ -96,7 +98,7 @@
this.label3.Location = new System.Drawing.Point(63, 18);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 13);
this.label3.TabIndex = 4;
this.label3.TabIndex = 1;
this.label3.Text = "Name: ";
//
// NameTextBox
@@ -106,7 +108,7 @@
this.NameTextBox.Location = new System.Drawing.Point(110, 15);
this.NameTextBox.Name = "NameTextBox";
this.NameTextBox.Size = new System.Drawing.Size(231, 20);
this.NameTextBox.TabIndex = 5;
this.NameTextBox.TabIndex = 2;
this.NameTextBox.TextChanged += new System.EventHandler(this.NameTextBox_TextChanged);
//
// FlagsCheckedListBox
@@ -117,18 +119,18 @@
this.FlagsCheckedListBox.Items.AddRange(new object[] {
"1 - Unk01",
"2 - Unk02",
"4 - Unk03",
"4 - Disable exterior shadows",
"8 - Unk04",
"16 - Unk05",
"32 - Unk06",
"64 - Unk07",
"128 - Unk08",
"256 - Unk09",
"256 - Disable limbo portals",
"512 - Unk10"});
this.FlagsCheckedListBox.Location = new System.Drawing.Point(352, 41);
this.FlagsCheckedListBox.Name = "FlagsCheckedListBox";
this.FlagsCheckedListBox.Size = new System.Drawing.Size(201, 154);
this.FlagsCheckedListBox.TabIndex = 35;
this.FlagsCheckedListBox.TabIndex = 21;
this.FlagsCheckedListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.FlagsCheckedListBox_ItemCheck);
//
// FlagsTextBox
@@ -137,7 +139,7 @@
this.FlagsTextBox.Location = new System.Drawing.Point(406, 15);
this.FlagsTextBox.Name = "FlagsTextBox";
this.FlagsTextBox.Size = new System.Drawing.Size(147, 20);
this.FlagsTextBox.TabIndex = 34;
this.FlagsTextBox.TabIndex = 20;
this.FlagsTextBox.TextChanged += new System.EventHandler(this.FlagsTextBox_TextChanged);
//
// label14
@@ -147,7 +149,7 @@
this.label14.Location = new System.Drawing.Point(365, 18);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(35, 13);
this.label14.TabIndex = 33;
this.label14.TabIndex = 19;
this.label14.Text = "Flags:";
//
// BlendTextBox
@@ -157,7 +159,7 @@
this.BlendTextBox.Location = new System.Drawing.Point(110, 93);
this.BlendTextBox.Name = "BlendTextBox";
this.BlendTextBox.Size = new System.Drawing.Size(231, 20);
this.BlendTextBox.TabIndex = 37;
this.BlendTextBox.TabIndex = 8;
this.BlendTextBox.TextChanged += new System.EventHandler(this.BlendTextBox_TextChanged);
//
// label4
@@ -166,7 +168,7 @@
this.label4.Location = new System.Drawing.Point(67, 96);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(37, 13);
this.label4.TabIndex = 36;
this.label4.TabIndex = 7;
this.label4.Text = "Blend:";
//
// TimecycleTextBox
@@ -176,7 +178,7 @@
this.TimecycleTextBox.Location = new System.Drawing.Point(110, 119);
this.TimecycleTextBox.Name = "TimecycleTextBox";
this.TimecycleTextBox.Size = new System.Drawing.Size(231, 20);
this.TimecycleTextBox.TabIndex = 39;
this.TimecycleTextBox.TabIndex = 10;
this.TimecycleTextBox.TextChanged += new System.EventHandler(this.TimecycleTextBox_TextChanged);
//
// label5
@@ -185,7 +187,7 @@
this.label5.Location = new System.Drawing.Point(46, 122);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(58, 13);
this.label5.TabIndex = 38;
this.label5.TabIndex = 9;
this.label5.Text = "Timecycle:";
//
// Timecycle2TextBox
@@ -195,7 +197,7 @@
this.Timecycle2TextBox.Location = new System.Drawing.Point(110, 145);
this.Timecycle2TextBox.Name = "Timecycle2TextBox";
this.Timecycle2TextBox.Size = new System.Drawing.Size(231, 20);
this.Timecycle2TextBox.TabIndex = 41;
this.Timecycle2TextBox.TabIndex = 12;
this.Timecycle2TextBox.TextChanged += new System.EventHandler(this.Timecycle2TextBox_TextChanged);
//
// label6
@@ -204,7 +206,7 @@
this.label6.Location = new System.Drawing.Point(37, 148);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(67, 13);
this.label6.TabIndex = 40;
this.label6.TabIndex = 11;
this.label6.Text = "Timecycle 2:";
//
// PortalCountTextBox
@@ -214,7 +216,7 @@
this.PortalCountTextBox.Location = new System.Drawing.Point(110, 171);
this.PortalCountTextBox.Name = "PortalCountTextBox";
this.PortalCountTextBox.Size = new System.Drawing.Size(231, 20);
this.PortalCountTextBox.TabIndex = 43;
this.PortalCountTextBox.TabIndex = 14;
this.PortalCountTextBox.TextChanged += new System.EventHandler(this.PortalCountTextBox_TextChanged);
//
// label7
@@ -223,7 +225,7 @@
this.label7.Location = new System.Drawing.Point(36, 174);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(68, 13);
this.label7.TabIndex = 42;
this.label7.TabIndex = 13;
this.label7.Text = "Portal Count:";
//
// FloorIDTextBox
@@ -233,7 +235,7 @@
this.FloorIDTextBox.Location = new System.Drawing.Point(110, 197);
this.FloorIDTextBox.Name = "FloorIDTextBox";
this.FloorIDTextBox.Size = new System.Drawing.Size(231, 20);
this.FloorIDTextBox.TabIndex = 45;
this.FloorIDTextBox.TabIndex = 16;
this.FloorIDTextBox.TextChanged += new System.EventHandler(this.FloorIDTextBox_TextChanged);
//
// label8
@@ -242,7 +244,7 @@
this.label8.Location = new System.Drawing.Point(57, 200);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(47, 13);
this.label8.TabIndex = 44;
this.label8.TabIndex = 15;
this.label8.Text = "Floor ID:";
//
// ExteriorVisDepthTextBox
@@ -252,7 +254,7 @@
this.ExteriorVisDepthTextBox.Location = new System.Drawing.Point(110, 223);
this.ExteriorVisDepthTextBox.Name = "ExteriorVisDepthTextBox";
this.ExteriorVisDepthTextBox.Size = new System.Drawing.Size(231, 20);
this.ExteriorVisDepthTextBox.TabIndex = 47;
this.ExteriorVisDepthTextBox.TabIndex = 18;
this.ExteriorVisDepthTextBox.TextChanged += new System.EventHandler(this.ExteriorVisDepthTextBox_TextChanged);
//
// label9
@@ -261,14 +263,37 @@
this.label9.Location = new System.Drawing.Point(10, 226);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(94, 13);
this.label9.TabIndex = 46;
this.label9.TabIndex = 17;
this.label9.Text = "Exterior Vis Depth:";
//
// DeleteButton
//
this.DeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.DeleteButton.Location = new System.Drawing.Point(352, 277);
this.DeleteButton.Name = "DeleteButton";
this.DeleteButton.Size = new System.Drawing.Size(95, 23);
this.DeleteButton.TabIndex = 23;
this.DeleteButton.Text = "Delete Room";
this.DeleteButton.UseVisualStyleBackColor = true;
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
//
// AddEntityButton
//
this.AddEntityButton.Location = new System.Drawing.Point(110, 277);
this.AddEntityButton.Name = "AddEntityButton";
this.AddEntityButton.Size = new System.Drawing.Size(95, 23);
this.AddEntityButton.TabIndex = 22;
this.AddEntityButton.Text = "Add Entity";
this.AddEntityButton.UseVisualStyleBackColor = true;
this.AddEntityButton.Click += new System.EventHandler(this.AddEntityButton_Click);
//
// EditYtypMloRoomPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(565, 505);
this.Controls.Add(this.AddEntityButton);
this.Controls.Add(this.DeleteButton);
this.Controls.Add(this.ExteriorVisDepthTextBox);
this.Controls.Add(this.label9);
this.Controls.Add(this.FloorIDTextBox);
@@ -321,5 +346,7 @@
private System.Windows.Forms.Label label8;
private WinForms.TextBoxFix ExteriorVisDepthTextBox;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Button DeleteButton;
private System.Windows.Forms.Button AddEntityButton;
}
}
+12
View File
@@ -262,5 +262,17 @@ namespace CodeWalker.Project.Panels
}
}
}
private void AddEntityButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentRoom);
ProjectForm.NewMloEntity();
}
private void DeleteButton_Click(object sender, EventArgs e)
{
ProjectForm.SetProjectItem(CurrentRoom);
ProjectForm.DeleteMloRoom();
}
}
}