static Config() { Menu = MainMenu.AddMenu(MenuName, MenuName.ToLower()); Modes.InitializeModes(); GapcloserMenu.Initializer(); AutoHarass.Initializer(); Drawings.Initializer(); ExtrasMenu.Initializer(); MiscMenu.Initializer(); }
static Config() { Menu = MainMenu.AddMenu(MenuName, MenuName.ToLower()); Modes.InitializeModes(); InterrupterMenu.Initializer(); GapcloserMenu.Initializer(); CharmMenu.Initializer(); AutoHarass.Initializer(); Drawings.Initializer(); }
internal static void BuildAntiGapcloserMenu() { if (!EntityManager.Heroes.Enemies.Any(x => Gapcloser.GapCloserList.Exists(e => e.ChampName == x.ChampionName) || (x.Hero == Champion.Rengar))) { return; } GapcloserMenu = Menu.AddSubMenu("Anti-Gapcloser"); GapcloserMenu.AddGroupLabel("Global settings"); GapcloserMenu.Add("MenuManager.GapcloserMenu.Enabled", new CheckBox("Anti-Gapcloser Enabled")); GapcloserMenu.Add("MenuManager.GapcloserMenu.OnlyInCombo", new CheckBox("Active only in Combo mode", false)); GapcloserMenu.AddSeparator(15); foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => Gapcloser.GapCloserList.Exists(e => e.ChampName == x.ChampionName))) { var gapclosers = Gapcloser.GapCloserList.FindAll(e => e.ChampName == enemy.ChampionName); if (gapclosers.Count <= 0) { continue; } GapcloserMenu.AddGroupLabel(enemy.ChampionName); foreach (var gapcloser in gapclosers) { GapcloserMenu.AddLabel("[" + gapcloser.SpellSlot + "] " + gapcloser.SpellName); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Delay", new Slider("Delay", 0, 0, 500)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Hp", new Slider("Only if I'm below under {0} % of my HP", 100)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Enemies", new Slider("Only if {0} or less enemies are near", 5, 1, 5)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Enabled", new CheckBox("Enabled")); GapclosersFound++; } } if (EntityManager.Heroes.Enemies.All(x => x.Hero != Champion.Rengar)) { return; } GapcloserMenu.AddGroupLabel("Rengar"); GapcloserMenu.AddLabel("[Passive] Leap"); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Delay", new Slider("Delay", 0, 0, 500)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Hp", new Slider("Only if I'm below under {0} % of my HP", 100)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Enemies", new Slider("Only if {0} or less enemies are near", 5, 1, 5)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Enabled", new CheckBox("Enabled")); GapclosersFound++; }
internal static void BuildAntiGapcloserMenu() { if (!EntityManager.Heroes.Enemies.Any(x => Gapcloser.GapCloserList.Exists(e => e.ChampName == x.ChampionName) || (x.Hero == Champion.Rengar))) { return; } GapcloserMenu = Menu.AddSubMenu("Anti-Gapcloser"); GapcloserMenu.AddGroupLabel("Global settings"); GapcloserMenu.Add("MenuManager.GapcloserMenu.Enabled", new CheckBox("Atilma onleyicisi aktif")); GapcloserMenu.Add("MenuManager.GapcloserMenu.OnlyInCombo", new CheckBox("Sadece komboda aktif", false)); GapcloserMenu.AddSeparator(15); foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => Gapcloser.GapCloserList.Exists(e => e.ChampName == x.ChampionName))) { var gapclosers = Gapcloser.GapCloserList.FindAll(e => e.ChampName == enemy.ChampionName); if (gapclosers.Count <= 0) { continue; } GapcloserMenu.AddGroupLabel(enemy.ChampionName); foreach (var gapcloser in gapclosers) { GapcloserMenu.AddLabel("[" + gapcloser.SpellSlot + "] " + gapcloser.SpellName); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Delay", new Slider("Gecikme", 0, 0, 500)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Hp", new Slider("Sadece altindaysa {0} % benim HP", 100)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Enemies", new Slider("Sadece if {0} yada daha az dusman yakinsa", 5, 1, 5)); GapcloserMenu.Add("MenuManager.GapcloserMenu." + enemy.ChampionName + "." + gapcloser.SpellSlot + ".Enabled", new CheckBox("Aktif")); GapclosersFound++; } } if (EntityManager.Heroes.Enemies.All(x => x.Hero != Champion.Rengar)) { return; } GapcloserMenu.AddGroupLabel("Rengar"); GapcloserMenu.AddLabel("[Passive] Leap"); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Delay", new Slider("Gecikme", 0, 0, 500)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Hp", new Slider("Sadece altindaysa {0} % benim HP", 100)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Enemies", new Slider("Sadece if {0} yada daha az dusman yakinsa", 5, 1, 5)); GapcloserMenu.Add("MenuManager.GapcloserMenu.Rengar.Passive.Enabled", new CheckBox("Aktif")); GapclosersFound++; }
static Config() { Menu = MainMenu.AddMenu(MenuName, MenuName.ToLower()); Menu.AddLabel("Just a simple Vayne addon, with customizable options."); Menu.AddLabel("Leave feedback in forum thread if you have any sugestions."); Menu.AddLabel("Good luck in your game."); Modes.Initialize(); InterrupterMenu.Initializer(); GapcloserMenu.Initializer(); TumbleMenu.Initializer(); CondemnMenu.Initializer(); Drawings.Initializer(); Misc.Initializer(); }
/// <summary> /// Called when Loading is Completed /// </summary> /// <param name="args">The loading arguments</param> private static void Loading_OnLoadingComplete(EventArgs args) { try { if (ChampionName != PlayerInstance.BaseSkinName) { return; } Bootstrap.Init(null); Q = new Spell.Skillshot(SpellSlot.Q, 800, SkillShotType.Circular, 283, 1100, 210); W = new Spell.Targeted(SpellSlot.W, 550); E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 500, 1750, 70); R = new Spell.Active(SpellSlot.R, int.MaxValue); SorakaBuddy = MainMenu.AddMenu("SorakaBuddy", "SorakaBuddy"); // Combo Menu ComboMenu = SorakaBuddy.AddSubMenu("Combo", "Combo"); ComboMenu.AddGroupLabel("Combo Setting"); ComboMenu.Add("useQ", new CheckBox("Use Q")); ComboMenu.Add("useE", new CheckBox("Use E")); ComboMenu.AddSeparator(); ComboMenu.AddGroupLabel("ManaManager"); ComboMenu.Add("manaQ", new Slider("Min Mana % before Q", 25)); ComboMenu.Add("manaE", new Slider("Min Mana % before E", 25)); // Harass Menu HarassMenu = SorakaBuddy.AddSubMenu("Harass", "Harass"); HarassMenu.AddGroupLabel("Harass Setting"); HarassMenu.Add("useQ", new CheckBox("Use Q")); HarassMenu.Add("useE", new CheckBox("Use E")); HarassMenu.AddSeparator(); HarassMenu.AddGroupLabel("ManaManager"); HarassMenu.Add("manaQ", new Slider("Min Mana % before Q", 25)); HarassMenu.Add("manaE", new Slider("Min Mana % before E", 25)); // Heal Menu var allies = EntityManager.Heroes.Allies.Where(a => !a.IsMe).ToArray(); HealMenu = SorakaBuddy.AddSubMenu("Auto Heal", "Heal"); HealMenu.AddGroupLabel("Auto W Setting"); HealMenu.Add("autoW", new CheckBox("Auto W Allies and Me")); HealMenu.Add("autoWHP_self", new Slider("Own HP % before using W", 50)); HealMenu.Add("autoWHP_other", new Slider("Ally HP % before W", 50)); HealMenu.AddSeparator(); HealMenu.AddGroupLabel("Auto R Setting"); HealMenu.Add("useR", new CheckBox("Auto R on HP %")); HealMenu.AddSeparator(); HealMenu.Add("hpR", new Slider("HP % before using R", 25)); HealMenu.AddSeparator(); HealMenu.AddLabel("Which Champion to Heal? Using W?"); foreach (var a in allies) { HealMenu.Add("autoHeal_" + a.BaseSkinName, new CheckBox("Auto Heal with W " + a.ChampionName)); } HealMenu.AddSeparator(); HealMenu.AddLabel("Which Champion to Heal? Using R?"); foreach (var a in allies) { HealMenu.Add("autoHealR_" + a.BaseSkinName, new CheckBox("Auto Heal with R " + a.ChampionName)); } HealMenu.Add("autoHealR_" + PlayerInstance.BaseSkinName, new CheckBox("Auto Heal Self with R")); HealMenu.AddSeparator(); // Interrupt Menu InterruptMenu = SorakaBuddy.AddSubMenu("Interrupter", "Interrupter"); InterruptMenu.AddGroupLabel("Interrupter Setting"); InterruptMenu.Add("useE", new CheckBox("Use E on Interrupt")); // Gapcloser Menu GapcloserMenu = SorakaBuddy.AddSubMenu("Gapcloser", "Gapcloser"); GapcloserMenu.AddGroupLabel("Gapcloser Setting"); GapcloserMenu.Add("useQ", new CheckBox("Use Q on Gapcloser")); GapcloserMenu.Add("useE", new CheckBox("Use E on Gapcloser")); // Drawing Menu DrawingMenu = SorakaBuddy.AddSubMenu("Drawing", "Drawing"); DrawingMenu.AddGroupLabel("Drawing Setting"); DrawingMenu.Add("drawQ", new CheckBox("Draw Q Range")); DrawingMenu.Add("drawW", new CheckBox("Draw W Range")); DrawingMenu.Add("drawE", new CheckBox("Draw E Range")); // Misc Menu MiscMenu = SorakaBuddy.AddSubMenu("Misc", "Misc"); MiscMenu.AddGroupLabel("Miscellaneous Setting"); MiscMenu.Add("disableMAA", new CheckBox("Disable Minion AA")); MiscMenu.Add("disableCAA", new CheckBox("Disable Champion AA")); MiscMenu.AddLabel("Prediction Settings"); var predictionSlider = MiscMenu.Add("Slider", new Slider("mode", 0, 0, 2)); var predictionArray = new[] { "High", "Medium", "Low" }; predictionSlider.DisplayName = predictionArray[predictionSlider.CurrentValue]; predictionSlider.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs) { sender.DisplayName = predictionArray[changeArgs.NewValue]; }; Chat.Print("SorakaBuddy: Initialized", Color.LightGreen); Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; } catch (Exception e) { Chat.Print("SorakaBuddy: Exception occured while Initializing Addon. Error: " + e.Message); } }
/// <summary> /// Called when Loading is Completed /// </summary> /// <param name="args">The loading arguments</param> private static void Loading_OnLoadingComplete(EventArgs args) { try { if (PlayerInstance.Hero != Champion.Lissandra) { return; } Q = new Spell.Skillshot(SpellSlot.Q, 725, SkillShotType.Linear); W = new Spell.Skillshot(SpellSlot.W, 450, SkillShotType.Linear); E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear); R = new Spell.Targeted(SpellSlot.R, 550); GodlyLissandra = MainMenu.AddMenu("GodlyLissandra", "GodlyLissandr"); // Combo Menu ComboMenu = GodlyLissandra.AddSubMenu("Combo", "Combo"); ComboMenu.AddGroupLabel("Combo Setting"); ComboMenu.Add("useQ", new CheckBox("Use Q")); ComboMenu.Add("useW", new CheckBox("Use W")); ComboMenu.Add("useE", new CheckBox("Use E")); ComboMenu.Add("useR", new CheckBox("Use R")); ComboMenu.AddSeparator(); ComboMenu.AddGroupLabel("ManaManager"); ComboMenu.Add("manaQ", new Slider("Min Mana % before Q", 25)); ComboMenu.Add("manaE", new Slider("Min Mana % before E", 25)); ComboMenu.Add("disableC", new CheckBox("Disable Mana Manager in Combo")); // Harass Menu HarassMenu = GodlyLissandra.AddSubMenu("Harass", "Harass"); HarassMenu.AddGroupLabel("Harass Setting"); HarassMenu.Add("useQ", new CheckBox("Use Q")); HarassMenu.Add("useE", new CheckBox("Use E")); HarassMenu.Add("useR", new CheckBox("Use R", false)); //default false HarassMenu.AddSeparator(); HarassMenu.AddGroupLabel("ManaManager"); HarassMenu.Add("manaQ", new Slider("Min Mana % before Q", 25)); HarassMenu.Add("manaE", new Slider("Min Mana % before E", 25)); //LaneClear Menu LaneClearMenu = GodlyLissandra.AddSubMenu("LaneClear", "LaneClear"); LaneClearMenu.AddGroupLabel("LaneClear Setting"); LaneClearMenu.Add("useQ", new CheckBox("Use Q")); LaneClearMenu.Add("useW", new CheckBox("Use W")); LaneClearMenu.Add("useE", new CheckBox("Use E")); LaneClearMenu.Add("manaQ", new Slider("Min Mana % before Q", 25)); LaneClearMenu.Add("manaW", new Slider("Min Mana % Before W", 25)); LaneClearMenu.Add("manaE", new Slider("Min Mana % before E", 25)); // SelfUltMenu Menu SelfUltMenu = GodlyLissandra.AddSubMenu("AutoUlt", "AutoUlt"); SelfUltMenu.AddGroupLabel("AutoUlt Setting"); SelfUltMenu.Add("use R if close to death", new CheckBox("Use R if close to death")); SelfUltMenu.Add("MinHp", new Slider("Min HP % before Self R", 10)); // Interrupt Menu InterruptMenu = GodlyLissandra.AddSubMenu("Interrupter", "Interrupter"); InterruptMenu.AddGroupLabel("Interrupter Setting"); InterruptMenu.Add("useR", new CheckBox("Use R on Interrupt")); // Gapcloser Menu GapcloserMenu = GodlyLissandra.AddSubMenu("Gapcloser", "Gapcloser"); GapcloserMenu.AddGroupLabel("Gapcloser Setting"); GapcloserMenu.Add("useW", new CheckBox("Use W on Gapcloser")); // Drawing Menu DrawingMenu = GodlyLissandra.AddSubMenu("Drawing", "Drawing"); DrawingMenu.AddGroupLabel("Drawing Setting"); DrawingMenu.Add("drawQ", new CheckBox("Draw Q Range")); DrawingMenu.Add("drawW", new CheckBox("Draw W Range")); DrawingMenu.Add("drawE", new CheckBox("Draw E Range")); DrawingMenu.Add("drawR", new CheckBox("Draw R Range")); // Misc Menu MiscMenu = GodlyLissandra.AddSubMenu("Misc", "Misc"); MiscMenu.AddGroupLabel("Miscellaneous Setting"); MiscMenu.Add("disableMAA", new CheckBox("Disable Minion AA")); MiscMenu.Add("disableCAA", new CheckBox("Disable Champion AA")); Chat.Print("GodlyLissandra: Initialized", Color.DodgerBlue); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; } catch (Exception e) { Chat.Print("GodlyLissandra: Exception occured while Initializing Addon. Error: " + e.Message); } }