Fixed UI problems with AudioEmitter Start/End times and changed field types to ushort

This commit is contained in:
dexy 2021-12-10 14:55:15 +11:00
parent 09a6a71707
commit 5e7e91043e
4 changed files with 282 additions and 256 deletions

View File

@ -5519,8 +5519,8 @@ namespace CodeWalker.GameFiles
public float Unk01 { get; set; } //1, 5, 100, ...
public float InnerRad { get; set; } //0, 4, ... 100 ... min value?
public float OuterRad { get; set; } //15, 16, 12, 10, 20, 300 ... max value?
public FlagsUshort StartTime { get; set; }
public FlagsUshort EndTime { get; set; }
public ushort StartTime { get; set; } //game minutes
public ushort EndTime { get; set; }
public FlagsUshort Unk06 { get; set; } //0..600
public FlagsUshort Unk07 { get; set; } //0..150
public FlagsByte Unk08 { get; set; } //0,1,2
@ -5623,16 +5623,6 @@ namespace CodeWalker.GameFiles
#region testing
switch (StartTime.Value)//ushort in minutes
{
default:
break;
}
switch (EndTime.Value)//ushort in minutes
{
default:
break;
}
switch (Unk06.Value)
{
case 0:
@ -5887,8 +5877,8 @@ namespace CodeWalker.GameFiles
RelXml.ValueTag(sb, indent, "Unk01", FloatUtil.ToString(Unk01));
RelXml.ValueTag(sb, indent, "InnerRad", FloatUtil.ToString(InnerRad));
RelXml.ValueTag(sb, indent, "OuterRad", FloatUtil.ToString(OuterRad));
RelXml.ValueTag(sb, indent, "StartTime", StartTime.Value.ToString());
RelXml.ValueTag(sb, indent, "EndTime", EndTime.Value.ToString());
RelXml.ValueTag(sb, indent, "StartTime", StartTime.ToString());
RelXml.ValueTag(sb, indent, "EndTime", EndTime.ToString());
RelXml.ValueTag(sb, indent, "Unk06", Unk06.Value.ToString());
RelXml.ValueTag(sb, indent, "Unk07", Unk07.Value.ToString());
RelXml.ValueTag(sb, indent, "Unk08", Unk08.Value.ToString());

View File

@ -32,6 +32,22 @@
this.GoToButton = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.Unk13UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk12UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk11UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk10UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk09UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk07UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk08UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk06UpDown = new System.Windows.Forms.NumericUpDown();
this.EndTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.StartTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.label23 = new System.Windows.Forms.Label();
this.Flags5TextBox = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.Flags4TextBox = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.Flags3TextBox = new System.Windows.Forms.TextBox();
this.DeleteButton = new System.Windows.Forms.Button();
this.AddToProjectButton = new System.Windows.Forms.Button();
this.label21 = new System.Windows.Forms.Label();
@ -61,34 +77,21 @@
this.InnerRadTextBox = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.PositionTextBox = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.Flags3TextBox = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.Flags4TextBox = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.Flags5TextBox = new System.Windows.Forms.TextBox();
this.StartTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.EndTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.Unk06UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk08UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk07UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk09UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk10UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk11UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk12UpDown = new System.Windows.Forms.NumericUpDown();
this.Unk13UpDown = new System.Windows.Forms.NumericUpDown();
this.label5 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk06UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk09UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk13UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk09UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Unk06UpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).BeginInit();
this.SuspendLayout();
//
// GoToButton
@ -116,6 +119,9 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.label9);
this.tabPage1.Controls.Add(this.label8);
this.tabPage1.Controls.Add(this.label5);
this.tabPage1.Controls.Add(this.Unk13UpDown);
this.tabPage1.Controls.Add(this.Unk12UpDown);
this.tabPage1.Controls.Add(this.Unk11UpDown);
@ -169,13 +175,200 @@
this.tabPage1.Text = "Ambient Emitter";
this.tabPage1.UseVisualStyleBackColor = true;
//
// Unk13UpDown
//
this.Unk13UpDown.Location = new System.Drawing.Point(138, 325);
this.Unk13UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk13UpDown.Name = "Unk13UpDown";
this.Unk13UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk13UpDown.TabIndex = 60;
this.Unk13UpDown.ValueChanged += new System.EventHandler(this.Unk13UpDown_ValueChanged);
//
// Unk12UpDown
//
this.Unk12UpDown.Location = new System.Drawing.Point(84, 325);
this.Unk12UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk12UpDown.Name = "Unk12UpDown";
this.Unk12UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk12UpDown.TabIndex = 59;
this.Unk12UpDown.ValueChanged += new System.EventHandler(this.Unk12UpDown_ValueChanged);
//
// Unk11UpDown
//
this.Unk11UpDown.Location = new System.Drawing.Point(138, 301);
this.Unk11UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk11UpDown.Name = "Unk11UpDown";
this.Unk11UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk11UpDown.TabIndex = 57;
this.Unk11UpDown.ValueChanged += new System.EventHandler(this.Unk11UpDown_ValueChanged);
//
// Unk10UpDown
//
this.Unk10UpDown.Location = new System.Drawing.Point(84, 301);
this.Unk10UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk10UpDown.Name = "Unk10UpDown";
this.Unk10UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk10UpDown.TabIndex = 56;
this.Unk10UpDown.ValueChanged += new System.EventHandler(this.Unk10UpDown_ValueChanged);
//
// Unk09UpDown
//
this.Unk09UpDown.Location = new System.Drawing.Point(138, 277);
this.Unk09UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk09UpDown.Name = "Unk09UpDown";
this.Unk09UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk09UpDown.TabIndex = 54;
this.Unk09UpDown.ValueChanged += new System.EventHandler(this.Unk09UpDown_ValueChanged);
//
// Unk07UpDown
//
this.Unk07UpDown.Location = new System.Drawing.Point(84, 251);
this.Unk07UpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.Unk07UpDown.Name = "Unk07UpDown";
this.Unk07UpDown.Size = new System.Drawing.Size(102, 20);
this.Unk07UpDown.TabIndex = 51;
this.Unk07UpDown.ValueChanged += new System.EventHandler(this.Unk07UpDown_ValueChanged);
//
// Unk08UpDown
//
this.Unk08UpDown.Location = new System.Drawing.Point(84, 277);
this.Unk08UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk08UpDown.Name = "Unk08UpDown";
this.Unk08UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk08UpDown.TabIndex = 53;
this.Unk08UpDown.ValueChanged += new System.EventHandler(this.Unk08UpDown_ValueChanged);
//
// Unk06UpDown
//
this.Unk06UpDown.Location = new System.Drawing.Point(84, 227);
this.Unk06UpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.Unk06UpDown.Name = "Unk06UpDown";
this.Unk06UpDown.Size = new System.Drawing.Size(102, 20);
this.Unk06UpDown.TabIndex = 49;
this.Unk06UpDown.ValueChanged += new System.EventHandler(this.Unk06UpDown_ValueChanged);
//
// EndTimeUpDown
//
this.EndTimeUpDown.Location = new System.Drawing.Point(84, 201);
this.EndTimeUpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.EndTimeUpDown.Name = "EndTimeUpDown";
this.EndTimeUpDown.Size = new System.Drawing.Size(102, 20);
this.EndTimeUpDown.TabIndex = 47;
this.EndTimeUpDown.ValueChanged += new System.EventHandler(this.EndTimeUpDown_ValueChanged);
//
// StartTimeUpDown
//
this.StartTimeUpDown.Location = new System.Drawing.Point(84, 175);
this.StartTimeUpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.StartTimeUpDown.Name = "StartTimeUpDown";
this.StartTimeUpDown.Size = new System.Drawing.Size(102, 20);
this.StartTimeUpDown.TabIndex = 44;
this.StartTimeUpDown.ValueChanged += new System.EventHandler(this.StartTimeUpDown_ValueChanged);
//
// label23
//
this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(340, 178);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(44, 13);
this.label23.TabIndex = 80;
this.label23.Text = "Flags 5:";
//
// Flags5TextBox
//
this.Flags5TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags5TextBox.Location = new System.Drawing.Point(390, 175);
this.Flags5TextBox.Name = "Flags5TextBox";
this.Flags5TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags5TextBox.TabIndex = 81;
this.Flags5TextBox.TextChanged += new System.EventHandler(this.Flags5TextBox_TextChanged);
//
// label22
//
this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(340, 154);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(44, 13);
this.label22.TabIndex = 78;
this.label22.Text = "Flags 4:";
//
// Flags4TextBox
//
this.Flags4TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags4TextBox.Location = new System.Drawing.Point(390, 151);
this.Flags4TextBox.Name = "Flags4TextBox";
this.Flags4TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags4TextBox.TabIndex = 79;
this.Flags4TextBox.TextChanged += new System.EventHandler(this.Flags4TextBox_TextChanged);
//
// label19
//
this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(340, 130);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(44, 13);
this.label19.TabIndex = 76;
this.label19.Text = "Flags 3:";
//
// Flags3TextBox
//
this.Flags3TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags3TextBox.Location = new System.Drawing.Point(390, 127);
this.Flags3TextBox.Name = "Flags3TextBox";
this.Flags3TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags3TextBox.TabIndex = 77;
this.Flags3TextBox.TextChanged += new System.EventHandler(this.Flags3TextBox_TextChanged);
//
// 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(343, 3);
this.DeleteButton.Name = "DeleteButton";
this.DeleteButton.Size = new System.Drawing.Size(93, 23);
this.DeleteButton.TabIndex = 75;
this.DeleteButton.TabIndex = 85;
this.DeleteButton.Text = "Delete emitter";
this.DeleteButton.UseVisualStyleBackColor = true;
this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
@ -186,7 +379,7 @@
this.AddToProjectButton.Location = new System.Drawing.Point(452, 3);
this.AddToProjectButton.Name = "AddToProjectButton";
this.AddToProjectButton.Size = new System.Drawing.Size(93, 23);
this.AddToProjectButton.TabIndex = 74;
this.AddToProjectButton.TabIndex = 84;
this.AddToProjectButton.Text = "Add to project";
this.AddToProjectButton.UseVisualStyleBackColor = true;
this.AddToProjectButton.Click += new System.EventHandler(this.AddToProjectButton_Click);
@ -198,7 +391,7 @@
this.label21.Location = new System.Drawing.Point(340, 106);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(44, 13);
this.label21.TabIndex = 64;
this.label21.TabIndex = 74;
this.label21.Text = "Flags 2:";
//
// Flags2TextBox
@ -207,7 +400,7 @@
this.Flags2TextBox.Location = new System.Drawing.Point(390, 103);
this.Flags2TextBox.Name = "Flags2TextBox";
this.Flags2TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags2TextBox.TabIndex = 65;
this.Flags2TextBox.TabIndex = 75;
this.Flags2TextBox.TextChanged += new System.EventHandler(this.Flags2TextBox_TextChanged);
//
// label20
@ -217,7 +410,7 @@
this.label20.Location = new System.Drawing.Point(305, 241);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(160, 26);
this.label20.TabIndex = 72;
this.label20.TabIndex = 82;
this.label20.Text = "Ext params:\r\nName (hash), Value (float), Flags";
//
// ExtParamsTextBox
@ -228,35 +421,35 @@
this.ExtParamsTextBox.Name = "ExtParamsTextBox";
this.ExtParamsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.ExtParamsTextBox.Size = new System.Drawing.Size(262, 140);
this.ExtParamsTextBox.TabIndex = 73;
this.ExtParamsTextBox.TabIndex = 83;
this.ExtParamsTextBox.WordWrap = false;
this.ExtParamsTextBox.TextChanged += new System.EventHandler(this.ExtParamsTextBox_TextChanged);
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(7, 274);
this.label15.Location = new System.Drawing.Point(7, 328);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(63, 13);
this.label15.TabIndex = 57;
this.label15.TabIndex = 58;
this.label15.Text = "Unk 12, 13:";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(7, 250);
this.label17.Location = new System.Drawing.Point(7, 304);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(63, 13);
this.label17.TabIndex = 54;
this.label17.TabIndex = 55;
this.label17.Text = "Unk 10, 11:";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(7, 226);
this.label18.Location = new System.Drawing.Point(7, 280);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(51, 13);
this.label18.TabIndex = 51;
this.label18.TabIndex = 52;
this.label18.Text = "Unk 8, 9:";
//
// label14
@ -266,7 +459,7 @@
this.label14.Location = new System.Drawing.Point(340, 82);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 13);
this.label14.TabIndex = 62;
this.label14.TabIndex = 72;
this.label14.Text = "Flags 1:";
//
// Flags1TextBox
@ -275,7 +468,7 @@
this.Flags1TextBox.Location = new System.Drawing.Point(390, 79);
this.Flags1TextBox.Name = "Flags1TextBox";
this.Flags1TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags1TextBox.TabIndex = 63;
this.Flags1TextBox.TabIndex = 73;
this.Flags1TextBox.TextChanged += new System.EventHandler(this.Flags1TextBox_TextChanged);
//
// label13
@ -285,7 +478,7 @@
this.label13.Location = new System.Drawing.Point(340, 58);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(44, 13);
this.label13.TabIndex = 60;
this.label13.TabIndex = 70;
this.label13.Text = "Flags 0:";
//
// Flags0TextBox
@ -294,7 +487,7 @@
this.Flags0TextBox.Location = new System.Drawing.Point(390, 55);
this.Flags0TextBox.Name = "Flags0TextBox";
this.Flags0TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags0TextBox.TabIndex = 61;
this.Flags0TextBox.TabIndex = 71;
this.Flags0TextBox.TextChanged += new System.EventHandler(this.Flags0TextBox_TextChanged);
//
// label12
@ -319,20 +512,20 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(7, 202);
this.label6.Location = new System.Drawing.Point(7, 230);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(51, 13);
this.label6.Size = new System.Drawing.Size(39, 13);
this.label6.TabIndex = 48;
this.label6.Text = "Unk 6, 7:";
this.label6.Text = "Unk 6:";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(7, 178);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(75, 13);
this.label7.Size = new System.Drawing.Size(61, 13);
this.label7.TabIndex = 43;
this.label7.Text = "Unk 2, 3, 4, 5:";
this.label7.Text = "Start Time :";
//
// label10
//
@ -448,192 +641,32 @@
this.PositionTextBox.TabIndex = 32;
this.PositionTextBox.TextChanged += new System.EventHandler(this.PositionTextBox_TextChanged);
//
// label19
// label5
//
this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(340, 130);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(44, 13);
this.label19.TabIndex = 66;
this.label19.Text = "Flags 3:";
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 253);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(39, 13);
this.label5.TabIndex = 50;
this.label5.Text = "Unk 7:";
//
// Flags3TextBox
// label8
//
this.Flags3TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags3TextBox.Location = new System.Drawing.Point(390, 127);
this.Flags3TextBox.Name = "Flags3TextBox";
this.Flags3TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags3TextBox.TabIndex = 67;
this.Flags3TextBox.TextChanged += new System.EventHandler(this.Flags3TextBox_TextChanged);
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(7, 203);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(55, 13);
this.label8.TabIndex = 46;
this.label8.Text = "End Time:";
//
// label22
// label9
//
this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(340, 154);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(44, 13);
this.label22.TabIndex = 68;
this.label22.Text = "Flags 4:";
//
// Flags4TextBox
//
this.Flags4TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags4TextBox.Location = new System.Drawing.Point(390, 151);
this.Flags4TextBox.Name = "Flags4TextBox";
this.Flags4TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags4TextBox.TabIndex = 69;
this.Flags4TextBox.TextChanged += new System.EventHandler(this.Flags4TextBox_TextChanged);
//
// label23
//
this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(340, 178);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(44, 13);
this.label23.TabIndex = 70;
this.label23.Text = "Flags 5:";
//
// Flags5TextBox
//
this.Flags5TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Flags5TextBox.Location = new System.Drawing.Point(390, 175);
this.Flags5TextBox.Name = "Flags5TextBox";
this.Flags5TextBox.Size = new System.Drawing.Size(155, 20);
this.Flags5TextBox.TabIndex = 71;
this.Flags5TextBox.TextChanged += new System.EventHandler(this.Flags5TextBox_TextChanged);
//
// StartTimeUpDown
//
this.StartTimeUpDown.Location = new System.Drawing.Point(84, 175);
this.StartTimeUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.StartTimeUpDown.Name = "StartTimeUpDown";
this.StartTimeUpDown.Size = new System.Drawing.Size(48, 20);
this.StartTimeUpDown.TabIndex = 44;
this.StartTimeUpDown.ValueChanged += new System.EventHandler(this.StartTimeUpDown_ValueChanged);
//
// EndTimeUpDown
//
this.EndTimeUpDown.Location = new System.Drawing.Point(192, 175);
this.EndTimeUpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.EndTimeUpDown.Name = "EndTimeUpDown";
this.EndTimeUpDown.Size = new System.Drawing.Size(48, 20);
this.EndTimeUpDown.TabIndex = 46;
this.EndTimeUpDown.ValueChanged += new System.EventHandler(this.EndTimeUpDown_ValueChanged);
//
// Unk06UpDown
//
this.Unk06UpDown.Location = new System.Drawing.Point(84, 199);
this.Unk06UpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.Unk06UpDown.Name = "Unk06UpDown";
this.Unk06UpDown.Size = new System.Drawing.Size(102, 20);
this.Unk06UpDown.TabIndex = 49;
this.Unk06UpDown.ValueChanged += new System.EventHandler(this.Unk06UpDown_ValueChanged);
//
// Unk08UpDown
//
this.Unk08UpDown.Location = new System.Drawing.Point(84, 223);
this.Unk08UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk08UpDown.Name = "Unk08UpDown";
this.Unk08UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk08UpDown.TabIndex = 52;
this.Unk08UpDown.ValueChanged += new System.EventHandler(this.Unk08UpDown_ValueChanged);
//
// Unk07UpDown
//
this.Unk07UpDown.Location = new System.Drawing.Point(192, 199);
this.Unk07UpDown.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.Unk07UpDown.Name = "Unk07UpDown";
this.Unk07UpDown.Size = new System.Drawing.Size(102, 20);
this.Unk07UpDown.TabIndex = 50;
this.Unk07UpDown.ValueChanged += new System.EventHandler(this.Unk07UpDown_ValueChanged);
//
// Unk09UpDown
//
this.Unk09UpDown.Location = new System.Drawing.Point(138, 223);
this.Unk09UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk09UpDown.Name = "Unk09UpDown";
this.Unk09UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk09UpDown.TabIndex = 53;
this.Unk09UpDown.ValueChanged += new System.EventHandler(this.Unk09UpDown_ValueChanged);
//
// Unk10UpDown
//
this.Unk10UpDown.Location = new System.Drawing.Point(84, 247);
this.Unk10UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk10UpDown.Name = "Unk10UpDown";
this.Unk10UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk10UpDown.TabIndex = 55;
this.Unk10UpDown.ValueChanged += new System.EventHandler(this.Unk10UpDown_ValueChanged);
//
// Unk11UpDown
//
this.Unk11UpDown.Location = new System.Drawing.Point(138, 247);
this.Unk11UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk11UpDown.Name = "Unk11UpDown";
this.Unk11UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk11UpDown.TabIndex = 56;
this.Unk11UpDown.ValueChanged += new System.EventHandler(this.Unk11UpDown_ValueChanged);
//
// Unk12UpDown
//
this.Unk12UpDown.Location = new System.Drawing.Point(84, 271);
this.Unk12UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk12UpDown.Name = "Unk12UpDown";
this.Unk12UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk12UpDown.TabIndex = 58;
this.Unk12UpDown.ValueChanged += new System.EventHandler(this.Unk12UpDown_ValueChanged);
//
// Unk13UpDown
//
this.Unk13UpDown.Location = new System.Drawing.Point(138, 271);
this.Unk13UpDown.Maximum = new decimal(new int[] {
255,
0,
0,
0});
this.Unk13UpDown.Name = "Unk13UpDown";
this.Unk13UpDown.Size = new System.Drawing.Size(48, 20);
this.Unk13UpDown.TabIndex = 59;
this.Unk13UpDown.ValueChanged += new System.EventHandler(this.Unk13UpDown_ValueChanged);
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(192, 178);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(78, 13);
this.label9.TabIndex = 45;
this.label9.Text = "(game minutes)";
//
// EditAudioEmitterPanel
//
@ -648,16 +681,16 @@
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk06UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk09UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk13UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk12UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk11UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk10UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk09UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk07UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk08UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Unk06UpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.EndTimeUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.StartTimeUpDown)).EndInit();
this.ResumeLayout(false);
}
@ -712,5 +745,8 @@
private System.Windows.Forms.NumericUpDown Unk11UpDown;
private System.Windows.Forms.NumericUpDown Unk10UpDown;
private System.Windows.Forms.NumericUpDown Unk09UpDown;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label5;
}
}

