Exemplo n.º 1
0
		private void NESSoundConfig_Load(object sender, EventArgs e)
		{
			_oldSettings = _nes.GetSettings();
			_settings = _oldSettings.Clone();

			trackBar1.Value = _settings.Square1;
			trackBar2.Value = _settings.Square2;
			trackBar3.Value = _settings.Triangle;
			trackBar4.Value = _settings.Noise;
			trackBar5.Value = _settings.DMC;
		}
Exemplo n.º 2
0
		public NESSoundConfig()
		{
			InitializeComponent();
			// get baseline maxes from a default config object
			var d = new NES.NESSettings();
			trackBar1.Maximum = d.Square1;
			trackBar2.Maximum = d.Square2;
			trackBar3.Maximum = d.Triangle;
			trackBar4.Maximum = d.Noise;
			trackBar5.Maximum = d.DMC;
		}
Exemplo n.º 3
0
 private void RestoreDefaultsButton_Click(object sender, EventArgs e)
 {
     settings = new NES.NESSettings();
     LoadStuff();
 }
Exemplo n.º 4
0
 private void NESGraphicsConfig_Load(object sender, EventArgs e)
 {
     nes = Global.Emulator as NES;
     settings = (NES.NESSettings)nes.GetSettings();
     LoadStuff();
 }