mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 00:43:00 +08:00
Renamed audio interior room Unk00 to MLO room
This commit is contained in:
parent
c5cac4c407
commit
9191a3da5e
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user