public void RemoveNotifier(SoundNotifier notifier) { AllNotifiers.Remove(notifier.Player); Settings.Value.ActiveCharacterNames.Remove(notifier.Player); Settings.DelayedSave(); MainUI.RemoveNotifierController(notifier.GetUIHandle()); }
public void AddNotifier(string charName) { var notifier = new SoundNotifier(this, charName, this.ModuleDataDir); MainUI.AddNotifierController(notifier.GetUIHandle()); AllNotifiers.Add(charName, notifier); Settings.Value.ActiveCharacterNames.Add(charName); Settings.DelayedSave(); }