private static void ForceShow()
 {
     CooldownWindow.Show();
     CooldownWindow.Topmost = true;
     CharacterWindow.Show();
     CharacterWindow.Topmost = true;
     BossGauge.Show();
     BossGauge.Topmost = true;
     BuffBar.Show();
     BuffBar.Topmost = true;
 }
예제 #2
0
        private static void LoadCooldownWindow()
        {
            var cooldownWindowThread = new Thread(new ThreadStart(() =>
            {
                SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(Dispatcher.CurrentDispatcher));
                CooldownWindow = new CooldownWindow();
                //CooldownWindow.AllowsTransparency = SettingsManager.CooldownWindowSettings.AllowTransparency;

                CooldownWindow.Show();
                waiting = false;
                Dispatcher.Run();
            }));

            cooldownWindowThread.Name = "Cooldown bar thread";
            cooldownWindowThread.SetApartmentState(ApartmentState.STA);
            cooldownWindowThread.Start();
            Debug.WriteLine("Cd window loaded");
        }
예제 #3
0
        private static void LoadCooldownWindow()
        {
            var cooldownWindowThread = new Thread(() =>
            {
                SynchronizationContext.SetSynchronizationContext(
                    new DispatcherSynchronizationContext(Dispatcher.CurrentDispatcher));
                Thread.CurrentThread.Priority = ThreadPriority.Highest;
                CooldownWindow = new CooldownWindow();
                if (CooldownWindow.WindowSettings.Enabled)
                {
                    CooldownWindow.Show();
                }
                AddDispatcher(Thread.CurrentThread.ManagedThreadId, Dispatcher.CurrentDispatcher);
                Dispatcher.Run();
                RemoveDispatcher(Thread.CurrentThread.ManagedThreadId);
            })
            {
                Name = "Cdwn"
            };

            cooldownWindowThread.SetApartmentState(ApartmentState.STA);
            cooldownWindowThread.Start();
        }