private static void Loading_OnLoadingComplete(EventArgs args) { MainMenu.Init(); UtilityManager.Initialize(); Value.Init(); var champion = Type.GetType("OKTRAIO.Champions." + Player.Instance.ChampionName); if (champion != null) { Console.WriteLine("[MarksmanAIO] " + Player.Instance.ChampionName + " Loaded"); IconManager.Init(); Champion = (AIOChampion)Activator.CreateInstance(champion); Events.Init(); Value.Init(); Champion.Init(); //JsonSettings.Init(); UtilityManager.Activator.LoadSpells(); 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); } Humanizer.Init(); }
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(); }
private static void Loading_OnLoadingComplete(EventArgs args) { switch (Player.Instance.ChampionName) { case "Ashe": Champion = new Ashe(); break; case "Caitlyn": Champion = new Caitlyn(); break; case "Corki": Champion = new Corki(); break; case "Draven": Champion = new Draven(); break; case "Ezreal": Champion = new Ezreal(); break; case "Graves": Champion = new Graves(); break; case "Jinx": Champion = new Jinx(); break; case "Kalista": Champion = new Kalista(); break; case "Kindred": Champion = new Kindred(); break; case "Kog'Maw": Champion = new KogMaw(); break; case "Lucian": Champion = new Lucian(); break; case "MissFortune": Champion = new MissFortune(); break; case "Quinn": Champion = new Quinn(); break; case "Sivir": Champion = new Sivir(); break; case "Teemo": Champion = new Teemo(); break; case "Tristana": Champion = new Tristana(); break; case "Twitch": Champion = new Twitch(); break; case "Urgot": Champion = new Urgot(); break; case "Varus": Champion = new Varus(); break; case "Vayne": Champion = new Vayne(); break; case "Katarina": Champion = new Katarina(); break; //case "Vayne": champion = new Vayne(); break; //etc } if (Champion != null) { Events.Init(); MainMenu.Init(); UtilityMenu.Init(); Champion.Init(); Activator.LoadSpells(); Activator.Init(); Humanizer.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); } }