public static void Game_OnGameLoad() { if (Player.ChampionName != ChampionName) return; Spells.Initiate(); Config = MainMenu.AddMenu(string.Format("xQx | {0}", ChampionName), ChampionName); PlayerSpells.Initialize(); DamageCalc = new DamageCalc(); Utils = new Utils(); Menu = new Menu(); Items = new Items(); Draws = new Draws(); Combo = new Combo(); Harass = new Harass(); LaneClear = new LaneClear(); JungleClear = new JungleClear(); OnUpdate = new OnUpdate(); LogicW.Initiate(); Config.Add("GameMode", new ComboBox("Game Mode:", 0, "AP", "AD", "Hybrid", "Tanky")); Chat.Print( "Mordekasier</font> <font color='#ff3232'> How to Train Your Dragon </font> <font color='#FFFFFF'>Loaded!</font>"); }
private static void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != ChampionName) return; Spells.Initiate(); Config = new LeagueSharp.Common.Menu(string.Format("xQx | {0}", ChampionName), ChampionName, true); Config.AddSubMenu(new LeagueSharp.Common.Menu("Orbwalking", "Orbwalking")); var targetSelectorMenu = new LeagueSharp.Common.Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); PlayerSpells.Initialize(); DamageCalc = new DamageCalc(); Utils = new Utils(); Menu = new Menu(); Items = new Items(); Draws = new Draws(); Combo = new Combo(); Harass = new Harass(); LaneClear = new LaneClear(); JungleClear = new JungleClear(); OnUpdate = new OnUpdate(); LogicW.Initiate(); Config.AddItem( new MenuItem("GameMode", "Game Mode:").SetValue(new StringList(new[] { "AP", "AD", "Hybrid", "Tanky" }, 0))) .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); var oMenu = new LeagueSharp.Common.Menu("Other Settings", "OtherSettings"); { oMenu.AddItem(new MenuItem("Other.Items", "Use Items").SetValue(true)); oMenu.AddItem(new MenuItem("Other.Ignite", "Use Ignite").SetValue(true)); oMenu.AddItem(new MenuItem("Other.Sheen", "Check Sheen on Combo").SetValue(true)); oMenu.AddItem(new MenuItem("Other.Health", "Auto R if my Health < %").SetValue(new Slider(15, 0, 100))); Config.AddSubMenu(oMenu); } Config.AddToMainMenu(); Game.PrintChat("Mordekasier</font> <font color='#ff3232'> How to Train Your Dragon </font> <font color='#FFFFFF'>Loaded!</font>"); }