Exemplo n.º 1
0
        public void DisableVSync()
        {
            renderer.dontRender            = true;
            vSyncToolStripMenuItem.Checked = false;
            renderer.Device.SetVSync(vSyncToolStripMenuItem.Checked);
            renderer.dontRender = false;

            HPPConfig.GetInstance().VSync = false;
        }
Exemplo n.º 2
0
        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!
        }
Exemplo n.º 3
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     HPPConfig.GetInstance().Load(this);
 }
Exemplo n.º 4
0
 public void SetAutomaticallySaveConfig(bool value)
 {
     autoSaveProjectOnClosingToolStripMenuItem.Checked = value;
     HPPConfig.GetInstance().AutomaticallySaveConfig = value;
 }
Exemplo n.º 5
0
 public void SetAutoLoadLastProject(bool value)
 {
     autoLoadLastProjectOnLaunchToolStripMenuItem.Checked = value;
     HPPConfig.GetInstance().AutomaticallyLoadLastConfig = value;
 }
Exemplo n.º 6
0
 public void SetCheckForUpdatesOnStartup(bool value)
 {
     checkForUpdatesOnStartupToolStripMenuItem.Checked = value;
     HPPConfig.GetInstance().CheckForUpdatesOnStartup = value;
 }
Exemplo n.º 7
0
 private void CheckForUpdatesOnStartupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     checkForUpdatesOnStartupToolStripMenuItem.Checked = !checkForUpdatesOnStartupToolStripMenuItem.Checked;
     HPPConfig.GetInstance().CheckForUpdatesOnStartup = checkForUpdatesOnStartupToolStripMenuItem.Checked;
 }