View File

@ -89,8 +89,8 @@ namespace CodeWalker.Project.Panels
Hash1TextBox.Text = e.Hash1.ToString();
Hash2TextBox.Text = e.Hash2.ToString();
Unk01TextBox.Text = FloatUtil.ToString(e.Unk01);
StartTimeUpDown.Value = e.StartTime.Value;
EndTimeUpDown.Value = e.EndTime.Value;
StartTimeUpDown.Value = e.StartTime;
EndTimeUpDown.Value = e.EndTime;
Unk06UpDown.Value = e.Unk06.Value;
Unk07UpDown.Value = e.Unk07.Value;
Unk08UpDown.Value = e.Unk08.Value;
@ -281,7 +281,7 @@ namespace CodeWalker.Project.Panels
if (CurrentEmitter?.AudioEmitter == null) return;
ushort unk = (ushort)StartTimeUpDown.Value;
if (CurrentEmitter.AudioEmitter.StartTime.Value != unk)
if (CurrentEmitter.AudioEmitter.StartTime != unk)
{
CurrentEmitter.AudioEmitter.StartTime = unk;
@ -295,7 +295,7 @@ namespace CodeWalker.Project.Panels
if (CurrentEmitter?.AudioEmitter == null) return;
ushort unk = (ushort)EndTimeUpDown.Value;
if (CurrentEmitter.AudioEmitter.EndTime.Value != unk)
if (CurrentEmitter.AudioEmitter.EndTime != unk)
{
CurrentEmitter.AudioEmitter.EndTime = unk;

View File

@ -6553,8 +6553,8 @@ namespace CodeWalker.Project
emitter.InnerRad = cp ? copy.AudioEmitter.InnerRad : 0.0f;
emitter.OuterRad = cp ? copy.AudioEmitter.OuterRad : 20.0f;
emitter.Unk01 = cp ? copy.AudioEmitter.Unk01 : 1.0f;
emitter.StartTime = cp ? copy.AudioEmitter.StartTime.Value : (ushort)0;
emitter.EndTime = cp ? copy.AudioEmitter.EndTime.Value : (ushort)1440;
emitter.StartTime = cp ? copy.AudioEmitter.StartTime : (ushort)0;
emitter.EndTime = cp ? copy.AudioEmitter.EndTime : (ushort)1440;
emitter.Unk06 = cp ? copy.AudioEmitter.Unk06.Value : (ushort)0;
emitter.Unk07 = cp ? copy.AudioEmitter.Unk07.Value : (ushort)0;
emitter.Unk08 = cp ? copy.AudioEmitter.Unk08.Value : (byte)0;