示例#1
0
        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);
            });
        }
示例#2
0
        internal void SetFATEAsOccured(FATE fate)
        {
            this.Invoke(() =>
            {
                label_DutyCount.Text = fate.Area.Name;
                label_DutyName.Text  = fate.Name;
                label_DutyStatus.SetLocalizedText("overlay-fate-occured");

                accentColor = Color.DarkOrange;
                StartBlink();
            });
        }
示例#3
0
        internal void SetFATEAsAppeared(FATE fate)
        {
            this.Invoke(() =>
            {
                label_DutyCount.Text  = Data.GetArea(fate.Zone).Name;
                label_DutyName.Text   = fate.Name;
                label_DutyStatus.Text = "돌발 임무 발생!";

                accentColor = Color.DarkOrange;
                StartBlink();
            });
        }
示例#4
0
        internal void SetFATEAsAppeared(FATE fate)
        {
            this.Invoke(() =>
            {
                label_DutyCount.Text = Data.GetArea(fate.Zone).Name;
                label_DutyName.Text = string.Format("< {0} >", fate.Name);
                label_DutyStatus.Text = "돌발 임무 발생!";

                accentColor = Color.DarkOrange;
                StartBlink();
            });
        }