/// <summary> /// Generates the base menu /// </summary> private static void GenerateBaseMenu() { Variables.Menu = new Menu( "iSeries: " + ObjectManager.Player.ChampionName, "iseries." + ObjectManager.Player.ChampionName, true); var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Variables.Menu.AddSubMenu(targetSelectorMenu); orbwalking = Variables.Menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Variables.Orbwalker = new Orbwalking.Orbwalker(orbwalking); orbwalking.AddItem(new MenuItem("AutoWindup", "iSeries - Auto Windup").SetValue(false)).ValueChanged += (sender, argsEvent) => { if (argsEvent.GetNewValue <bool>()) { CheckAutoWindUp(); } }; Variables.Menu.AddItem(new MenuItem("com.iseries.autobuy", "AutoBuy (Scrying Orb, etc)").SetValue(true)); Cleanser.OnLoad(Variables.Menu); ItemManager.OnLoad(Variables.Menu); // TODO add an item manager / auto qss etc / some utils maybe? // Activator# Bik }
void SetUpEvents() { Cleanser.OnLoad(); PotionManager.OnLoad(Menu); ItemManager.OnLoad(Menu); Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; Drawing.OnDraw += Drawing_OnDraw; }
static void SetUpEvents() { Cleanser.OnLoad(); PotionManager.OnLoad(Menu); ItemManager.OnLoad(Menu); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += OrbwalkingAfterAttack; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; Stealth.OnStealth += Stealth_OnStealth; Drawing.OnDraw += Drawing_OnDraw; Obj_AI_Hero.OnPlayAnimation += Obj_AI_Hero_OnPlayAnimation; GameObject.OnCreate += GameObject_OnCreate; }
public static void OnLoad(EventArgs args) { Player = ObjectManager.Player; Config = new Menu("DZAIO", "dzaio", true); TargetSelector.AddToMenu(Config.SubMenu("Target selector")); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); Game.PrintChat("<b><font color='#FF0000'>[DZAIO]</font></b><font color='#FFFFFF'> DZAIO Loaded!</font> v{0}", Assembly.GetExecutingAssembly().GetName().Version); if (ChampList.ContainsKey(Player.ChampionName)) { CurrentChampion = ChampList[Player.ChampionName].Invoke(); CurrentChampion.OnLoad(Config); CurrentChampion.SetUpSpells(); CurrentChampion.RegisterEvents(); ItemManager.OnLoad(Config); Game.PrintChat("<b><font color='#FF0000'>[DZAIO] </font></b><font color='#FFFFFF'>Loaded</font> <b><font color='#FF0000'>{0}</font></b> plugin! <font color='#FFFFFF'> Have fun! </font>", Player.ChampionName); } Game.PrintChat("<b><font color='#FF0000'>[DZAIO] </font></b><font color='#FFFFFF'>Special credits to:</font> <b><font color='#FF0000'>Hellsing</font></b>, <b><font color='#FF0000'>ChewyMoon</font></b> "); Cleanser.OnLoad(); ChatHook.OnLoad(); DebugHelper.OnLoad(); NotificationDrawing.OnLoad(); PotionManager.OnLoad(Config); Config.AddItem(new MenuItem("dzaio.hpdraw.disable", "Disable HP Bar Drawing").SetValue(false)); var aboutMenu = new Menu(Player.ChampionName + " - About", "dzaio.about"); { aboutMenu.AddItem(new MenuItem("dzaio.about.line1", "DZAIO By Asuna/DZ191")); aboutMenu.AddItem(new MenuItem("dzaio.about.line2", "v." + Assembly.GetExecutingAssembly().GetName().Version)); aboutMenu.AddItem(new MenuItem("dzaio.about.line3", " ")); aboutMenu.AddItem(new MenuItem("dzaio.about.line4", "If you liked/appreciated the assembly")); aboutMenu.AddItem(new MenuItem("dzaio.about.line5", "Feel free to donate at:")); aboutMenu.AddItem(new MenuItem("dzaio.about.line6", "*****@*****.**")); } Config.AddSubMenu(aboutMenu); Config.AddToMainMenu(); }
/// <summary> /// TODO The create menu. /// </summary> private static void CreateMenu() { Menu = new Menu("iDzLucian", "com.idzlucian", true); var orbMenu = new Menu("Lucian - Orbwalker", "com.idzlucian.orbwalker"); orbwalker = new Orbwalking.Orbwalker(orbMenu); Menu.AddSubMenu(orbMenu); var tsMenu = new Menu("Lucian - Target Selector", "com.idzlucian.ts"); TargetSelector.AddToMenu(tsMenu); Menu.AddSubMenu(tsMenu); var comboMenu = new Menu("Lucian - Combo", "com.idzlucian.combo"); comboMenu.AddModeMenu( Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, true, false, false }); comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 35, 35, 25 }); var skillOptionsCombo = new Menu("Skill Options", "com.idzlucian.combo.skilloptions"); { skillOptionsCombo.AddItem( new MenuItem("com.idzlucian.skilloptions.weave", "Spell Weaving").SetValue(true)); skillOptionsCombo.AddItem( new MenuItem("com.idzlucian.combo.useextendedq", "Use Extended Q Combo").SetValue(true)); skillOptionsCombo.AddItem( new MenuItem("com.idzlucian.harass.useextendedq", "Use Extended Q Harass").SetValue(true)); skillOptionsCombo.AddItem(new MenuItem("com.idzlucian.combo.useEQSteal", "Use EQ KS").SetValue(true)); } comboMenu.AddSubMenu(skillOptionsCombo); Menu.AddSubMenu(comboMenu); var harassMenu = new Menu("Lucian - Harass", "com.idzlucian.harass"); harassMenu.AddModeMenu(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true }); harassMenu.AddManaManager(Mode.Harass, new[] { SpellSlot.Q, SpellSlot.W }, new[] { 35, 35 }); // harassMenu.AddItem( // new MenuItem("com.idzlucian.harass.useextendedq", "Use Extended Q Harass").SetValue(true)); Menu.AddSubMenu(harassMenu); var farmMenu = new Menu("Lucian - Farm", "com.idzlucian.farm"); farmMenu.AddModeMenu(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { true }); farmMenu.AddManaManager(Mode.Laneclear, new[] { SpellSlot.Q }, new[] { 35 }); var farmOptions = new Menu("Farm Options", "com.idzlucian.farm.farm"); { farmOptions.AddItem( new MenuItem("com.idzlucian.farm.q.lc.minhit", "Min Minions for Q LC").SetValue(new Slider(2, 1, 6))); } farmMenu.AddSubMenu(farmOptions); Menu.AddSubMenu(farmMenu); var miscMenu = new Menu("Lucian - Misc", "com.idzlucian.misc"); { miscMenu.AddHitChanceSelector(); miscMenu.AddItem( new MenuItem("com.idzlucian.misc.antigpe", "Use E Against enemy gapclosers").SetValue(false)); miscMenu.AddItem(new MenuItem("com.idzlucian.misc.debug", "Debug").SetValue(false)); } var noExtQOnMenu = new Menu("Misc - Don't Use Extended Q Harass On", "com.idzlucian.misc.noextq"); { foreach (var Hero in HeroManager.Enemies) { noExtQOnMenu.AddItem( new MenuItem( "com.idzlucian.misc.noextq." + Hero.ChampionName.ToLowerInvariant(), Hero.ChampionName).SetValue(false)); } } Menu.AddSubMenu(miscMenu); Cleanser.OnLoad(); Menu.AddToMainMenu(); }