private void checkBox1_CheckedChanged(object sender, EventArgs e) { CinematicMod cineMod = new CinematicMod(this, r2Process); if (checkBox1.Checked) { CineModEnabled = true; enableCineCommands(true); cineMod.ChangeFOV(fovBar.Value / 10f); cineMod.EnableCinematicMod(); } else { CineModEnabled = false; enableCineCommands(false); cineMod.DisableCinematicMod(); } }
void Form1_FormClosed(object sender, FormClosedEventArgs e) { CinematicMod cineMod = new CinematicMod(this, r2Process); cineMod.DisableCinematicMod(); }