UI: Hide some unimplemented options

This commit is contained in:
Sour 2019-03-31 09:50:11 -04:00
parent 5b2476fde1
commit a3600baf27
3 changed files with 21 additions and 14 deletions

View file

@ -15,7 +15,7 @@ namespace Mesen.GUI.Config
[MarshalAs(UnmanagedType.I1)] public bool DisableDynamicSampleRate = false;
[MinMax(0, 100)] public UInt32 MasterVolume = 25;
[ValidValues(11025, 22050, 44100, 48000, 96000)] public UInt32 SampleRate = 48000;
[ValidValues(11025, 22050, 32000, 44100, 48000, 96000)] public UInt32 SampleRate = 48000;
[MinMax(15, 300)] public UInt32 AudioLatency = 60;
[MarshalAs(UnmanagedType.I1)] public bool MuteSoundInBackground = false;

View file

@ -28,7 +28,11 @@ namespace Mesen.GUI.Forms.Config
BaseConfigForm.InitializeComboBox((ComboBox)cboPlayer3, typeof(ControllerType));
BaseConfigForm.InitializeComboBox((ComboBox)cboPlayer4, typeof(ControllerType));
BaseConfigForm.InitializeComboBox((ComboBox)cboPlayer5, typeof(ControllerType));
//Remove super scope for now
cboPlayer1.Items.RemoveAt(3);
cboPlayer2.Items.RemoveAt(3);
cboPlayer1.SetEnumValue(cfg.Controllers[0].Type);
cboPlayer2.SetEnumValue(cfg.Controllers[1].Type);
cboPlayer3.SetEnumValue(cfg.Controllers[2].Type);

View file

@ -30,6 +30,7 @@
this.tabMain = new System.Windows.Forms.TabControl();
this.tpgGeneral = new System.Windows.Forms.TabPage();
this.tlpMain = new System.Windows.Forms.TableLayoutPanel();
this.chkAutoHideMenu = new System.Windows.Forms.CheckBox();
this.chkSingleInstance = new System.Windows.Forms.CheckBox();
this.chkAutomaticallyCheckForUpdates = new System.Windows.Forms.CheckBox();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
@ -84,7 +85,6 @@
this.chkAlwaysOnTop = new System.Windows.Forms.CheckBox();
this.chkShowFps = new System.Windows.Forms.CheckBox();
this.chkShowDebugInfo = new System.Windows.Forms.CheckBox();
this.chkAutoHideMenu = new System.Windows.Forms.CheckBox();
this.tabMain.SuspendLayout();
this.tpgGeneral.SuspendLayout();
this.tlpMain.SuspendLayout();
@ -160,6 +160,17 @@
this.tlpMain.Size = new System.Drawing.Size(534, 383);
this.tlpMain.TabIndex = 1;
//
// chkAutoHideMenu
//
this.chkAutoHideMenu.AutoSize = true;
this.chkAutoHideMenu.Location = new System.Drawing.Point(13, 118);
this.chkAutoHideMenu.Margin = new System.Windows.Forms.Padding(13, 3, 3, 3);
this.chkAutoHideMenu.Name = "chkAutoHideMenu";
this.chkAutoHideMenu.Size = new System.Drawing.Size(158, 17);
this.chkAutoHideMenu.TabIndex = 25;
this.chkAutoHideMenu.Text = "Automatically hide menu bar";
this.chkAutoHideMenu.UseVisualStyleBackColor = true;
//
// chkSingleInstance
//
this.chkSingleInstance.AutoSize = true;
@ -190,6 +201,7 @@
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.Size = new System.Drawing.Size(534, 26);
this.flowLayoutPanel2.TabIndex = 18;
this.flowLayoutPanel2.Visible = false;
//
// lblDisplayLanguage
//
@ -595,6 +607,7 @@
this.chkMssFormat.TabIndex = 15;
this.chkMssFormat.Text = ".MSS (Mesen-S Save State)";
this.chkMssFormat.UseVisualStyleBackColor = true;
this.chkMssFormat.Visible = false;
//
// chkMsmFormat
//
@ -605,6 +618,7 @@
this.chkMsmFormat.TabIndex = 11;
this.chkMsmFormat.Text = ".MSM (Mesen-S Movies)";
this.chkMsmFormat.UseVisualStyleBackColor = true;
this.chkMsmFormat.Visible = false;
//
// grpDataStorageLocation
//
@ -858,17 +872,6 @@
this.chkShowDebugInfo.Text = "Show debug information";
this.chkShowDebugInfo.UseVisualStyleBackColor = true;
//
// chkAutoHideMenu
//
this.chkAutoHideMenu.AutoSize = true;
this.chkAutoHideMenu.Location = new System.Drawing.Point(13, 118);
this.chkAutoHideMenu.Margin = new System.Windows.Forms.Padding(13, 3, 3, 3);
this.chkAutoHideMenu.Name = "chkAutoHideMenu";
this.chkAutoHideMenu.Size = new System.Drawing.Size(158, 17);
this.chkAutoHideMenu.TabIndex = 25;
this.chkAutoHideMenu.Text = "Automatically hide menu bar";
this.chkAutoHideMenu.UseVisualStyleBackColor = true;
//
// frmPreferences
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);