Example #1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            var champion = Type.GetType("OKTRAIO.Champions." + Player.Instance.ChampionName);

            if (champion != null)
            {
                Console.Write("[MarksmanAIO] " + Player.Instance.ChampionName + " Loaded");
                Champion = (AIOChampion)Activator.CreateInstance(champion);
                Events.Init();
                MainMenu.Init();
                UtilityMenu.Init();
                Champion.Init();
                JsonSettings.Init();
                Utility.Activator.LoadSpells();
                Utility.Activator.Init();
                Humanizer.Init();
                SkinManagement.Init();
                if (MainMenu._menu["playsound"].Cast <CheckBox>().CurrentValue)
                {
                    PlayWelcome();
                }
                Chat.Print("MarksmanAIO: " + Player.Instance.ChampionName + " Loaded", Color.CornflowerBlue);
            }
            else
            {
                Chat.Print("MarksmanAIO doesn't support: " + Player.Instance.ChampionName);
            }

            if (RandomUlt.IsCompatibleChamp() && champion == null)
            {
                UtilityMenu.Init();
            }
            if (BaseUlt.IsCompatibleChamp())
            {
                UtilityMenu.BaseUltMenu();
                BaseUlt.Initialize();
            }
            if (RandomUlt.IsCompatibleChamp())
            {
                UtilityMenu.RandomUltMenu();
                RandomUlt.Initialize();
            }
            Value.Init();
        }