public void DisableVSync() { renderer.dontRender = true; vSyncToolStripMenuItem.Checked = false; renderer.Device.SetVSync(vSyncToolStripMenuItem.Checked); renderer.dontRender = false; HPPConfig.GetInstance().VSync = false; }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { HPPConfig.GetInstance().Save(); if (HPPConfig.GetInstance().AutomaticallySaveConfig) { if (currentSavePath != null) { var hppConfig = ProjectConfig.FromCurrentInstance(this); ProjectConfig.Save(hppConfig, currentSavePath); } } //Environment.Exit(0); // Ensure background threads close too! }
private void MainForm_Load(object sender, EventArgs e) { HPPConfig.GetInstance().Load(this); }
public void SetAutomaticallySaveConfig(bool value) { autoSaveProjectOnClosingToolStripMenuItem.Checked = value; HPPConfig.GetInstance().AutomaticallySaveConfig = value; }
public void SetAutoLoadLastProject(bool value) { autoLoadLastProjectOnLaunchToolStripMenuItem.Checked = value; HPPConfig.GetInstance().AutomaticallyLoadLastConfig = value; }
public void SetCheckForUpdatesOnStartup(bool value) { checkForUpdatesOnStartupToolStripMenuItem.Checked = value; HPPConfig.GetInstance().CheckForUpdatesOnStartup = value; }
private void CheckForUpdatesOnStartupToolStripMenuItem_Click(object sender, EventArgs e) { checkForUpdatesOnStartupToolStripMenuItem.Checked = !checkForUpdatesOnStartupToolStripMenuItem.Checked; HPPConfig.GetInstance().CheckForUpdatesOnStartup = checkForUpdatesOnStartupToolStripMenuItem.Checked; }