From 9191a3da5e171eccdbe3d41203c83cc58253a691 Mon Sep 17 00:00:00 2001 From: dexy Date: Fri, 28 Dec 2018 20:34:16 +1100 Subject: [PATCH] Renamed audio interior room Unk00 to MLO room --- .../GameFiles/FileTypes/RelFile.cs | 6 ++--- .../EditAudioInteriorRoomPanel.Designer.cs | 24 +++++++++---------- Project/Panels/EditAudioInteriorRoomPanel.cs | 10 ++++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/CodeWalker.Core/GameFiles/FileTypes/RelFile.cs b/CodeWalker.Core/GameFiles/FileTypes/RelFile.cs index 8d2d3bb..8689020 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/RelFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/RelFile.cs @@ -3371,7 +3371,7 @@ namespace CodeWalker.GameFiles [TC(typeof(EXP))] public class Dat151InteriorRoom : Dat151RelData { public FlagsUint Flags0 { get; set; } - public MetaHash Unk00 { get; set; } + public MetaHash MloRoom { get; set; } public MetaHash Hash1 { get; set; } public uint Unk02 { get; set; } public float Unk03 { get; set; } @@ -3395,7 +3395,7 @@ namespace CodeWalker.GameFiles public Dat151InteriorRoom(RelData d, BinaryReader br) : base(d, br) { Flags0 = br.ReadUInt32(); - Unk00 = br.ReadUInt32(); + MloRoom = br.ReadUInt32(); Hash1 = br.ReadUInt32(); Unk02 = br.ReadUInt32(); Unk03 = br.ReadSingle(); @@ -3420,7 +3420,7 @@ namespace CodeWalker.GameFiles WriteTypeAndOffset(bw); bw.Write(Flags0.Value); - bw.Write(Unk00); + bw.Write(MloRoom); bw.Write(Hash1); bw.Write(Unk02); bw.Write(Unk03); diff --git a/Project/Panels/EditAudioInteriorRoomPanel.Designer.cs b/Project/Panels/EditAudioInteriorRoomPanel.Designer.cs index 1a1e10a..696281c 100644 --- a/Project/Panels/EditAudioInteriorRoomPanel.Designer.cs +++ b/Project/Panels/EditAudioInteriorRoomPanel.Designer.cs @@ -35,7 +35,7 @@ this.label13 = new System.Windows.Forms.Label(); this.Flags0TextBox = new System.Windows.Forms.TextBox(); this.label16 = new System.Windows.Forms.Label(); - this.Unk00TextBox = new System.Windows.Forms.TextBox(); + this.MloRoomTextBox = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.Hash1TextBox = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); @@ -120,19 +120,19 @@ this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(9, 39); this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(68, 13); + this.label16.Size = new System.Drawing.Size(59, 13); this.label16.TabIndex = 64; - this.label16.Text = "Unk00 hash:"; + this.label16.Text = "MLO room:"; // - // Unk00TextBox + // MloRoomTextBox // - this.Unk00TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.MloRoomTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.Unk00TextBox.Location = new System.Drawing.Point(86, 36); - this.Unk00TextBox.Name = "Unk00TextBox"; - this.Unk00TextBox.Size = new System.Drawing.Size(237, 20); - this.Unk00TextBox.TabIndex = 65; - this.Unk00TextBox.TextChanged += new System.EventHandler(this.Unk00TextBox_TextChanged); + this.MloRoomTextBox.Location = new System.Drawing.Point(86, 36); + this.MloRoomTextBox.Name = "MloRoomTextBox"; + this.MloRoomTextBox.Size = new System.Drawing.Size(237, 20); + this.MloRoomTextBox.TabIndex = 65; + this.MloRoomTextBox.TextChanged += new System.EventHandler(this.Unk00TextBox_TextChanged); // // label1 // @@ -434,7 +434,7 @@ this.Controls.Add(this.label1); this.Controls.Add(this.Hash1TextBox); this.Controls.Add(this.label16); - this.Controls.Add(this.Unk00TextBox); + this.Controls.Add(this.MloRoomTextBox); this.Controls.Add(this.label13); this.Controls.Add(this.Flags0TextBox); this.Controls.Add(this.DeleteButton); @@ -456,7 +456,7 @@ private System.Windows.Forms.Label label13; private System.Windows.Forms.TextBox Flags0TextBox; private System.Windows.Forms.Label label16; - private System.Windows.Forms.TextBox Unk00TextBox; + private System.Windows.Forms.TextBox MloRoomTextBox; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox Hash1TextBox; private System.Windows.Forms.Label label2; diff --git a/Project/Panels/EditAudioInteriorRoomPanel.cs b/Project/Panels/EditAudioInteriorRoomPanel.cs index bf16143..c940e6c 100644 --- a/Project/Panels/EditAudioInteriorRoomPanel.cs +++ b/Project/Panels/EditAudioInteriorRoomPanel.cs @@ -48,7 +48,7 @@ namespace CodeWalker.Project.Panels populatingui = true; NameTextBox.Text = string.Empty; - Unk00TextBox.Text = string.Empty; + MloRoomTextBox.Text = string.Empty; Hash1TextBox.Text = string.Empty; Unk02TextBox.Text = string.Empty; Unk03TextBox.Text = string.Empty; @@ -75,7 +75,7 @@ namespace CodeWalker.Project.Panels var cr = CurrentRoom; NameTextBox.Text = cr.NameHash.ToString(); - Unk00TextBox.Text = cr.Unk00.ToString(); + MloRoomTextBox.Text = cr.MloRoom.ToString(); Hash1TextBox.Text = cr.Hash1.ToString(); Unk02TextBox.Text = cr.Unk02.ToString(); Unk03TextBox.Text = FloatUtil.ToString(cr.Unk03); @@ -136,7 +136,7 @@ namespace CodeWalker.Project.Panels if (CurrentRoom == null) return; uint hash = 0; - string name = Unk00TextBox.Text; + string name = MloRoomTextBox.Text; if (!uint.TryParse(name, out hash))//don't re-hash hashes { hash = JenkHash.GenHash(name); @@ -144,9 +144,9 @@ namespace CodeWalker.Project.Panels } //NameHashLabel.Text = "Hash: " + hash.ToString(); - if (CurrentRoom.Unk00 != hash) + if (CurrentRoom.MloRoom != hash) { - CurrentRoom.Unk00 = hash; + CurrentRoom.MloRoom = hash; ProjectItemChanged(); }