Cheats - default compare box to empty, not 0

This commit is contained in:
adelikat 2013-11-05 19:46:27 +00:00
parent 4aae8a1311
commit 76de0c4bdd
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
this.NameLabel = new System.Windows.Forms.Label(); this.NameLabel = new System.Windows.Forms.Label();
this.AddressLabel = new System.Windows.Forms.Label(); this.AddressLabel = new System.Windows.Forms.Label();
this.AddressHexIndLabel = new System.Windows.Forms.Label(); this.AddressHexIndLabel = new System.Windows.Forms.Label();
this.AddressBox = new HexTextBox(); this.AddressBox = new BizHawk.Client.EmuHawk.HexTextBox();
this.ValueHexIndLabel = new System.Windows.Forms.Label(); this.ValueHexIndLabel = new System.Windows.Forms.Label();
this.ValueLabel = new System.Windows.Forms.Label(); this.ValueLabel = new System.Windows.Forms.Label();
this.CompareHexIndLabel = new System.Windows.Forms.Label(); this.CompareHexIndLabel = new System.Windows.Forms.Label();
@ -46,8 +46,8 @@
this.BigEndianCheckBox = new System.Windows.Forms.CheckBox(); this.BigEndianCheckBox = new System.Windows.Forms.CheckBox();
this.AddButton = new System.Windows.Forms.Button(); this.AddButton = new System.Windows.Forms.Button();
this.EditButton = new System.Windows.Forms.Button(); this.EditButton = new System.Windows.Forms.Button();
this.CompareBox = new WatchValueBox(); this.CompareBox = new BizHawk.Client.EmuHawk.WatchValueBox();
this.ValueBox = new WatchValueBox(); this.ValueBox = new BizHawk.Client.EmuHawk.WatchValueBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// NameBox // NameBox
@ -239,7 +239,6 @@
this.CompareBox.Nullable = true; this.CompareBox.Nullable = true;
this.CompareBox.Size = new System.Drawing.Size(65, 20); this.CompareBox.Size = new System.Drawing.Size(65, 20);
this.CompareBox.TabIndex = 15; this.CompareBox.TabIndex = 15;
this.CompareBox.Text = "00";
this.CompareBox.Type = BizHawk.Client.Common.Watch.DisplayType.Hex; this.CompareBox.Type = BizHawk.Client.Common.Watch.DisplayType.Hex;
// //
// ValueBox // ValueBox

View File

@ -107,6 +107,7 @@ namespace BizHawk.Client.EmuHawk
SetTypeSelected(Watch.DisplayType.Hex); SetTypeSelected(Watch.DisplayType.Hex);
CheckFormState(); CheckFormState();
CompareBox.Text = String.Empty; //TODO: A needed hack until WatchValueBox.ToRawInt() becomes nullable
_loading = false; _loading = false;
} }