make on-screen watches position editable via the messages configuration ui

This commit is contained in:
zeromus 2015-10-01 01:39:22 -05:00
parent e6ea96771b
commit f50795b180
3 changed files with 111 additions and 60 deletions

View File

@ -175,38 +175,39 @@ namespace BizHawk.Client.Common
public static class DefaultMessageOptions public static class DefaultMessageOptions
{ {
public const int public const int
DispFPSx = 0, DispFPSx = 0,
DispFPSy = 0, DispFPSy = 0,
DispFrameCx = 0, DispFrameCx = 0,
DispFrameCy = 14, DispFrameCy = 14,
DispLagx = 0, DispLagx = 0,
DispLagy = 42, DispLagy = 42,
DispInpx = 0, DispInpx = 0,
DispInpy = 28, DispInpy = 28,
DispRecx = 0, DispRecx = 0,
DispRecy = 56, DispRecy = 56,
DispMultix = 0, DispMultix = 0,
DispMultiy = 14, DispMultiy = 14,
DispMessagex = 3, DispMessagex = 3,
DispMessagey = 0, DispMessagey = 0,
DispAutoholdx = 0, DispAutoholdx = 0,
DispAutoholdy = 0, DispAutoholdy = 0,
DispRamWatchx = 0, DispRamWatchx = 0,
DispRamWatchy = 70, DispRamWatchy = 70,
MessagesColor = -1, MessagesColor = -1,
AlertMessageColor = -65536, AlertMessageColor = -65536,
LastInputColor = -23296, LastInputColor = -23296,
MovieInput = -8355712, MovieInput = -8355712,
DispFPSanchor = 0, // 0 = UL, 1 = UR, 2 = DL, 3 = DR DispFPSanchor = 0, // 0 = UL, 1 = UR, 2 = DL, 3 = DR
DispFrameanchor = 0, DispFrameanchor = 0,
DispLaganchor = 0, DispLaganchor = 0,
DispInpanchor = 0, DispInpanchor = 0,
DispRecanchor = 0, DispWatchAnchor = 0,
DispMultianchor = 1, DispRecanchor = 0,
DispMessageanchor = 2, DispMultianchor = 1,
DispAutoholdanchor = 1; DispMessageanchor = 2,
DispAutoholdanchor = 1;
} }
// Display options // Display options
@ -247,6 +248,7 @@ namespace BizHawk.Client.Common
public int DispFrameanchor = DefaultMessageOptions.DispFrameanchor; public int DispFrameanchor = DefaultMessageOptions.DispFrameanchor;
public int DispLaganchor = DefaultMessageOptions.DispLaganchor; public int DispLaganchor = DefaultMessageOptions.DispLaganchor;
public int DispInpanchor = DefaultMessageOptions.DispInpanchor; public int DispInpanchor = DefaultMessageOptions.DispInpanchor;
public int DispWatchesanchor = DefaultMessageOptions.DispWatchAnchor;
public int DispRecanchor = DefaultMessageOptions.DispRecanchor; public int DispRecanchor = DefaultMessageOptions.DispRecanchor;
public int DispMultianchor = DefaultMessageOptions.DispMultianchor; public int DispMultianchor = DefaultMessageOptions.DispMultianchor;
public int DispMessageanchor = DefaultMessageOptions.DispMessageanchor; public int DispMessageanchor = DefaultMessageOptions.DispMessageanchor;

View File

