internal void SetFATEAsOccured(FATE fate) { isMatched = false; tryHide(); this.Invoke(() => { label_DutyCount.Text = fate.Area.Name; label_DutyName.Text = fate.Name; label_DutyStatus.SetLocalizedText("overlay-fate-occured"); if (Settings.TTS) { Sound_Helper.TTS($"{fate.Name} {Localization.GetText("overlay-fate-occured")}", Localization.GetText("tts-langset")); } if (Settings.FlashWindow) { WinApi.FlashWindow(mainForm.FFXIVProcess); } if (Settings.PlaySound && Settings.SoundLocation != "" && System.IO.File.Exists(Settings.SoundLocation)) { Sound_Helper.Play(Settings.SoundLocation, "sound_alert"); //System.Media.SoundPlayer player = new System.Media.SoundPlayer(Settings.SoundLocation); //player.Play(); } if (!Settings.ShowOverlay) { mainForm.ShowNotification("tweet-fate-occured", fate.Name); } accentColor = Color.DarkOrange; StartBlink(); Log.I("l-fate-occured-info", fate.Name); }); }
internal void SetDutyAsMatched(Instance instance) { isMatched = false; tryHide(); this.Invoke(() => { label_DutyCount.SetLocalizedText("overlay-queue-waiting-confirm"); label_DutyName.Text = instance.Name; label_DutyStatus.SetLocalizedText("overlay-queue-matched"); if (Settings.TTS) { Sound_Helper.TTS($"{instance.Name} {Localization.GetText("overlay-queue-matched")}", Localization.GetText("tts-langset")); } if (Settings.FlashWindow) { WinApi.FlashWindow(mainForm.FFXIVProcess); } if (Settings.PlaySound && Settings.SoundLocation != "" && System.IO.File.Exists(Settings.SoundLocation)) { Sound_Helper.Play(Settings.SoundLocation, "sound_alert"); //System.Media.SoundPlayer player = new System.Media.SoundPlayer(Settings.SoundLocation); //player.Play(); } if (!Settings.ShowOverlay) { mainForm.ShowNotification("notification-queue-matched", instance.Name); } Log.S("l-queue-matched", instance.Name); accentColor = Color.Red; StartBlink(); }); }
private void button_tts_test_Click(object sender, EventArgs e) { Sound_Helper.TTS("hello world", Localization.GetText("tts-langset")); }