예제 #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();
            });
        }