Add a "saved" OSD message when clicking ok/save on config dialogs

This commit is contained in:
adelikat 2012-09-26 01:28:48 +00:00
parent 2f8ce5e1d1
commit f167551154
6 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,8 @@ namespace BizHawk.MultiClient
Global.AutoFireController.Off = Global.Config.AutofireOff = (int)OffNumeric.Value;
Global.Config.AutofireLagFrames = LagFrameCheck.Checked;
Global.AutofireStickyXORAdapter.SetOnOffPatternFromConfig();
Global.OSD.AddMessage("Autofire settings saved");
this.Close();
}

View File

@ -132,7 +132,6 @@ namespace BizHawk.MultiClient.tools
private void IDB_SAVE_Click(object sender, EventArgs e)
{
Global.Config.FastForwardBinding = IDW_FASTFORWARD.Text;
Global.Config.FrameAdvanceBinding = IDW_FRAMEADVANCE.Text;
Global.Config.RebootCoreResetBinding = IDW_REBOOTCORE.Text;
@ -233,6 +232,7 @@ namespace BizHawk.MultiClient.tools
Global.Config.ToggleSNESOBJ3Binding = IDW_SNES_ToggleOBJ3.Text;
Global.Config.ToggleSNESOBJ4Binding = IDW_SNES_ToggleOBJ4.Text;
Global.OSD.AddMessage("Hotkey settings saved");
this.DialogResult = DialogResult.OK;
this.Close();
}

View File

@ -446,6 +446,8 @@ namespace BizHawk.MultiClient
Label TempLabel = Labels[button] as Label;
TempLabel.Dispose();
}
Global.OSD.AddMessage("Controller settings saved");
}
private void InputConfig_Load(object sender, EventArgs e)

View File

@ -214,6 +214,7 @@ namespace BizHawk.MultiClient
private void OK_Click(object sender, EventArgs e)
{
SaveSettings();
Global.OSD.AddMessage("Message settings saved");
this.Close();
}

View File

@ -252,6 +252,7 @@ namespace BizHawk.MultiClient
private void OK_Click(object sender, EventArgs e)
{
SaveSettings();
Global.OSD.AddMessage("Path settings saved");
this.Close();
}

View File

@ -33,6 +33,7 @@ namespace BizHawk.MultiClient
Global.Sound.ChangeVolume(Global.Config.SoundVolume);
Global.Sound.UpdateSoundSettings();
Global.Sound.StartSound();
Global.OSD.AddMessage("Sound settings saved");
this.Close();
}