@ -80,6 +80,8 @@
this.LInputColorDialog = new System.Windows.Forms.ColorDialog(); this.LInputColorDialog = new System.Windows.Forms.ColorDialog();
this.MovieInputColorDialog = new System.Windows.Forms.ColorDialog(); this.MovieInputColorDialog = new System.Windows.Forms.ColorDialog();
this.StackMessagesCheckbox = new System.Windows.Forms.CheckBox(); this.StackMessagesCheckbox = new System.Windows.Forms.CheckBox();
this.WatchesRadio = new System.Windows.Forms.RadioButton();
this.WatchesLabel = new System.Windows.Forms.Label();
this.MessageTypeBox.SuspendLayout(); this.MessageTypeBox.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.XNumeric)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.XNumeric)).BeginInit();
@ -90,7 +92,7 @@
// OK // OK
// //
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.OK.Location = new System.Drawing.Point(418, 434); this.OK.Location = new System.Drawing.Point(348, 441);
this.OK.Name = "OK"; this.OK.Name = "OK";
this.OK.Size = new System.Drawing.Size(75, 23); this.OK.Size = new System.Drawing.Size(75, 23);
this.OK.TabIndex = 1; this.OK.TabIndex = 1;
@ -100,6 +102,8 @@
// //
// MessageTypeBox // MessageTypeBox
// //
this.MessageTypeBox.Controls.Add(this.WatchesLabel);
this.MessageTypeBox.Controls.Add(this.WatchesRadio);
this.MessageTypeBox.Controls.Add(this.AutoholdLabel); this.MessageTypeBox.Controls.Add(this.AutoholdLabel);
this.MessageTypeBox.Controls.Add(this.AutoholdRadio); this.MessageTypeBox.Controls.Add(this.AutoholdRadio);
this.MessageTypeBox.Controls.Add(this.MultitrackLabel); this.MessageTypeBox.Controls.Add(this.MultitrackLabel);
@ -118,7 +122,7 @@
this.MessageTypeBox.Controls.Add(this.FPSRadio); this.MessageTypeBox.Controls.Add(this.FPSRadio);
this.MessageTypeBox.Location = new System.Drawing.Point(12, 12); this.MessageTypeBox.Location = new System.Drawing.Point(12, 12);
this.MessageTypeBox.Name = "MessageTypeBox"; this.MessageTypeBox.Name = "MessageTypeBox";
this.MessageTypeBox.Size = new System.Drawing.Size(177, 216); this.MessageTypeBox.Size = new System.Drawing.Size(177, 234);
this.MessageTypeBox.TabIndex = 2; this.MessageTypeBox.TabIndex = 2;
this.MessageTypeBox.TabStop = false; this.MessageTypeBox.TabStop = false;
this.MessageTypeBox.Text = "Message Type"; this.MessageTypeBox.Text = "Message Type";
@ -127,7 +131,7 @@
// //
this.AutoholdLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.AutoholdLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.AutoholdLabel.AutoSize = true; this.AutoholdLabel.AutoSize = true;
this.AutoholdLabel.Location = new System.Drawing.Point(126, 188); this.AutoholdLabel.Location = new System.Drawing.Point(126, 209);
this.AutoholdLabel.Name = "AutoholdLabel"; this.AutoholdLabel.Name = "AutoholdLabel";
this.AutoholdLabel.Size = new System.Drawing.Size(49, 13); this.AutoholdLabel.Size = new System.Drawing.Size(49, 13);
this.AutoholdLabel.TabIndex = 15; this.AutoholdLabel.TabIndex = 15;
@ -136,7 +140,7 @@
// AutoholdRadio // AutoholdRadio
// //
this.AutoholdRadio.AutoSize = true; this.AutoholdRadio.AutoSize = true;
this.AutoholdRadio.Location = new System.Drawing.Point(6, 186); this.AutoholdRadio.Location = new System.Drawing.Point(6, 210);
this.AutoholdRadio.Name = "AutoholdRadio"; this.AutoholdRadio.Name = "AutoholdRadio";
this.AutoholdRadio.Size = new System.Drawing.Size(67, 17); this.AutoholdRadio.Size = new System.Drawing.Size(67, 17);
this.AutoholdRadio.TabIndex = 14; this.AutoholdRadio.TabIndex = 14;
@ -149,7 +153,7 @@
// //
this.MultitrackLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.MultitrackLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.MultitrackLabel.AutoSize = true; this.MultitrackLabel.AutoSize = true;
this.MultitrackLabel.Location = new System.Drawing.Point(126, 164); this.MultitrackLabel.Location = new System.Drawing.Point(126, 185);
this.MultitrackLabel.Name = "MultitrackLabel"; this.MultitrackLabel.Name = "MultitrackLabel";
this.MultitrackLabel.Size = new System.Drawing.Size(49, 13); this.MultitrackLabel.Size = new System.Drawing.Size(49, 13);
this.MultitrackLabel.TabIndex = 13; this.MultitrackLabel.TabIndex = 13;
@ -158,7 +162,7 @@
// MultitrackRadio // MultitrackRadio
// //
this.MultitrackRadio.AutoSize = true; this.MultitrackRadio.AutoSize = true;
this.MultitrackRadio.Location = new System.Drawing.Point(6, 162); this.MultitrackRadio.Location = new System.Drawing.Point(6, 186);
this.MultitrackRadio.Name = "MultitrackRadio"; this.MultitrackRadio.Name = "MultitrackRadio";
this.MultitrackRadio.Size = new System.Drawing.Size(71, 17); this.MultitrackRadio.Size = new System.Drawing.Size(71, 17);
this.MultitrackRadio.TabIndex = 12; this.MultitrackRadio.TabIndex = 12;
@ -171,7 +175,7 @@
// //
this.RerecLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.RerecLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.RerecLabel.AutoSize = true; this.RerecLabel.AutoSize = true;
this.RerecLabel.Location = new System.Drawing.Point(126, 140); this.RerecLabel.Location = new System.Drawing.Point(126, 161);
this.RerecLabel.Name = "RerecLabel"; this.RerecLabel.Name = "RerecLabel";
this.RerecLabel.Size = new System.Drawing.Size(49, 13); this.RerecLabel.Size = new System.Drawing.Size(49, 13);
this.RerecLabel.TabIndex = 11; this.RerecLabel.TabIndex = 11;
@ -180,7 +184,7 @@
// RerecordsRadio // RerecordsRadio
// //
this.RerecordsRadio.AutoSize = true; this.RerecordsRadio.AutoSize = true;
this.RerecordsRadio.Location = new System.Drawing.Point(6, 138); this.RerecordsRadio.Location = new System.Drawing.Point(6, 162);
this.RerecordsRadio.Name = "RerecordsRadio"; this.RerecordsRadio.Name = "RerecordsRadio";
this.RerecordsRadio.Size = new System.Drawing.Size(74, 17); this.RerecordsRadio.Size = new System.Drawing.Size(74, 17);
this.RerecordsRadio.TabIndex = 10; this.RerecordsRadio.TabIndex = 10;
@ -192,7 +196,7 @@
// //
this.MessLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.MessLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.MessLabel.AutoSize = true; this.MessLabel.AutoSize = true;
this.MessLabel.Location = new System.Drawing.Point(126, 116); this.MessLabel.Location = new System.Drawing.Point(126, 137);
this.MessLabel.Name = "MessLabel"; this.MessLabel.Name = "MessLabel";
this.MessLabel.Size = new System.Drawing.Size(49, 13); this.MessLabel.Size = new System.Drawing.Size(49, 13);
this.MessLabel.TabIndex = 9; this.MessLabel.TabIndex = 9;
@ -241,7 +245,7 @@
// MessagesRadio // MessagesRadio
// //
this.MessagesRadio.AutoSize = true; this.MessagesRadio.AutoSize = true;
this.MessagesRadio.Location = new System.Drawing.Point(6, 114); this.MessagesRadio.Location = new System.Drawing.Point(6, 138);
this.MessagesRadio.Name = "MessagesRadio"; this.MessagesRadio.Name = "MessagesRadio";
this.MessagesRadio.Size = new System.Drawing.Size(73, 17); this.MessagesRadio.Size = new System.Drawing.Size(73, 17);
this.MessagesRadio.TabIndex = 4; this.MessagesRadio.TabIndex = 4;
@ -313,9 +317,9 @@
this.groupBox2.Controls.Add(this.label4); this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.label3); this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Controls.Add(this.ColorText); this.groupBox2.Controls.Add(this.ColorText);
this.groupBox2.Location = new System.Drawing.Point(12, 234); this.groupBox2.Location = new System.Drawing.Point(12, 251);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(177, 223); this.groupBox2.Size = new System.Drawing.Size(177, 210);
this.groupBox2.TabIndex = 4; this.groupBox2.TabIndex = 4;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "Message Colors"; this.groupBox2.Text = "Message Colors";
@ -323,7 +327,7 @@
// label12 // label12
// //
this.label12.AutoSize = true; this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(1, 170); this.label12.Location = new System.Drawing.Point(1, 161);
this.label12.Name = "label12"; this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(63, 13); this.label12.Size = new System.Drawing.Size(63, 13);
this.label12.TabIndex = 24; this.label12.TabIndex = 24;
@ -332,7 +336,7 @@
// MovieInputText // MovieInputText
// //
this.MovieInputText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.MovieInputText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.MovieInputText.Location = new System.Drawing.Point(45, 187); this.MovieInputText.Location = new System.Drawing.Point(45, 178);
this.MovieInputText.MaxLength = 8; this.MovieInputText.MaxLength = 8;
this.MovieInputText.Name = "MovieInputText"; this.MovieInputText.Name = "MovieInputText";
this.MovieInputText.ReadOnly = true; this.MovieInputText.ReadOnly = true;
@ -351,7 +355,7 @@
// MovieInputColor // MovieInputColor
// //
this.MovieInputColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.MovieInputColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.MovieInputColor.Location = new System.Drawing.Point(4, 187); this.MovieInputColor.Location = new System.Drawing.Point(4, 178);
this.MovieInputColor.Name = "MovieInputColor"; this.MovieInputColor.Name = "MovieInputColor";
this.MovieInputColor.Size = new System.Drawing.Size(20, 20); this.MovieInputColor.Size = new System.Drawing.Size(20, 20);
this.MovieInputColor.TabIndex = 9; this.MovieInputColor.TabIndex = 9;
@ -360,7 +364,7 @@
// LInputColorPanel // LInputColorPanel
// //
this.LInputColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.LInputColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.LInputColorPanel.Location = new System.Drawing.Point(6, 139); this.LInputColorPanel.Location = new System.Drawing.Point(6, 130);
this.LInputColorPanel.Name = "LInputColorPanel"; this.LInputColorPanel.Name = "LInputColorPanel";
this.LInputColorPanel.Size = new System.Drawing.Size(20, 20); this.LInputColorPanel.Size = new System.Drawing.Size(20, 20);
this.LInputColorPanel.TabIndex = 7; this.LInputColorPanel.TabIndex = 7;
@ -369,7 +373,7 @@
// AlertColorPanel // AlertColorPanel
// //
this.AlertColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.AlertColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.AlertColorPanel.Location = new System.Drawing.Point(6, 90); this.AlertColorPanel.Location = new System.Drawing.Point(6, 81);
this.AlertColorPanel.Name = "AlertColorPanel"; this.AlertColorPanel.Name = "AlertColorPanel";
this.AlertColorPanel.Size = new System.Drawing.Size(20, 20); this.AlertColorPanel.Size = new System.Drawing.Size(20, 20);
this.AlertColorPanel.TabIndex = 7; this.AlertColorPanel.TabIndex = 7;
@ -378,7 +382,7 @@
// ColorPanel // ColorPanel
// //
this.ColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.ColorPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.ColorPanel.Location = new System.Drawing.Point(6, 43); this.ColorPanel.Location = new System.Drawing.Point(6, 34);
this.ColorPanel.Name = "ColorPanel"; this.ColorPanel.Name = "ColorPanel";
this.ColorPanel.Size = new System.Drawing.Size(20, 20); this.ColorPanel.Size = new System.Drawing.Size(20, 20);
this.ColorPanel.TabIndex = 7; this.ColorPanel.TabIndex = 7;
@ -387,7 +391,7 @@
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(1, 120); this.label7.Location = new System.Drawing.Point(1, 111);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(86, 13); this.label7.Size = new System.Drawing.Size(86, 13);
this.label7.TabIndex = 18; this.label7.TabIndex = 18;
@ -396,7 +400,7 @@
// label8 // label8
// //
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(28, 142); this.label8.Location = new System.Drawing.Point(28, 133);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(18, 13); this.label8.Size = new System.Drawing.Size(18, 13);
this.label8.TabIndex = 17; this.label8.TabIndex = 17;
@ -405,7 +409,7 @@
// LInputText // LInputText
// //
this.LInputText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.LInputText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.LInputText.Location = new System.Drawing.Point(45, 139); this.LInputText.Location = new System.Drawing.Point(45, 130);
this.LInputText.MaxLength = 8; this.LInputText.MaxLength = 8;
this.LInputText.Name = "LInputText"; this.LInputText.Name = "LInputText";
this.LInputText.ReadOnly = true; this.LInputText.ReadOnly = true;
@ -415,7 +419,7 @@
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(1, 71); this.label6.Location = new System.Drawing.Point(1, 62);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(78, 13); this.label6.Size = new System.Drawing.Size(78, 13);
this.label6.TabIndex = 13; this.label6.TabIndex = 13;
@ -424,7 +428,7 @@
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(28, 93); this.label5.Location = new System.Drawing.Point(28, 84);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(18, 13); this.label5.Size = new System.Drawing.Size(18, 13);
this.label5.TabIndex = 12; this.label5.TabIndex = 12;
@ -433,7 +437,7 @@
// AlertColorText // AlertColorText
// //
this.AlertColorText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.AlertColorText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.AlertColorText.Location = new System.Drawing.Point(45, 90); this.AlertColorText.Location = new System.Drawing.Point(45, 81);
this.AlertColorText.MaxLength = 8; this.AlertColorText.MaxLength = 8;
this.AlertColorText.Name = "AlertColorText"; this.AlertColorText.Name = "AlertColorText";
this.AlertColorText.ReadOnly = true; this.AlertColorText.ReadOnly = true;
@ -443,7 +447,7 @@
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(6, 27); this.label4.Location = new System.Drawing.Point(6, 18);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 13); this.label4.Size = new System.Drawing.Size(80, 13);
this.label4.TabIndex = 8; this.label4.TabIndex = 8;
@ -452,7 +456,7 @@
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(28, 46); this.label3.Location = new System.Drawing.Point(28, 37);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(18, 13); this.label3.Size = new System.Drawing.Size(18, 13);
this.label3.TabIndex = 7; this.label3.TabIndex = 7;
@ -461,7 +465,7 @@
// ColorText // ColorText
// //
this.ColorText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; this.ColorText.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
this.ColorText.Location = new System.Drawing.Point(45, 43); this.ColorText.Location = new System.Drawing.Point(45, 34);
this.ColorText.MaxLength = 8; this.ColorText.MaxLength = 8;
this.ColorText.Name = "ColorText"; this.ColorText.Name = "ColorText";
this.ColorText.ReadOnly = true; this.ColorText.ReadOnly = true;
@ -476,7 +480,7 @@
// //
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Cancel.Location = new System.Drawing.Point(499, 434); this.Cancel.Location = new System.Drawing.Point(429, 441);
this.Cancel.Name = "Cancel"; this.Cancel.Name = "Cancel";
this.Cancel.Size = new System.Drawing.Size(75, 23); this.Cancel.Size = new System.Drawing.Size(75, 23);
this.Cancel.TabIndex = 5; this.Cancel.TabIndex = 5;
@ -487,7 +491,7 @@
// ResetDefaultsButton // ResetDefaultsButton
// //
this.ResetDefaultsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.ResetDefaultsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ResetDefaultsButton.Location = new System.Drawing.Point(195, 434); this.ResetDefaultsButton.Location = new System.Drawing.Point(195, 441);
this.ResetDefaultsButton.Name = "ResetDefaultsButton"; this.ResetDefaultsButton.Name = "ResetDefaultsButton";
this.ResetDefaultsButton.Size = new System.Drawing.Size(96, 23); this.ResetDefaultsButton.Size = new System.Drawing.Size(96, 23);
this.ResetDefaultsButton.TabIndex = 6; this.ResetDefaultsButton.TabIndex = 6;
@ -656,13 +660,33 @@
this.StackMessagesCheckbox.Text = "Stack Messages"; this.StackMessagesCheckbox.Text = "Stack Messages";
this.StackMessagesCheckbox.UseVisualStyleBackColor = true; this.StackMessagesCheckbox.UseVisualStyleBackColor = true;
// //
// WatchesRadio
//
this.WatchesRadio.AutoSize = true;
this.WatchesRadio.Location = new System.Drawing.Point(6, 114);
this.WatchesRadio.Name = "WatchesRadio";
this.WatchesRadio.Size = new System.Drawing.Size(68, 17);
this.WatchesRadio.TabIndex = 16;
this.WatchesRadio.Text = "Watches";
this.WatchesRadio.UseVisualStyleBackColor = true;
//
// WatchesLabel
//
this.WatchesLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.WatchesLabel.AutoSize = true;
this.WatchesLabel.Location = new System.Drawing.Point(126, 116);
this.WatchesLabel.Name = "WatchesLabel";
this.WatchesLabel.Size = new System.Drawing.Size(49, 13);
this.WatchesLabel.TabIndex = 17;
this.WatchesLabel.Text = "255, 255";
//
// MessageConfig // MessageConfig
// //
this.AcceptButton = this.OK; this.AcceptButton = this.OK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.Cancel; this.CancelButton = this.Cancel;
this.ClientSize = new System.Drawing.Size(612, 469); this.ClientSize = new System.Drawing.Size(512, 469);
this.Controls.Add(this.StackMessagesCheckbox); this.Controls.Add(this.StackMessagesCheckbox);
this.Controls.Add(this.ResetDefaultsButton); this.Controls.Add(this.ResetDefaultsButton);
this.Controls.Add(this.Cancel); this.Controls.Add(this.Cancel);
@ -744,5 +768,7 @@
private System.Windows.Forms.CheckBox StackMessagesCheckbox; private System.Windows.Forms.CheckBox StackMessagesCheckbox;
private System.Windows.Forms.Label AutoholdLabel; private System.Windows.Forms.Label AutoholdLabel;
private System.Windows.Forms.RadioButton AutoholdRadio; private System.Windows.Forms.RadioButton AutoholdRadio;
private System.Windows.Forms.Label WatchesLabel;
private System.Windows.Forms.RadioButton WatchesRadio;
} }
} }

