Audio Ambient Rule Panel clean-up

This commit is contained in:
dexy
2024-07-24 16:29:58 +10:00
Unverified
parent d0cdb1bd76
commit 05bd42f3a6
2 changed files with 194 additions and 194 deletions
+146 -146
View File
@@ -39,25 +39,25 @@
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.Unk13UpDown = new System.Windows.Forms.NumericUpDown(); this.MaxPathDepthUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk12UpDown = new System.Windows.Forms.NumericUpDown(); this.BlockabilityUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk11UpDown = new System.Windows.Forms.NumericUpDown(); this.MaxGlobalInstsUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk10UpDown = new System.Windows.Forms.NumericUpDown(); this.MaxLocalInstsUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk07UpDown = new System.Windows.Forms.NumericUpDown(); this.MinRepeatVarUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk08UpDown = new System.Windows.Forms.NumericUpDown(); this.SpawnHeightUpDown = new System.Windows.Forms.NumericUpDown();
this.FrequencyUpDown = new System.Windows.Forms.NumericUpDown(); this.MinRepeatUpDown = new System.Windows.Forms.NumericUpDown();
this.EndTimeUpDown = new System.Windows.Forms.NumericUpDown(); this.EndTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.StartTimeUpDown = new System.Windows.Forms.NumericUpDown(); this.StartTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.label23 = new System.Windows.Forms.Label(); this.label23 = new System.Windows.Forms.Label();
this.Flags5TextBox = new System.Windows.Forms.TextBox(); this.BankIDTextBox = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label(); this.label22 = new System.Windows.Forms.Label();
this.Flags4TextBox = new System.Windows.Forms.TextBox(); this.LastPlayedTextBox = new System.Windows.Forms.TextBox();
this.DeleteButton = new System.Windows.Forms.Button(); this.DeleteButton = new System.Windows.Forms.Button();
this.AddToProjectButton = new System.Windows.Forms.Button(); this.AddToProjectButton = new System.Windows.Forms.Button();
this.label21 = new System.Windows.Forms.Label(); this.label21 = new System.Windows.Forms.Label();
this.Flags2TextBox = new System.Windows.Forms.TextBox(); this.FlagsTextBox = new System.Windows.Forms.TextBox();
this.label20 = new System.Windows.Forms.Label(); this.label20 = new System.Windows.Forms.Label();
this.VariablesTextBox = new CodeWalker.WinForms.TextBoxFix(); this.ConditionsTextBox = new CodeWalker.WinForms.TextBoxFix();
this.label15 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label(); this.label18 = new System.Windows.Forms.Label();
@@ -68,7 +68,7 @@
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.OuterRadiusTextBox = new System.Windows.Forms.TextBox(); this.OuterRadiusTextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.Unk01TextBox = new System.Windows.Forms.TextBox(); this.WeightTextBox = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.CategoryTextBox = new System.Windows.Forms.TextBox(); this.CategoryTextBox = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
@@ -79,13 +79,13 @@
this.PositionTextBox = new System.Windows.Forms.TextBox(); this.PositionTextBox = new System.Windows.Forms.TextBox();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Unk13UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxPathDepthUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BlockabilityUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxGlobalInstsUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxLocalInstsUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MinRepeatVarUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.SpawnHeightUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.FrequencyUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MinRepeatUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@@ -122,25 +122,25 @@
this.tabPage1.Controls.Add(this.label9); this.tabPage1.Controls.Add(this.label9);
this.tabPage1.Controls.Add(this.label8); this.tabPage1.Controls.Add(this.label8);
this.tabPage1.Controls.Add(this.label5); this.tabPage1.Controls.Add(this.label5);
this.tabPage1.Controls.Add(this.Unk13UpDown); this.tabPage1.Controls.Add(this.MaxPathDepthUpDown);
this.tabPage1.Controls.Add(this.Unk12UpDown); this.tabPage1.Controls.Add(this.BlockabilityUpDown);
this.tabPage1.Controls.Add(this.Unk11UpDown); this.tabPage1.Controls.Add(this.MaxGlobalInstsUpDown);
this.tabPage1.Controls.Add(this.Unk10UpDown); this.tabPage1.Controls.Add(this.MaxLocalInstsUpDown);
this.tabPage1.Controls.Add(this.Unk07UpDown); this.tabPage1.Controls.Add(this.MinRepeatVarUpDown);
this.tabPage1.Controls.Add(this.Unk08UpDown); this.tabPage1.Controls.Add(this.SpawnHeightUpDown);
this.tabPage1.Controls.Add(this.FrequencyUpDown); this.tabPage1.Controls.Add(this.MinRepeatUpDown);
this.tabPage1.Controls.Add(this.EndTimeUpDown); this.tabPage1.Controls.Add(this.EndTimeUpDown);
this.tabPage1.Controls.Add(this.StartTimeUpDown); this.tabPage1.Controls.Add(this.StartTimeUpDown);
this.tabPage1.Controls.Add(this.label23); this.tabPage1.Controls.Add(this.label23);
this.tabPage1.Controls.Add(this.Flags5TextBox); this.tabPage1.Controls.Add(this.BankIDTextBox);
this.tabPage1.Controls.Add(this.label22); this.tabPage1.Controls.Add(this.label22);
this.tabPage1.Controls.Add(this.Flags4TextBox); this.tabPage1.Controls.Add(this.LastPlayedTextBox);
this.tabPage1.Controls.Add(this.DeleteButton); this.tabPage1.Controls.Add(this.DeleteButton);
this.tabPage1.Controls.Add(this.AddToProjectButton); this.tabPage1.Controls.Add(this.AddToProjectButton);
this.tabPage1.Controls.Add(this.label21); this.tabPage1.Controls.Add(this.label21);
this.tabPage1.Controls.Add(this.Flags2TextBox); this.tabPage1.Controls.Add(this.FlagsTextBox);
this.tabPage1.Controls.Add(this.label20); this.tabPage1.Controls.Add(this.label20);
this.tabPage1.Controls.Add(this.VariablesTextBox); this.tabPage1.Controls.Add(this.ConditionsTextBox);
this.tabPage1.Controls.Add(this.label15); this.tabPage1.Controls.Add(this.label15);
this.tabPage1.Controls.Add(this.label17); this.tabPage1.Controls.Add(this.label17);
this.tabPage1.Controls.Add(this.label18); this.tabPage1.Controls.Add(this.label18);
@@ -151,7 +151,7 @@
this.tabPage1.Controls.Add(this.label10); this.tabPage1.Controls.Add(this.label10);
this.tabPage1.Controls.Add(this.OuterRadiusTextBox); this.tabPage1.Controls.Add(this.OuterRadiusTextBox);
this.tabPage1.Controls.Add(this.label4); this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Controls.Add(this.Unk01TextBox); this.tabPage1.Controls.Add(this.WeightTextBox);
this.tabPage1.Controls.Add(this.label3); this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.CategoryTextBox); this.tabPage1.Controls.Add(this.CategoryTextBox);
this.tabPage1.Controls.Add(this.label2); this.tabPage1.Controls.Add(this.label2);
@@ -192,19 +192,19 @@
// label24 // label24
// //
this.label24.AutoSize = true; this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(7, 380); this.label24.Location = new System.Drawing.Point(7, 332);
this.label24.Name = "label24"; this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(112, 13); this.label24.Size = new System.Drawing.Size(112, 13);
this.label24.TabIndex = 87; this.label24.TabIndex = 57;
this.label24.Text = "Max Global Instances:"; this.label24.Text = "Max Global Instances:";
// //
// label11 // label11
// //
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(7, 354); this.label11.Location = new System.Drawing.Point(7, 384);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(87, 13); this.label11.Size = new System.Drawing.Size(87, 13);
this.label11.TabIndex = 86; this.label11.TabIndex = 61;
this.label11.Text = "Max Path Depth:"; this.label11.Text = "Max Path Depth:";
// //
// label9 // label9
@@ -230,100 +230,100 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 253); this.label5.Location = new System.Drawing.Point(7, 253);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(94, 13); this.label5.Size = new System.Drawing.Size(84, 13);
this.label5.TabIndex = 50; this.label5.TabIndex = 50;
this.label5.Text = "Max Repeat Time:"; this.label5.Text = "Min Repeat Var:";
// //
// Unk13UpDown // MaxPathDepthUpDown
// //
this.Unk13UpDown.Location = new System.Drawing.Point(126, 352); this.MaxPathDepthUpDown.Location = new System.Drawing.Point(126, 382);
this.Unk13UpDown.Maximum = new decimal(new int[] { this.MaxPathDepthUpDown.Maximum = new decimal(new int[] {
255, 255,
0, 0,
0, 0,
0}); 0});
this.Unk13UpDown.Name = "Unk13UpDown"; this.MaxPathDepthUpDown.Name = "MaxPathDepthUpDown";
this.Unk13UpDown.Size = new System.Drawing.Size(48, 20); this.MaxPathDepthUpDown.Size = new System.Drawing.Size(48, 20);
this.Unk13UpDown.TabIndex = 60; this.MaxPathDepthUpDown.TabIndex = 62;
this.Unk13UpDown.ValueChanged += new System.EventHandler(this.Unk13UpDown_ValueChanged); this.MaxPathDepthUpDown.ValueChanged += new System.EventHandler(this.MaxPathDepthUpDown_ValueChanged);
// //
// Unk12UpDown // BlockabilityUpDown
// //
this.Unk12UpDown.Location = new System.Drawing.Point(126, 326); this.BlockabilityUpDown.Location = new System.Drawing.Point(126, 356);
this.Unk12UpDown.Maximum = new decimal(new int[] { this.BlockabilityUpDown.Maximum = new decimal(new int[] {
255, 255,
0, 0,
0, 0,
0}); 0});
this.Unk12UpDown.Name = "Unk12UpDown"; this.BlockabilityUpDown.Name = "BlockabilityUpDown";
this.Unk12UpDown.Size = new System.Drawing.Size(48, 20); this.BlockabilityUpDown.Size = new System.Drawing.Size(48, 20);
this.Unk12UpDown.TabIndex = 59; this.BlockabilityUpDown.TabIndex = 60;
this.Unk12UpDown.ValueChanged += new System.EventHandler(this.Unk12UpDown_ValueChanged); this.BlockabilityUpDown.ValueChanged += new System.EventHandler(this.BlockabilityUpDown_ValueChanged);
// //
// Unk11UpDown // MaxGlobalInstsUpDown
// //
this.Unk11UpDown.Location = new System.Drawing.Point(126, 378); this.MaxGlobalInstsUpDown.Location = new System.Drawing.Point(126, 330);
this.Unk11UpDown.Maximum = new decimal(new int[] { this.MaxGlobalInstsUpDown.Maximum = new decimal(new int[] {
255, 255,
0, 0,
0, 0,
0}); 0});
this.Unk11UpDown.Name = "Unk11UpDown"; this.MaxGlobalInstsUpDown.Name = "MaxGlobalInstsUpDown";
this.Unk11UpDown.Size = new System.Drawing.Size(48, 20); this.MaxGlobalInstsUpDown.Size = new System.Drawing.Size(48, 20);
this.Unk11UpDown.TabIndex = 57; this.MaxGlobalInstsUpDown.TabIndex = 58;
this.Unk11UpDown.ValueChanged += new System.EventHandler(this.Unk11UpDown_ValueChanged); this.MaxGlobalInstsUpDown.ValueChanged += new System.EventHandler(this.MaxGlobalInstsUpDown_ValueChanged);
// //
// Unk10UpDown // MaxLocalInstsUpDown
// //
this.Unk10UpDown.Location = new System.Drawing.Point(126, 302); this.MaxLocalInstsUpDown.Location = new System.Drawing.Point(126, 304);
this.Unk10UpDown.Maximum = new decimal(new int[] { this.MaxLocalInstsUpDown.Maximum = new decimal(new int[] {
255, 255,
0, 0,
0, 0,
0}); 0});
this.Unk10UpDown.Name = "Unk10UpDown"; this.MaxLocalInstsUpDown.Name = "MaxLocalInstsUpDown";
this.Unk10UpDown.Size = new System.Drawing.Size(48, 20); this.MaxLocalInstsUpDown.Size = new System.Drawing.Size(48, 20);
this.Unk10UpDown.TabIndex = 56; this.MaxLocalInstsUpDown.TabIndex = 56;
this.Unk10UpDown.ValueChanged += new System.EventHandler(this.Unk10UpDown_ValueChanged); this.MaxLocalInstsUpDown.ValueChanged += new System.EventHandler(this.MaxLocalInstsUpDown_ValueChanged);
// //
// Unk07UpDown // MinRepeatVarUpDown
// //
this.Unk07UpDown.Location = new System.Drawing.Point(104, 253); this.MinRepeatVarUpDown.Location = new System.Drawing.Point(104, 253);
this.Unk07UpDown.Maximum = new decimal(new int[] { this.MinRepeatVarUpDown.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
0, 0,
0}); 0});
this.Unk07UpDown.Name = "Unk07UpDown"; this.MinRepeatVarUpDown.Name = "MinRepeatVarUpDown";
this.Unk07UpDown.Size = new System.Drawing.Size(102, 20); this.MinRepeatVarUpDown.Size = new System.Drawing.Size(102, 20);
this.Unk07UpDown.TabIndex = 51; this.MinRepeatVarUpDown.TabIndex = 51;
this.Unk07UpDown.ValueChanged += new System.EventHandler(this.Unk07UpDown_ValueChanged); this.MinRepeatVarUpDown.ValueChanged += new System.EventHandler(this.MinRepeatVarUpDown_ValueChanged);
// //
// Unk08UpDown // SpawnHeightUpDown
// //
this.Unk08UpDown.Location = new System.Drawing.Point(126, 278); this.SpawnHeightUpDown.Location = new System.Drawing.Point(126, 278);
this.Unk08UpDown.Maximum = new decimal(new int[] { this.SpawnHeightUpDown.Maximum = new decimal(new int[] {
255, 255,
0, 0,
0, 0,
0}); 0});
this.Unk08UpDown.Name = "Unk08UpDown"; this.SpawnHeightUpDown.Name = "SpawnHeightUpDown";
this.Unk08UpDown.Size = new System.Drawing.Size(48, 20); this.SpawnHeightUpDown.Size = new System.Drawing.Size(48, 20);
this.Unk08UpDown.TabIndex = 53; this.SpawnHeightUpDown.TabIndex = 53;
this.Unk08UpDown.ValueChanged += new System.EventHandler(this.Unk08UpDown_ValueChanged); this.SpawnHeightUpDown.ValueChanged += new System.EventHandler(this.SpawnHeightUpDown_ValueChanged);
// //
// FrequencyUpDown // MinRepeatUpDown
// //
this.FrequencyUpDown.Location = new System.Drawing.Point(104, 228); this.MinRepeatUpDown.Location = new System.Drawing.Point(104, 228);
this.FrequencyUpDown.Maximum = new decimal(new int[] { this.MinRepeatUpDown.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
0, 0,
0}); 0});
this.FrequencyUpDown.Name = "FrequencyUpDown"; this.MinRepeatUpDown.Name = "MinRepeatUpDown";
this.FrequencyUpDown.Size = new System.Drawing.Size(102, 20); this.MinRepeatUpDown.Size = new System.Drawing.Size(102, 20);
this.FrequencyUpDown.TabIndex = 49; this.MinRepeatUpDown.TabIndex = 49;
this.FrequencyUpDown.ValueChanged += new System.EventHandler(this.FrequencyUpDown_ValueChanged); this.MinRepeatUpDown.ValueChanged += new System.EventHandler(this.MinRepeatUpDown_ValueChanged);
// //
// EndTimeUpDown // EndTimeUpDown
// //
@@ -361,14 +361,14 @@
this.label23.TabIndex = 80; this.label23.TabIndex = 80;
this.label23.Text = "Bank ID:"; this.label23.Text = "Bank ID:";
// //
// Flags5TextBox // BankIDTextBox
// //
this.Flags5TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.BankIDTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags5TextBox.Location = new System.Drawing.Point(412, 78); this.BankIDTextBox.Location = new System.Drawing.Point(412, 78);
this.Flags5TextBox.Name = "Flags5TextBox"; this.BankIDTextBox.Name = "BankIDTextBox";
this.Flags5TextBox.Size = new System.Drawing.Size(132, 20); this.BankIDTextBox.Size = new System.Drawing.Size(132, 20);
this.Flags5TextBox.TabIndex = 81; this.BankIDTextBox.TabIndex = 81;
this.Flags5TextBox.TextChanged += new System.EventHandler(this.Flags5TextBox_TextChanged); this.BankIDTextBox.TextChanged += new System.EventHandler(this.BankIDTextBox_TextChanged);
// //
// label22 // label22
// //
@@ -380,14 +380,14 @@
this.label22.TabIndex = 78; this.label22.TabIndex = 78;
this.label22.Text = "Last Played:"; this.label22.Text = "Last Played:";
// //
// Flags4TextBox // LastPlayedTextBox
// //
this.Flags4TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.LastPlayedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags4TextBox.Location = new System.Drawing.Point(412, 54); this.LastPlayedTextBox.Location = new System.Drawing.Point(412, 54);
this.Flags4TextBox.Name = "Flags4TextBox"; this.LastPlayedTextBox.Name = "LastPlayedTextBox";
this.Flags4TextBox.Size = new System.Drawing.Size(132, 20); this.LastPlayedTextBox.Size = new System.Drawing.Size(132, 20);
this.Flags4TextBox.TabIndex = 79; this.LastPlayedTextBox.TabIndex = 79;
this.Flags4TextBox.TextChanged += new System.EventHandler(this.Flags4TextBox_TextChanged); this.LastPlayedTextBox.TextChanged += new System.EventHandler(this.LastPlayedTextBox_TextChanged);
// //
// DeleteButton // DeleteButton
// //
@@ -421,14 +421,14 @@
this.label21.TabIndex = 74; this.label21.TabIndex = 74;
this.label21.Text = "Flags:"; this.label21.Text = "Flags:";
// //
// Flags2TextBox // FlagsTextBox
// //
this.Flags2TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.FlagsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags2TextBox.Location = new System.Drawing.Point(412, 30); this.FlagsTextBox.Location = new System.Drawing.Point(412, 30);
this.Flags2TextBox.Name = "Flags2TextBox"; this.FlagsTextBox.Name = "FlagsTextBox";
this.Flags2TextBox.Size = new System.Drawing.Size(132, 20); this.FlagsTextBox.Size = new System.Drawing.Size(132, 20);
this.Flags2TextBox.TabIndex = 75; this.FlagsTextBox.TabIndex = 75;
this.Flags2TextBox.TextChanged += new System.EventHandler(this.Flags2TextBox_TextChanged); this.FlagsTextBox.TextChanged += new System.EventHandler(this.FlagsTextBox_TextChanged);
// //
// label20 // label20
// //
@@ -440,31 +440,31 @@
this.label20.TabIndex = 82; this.label20.TabIndex = 82;
this.label20.Text = "Conditions:"; this.label20.Text = "Conditions:";
// //
// VariablesTextBox // ConditionsTextBox
// //
this.VariablesTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ConditionsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.VariablesTextBox.Location = new System.Drawing.Point(282, 271); this.ConditionsTextBox.Location = new System.Drawing.Point(282, 271);
this.VariablesTextBox.Multiline = true; this.ConditionsTextBox.Multiline = true;
this.VariablesTextBox.Name = "VariablesTextBox"; this.ConditionsTextBox.Name = "ConditionsTextBox";
this.VariablesTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.ConditionsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.VariablesTextBox.Size = new System.Drawing.Size(262, 140); this.ConditionsTextBox.Size = new System.Drawing.Size(262, 140);
this.VariablesTextBox.TabIndex = 83; this.ConditionsTextBox.TabIndex = 83;
this.VariablesTextBox.WordWrap = false; this.ConditionsTextBox.WordWrap = false;
this.VariablesTextBox.TextChanged += new System.EventHandler(this.VariablesTextBox_TextChanged); this.ConditionsTextBox.TextChanged += new System.EventHandler(this.ConditionsTextBox_TextChanged);
// //
// label15 // label15
// //
this.label15.AutoSize = true; this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(7, 328); this.label15.Location = new System.Drawing.Point(7, 358);
this.label15.Name = "label15"; this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(96, 13); this.label15.Size = new System.Drawing.Size(96, 13);
this.label15.TabIndex = 58; this.label15.TabIndex = 59;
this.label15.Text = "Blockability Factor:"; this.label15.Text = "Blockability Factor:";
// //
// label17 // label17
// //
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(7, 304); this.label17.Location = new System.Drawing.Point(7, 306);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(108, 13); this.label17.Size = new System.Drawing.Size(108, 13);
this.label17.TabIndex = 55; this.label17.TabIndex = 55;
@@ -544,15 +544,15 @@
this.label4.TabIndex = 41; this.label4.TabIndex = 41;
this.label4.Text = "Weight:"; this.label4.Text = "Weight:";
// //
// Unk01TextBox // WeightTextBox
// //
this.Unk01TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.WeightTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.Unk01TextBox.Location = new System.Drawing.Point(84, 151); this.WeightTextBox.Location = new System.Drawing.Point(84, 151);
this.Unk01TextBox.Name = "Unk01TextBox"; this.WeightTextBox.Name = "WeightTextBox";
this.Unk01TextBox.Size = new System.Drawing.Size(237, 20); this.WeightTextBox.Size = new System.Drawing.Size(237, 20);
this.Unk01TextBox.TabIndex = 42; this.WeightTextBox.TabIndex = 42;
this.Unk01TextBox.TextChanged += new System.EventHandler(this.Unk01TextBox_TextChanged); this.WeightTextBox.TextChanged += new System.EventHandler(this.WeightTextBox_TextChanged);
// //
// label3 // label3
// //
@@ -644,13 +644,13 @@
this.tabControl1.ResumeLayout(false); this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false); this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout(); this.tabPage1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.Unk13UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxPathDepthUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BlockabilityUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxGlobalInstsUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MaxLocalInstsUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MinRepeatVarUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.SpawnHeightUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.FrequencyUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MinRepeatUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
@@ -665,9 +665,9 @@
private System.Windows.Forms.Button DeleteButton; private System.Windows.Forms.Button DeleteButton;
private System.Windows.Forms.Button AddToProjectButton; private System.Windows.Forms.Button AddToProjectButton;
private System.Windows.Forms.Label label21; private System.Windows.Forms.Label label21;
private System.Windows.Forms.TextBox Flags2TextBox; private System.Windows.Forms.TextBox FlagsTextBox;
private System.Windows.Forms.Label label20; private System.Windows.Forms.Label label20;
private WinForms.TextBoxFix VariablesTextBox; private WinForms.TextBoxFix ConditionsTextBox;
private System.Windows.Forms.Label label15; private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label17; private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18; private System.Windows.Forms.Label label18;
@@ -678,7 +678,7 @@
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox OuterRadiusTextBox; private System.Windows.Forms.TextBox OuterRadiusTextBox;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox Unk01TextBox; private System.Windows.Forms.TextBox WeightTextBox;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox CategoryTextBox; private System.Windows.Forms.TextBox CategoryTextBox;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
@@ -688,18 +688,18 @@
private System.Windows.Forms.Label label16; private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox PositionTextBox; private System.Windows.Forms.TextBox PositionTextBox;
private System.Windows.Forms.Label label23; private System.Windows.Forms.Label label23;
private System.Windows.Forms.TextBox Flags5TextBox; private System.Windows.Forms.TextBox BankIDTextBox;
private System.Windows.Forms.Label label22; private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox Flags4TextBox; private System.Windows.Forms.TextBox LastPlayedTextBox;
private System.Windows.Forms.NumericUpDown FrequencyUpDown; private System.Windows.Forms.NumericUpDown MinRepeatUpDown;
private System.Windows.Forms.NumericUpDown EndTimeUpDown; private System.Windows.Forms.NumericUpDown EndTimeUpDown;
private System.Windows.Forms.NumericUpDown StartTimeUpDown; private System.Windows.Forms.NumericUpDown StartTimeUpDown;
private System.Windows.Forms.NumericUpDown Unk07UpDown; private System.Windows.Forms.NumericUpDown MinRepeatVarUpDown;
private System.Windows.Forms.NumericUpDown Unk08UpDown; private System.Windows.Forms.NumericUpDown SpawnHeightUpDown;
private System.Windows.Forms.NumericUpDown Unk13UpDown; private System.Windows.Forms.NumericUpDown MaxPathDepthUpDown;
private System.Windows.Forms.NumericUpDown Unk12UpDown; private System.Windows.Forms.NumericUpDown BlockabilityUpDown;
private System.Windows.Forms.NumericUpDown Unk11UpDown; private System.Windows.Forms.NumericUpDown MaxGlobalInstsUpDown;
private System.Windows.Forms.NumericUpDown Unk10UpDown; private System.Windows.Forms.NumericUpDown MaxLocalInstsUpDown;
private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
@@ -60,21 +60,21 @@ namespace CodeWalker.Project.Panels
OuterRadiusTextBox.Text = string.Empty; OuterRadiusTextBox.Text = string.Empty;
ChildSoundTextBox.Text = string.Empty; ChildSoundTextBox.Text = string.Empty;
CategoryTextBox.Text = string.Empty; CategoryTextBox.Text = string.Empty;
Unk01TextBox.Text = string.Empty; WeightTextBox.Text = string.Empty;
StartTimeUpDown.Value = 0; StartTimeUpDown.Value = 0;
EndTimeUpDown.Value = 0; EndTimeUpDown.Value = 0;
FrequencyUpDown.Value = 0; MinRepeatUpDown.Value = 0;
Unk07UpDown.Value = 0; MinRepeatVarUpDown.Value = 0;
Unk08UpDown.Value = 0; SpawnHeightUpDown.Value = 0;
ExplicitSpawnCombo.SelectedItem = null; ExplicitSpawnCombo.SelectedItem = null;
Unk10UpDown.Value = 0; MaxLocalInstsUpDown.Value = 0;
Unk11UpDown.Value = 0; MaxGlobalInstsUpDown.Value = 0;
Unk12UpDown.Value = 0; BlockabilityUpDown.Value = 0;
Unk13UpDown.Value = 0; MaxPathDepthUpDown.Value = 0;
Flags2TextBox.Text = string.Empty; FlagsTextBox.Text = string.Empty;
Flags4TextBox.Text = string.Empty; LastPlayedTextBox.Text = string.Empty;
Flags5TextBox.Text = string.Empty; BankIDTextBox.Text = string.Empty;
VariablesTextBox.Text = string.Empty; ConditionsTextBox.Text = string.Empty;
populatingui = false; populatingui = false;
} }
else else
@@ -90,20 +90,20 @@ namespace CodeWalker.Project.Panels
OuterRadiusTextBox.Text = FloatUtil.ToString(e.MaxDist); OuterRadiusTextBox.Text = FloatUtil.ToString(e.MaxDist);
ChildSoundTextBox.Text = e.ChildSound.ToString(); ChildSoundTextBox.Text = e.ChildSound.ToString();
CategoryTextBox.Text = e.Category.ToString(); CategoryTextBox.Text = e.Category.ToString();
Unk01TextBox.Text = FloatUtil.ToString(e.Weight); WeightTextBox.Text = FloatUtil.ToString(e.Weight);
StartTimeUpDown.Value = e.MinTimeMinutes; StartTimeUpDown.Value = e.MinTimeMinutes;
EndTimeUpDown.Value = e.MaxTimeMinutes; EndTimeUpDown.Value = e.MaxTimeMinutes;
FrequencyUpDown.Value = e.MinRepeatTime; MinRepeatUpDown.Value = e.MinRepeatTime;
Unk07UpDown.Value = e.MinRepeatTimeVariance; MinRepeatVarUpDown.Value = e.MinRepeatTimeVariance;
Unk08UpDown.Value = e.SpawnHeight; SpawnHeightUpDown.Value = e.SpawnHeight;
ExplicitSpawnCombo.SelectedItem = e.ExplicitSpawn; ExplicitSpawnCombo.SelectedItem = e.ExplicitSpawn;
Unk10UpDown.Value = e.MaxLocalInstances; MaxLocalInstsUpDown.Value = e.MaxLocalInstances;
Unk11UpDown.Value = e.MaxGlobalInstances; MaxGlobalInstsUpDown.Value = e.MaxGlobalInstances;
Unk12UpDown.Value = e.BlockabilityFactor; BlockabilityUpDown.Value = e.BlockabilityFactor;
Unk13UpDown.Value = e.MaxPathDepth; MaxPathDepthUpDown.Value = e.MaxPathDepth;
Flags2TextBox.Text = e.Flags.Hex; FlagsTextBox.Text = e.Flags.Hex;
Flags4TextBox.Text = FloatUtil.ToString(e.LastPlayTime); LastPlayedTextBox.Text = FloatUtil.ToString(e.LastPlayTime);
Flags5TextBox.Text = FloatUtil.ToString(e.DynamicBankID); BankIDTextBox.Text = FloatUtil.ToString(e.DynamicBankID);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if (e.Conditions != null) if (e.Conditions != null)
@@ -118,7 +118,7 @@ namespace CodeWalker.Project.Panels
sb.AppendLine(); sb.AppendLine();
} }
} }
VariablesTextBox.Text = sb.ToString(); ConditionsTextBox.Text = sb.ToString();
populatingui = false; populatingui = false;
@@ -260,12 +260,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk01TextBox_TextChanged(object sender, EventArgs e) private void WeightTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
float unk = FloatUtil.Parse(Unk01TextBox.Text); float unk = FloatUtil.Parse(WeightTextBox.Text);
if (CurrentRule.AmbientRule.Weight != unk) if (CurrentRule.AmbientRule.Weight != unk)
{ {
CurrentRule.AmbientRule.Weight = unk; CurrentRule.AmbientRule.Weight = unk;
@@ -302,12 +302,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void FrequencyUpDown_ValueChanged(object sender, EventArgs e) private void MinRepeatUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
ushort unk = (ushort)FrequencyUpDown.Value; ushort unk = (ushort)MinRepeatUpDown.Value;
if (CurrentRule.AmbientRule.MinRepeatTime != unk) if (CurrentRule.AmbientRule.MinRepeatTime != unk)
{ {
CurrentRule.AmbientRule.MinRepeatTime = unk; CurrentRule.AmbientRule.MinRepeatTime = unk;
@@ -316,12 +316,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk07UpDown_ValueChanged(object sender, EventArgs e) private void MinRepeatVarUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
ushort unk = (ushort)Unk07UpDown.Value; ushort unk = (ushort)MinRepeatVarUpDown.Value;
if (CurrentRule.AmbientRule.MinRepeatTimeVariance != unk) if (CurrentRule.AmbientRule.MinRepeatTimeVariance != unk)
{ {
CurrentRule.AmbientRule.MinRepeatTimeVariance = unk; CurrentRule.AmbientRule.MinRepeatTimeVariance = unk;
@@ -330,12 +330,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk08UpDown_ValueChanged(object sender, EventArgs e) private void SpawnHeightUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
byte unk = (byte)Unk08UpDown.Value; byte unk = (byte)SpawnHeightUpDown.Value;
if (CurrentRule.AmbientRule.SpawnHeight != unk) if (CurrentRule.AmbientRule.SpawnHeight != unk)
{ {
CurrentRule.AmbientRule.SpawnHeight = unk; CurrentRule.AmbientRule.SpawnHeight = unk;
@@ -358,12 +358,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk10UpDown_ValueChanged(object sender, EventArgs e) private void MaxLocalInstsUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
byte unk = (byte)Unk10UpDown.Value; byte unk = (byte)MaxLocalInstsUpDown.Value;
if (CurrentRule.AmbientRule.MaxLocalInstances != unk) if (CurrentRule.AmbientRule.MaxLocalInstances != unk)
{ {
CurrentRule.AmbientRule.MaxLocalInstances = unk; CurrentRule.AmbientRule.MaxLocalInstances = unk;
@@ -372,12 +372,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk11UpDown_ValueChanged(object sender, EventArgs e) private void MaxGlobalInstsUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
byte unk = (byte)Unk11UpDown.Value; byte unk = (byte)MaxGlobalInstsUpDown.Value;
if (CurrentRule.AmbientRule.MaxGlobalInstances != unk) if (CurrentRule.AmbientRule.MaxGlobalInstances != unk)
{ {
CurrentRule.AmbientRule.MaxGlobalInstances = unk; CurrentRule.AmbientRule.MaxGlobalInstances = unk;
@@ -386,12 +386,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk12UpDown_ValueChanged(object sender, EventArgs e) private void BlockabilityUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
byte unk = (byte)Unk12UpDown.Value; byte unk = (byte)BlockabilityUpDown.Value;
if (CurrentRule.AmbientRule.BlockabilityFactor != unk) if (CurrentRule.AmbientRule.BlockabilityFactor != unk)
{ {
CurrentRule.AmbientRule.BlockabilityFactor = unk; CurrentRule.AmbientRule.BlockabilityFactor = unk;
@@ -400,12 +400,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk13UpDown_ValueChanged(object sender, EventArgs e) private void MaxPathDepthUpDown_ValueChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
byte unk = (byte)Unk13UpDown.Value; byte unk = (byte)MaxPathDepthUpDown.Value;
if (CurrentRule.AmbientRule.MaxPathDepth != unk) if (CurrentRule.AmbientRule.MaxPathDepth != unk)
{ {
CurrentRule.AmbientRule.MaxPathDepth = unk; CurrentRule.AmbientRule.MaxPathDepth = unk;
@@ -414,13 +414,13 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Flags2TextBox_TextChanged(object sender, EventArgs e) private void FlagsTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
uint flags = 0; uint flags = 0;
if (uint.TryParse(Flags2TextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags)) if (uint.TryParse(FlagsTextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags))
{ {
if (CurrentRule.AmbientRule.Flags != flags) if (CurrentRule.AmbientRule.Flags != flags)
{ {
@@ -431,13 +431,13 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Flags4TextBox_TextChanged(object sender, EventArgs e) private void LastPlayedTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
uint flags = 0; uint flags = 0;
if (uint.TryParse(Flags4TextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags)) if (uint.TryParse(LastPlayedTextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags))
{ {
if (CurrentRule.AmbientRule.LastPlayTime != flags) if (CurrentRule.AmbientRule.LastPlayTime != flags)
{ {
@@ -448,13 +448,13 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Flags5TextBox_TextChanged(object sender, EventArgs e) private void BankIDTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
uint flags = 0; uint flags = 0;
if (uint.TryParse(Flags5TextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags)) if (uint.TryParse(BankIDTextBox.Text, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out flags))
{ {
if (CurrentRule.AmbientRule.DynamicBankID != flags) if (CurrentRule.AmbientRule.DynamicBankID != flags)
{ {
@@ -465,12 +465,12 @@ namespace CodeWalker.Project.Panels
} }
} }
private void VariablesTextBox_TextChanged(object sender, EventArgs e) private void ConditionsTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRule?.AmbientRule == null) return; if (CurrentRule?.AmbientRule == null) return;
var paramstrs = VariablesTextBox.Text.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); var paramstrs = ConditionsTextBox.Text.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
if (paramstrs?.Length > 0) if (paramstrs?.Length > 0)
{ {
var paramlist = new List<Dat151AmbientRule.Condition>(); var paramlist = new List<Dat151AmbientRule.Condition>();