made the status bar toggleable

This commit is contained in:
beirich 2011-06-10 04:41:33 +00:00
parent 5a73fc03ad
commit a219e4fb64
4 changed files with 187 additions and 152 deletions

View File

@ -129,6 +129,7 @@
public int DispRecx = 0;
public int DispRecy = 48;
public bool ForceGDI = false;
public bool DisplayStatusBar = true;
// Sound options
public bool SoundEnabled = true;

File diff suppressed because it is too large Load Diff

View File

@ -683,5 +683,17 @@ namespace BizHawk.MultiClient
Global.Config.AcceptBackgroundInput ^= true;
MessageBox.Show("Background input settings will take effect the next time Bizhawk loads", "Background input property change", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void displayStatusBarToolStripMenuItem_Click(object sender, EventArgs e)
{
Global.Config.DisplayStatusBar ^= true;
displayStatusBarToolStripMenuItem.Checked = Global.Config.DisplayStatusBar;
if (!InFullscreen)
{
statusStrip1.Visible = Global.Config.DisplayStatusBar;
PerformLayout();
FrameBufferResized();
}
}
}
}

View File

@ -187,6 +187,11 @@ namespace BizHawk.MultiClient
if (Global.Config.MainWndx >= 0 && Global.Config.MainWndy >= 0 && Global.Config.SaveWindowPosition)
this.Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
if (Global.Config.DisplayStatusBar == false)
statusStrip1.Visible = false;
else
displayStatusBarToolStripMenuItem.Checked = true;
if (Global.Config.StartPaused)
PauseEmulator();
}
@ -1711,25 +1716,24 @@ namespace BizHawk.MultiClient
FormBorderStyle = FormBorderStyle.None;
WindowState = FormWindowState.Maximized;
MainMenuStrip.Visible = false;
statusStrip1.Visible = false;
PerformLayout();
Global.RenderPanel.Resized = true;
InFullscreen = true;
statusStrip1.Visible = false;
}
else
{
FormBorderStyle = FormBorderStyle.FixedSingle;
WindowState = FormWindowState.Normal;
MainMenuStrip.Visible = true;
statusStrip1.Visible = Global.Config.DisplayStatusBar;
Location = WindowedLocation;
PerformLayout();
FrameBufferResized();
InFullscreen = false;
statusStrip1.Visible = true;
}
}
private void viewToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
{
displayFPSToolStripMenuItem.Checked = Global.Config.DisplayFPS;