private static void Main(string[] args) { GameEvent.OnGameLoad += delegate() { objPlayer = ObjectManager.Player; SupportChampionsNotify(); if (allSupportedChampions.All(x => !string.Equals(x, objPlayer.CharacterName, StringComparison.CurrentCultureIgnoreCase))) { return; } MainMenu = new Menu("Olympus.AIO", "Olympus.AIO: " + objPlayer.CharacterName, true); MenuManager.GeneralExecute(); switch (objPlayer.CharacterName) { case "Evelynn": Evelynn.OnLoad(); break; } MainMenu.Attach(); }; }
public static void Main(string[] args) { GameEvent.OnGameLoad += delegate() { objPlayer = ObjectManager.Player; SupportedChampionsNotify(); if (SupportedChampions.All(x => !string.Equals(x, objPlayer.CharacterName, StringComparison.CurrentCultureIgnoreCase))) { MainMenu = new Menu("OlympusAIO." + objPlayer.CharacterName + ".NotSupported", "OlympusAIO: " + "Not Supported", true); } else { MainMenu = new Menu("OlympusAIO." + objPlayer.CharacterName, "OlympusAIO: " + objPlayer.CharacterName, true); } MenuManager.Execute.General(); switch (objPlayer.CharacterName) { case "AurelionSol": AurelionSol.OnLoad(); break; case "Evelynn": Evelynn.OnLoad(); break; case "Heimerdinger": Heimerdinger.OnLoad(); break; case "Lissandra": Lissandra.OnLoad(); break; case "Poppy": Poppy.OnLoad(); break; case "Teemo": Teemo.OnLoad(); break; } General.Methods.OnLoad(); MainMenu.Attach(); }; }