Example #1
0
 private void HideWindow(object sender, RoutedEventArgs e)
 {
     InterruptManager.ResetInterrupts();
     TankBusterManager.ResetTankBusters();
     FormManager.SaveFormInstances();
     Hide();
 }
Example #2
0
        internal void Save()
        {
            var tankBustersDir = @"Settings/" + Me.Name + "/Kefka/TankBusters.json";
            var data           = JsonConvert.SerializeObject(GuiTankBustersList, Formatting.Indented);

            File.WriteAllText(tankBustersDir, data);
            TankBusterManager.ResetTankBusters();
        }
Example #3
0
        public static void Stop()
        {
            if (!Core.OverlayManager.IsActive)
            {
                return;
            }

            Core.OverlayManager.RemoveUIComponent(KefkaOverlayComponent);
            TankBusterManager.ResetTankBusters();
            FormManager.SaveFormInstances();
            KefkaEnemyOverlayIsVisible = false;
        }
Example #4
0
        public void OnInitialize(int version)
        {
            Logger.KefkaLog($"Initializing Version: GitHub {System.Windows.Forms.Application.ProductVersion}");

            TreeRoot.OnStart += OnBotStart;
            TreeRoot.OnStop  += OnBotStop;

            if (version == 2)
            {
                IsChineseVersion = true;
            }

            HookBehaviors();

            IgnoreTargetManager.ResetIgnoreTargets();
            TankBusterManager.ResetTankBusters();
            OpenerManager.ResetOpeners();
            CombatHelper.ResetLastUsed();
        }
Example #5
0
        public void OnInitialize(int version)
        {
            //Logger.KefkaLog($"Initializing Version: {File.ReadAllText(VersionPath)}");
            Logger.KefkaLog($"Initializing Version: GitHub 1.0.0");

            TreeRoot.OnStart += OnBotStart;
            TreeRoot.OnStop  += OnBotStop;

            if (version == 2)
            {
                IsChineseVersion = true;
            }

            HookBehaviors();

            var _class = RoutineManager.CurrentClass;

            InterruptManager.ResetInterrupts();
            IgnoreTargetManager.ResetIgnoreTargets();
            TankBusterManager.ResetTankBusters();
            OpenerManager.ResetOpeners();
            CombatHelper.ResetLastUsed();
        }