View File

@ -16,6 +16,8 @@ namespace BizHawk.Client.EmuHawk
private int _dispLagy = Global.Config.DispLagy; private int _dispLagy = Global.Config.DispLagy;
private int _dispInpx = Global.Config.DispInpx; private int _dispInpx = Global.Config.DispInpx;
private int _dispInpy = Global.Config.DispInpy; private int _dispInpy = Global.Config.DispInpy;
private int _dispWatchesx = Global.Config.DispRamWatchx;
private int _dispWatchesy = Global.Config.DispRamWatchy;
private int _lastInputColor = Global.Config.LastInputColor; private int _lastInputColor = Global.Config.LastInputColor;
private int _dispRecx = Global.Config.DispRecx; private int _dispRecx = Global.Config.DispRecx;
private int _dispRecy = Global.Config.DispRecy; private int _dispRecy = Global.Config.DispRecy;
@ -34,6 +36,7 @@ namespace BizHawk.Client.EmuHawk
private int _dispFrameanchor = Global.Config.DispFrameanchor; private int _dispFrameanchor = Global.Config.DispFrameanchor;
private int _dispLaganchor = Global.Config.DispLaganchor; private int _dispLaganchor = Global.Config.DispLaganchor;
private int _dispInputanchor = Global.Config.DispInpanchor; private int _dispInputanchor = Global.Config.DispInpanchor;
private int _dispWatchesanchor = Global.Config.DispWatchesanchor;
private int _dispRecanchor = Global.Config.DispRecanchor; private int _dispRecanchor = Global.Config.DispRecanchor;
private int _dispMultiAnchor = Global.Config.DispMultianchor; private int _dispMultiAnchor = Global.Config.DispMultianchor;
private int _dispMessageAnchor = Global.Config.DispMessageanchor; private int _dispMessageAnchor = Global.Config.DispMessageanchor;
@ -142,6 +145,14 @@ namespace BizHawk.Client.EmuHawk
_py = _dispInpy; _py = _dispInpy;
SetAnchorRadio(_dispInputanchor); SetAnchorRadio(_dispInputanchor);
} }
else if (WatchesRadio.Checked)
{
XNumeric.Value = _dispWatchesx;
XNumeric.Value = _dispWatchesy;
_px = _dispWatchesx;
_py = _dispWatchesy;
SetAnchorRadio(_dispWatchesanchor);
}
else if (MessagesRadio.Checked) else if (MessagesRadio.Checked)
{ {
XNumeric.Value = _dispMessagex; XNumeric.Value = _dispMessagex;
@ -191,6 +202,8 @@ namespace BizHawk.Client.EmuHawk
Global.Config.DispLagy = _dispLagy; Global.Config.DispLagy = _dispLagy;
Global.Config.DispInpx = _dispInpx; Global.Config.DispInpx = _dispInpx;
Global.Config.DispInpy = _dispInpy; Global.Config.DispInpy = _dispInpy;
Global.Config.DispRamWatchx = _dispWatchesx;
Global.Config.DispRamWatchy = _dispWatchesy;
Global.Config.DispRecx = _dispRecx; Global.Config.DispRecx = _dispRecx;
Global.Config.DispRecy = _dispRecy; Global.Config.DispRecy = _dispRecy;
Global.Config.DispMultix = _dispMultix; Global.Config.DispMultix = _dispMultix;
@ -368,6 +381,11 @@ namespace BizHawk.Client.EmuHawk
_dispInpx = _px; _dispInpx = _px;
_dispInpy = _py; _dispInpy = _py;
} }
else if (WatchesRadio.Checked)
{
_dispWatchesx = _px;
_dispWatchesy = _py;
}
else if (RerecordsRadio.Checked) else if (RerecordsRadio.Checked)
{ {
_dispRecx = _px; _dispRecx = _px;
@ -393,6 +411,7 @@ namespace BizHawk.Client.EmuHawk
FCLabel.Text = _dispFrameCx + ", " + _dispFrameCy; FCLabel.Text = _dispFrameCx + ", " + _dispFrameCy;
LagLabel.Text = _dispLagx + ", " + _dispLagy; LagLabel.Text = _dispLagx + ", " + _dispLagy;
InpLabel.Text = _dispInpx + ", " + _dispInpy; InpLabel.Text = _dispInpx + ", " + _dispInpy;
WatchesLabel.Text = _dispWatchesx + ", " + _dispWatchesy;
RerecLabel.Text = _dispRecx + ", " + _dispRecy; RerecLabel.Text = _dispRecx + ", " + _dispRecy;
MultitrackLabel.Text = _dispMultix + ", " + _dispMultiy; MultitrackLabel.Text = _dispMultix + ", " + _dispMultiy;
MessLabel.Text = _dispMessagex + ", " + _dispMessagey; MessLabel.Text = _dispMessagex + ", " + _dispMessagey;
@ -493,6 +512,10 @@ namespace BizHawk.Client.EmuHawk
{ {
_dispInputanchor = value; _dispInputanchor = value;
} }
else if (WatchesRadio.Checked)
{
_dispWatchesanchor = value;
}
else if (MessagesRadio.Checked) else if (MessagesRadio.Checked)
{ {
_dispMessageAnchor = value; _dispMessageAnchor = value;