profile config - rip out code for the custom profile that never got implemented
This commit is contained in:
parent
dc2a41c737
commit
e770047eef
|
@ -38,7 +38,6 @@
|
||||||
Casual = 1,
|
Casual = 1,
|
||||||
Longplay = 2,
|
Longplay = 2,
|
||||||
Tas = 3,
|
Tas = 3,
|
||||||
N64Tas = 4,
|
N64Tas = 4
|
||||||
Custom = 99
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,222 +28,117 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProfileConfig));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProfileConfig));
|
||||||
this.OkBtn = new System.Windows.Forms.Button();
|
this.OkBtn = new System.Windows.Forms.Button();
|
||||||
this.CancelBtn = new System.Windows.Forms.Button();
|
this.CancelBtn = new System.Windows.Forms.Button();
|
||||||
this.ProfileSelectComboBox = new System.Windows.Forms.ComboBox();
|
this.ProfileSelectComboBox = new System.Windows.Forms.ComboBox();
|
||||||
this.SaveScreenshotStatesCheckBox = new System.Windows.Forms.CheckBox();
|
this.ProfileDialogHelpTexBox = new System.Windows.Forms.RichTextBox();
|
||||||
this.SaveLargeScreenshotStatesCheckBox = new System.Windows.Forms.CheckBox();
|
this.ProfileOptionsLabel = new System.Windows.Forms.Label();
|
||||||
this.AllowUDLRCheckBox = new System.Windows.Forms.CheckBox();
|
this.OtherOptions = new System.Windows.Forms.Label();
|
||||||
this.ProfileDialogHelpTexBox = new System.Windows.Forms.RichTextBox();
|
this.AutoCheckForUpdates = new System.Windows.Forms.CheckBox();
|
||||||
this.ProfileOptionsLabel = new System.Windows.Forms.Label();
|
this.SuspendLayout();
|
||||||
this.CustomProfileOptionsLabel = new System.Windows.Forms.Label();
|
//
|
||||||
this.N64CoreSettingsLabel = new System.Windows.Forms.Label();
|
// OkBtn
|
||||||
this.N64CoreTypeComboBox = new System.Windows.Forms.ComboBox();
|
//
|
||||||
this.N64CoreTypeLabel = new System.Windows.Forms.Label();
|
this.OkBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.OtherOptions = new System.Windows.Forms.Label();
|
this.OkBtn.Location = new System.Drawing.Point(290, 231);
|
||||||
this.AutoCheckForUpdates = new System.Windows.Forms.CheckBox();
|
this.OkBtn.Name = "OkBtn";
|
||||||
this.SuspendLayout();
|
this.OkBtn.Size = new System.Drawing.Size(60, 23);
|
||||||
//
|
this.OkBtn.TabIndex = 0;
|
||||||
// OkBtn
|
this.OkBtn.Text = "&OK";
|
||||||
//
|
this.OkBtn.UseVisualStyleBackColor = true;
|
||||||
this.OkBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click);
|
||||||
this.OkBtn.Location = new System.Drawing.Point(290, 302);
|
//
|
||||||
this.OkBtn.Name = "OkBtn";
|
// CancelBtn
|
||||||
this.OkBtn.Size = new System.Drawing.Size(60, 23);
|
//
|
||||||
this.OkBtn.TabIndex = 0;
|
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.OkBtn.Text = "&OK";
|
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
this.OkBtn.UseVisualStyleBackColor = true;
|
this.CancelBtn.Location = new System.Drawing.Point(356, 231);
|
||||||
this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click);
|
this.CancelBtn.Name = "CancelBtn";
|
||||||
//
|
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
|
||||||
// CancelBtn
|
this.CancelBtn.TabIndex = 1;
|
||||||
//
|
this.CancelBtn.Text = "&Cancel";
|
||||||
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.CancelBtn.UseVisualStyleBackColor = true;
|
||||||
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
|
||||||
this.CancelBtn.Location = new System.Drawing.Point(356, 302);
|
//
|
||||||
this.CancelBtn.Name = "CancelBtn";
|
// ProfileSelectComboBox
|
||||||
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
|
//
|
||||||
this.CancelBtn.TabIndex = 1;
|
this.ProfileSelectComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.CancelBtn.Text = "&Cancel";
|
this.ProfileSelectComboBox.FormattingEnabled = true;
|
||||||
this.CancelBtn.UseVisualStyleBackColor = true;
|
this.ProfileSelectComboBox.Items.AddRange(new object[] {
|
||||||
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
|
|
||||||
//
|
|
||||||
// ProfileSelectComboBox
|
|
||||||
//
|
|
||||||
this.ProfileSelectComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.ProfileSelectComboBox.FormattingEnabled = true;
|
|
||||||
this.ProfileSelectComboBox.Items.AddRange(new object[] {
|
|
||||||
"Casual Gaming",
|
"Casual Gaming",
|
||||||
"Tool-assisted Speedruns",
|
"Tool-assisted Speedruns",
|
||||||
"N64 Tool-assisted Speedruns",
|
"N64 Tool-assisted Speedruns",
|
||||||
"Longplays",
|
"Longplays"});
|
||||||
"Custom Profile"});
|
this.ProfileSelectComboBox.Location = new System.Drawing.Point(12, 27);
|
||||||
this.ProfileSelectComboBox.Location = new System.Drawing.Point(12, 27);
|
this.ProfileSelectComboBox.Name = "ProfileSelectComboBox";
|
||||||
this.ProfileSelectComboBox.Name = "ProfileSelectComboBox";
|
this.ProfileSelectComboBox.Size = new System.Drawing.Size(156, 21);
|
||||||
this.ProfileSelectComboBox.Size = new System.Drawing.Size(156, 21);
|
this.ProfileSelectComboBox.TabIndex = 4;
|
||||||
this.ProfileSelectComboBox.TabIndex = 4;
|
//
|
||||||
//
|
// ProfileDialogHelpTexBox
|
||||||
// SaveScreenshotStatesCheckBox
|
//
|
||||||
//
|
this.ProfileDialogHelpTexBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
this.SaveScreenshotStatesCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.SaveScreenshotStatesCheckBox.AutoSize = true;
|
|
||||||
this.SaveScreenshotStatesCheckBox.Location = new System.Drawing.Point(12, 88);
|
|
||||||
this.SaveScreenshotStatesCheckBox.Name = "SaveScreenshotStatesCheckBox";
|
|
||||||
this.SaveScreenshotStatesCheckBox.Size = new System.Drawing.Size(166, 17);
|
|
||||||
this.SaveScreenshotStatesCheckBox.TabIndex = 6;
|
|
||||||
this.SaveScreenshotStatesCheckBox.Text = "Save Screenshot With States";
|
|
||||||
this.SaveScreenshotStatesCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.SaveScreenshotStatesCheckBox.Visible = false;
|
|
||||||
this.SaveScreenshotStatesCheckBox.MouseHover += new System.EventHandler(this.SaveScreenshotStatesCheckBox_MouseHover);
|
|
||||||
//
|
|
||||||
// SaveLargeScreenshotStatesCheckBox
|
|
||||||
//
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.AutoSize = true;
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Location = new System.Drawing.Point(12, 111);
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Name = "SaveLargeScreenshotStatesCheckBox";
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Size = new System.Drawing.Size(196, 17);
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.TabIndex = 7;
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Text = "Save Large Screenshot With States";
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.Visible = false;
|
|
||||||
this.SaveLargeScreenshotStatesCheckBox.MouseHover += new System.EventHandler(this.SaveLargeScreenshotStatesCheckBox_MouseHover);
|
|
||||||
//
|
|
||||||
// AllowUDLRCheckBox
|
|
||||||
//
|
|
||||||
this.AllowUDLRCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.AllowUDLRCheckBox.AutoSize = true;
|
|
||||||
this.AllowUDLRCheckBox.Location = new System.Drawing.Point(12, 134);
|
|
||||||
this.AllowUDLRCheckBox.Name = "AllowUDLRCheckBox";
|
|
||||||
this.AllowUDLRCheckBox.Size = new System.Drawing.Size(111, 17);
|
|
||||||
this.AllowUDLRCheckBox.TabIndex = 8;
|
|
||||||
this.AllowUDLRCheckBox.Text = "Allow U+D or L+R";
|
|
||||||
this.AllowUDLRCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.AllowUDLRCheckBox.Visible = false;
|
|
||||||
this.AllowUDLRCheckBox.MouseHover += new System.EventHandler(this.AllowUDLRCheckBox_MouseHover);
|
|
||||||
//
|
|
||||||
// ProfileDialogHelpTexBox
|
|
||||||
//
|
|
||||||
this.ProfileDialogHelpTexBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.ProfileDialogHelpTexBox.Location = new System.Drawing.Point(218, 12);
|
this.ProfileDialogHelpTexBox.Location = new System.Drawing.Point(218, 12);
|
||||||
this.ProfileDialogHelpTexBox.Name = "ProfileDialogHelpTexBox";
|
this.ProfileDialogHelpTexBox.Name = "ProfileDialogHelpTexBox";
|
||||||
this.ProfileDialogHelpTexBox.ReadOnly = true;
|
this.ProfileDialogHelpTexBox.ReadOnly = true;
|
||||||
this.ProfileDialogHelpTexBox.Size = new System.Drawing.Size(198, 200);
|
this.ProfileDialogHelpTexBox.Size = new System.Drawing.Size(198, 174);
|
||||||
this.ProfileDialogHelpTexBox.TabIndex = 2;
|
this.ProfileDialogHelpTexBox.TabIndex = 2;
|
||||||
this.ProfileDialogHelpTexBox.Text = resources.GetString("ProfileDialogHelpTexBox.Text");
|
this.ProfileDialogHelpTexBox.Text = resources.GetString("ProfileDialogHelpTexBox.Text");
|
||||||
//
|
//
|
||||||
// ProfileOptionsLabel
|
// ProfileOptionsLabel
|
||||||
//
|
//
|
||||||
this.ProfileOptionsLabel.AutoSize = true;
|
this.ProfileOptionsLabel.AutoSize = true;
|
||||||
this.ProfileOptionsLabel.Location = new System.Drawing.Point(9, 9);
|
this.ProfileOptionsLabel.Location = new System.Drawing.Point(9, 9);
|
||||||
this.ProfileOptionsLabel.Name = "ProfileOptionsLabel";
|
this.ProfileOptionsLabel.Name = "ProfileOptionsLabel";
|
||||||
this.ProfileOptionsLabel.Size = new System.Drawing.Size(75, 13);
|
this.ProfileOptionsLabel.Size = new System.Drawing.Size(75, 13);
|
||||||
this.ProfileOptionsLabel.TabIndex = 3;
|
this.ProfileOptionsLabel.TabIndex = 3;
|
||||||
this.ProfileOptionsLabel.Text = "Profile Options";
|
this.ProfileOptionsLabel.Text = "Profile Options";
|
||||||
//
|
//
|
||||||
// CustomProfileOptionsLabel
|
// OtherOptions
|
||||||
//
|
//
|
||||||
this.CustomProfileOptionsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.OtherOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.CustomProfileOptionsLabel.AutoSize = true;
|
this.OtherOptions.AutoSize = true;
|
||||||
this.CustomProfileOptionsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.OtherOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.CustomProfileOptionsLabel.Location = new System.Drawing.Point(9, 70);
|
this.OtherOptions.Location = new System.Drawing.Point(9, 190);
|
||||||
this.CustomProfileOptionsLabel.Name = "CustomProfileOptionsLabel";
|
this.OtherOptions.Name = "OtherOptions";
|
||||||
this.CustomProfileOptionsLabel.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
this.OtherOptions.Size = new System.Drawing.Size(72, 13);
|
||||||
this.CustomProfileOptionsLabel.Size = new System.Drawing.Size(113, 13);
|
this.OtherOptions.TabIndex = 12;
|
||||||
this.CustomProfileOptionsLabel.TabIndex = 5;
|
this.OtherOptions.Text = "Other Options";
|
||||||
this.CustomProfileOptionsLabel.Text = "Custom Profile Options";
|
//
|
||||||
this.CustomProfileOptionsLabel.Visible = false;
|
// AutoCheckForUpdates
|
||||||
//
|
//
|
||||||
// N64CoreSettingsLabel
|
this.AutoCheckForUpdates.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
//
|
this.AutoCheckForUpdates.AutoSize = true;
|
||||||
this.N64CoreSettingsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.AutoCheckForUpdates.Location = new System.Drawing.Point(12, 208);
|
||||||
this.N64CoreSettingsLabel.AutoSize = true;
|
this.AutoCheckForUpdates.Name = "AutoCheckForUpdates";
|
||||||
this.N64CoreSettingsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.AutoCheckForUpdates.Size = new System.Drawing.Size(345, 17);
|
||||||
this.N64CoreSettingsLabel.Location = new System.Drawing.Point(9, 173);
|
this.AutoCheckForUpdates.TabIndex = 13;
|
||||||
this.N64CoreSettingsLabel.Name = "N64CoreSettingsLabel";
|
this.AutoCheckForUpdates.Text = "Automatically check for and notify me of newer versions of BizHawk";
|
||||||
this.N64CoreSettingsLabel.Size = new System.Drawing.Size(93, 13);
|
this.AutoCheckForUpdates.UseVisualStyleBackColor = true;
|
||||||
this.N64CoreSettingsLabel.TabIndex = 9;
|
//
|
||||||
this.N64CoreSettingsLabel.Text = "N64 Core Settings";
|
// ProfileConfig
|
||||||
this.N64CoreSettingsLabel.Visible = false;
|
//
|
||||||
//
|
this.AcceptButton = this.OkBtn;
|
||||||
// N64CoreTypeComboBox
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
//
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.N64CoreTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.CancelButton = this.CancelBtn;
|
||||||
this.N64CoreTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.ClientSize = new System.Drawing.Size(428, 266);
|
||||||
this.N64CoreTypeComboBox.FormattingEnabled = true;
|
this.Controls.Add(this.AutoCheckForUpdates);
|
||||||
this.N64CoreTypeComboBox.Items.AddRange(new object[] {
|
this.Controls.Add(this.OtherOptions);
|
||||||
"Pure Interpreter",
|
this.Controls.Add(this.ProfileOptionsLabel);
|
||||||
"Interpreter",
|
this.Controls.Add(this.ProfileDialogHelpTexBox);
|
||||||
"Dynarec"});
|
this.Controls.Add(this.ProfileSelectComboBox);
|
||||||
this.N64CoreTypeComboBox.Location = new System.Drawing.Point(79, 191);
|
this.Controls.Add(this.CancelBtn);
|
||||||
this.N64CoreTypeComboBox.Name = "N64CoreTypeComboBox";
|
this.Controls.Add(this.OkBtn);
|
||||||
this.N64CoreTypeComboBox.Size = new System.Drawing.Size(99, 21);
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.N64CoreTypeComboBox.TabIndex = 11;
|
this.MinimumSize = new System.Drawing.Size(315, 280);
|
||||||
this.N64CoreTypeComboBox.Visible = false;
|
this.Name = "ProfileConfig";
|
||||||
//
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
// N64CoreTypeLabel
|
this.Text = "Profile Config";
|
||||||
//
|
this.Load += new System.EventHandler(this.ProfileConfig_Load);
|
||||||
this.N64CoreTypeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.ResumeLayout(false);
|
||||||
this.N64CoreTypeLabel.AutoSize = true;
|
this.PerformLayout();
|
||||||
this.N64CoreTypeLabel.Location = new System.Drawing.Point(9, 194);
|
|
||||||
this.N64CoreTypeLabel.Name = "N64CoreTypeLabel";
|
|
||||||
this.N64CoreTypeLabel.Size = new System.Drawing.Size(56, 13);
|
|
||||||
this.N64CoreTypeLabel.TabIndex = 10;
|
|
||||||
this.N64CoreTypeLabel.Text = "Core Type";
|
|
||||||
this.N64CoreTypeLabel.Visible = false;
|
|
||||||
//
|
|
||||||
// OtherOptions
|
|
||||||
//
|
|
||||||
this.OtherOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.OtherOptions.AutoSize = true;
|
|
||||||
this.OtherOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.OtherOptions.Location = new System.Drawing.Point(9, 261);
|
|
||||||
this.OtherOptions.Name = "OtherOptions";
|
|
||||||
this.OtherOptions.Size = new System.Drawing.Size(72, 13);
|
|
||||||
this.OtherOptions.TabIndex = 12;
|
|
||||||
this.OtherOptions.Text = "Other Options";
|
|
||||||
//
|
|
||||||
// AutoCheckForUpdates
|
|
||||||
//
|
|
||||||
this.AutoCheckForUpdates.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.AutoCheckForUpdates.AutoSize = true;
|
|
||||||
this.AutoCheckForUpdates.Location = new System.Drawing.Point(12, 279);
|
|
||||||
this.AutoCheckForUpdates.Name = "AutoCheckForUpdates";
|
|
||||||
this.AutoCheckForUpdates.Size = new System.Drawing.Size(345, 17);
|
|
||||||
this.AutoCheckForUpdates.TabIndex = 13;
|
|
||||||
this.AutoCheckForUpdates.Text = "Automatically check for and notify me of newer versions of BizHawk";
|
|
||||||
this.AutoCheckForUpdates.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// ProfileConfig
|
|
||||||
//
|
|
||||||
this.AcceptButton = this.OkBtn;
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.CancelButton = this.CancelBtn;
|
|
||||||
this.ClientSize = new System.Drawing.Size(428, 337);
|
|
||||||
this.Controls.Add(this.AutoCheckForUpdates);
|
|
||||||
this.Controls.Add(this.OtherOptions);
|
|
||||||
this.Controls.Add(this.N64CoreTypeLabel);
|
|
||||||
this.Controls.Add(this.N64CoreTypeComboBox);
|
|
||||||
this.Controls.Add(this.N64CoreSettingsLabel);
|
|
||||||
this.Controls.Add(this.CustomProfileOptionsLabel);
|
|
||||||
this.Controls.Add(this.ProfileOptionsLabel);
|
|
||||||
this.Controls.Add(this.ProfileDialogHelpTexBox);
|
|
||||||
this.Controls.Add(this.AllowUDLRCheckBox);
|
|
||||||
this.Controls.Add(this.SaveLargeScreenshotStatesCheckBox);
|
|
||||||
this.Controls.Add(this.SaveScreenshotStatesCheckBox);
|
|
||||||
this.Controls.Add(this.ProfileSelectComboBox);
|
|
||||||
this.Controls.Add(this.CancelBtn);
|
|
||||||
this.Controls.Add(this.OkBtn);
|
|
||||||
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.user_blue;
|
|
||||||
this.MinimumSize = new System.Drawing.Size(315, 280);
|
|
||||||
this.Name = "ProfileConfig";
|
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
||||||
this.Text = "Profile Config";
|
|
||||||
this.Load += new System.EventHandler(this.ProfileConfig_Load);
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,15 +147,8 @@
|
||||||
private System.Windows.Forms.Button OkBtn;
|
private System.Windows.Forms.Button OkBtn;
|
||||||
private System.Windows.Forms.Button CancelBtn;
|
private System.Windows.Forms.Button CancelBtn;
|
||||||
private System.Windows.Forms.ComboBox ProfileSelectComboBox;
|
private System.Windows.Forms.ComboBox ProfileSelectComboBox;
|
||||||
private System.Windows.Forms.CheckBox SaveScreenshotStatesCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox SaveLargeScreenshotStatesCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox AllowUDLRCheckBox;
|
|
||||||
private System.Windows.Forms.RichTextBox ProfileDialogHelpTexBox;
|
private System.Windows.Forms.RichTextBox ProfileDialogHelpTexBox;
|
||||||
private System.Windows.Forms.Label ProfileOptionsLabel;
|
private System.Windows.Forms.Label ProfileOptionsLabel;
|
||||||
private System.Windows.Forms.Label CustomProfileOptionsLabel;
|
|
||||||
private System.Windows.Forms.Label N64CoreSettingsLabel;
|
|
||||||
private System.Windows.Forms.ComboBox N64CoreTypeComboBox;
|
|
||||||
private System.Windows.Forms.Label N64CoreTypeLabel;
|
|
||||||
private System.Windows.Forms.Label OtherOptions;
|
private System.Windows.Forms.Label OtherOptions;
|
||||||
private System.Windows.Forms.CheckBox AutoCheckForUpdates;
|
private System.Windows.Forms.CheckBox AutoCheckForUpdates;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using BizHawk.Client.Common;
|
using BizHawk.Client.Common;
|
||||||
|
@ -28,19 +27,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
_emulator = emulator;
|
_emulator = emulator;
|
||||||
_config = config;
|
_config = config;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
Icon = Properties.Resources.user_blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProfileConfig_Load(object sender, EventArgs e)
|
private void ProfileConfig_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!VersionInfo.DeveloperBuild)
|
|
||||||
{
|
|
||||||
ProfileSelectComboBox.Items.Remove("Custom Profile");
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (_config.SelectedProfile)
|
switch (_config.SelectedProfile)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case ClientProfile.Custom: // For now
|
|
||||||
case ClientProfile.Casual:
|
case ClientProfile.Casual:
|
||||||
ProfileSelectComboBox.SelectedItem = "Casual Gaming";
|
ProfileSelectComboBox.SelectedItem = "Casual Gaming";
|
||||||
break;
|
break;
|
||||||
|
@ -80,7 +74,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (_config.SelectedProfile == ClientProfile.Casual)
|
if (_config.SelectedProfile == ClientProfile.Casual)
|
||||||
{
|
{
|
||||||
DisplayProfileSettingBoxes(false);
|
|
||||||
_config.NoLowResLargeScreenshotWithStates = false;
|
_config.NoLowResLargeScreenshotWithStates = false;
|
||||||
_config.SaveScreenshotWithStates = false;
|
_config.SaveScreenshotWithStates = false;
|
||||||
_config.AllowUdlr = false;
|
_config.AllowUdlr = false;
|
||||||
|
@ -129,7 +122,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else if (_config.SelectedProfile == ClientProfile.Longplay)
|
else if (_config.SelectedProfile == ClientProfile.Longplay)
|
||||||
{
|
{
|
||||||
DisplayProfileSettingBoxes(false);
|
|
||||||
_config.NoLowResLargeScreenshotWithStates = false;
|
_config.NoLowResLargeScreenshotWithStates = false;
|
||||||
_config.SaveScreenshotWithStates = false;
|
_config.SaveScreenshotWithStates = false;
|
||||||
_config.AllowUdlr = false;
|
_config.AllowUdlr = false;
|
||||||
|
@ -177,8 +169,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else if (_config.SelectedProfile == ClientProfile.Tas)
|
else if (_config.SelectedProfile == ClientProfile.Tas)
|
||||||
{
|
{
|
||||||
DisplayProfileSettingBoxes(false);
|
|
||||||
|
|
||||||
// General
|
// General
|
||||||
_config.NoLowResLargeScreenshotWithStates = false;
|
_config.NoLowResLargeScreenshotWithStates = false;
|
||||||
_config.SaveScreenshotWithStates = true;
|
_config.SaveScreenshotWithStates = true;
|
||||||
|
@ -228,8 +218,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else if (_config.SelectedProfile == ClientProfile.N64Tas)
|
else if (_config.SelectedProfile == ClientProfile.N64Tas)
|
||||||
{
|
{
|
||||||
DisplayProfileSettingBoxes(false);
|
|
||||||
|
|
||||||
// General
|
// General
|
||||||
_config.NoLowResLargeScreenshotWithStates = false;
|
_config.NoLowResLargeScreenshotWithStates = false;
|
||||||
_config.SaveScreenshotWithStates = true;
|
_config.SaveScreenshotWithStates = true;
|
||||||
|
@ -278,11 +266,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// NES
|
// NES
|
||||||
_config.NesInQuickNes = true;
|
_config.NesInQuickNes = true;
|
||||||
}
|
}
|
||||||
else if (_config.SelectedProfile == ClientProfile.Custom)
|
|
||||||
{
|
|
||||||
// Disabled for now
|
|
||||||
////DisplayProfileSettingBoxes(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool oldUpdateAutoCheckEnabled = _config.UpdateAutoCheckEnabled;
|
bool oldUpdateAutoCheckEnabled = _config.UpdateAutoCheckEnabled;
|
||||||
_config.UpdateAutoCheckEnabled = AutoCheckForUpdates.Checked;
|
_config.UpdateAutoCheckEnabled = AutoCheckForUpdates.Checked;
|
||||||
|
@ -306,44 +289,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DisplayProfileSettingBoxes(bool cProfile)
|
|
||||||
{
|
|
||||||
if (cProfile)
|
|
||||||
{
|
|
||||||
ProfileDialogHelpTexBox.Location = new Point(217, 12);
|
|
||||||
ProfileDialogHelpTexBox.Size = new Size(165, 126);
|
|
||||||
SaveScreenshotStatesCheckBox.Visible = true;
|
|
||||||
SaveLargeScreenshotStatesCheckBox.Visible = true;
|
|
||||||
AllowUDLRCheckBox.Visible = true;
|
|
||||||
CustomProfileOptionsLabel.Visible = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ProfileDialogHelpTexBox.Location = new Point(184, 12);
|
|
||||||
ProfileDialogHelpTexBox.Size = new Size(198, 126);
|
|
||||||
ProfileDialogHelpTexBox.Text = "Options: \r\nCasual Gaming - All about performance! \r\n\nTool-Assisted Speedruns - Maximum Accuracy! \r\n\nLongplays - Stability is the key!";
|
|
||||||
SaveScreenshotStatesCheckBox.Visible = false;
|
|
||||||
SaveLargeScreenshotStatesCheckBox.Visible = false;
|
|
||||||
AllowUDLRCheckBox.Visible = false;
|
|
||||||
CustomProfileOptionsLabel.Visible = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SaveScreenshotStatesCheckBox_MouseHover(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
ProfileDialogHelpTexBox.Text = "Save Screenshot with Savestates: \r\n * Required for TASing \r\n * Not Recommended for \r\n Longplays or Casual Gaming";
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SaveLargeScreenshotStatesCheckBox_MouseHover(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
ProfileDialogHelpTexBox.Text = "Save Large Screenshot With States: \r\n * Required for TASing \r\n * Not Recommended for \r\n Longplays or Casual Gaming";
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AllowUDLRCheckBox_MouseHover(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
ProfileDialogHelpTexBox.Text = "All Up+Down or Left+Right: \r\n * Useful for TASing \r\n * Unchecked for Casual Gaming \r\n * Unknown for longplays";
|
|
||||||
}
|
|
||||||
|
|
||||||
private TSetting GetSyncSettings<TEmulator, TSetting>()
|
private TSetting GetSyncSettings<TEmulator, TSetting>()
|
||||||
where TSetting : class, new()
|
where TSetting : class, new()
|
||||||
where TEmulator : IEmulator
|
where TEmulator : IEmulator
|
||||||
|
|
Loading…
Reference in New Issue