本文整理汇总了C#中LeagueSharp.Common.Menu.AddSeparator方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddSeparator方法的具体用法?C# Menu.AddSeparator怎么用?C# Menu.AddSeparator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddSeparator方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnLoad
public static void OnLoad()
{
Config = MainMenu.AddMenu(Menuname, Menuname);
AddKeyBind(Config, "Manual E->Q", "manualeq", 'A', KeyBind.BindTypes.HoldActive);
AddKeyBind(Config, "R Spam", "flee", 'T', KeyBind.BindTypes.PressToggle);
AddBool(Config, "Disable Orbwalker", "disorb", false);
combo = Config.AddSubMenu("Combo Settings", "Combo Settings");
combo.AddGroupLabel("Melee Settings");
AddBool(combo, "Use [Q]", "useqcm");
AddBool(combo, "Use [W]", "usewcm");
AddBool(combo, "Use [E]", "useecm");
AddBool(combo, "Smart [E]", "useecme");
combo.AddSeparator();
combo.AddGroupLabel("Ranged Settings");
AddBool(combo, "Use [Q]", "useqcr");
AddBool(combo, "Use [W]", "usewcr");
AddBool(combo, "Use [E]", "useecr");
combo.AddSeparator();
AddBool(combo, "Auto Change Forms ([R])", "usercf");
harass = Config.AddSubMenu("Harass Settings", "harass Settings");
harass.AddGroupLabel("Melee Settings");
AddBool(harass, "Use [Q]", "useqhm");
harass.AddSeparator();
harass.AddGroupLabel("Ranged Settings");
AddBool(harass, "Use [Q]", "useqhr");
AddBool(harass, "Use [W]", "usewhr");
laneclear = Config.AddSubMenu("Lane Clear Settings", "Lane Clear Settings");
AddValue(laneclear, "Minimum minions hit For W/Q", "minhitwq", 2, 0, 10);
AddValue(laneclear, "Minimum Mana", "minmana", 30);
laneclear.AddSeparator();
laneclear.AddGroupLabel("Melee Settings");
AddBool(laneclear, "Use [Q]", "useqlm");
AddBool(laneclear, "Use [W]", "usewlm");
AddBool(laneclear, "Use [E]", "useelm");
laneclear.AddSeparator();
laneclear.AddGroupLabel("Ranged Settings");
AddBool(laneclear, "Use [Q]", "useqlr");
AddBool(laneclear, "Use [W]", "usewlr");
drawings = Config.AddSubMenu("Drawings", "Drawings");
AddBool(drawings, "Draw [Q]", "drawq");
AddBool(drawings, "Draw [E]", "drawe");
AddBool(drawings, "Draw Timers", "drawtimers");
misc = Config.AddSubMenu("Misc Settings", "Misc Settings");
AddBool(misc, "Auto E On Interruptable", "autoeint");
AddBool(misc, "Auto E On Dash", "autoedash");
AddBool(misc, "Auto E On Gap Closers", "autoegap");
}
示例2: Initialize
public static void Initialize()
{
_spells = EloBuddy.SDK.Spells.SpellDatabase.GetSpellInfoList(MyHero.BaseSkinName);
#region Initialize Menu
Config = MainMenu.AddMenu("EBPredictioner", "asdasdasdsad");
Config.AddGroupLabel("Taken logic from AIMBot, huge credits to iCreative.");
Config.Add("ENABLED", new CheckBox("Enabled"));
//Config.Add("SPREDHITC", new ComboBox("HitChance", 0, "High", "Medium", "Low"));
Config.Add("SPREDHITC", new Slider("HitChance", 60));
Config.AddSeparator();
#region Initialize Spells
Config.AddGroupLabel("Skillshots");
var slots = new HashSet<SpellSlot>();
foreach (var info in _spells)
{
slots.Add(info.Slot);
}
foreach (var slot in slots)
{
if (Config[String.Format("{0}{1}", ObjectManager.Player.ChampionName, slot)] == null)
{
Config.Add(String.Format("{0}{1}", ObjectManager.Player.ChampionName, slot), new CheckBox("Convert Spell " + slot.ToString()));
}
}
#endregion
#endregion
#region Initialize Events
Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
AIHeroClient.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
Game.OnTick += Game_OnTick;
#endregion
}
示例3: Initialize
public static void Initialize()
{
#region Initialize Menu
Config = MainMenu.AddMenu("SDKPredictioner", "sdkpaksldjaskdjlkasjdk");
Config.Add("ENABLED", new CheckBox("Enabled"));
Config.Add("SPREDHITC", new ComboBox("HitChance", 1, "Very High", "High", "Medium"));
Config.AddSeparator();
#region Initialize Spells
Config.AddGroupLabel("Skillshots");
foreach (var spell in SpellDatabase.Spells)
{
if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName && Config[String.Format("{0}{1}", ObjectManager.Player.ChampionName, spell.Slot)] == null)
{
Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000f, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
Config.Add(String.Format("{0}{1}", ObjectManager.Player.ChampionName, spell.Slot), new CheckBox("Convert Spell " + spell.Slot.ToString()));
}
}
#endregion
#endregion
#region Initialize Events
Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
AIHeroClient.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
#endregion
}
示例4: CreateMenu
public static void CreateMenu()
{
Menu = MainMenu.AddMenu("Evade Skillshot", "Evade");
foreach (var spell in SpellDatabase.Spells.Where(i => HeroManager.Enemies.Any(a => string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase))))
{
Menu.AddGroupLabel(string.Format("{0} ({1})", spell.SpellName, spell.Slot));
Menu.Add("DangerLevel", new Slider("Danger Level", spell.DangerValue, 1, 5));
Menu.Add("IsDangerous", new CheckBox("Is Dangerous", spell.IsDangerous));
Menu.Add("DisableFoW", new CheckBox("Disable FoW Dodging", false));
Menu.Add("Draw", new CheckBox("Draw", false));
Menu.Add("Enabled", new CheckBox("Enabled", !spell.DisabledByDefault));
Menu.AddSeparator();
}
Menu.AddSeparator();
Menu.Add("DrawStatus", new CheckBox("Draw Evade Status"));
Menu.Add("EnabledA", new KeyBind("Enabled", false, KeyBind.BindTypes.PressToggle, 'K'));
Menu.Add("OnlyDangerous", new KeyBind("Dodge Only Dangerous", false, KeyBind.BindTypes.HoldActive, 32));
}
示例5: Attach
internal static void Attach(Menu menu)
{
menu.AddGroupLabel("Items");
menu.AddBool("Items.Enabled", "Use Items");
menu.AddBool("Items.UseTIA", "Use Tiamat");
menu.AddBool("Items.UseHDR", "Use Hydra");
menu.AddBool("Items.UseBRK", "Use BORK");
menu.AddBool("Items.UseBLG", "Use Bilgewater");
menu.AddBool("Items.UseYMU", "Use Youmu");
menu.AddSeparator();
menu.AddGroupLabel("Combo :");
menu.AddBool("Combo.UseQ", "Use Q");
menu.AddBool("Combo.UseQ2", "Use Q2");
menu.AddBool("Combo.StackQ", "Stack Q if not in Range");
menu.AddBool("Combo.UseW", "Use W");
menu.AddBool("Combo.UseE", "Use E");
menu.AddBool("Combo.UseEQ", "Use EQ");
menu.AddBool("Combo.ETower", "Use E under Tower", false);
menu.AddBool("Combo.EAdvanced", "Predict E position with Waypoints");
menu.AddBool("Combo.NoQ2Dash", "Dont Q2 while dashing", false);
menu.AddBool("Combo.UseIgnite", "Use Ignite");
menu.AddSeparator();
menu.AddGroupLabel("Ult Settings ");
foreach (var hero in HeroManager.Enemies)
{
menu.AddBool("ult" + hero.ChampionName, "Ult " + hero.ChampionName);
}
menu.AddSeparator();
menu.AddSList("Combo.UltMode", "Ult Prioritization", new string[] { "Lowest Health", "TS Priority", "Most enemies" }, 0);
menu.AddSlider("Combo.knockupremainingpct", "Knockup Remaining % for Ult", 95, 40, 100);
menu.AddBool("Combo.UseR", "Use R");
menu.AddBool("Combo.UltTower", "Ult under Tower", false);
menu.AddBool("Combo.UltOnlyKillable", "Ult only Killable", false);
menu.AddBool("Combo.RPriority", "Ult if priority 5 target is knocked up", true);
menu.AddSeparator();
menu.AddSlider("Combo.RMinHit", "Min Enemies for Ult", 1, 1, 5);
menu.AddBool("Combo.OnlyifMin", "Only Ult if minimum enemies met", false);
menu.AddSeparator();
menu.AddSlider("Combo.MinHealthUlt", "Minimum health to Ult %", 0, 0, 100);
}
示例6: LoadItems
public static void LoadItems()
{
#region ItemsMenu
ItemMenu = config.AddSubMenu("Items", "Items");
{
ItemMenu.Add("UseItems", new KeyBind("Only Use Combo Key Press", false, KeyBind.BindTypes.HoldActive, 32));
ItemMenu.Add("Use" + "Locket of the Iron Solari", new CheckBox("Use Locket"));
ItemMenu.AddSeparator();
ItemMenu.Add("Use" + "Randuin's Omen", new CheckBox("Use Randuin"));
ItemMenu.Add("Randuin", new Slider("Use X Enemies In Range for randuin", 2, 1, 5));
ItemMenu.Add("Use" + "Face of the Mountain", new CheckBox("Use FOM"));
ItemMenu.Add("Use" + "Mikael's Crucible", new CheckBox("Use Mikaels"));
BuffTypemenu = config.AddSubMenu("Buff Type", "Buff Type");
{
BuffTypemenu.Add("blind", new CheckBox("Blind"));
BuffTypemenu.Add("charm", new CheckBox("Charm"));
BuffTypemenu.Add("fear", new CheckBox("Fear"));
BuffTypemenu.Add("flee", new CheckBox("Flee"));
BuffTypemenu.Add("snare", new CheckBox("Snare"));
BuffTypemenu.Add("taunt", new CheckBox("Taunt"));
BuffTypemenu.Add("suppression", new CheckBox("Suppression"));
BuffTypemenu.Add("stun", new CheckBox("Stun"));
BuffTypemenu.Add("polymorph", new CheckBox("Polymorph"));
BuffTypemenu.Add("silence", new CheckBox("Silence"));
}
Allymenu = config.AddSubMenu("Use For Him", "Use For Him");
{
foreach (var hero in ObjectManager.Get<AIHeroClient>().Where(x => x.IsAlly))
{
Allymenu.Add(hero.ChampionName, new CheckBox(hero.ChampionName));
}
}
}
#endregion
Game.OnUpdate += Game_OnUpdate;
}
示例7: Create
public static void Create()
{
s_Config = MainMenu.AddMenu("Target Selector", "TargetSelector.Root");
s_Config.AddGroupLabel("Target Selector Mode");
s_Config.Add("TargetSelector.Root.iTargettingMode", new ComboBox("Selected Mode:", 0, "Auto", "Lowest HP", "Most AD", "Most AP", "Closest", "Near Mouse", "Less Attack", "Less Cast"));
s_Config.AddGroupLabel("Priorities");
s_Config.AddLabel("(Higher value means higher priority)");
foreach (var enemy in HeroManager.Enemies)
{
s_Config.Add(string.Format("TargetSelector.Priority.{0}", enemy.ChampionName), new Slider(enemy.ChampionName, 1, 1, 5));
}
s_Config.AddSeparator();
s_Config.AddGroupLabel("Selected Target Settings");
s_Config.Add("TargetSelector.Root.blFocusSelected", new CheckBox("Focus Selected Target"));
s_Config.Add("TargetSelector.Root.iFocusSelectedExtraRange", new Slider("Extra Focus Selected Range", 0, 0, 250));
s_Config.Add("TargetSelector.Root.blOnlyAttackSelected", new CheckBox("Only Attack Selected Target", false));
s_Config.Add("TargetSelector.Root.SelectedTargetColor", new CheckBox("Selected Target Color", false));
}
示例8: OKTWdash
public OKTWdash(Spell qwer)
{
DashSpell = qwer;
Sub = Config.AddSubMenu(qwer.Slot + " Dash Config");
Sub.Add("DashMode", new Slider("Dash MODE (0 : Cursor | 1 : Side | 2 : Safe Pos)", 2, 0, 2));
Sub.Add("EnemyCheck", new Slider("Block dash in x enemies", 3, 0, 5));
Sub.Add("WallCheck", new CheckBox("Block dash in wall"));
Sub.Add("TurretCheck", new CheckBox("Block dash under turret"));
Sub.Add("AAcheck", new CheckBox("Dash only in AA range"));
Sub.AddSeparator();
Sub.AddGroupLabel("Gapcloser");
Sub.Add("GapcloserMode", new Slider("Gapcloser MODE (0 : Cursor | 1 : Away - Safe Pos | 2 : Disable)", 1, 0, 2));
foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(enemy => enemy.IsEnemy))
{
Sub.Add("EGCchampion" + enemy.NetworkId, new CheckBox("Gapclose " + enemy.ChampionName));
}
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
}
示例9: Game_OnGameLoad
public static void Game_OnGameLoad()
{
Menu = MainMenu.AddMenu("Humanizer", "Humanizer");
spells = Menu.AddSubMenu("Spells", "Spells");
foreach (var spell in Items)
{
spells.AddGroupLabel(spell.ToString());
spells.Add("Enabled" + spell, new CheckBox("Delay " + spell));
spells.Add("MinDelay" + spell, new Slider("Minimum Delay", 80));
spells.Add("MaxDelay" + spell, new Slider("Maximum Delay", 200, 100, 400));
LastCast.Add(spell, 0);
spells.AddSeparator();
}
spells.Add("DrawSpells", new CheckBox("Draw Blocked Spell Count"));
move = Menu.AddSubMenu("Movement", "Movement");
move.Add("MovementEnabled", new CheckBox("Enabled"));
move.Add("MovementHumanizeDistance", new CheckBox("Humanize Movement Distance"));
move.Add("MovementHumanizeRate", new CheckBox("Humanize Movement Rate"));
move.Add("MinDelay", new Slider("Minimum Delay", 80));
move.Add("MaxDelay", new Slider("Maximum Delay", 200, 100, 400));
move.Add("DrawMove", new CheckBox("Draw Blocked Movement Count"));
BlockedSpells = new Render.Text("Blocked Spells: ", Drawing.Width - 200, Drawing.Height - 600, 28, Color.Green);
BlockedSpells.VisibleCondition += sender => getCheckBoxItem(spells, "DrawSpells");
BlockedSpells.TextUpdate += () => "Blocked Spells: " + BlockedSpellCount;
BlockedSpells.Add();
BlockedMovement = new Render.Text("Blocked Move: ", Drawing.Width - 200, Drawing.Height - 625, 28, Color.Green);
BlockedMovement.VisibleCondition += sender => getCheckBoxItem(move, "DrawMove");
BlockedMovement.TextUpdate += () => "Blocked Move: " + BlockedMoveCount;
BlockedMovement.Add();
EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
Spellbook.OnCastSpell += Spellbook_OnCastSpell;
}
示例10: CreateMenu
public static void CreateMenu()
{
evadeMenu = Program.Menu.AddSubMenu("Evade Skillshot", "Evade");
evadeMenu.AddGroupLabel("Credit: Evade#");
evadeMenu.AddGroupLabel("Use Spells to Dodge");
evadeMenu.AddSeparator();
foreach (var spell in EvadeSpellDatabase.Spells)
{
evadeMenu.AddGroupLabel(string.Format("{0} ({1})", spell.Name, spell.Slot));
evadeMenu.Add(spell.Slot + "Tower", new CheckBox("Under Tower", false));
evadeMenu.Add(spell.Slot + "Delay", new Slider("Extra Delay", 100, 0, 150));
evadeMenu.Add(spell.Slot + "DangerLevel", new Slider("If Danger Level >=", 1, 1, 5));
evadeMenu.Add(spell.Slot + "Enabled", new CheckBox("Enabled"));
evadeMenu.AddSeparator();
}
evadeMenu.AddSeparator();
evadeMenu.AddGroupLabel("Dodge :");
evadeMenu.AddSeparator();
foreach (var spell in SpellDatabase.Spells.Where(i => HeroManager.Enemies.Any(a => string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase))))
{
evadeMenu.AddGroupLabel(string.Format("{0} ({1})", spell.SpellName, spell.Slot));
evadeMenu.Add(spell.SpellName + "DangerLevel", new Slider("Danger Level", spell.DangerValue, 1, 5));
evadeMenu.Add(spell.SpellName + "IsDangerous", new CheckBox("Is Dangerous", spell.IsDangerous));
evadeMenu.Add(spell.SpellName + "DisableFoW", new CheckBox("Disable FoW Dodging", false));
evadeMenu.Add(spell.SpellName + "Draw", new CheckBox("Draw", false));
evadeMenu.Add(spell.SpellName + "Enabled", new CheckBox("Enabled", false));
evadeMenu.AddSeparator();
}
evadeMenu.AddSeparator();
evadeMenu.AddGroupLabel("Settings :");
evadeMenu.Add("DrawStatus", new CheckBox("Draw Evade Status"));
evadeMenu.Add("Enabled", new KeyBind("Enabled", false, KeyBind.BindTypes.PressToggle, 'K'));
evadeMenu.Add("OnlyDangerous", new KeyBind("Dodge Only Dangerous", false, KeyBind.BindTypes.HoldActive, 32));
}
示例11: LoadSpellMenu
private static void LoadSpellMenu(Menu parent)
{
foreach (var unit in Heroes.Where(h => h.Player.Team != Player.Team))
{
parent.AddGroupLabel(unit.Player.ChampionName);
// new menu per spell
foreach (var entry in Somedata.Spells)
{
if (entry.ChampionName == unit.Player.ChampionName.ToLower())
{
parent.AddGroupLabel(entry.SDataName);
// activation parameters
parent.Add(entry.SDataName + "predict", new CheckBox("enabled"));
parent.Add(entry.SDataName + "danger", new CheckBox("danger", entry.HitType.Contains(HitType.Danger)));
parent.Add(entry.SDataName + "crowdcontrol", new CheckBox("crowdcontrol", entry.HitType.Contains(HitType.CrowdControl)));
parent.Add(entry.SDataName + "ultimate", new CheckBox("danger ultimate", entry.HitType.Contains(HitType.Ultimate)));
parent.Add(entry.SDataName + "forceexhaust", new CheckBox("force exhaust", entry.HitType.Contains(HitType.ForceExhaust)));
LeagueSharp.Common.Utility.DelayAction.Add(5000, () => parent[entry.SDataName + "predict"].Cast<CheckBox>().CurrentValue = entry.SpellTags.Contains(SpellTags.Damage) || entry.SpellTags.Contains(SpellTags.CrowdControl));
}
}
parent.AddSeparator();
}
}
示例12: CreateMenu
public CoreSpell CreateMenu(Menu root)
{
try
{
if (Player.GetSpellSlot(Name) == SpellSlot.Unknown)
return null;
Menu = root;//.AddSubMenu(DisplayName, "m" + Name);
Menu.AddGroupLabel(DisplayName);
Menu.Add("use" + Name, new CheckBox("Use " + DisplayName, false));
if (Category.Any(t => t == MenuType.Stealth))
Menu.Add("Stealth" + Name + "pct", new CheckBox("Use on Stealth"));
if (Category.Any(t => t == MenuType.SlowRemoval))
Menu.Add("use" + Name + "sr", new CheckBox("Use on Slows"));
if (Category.Any(t => t == MenuType.EnemyLowHP))
Menu.Add("enemylowhp" + Name + "pct", new Slider("Use on Enemy HP % <=", DefaultHP));
if (Category.Any(t => t == MenuType.SelfLowHP))
Menu.Add("selflowhp" + Name + "pct", new Slider("Use on Hero HP % <=", DefaultHP));
if (Category.Any(t => t == MenuType.SelfMuchHP))
Menu.Add("selfmuchhp" + Name + "pct", new Slider("Use on Hero Dmg Dealt % >=", 25));
if (Category.Any(t => t == MenuType.SelfLowMP))
Menu.Add("selflowmp" + Name + "pct", new Slider("Use on Hero Mana % <=", DefaultMP));
if (Category.Any(t => t == MenuType.SelfCount))
Menu.Add("selfcount" + Name, new Slider("Use on # Near Hero >=", 3, 1, 5));
if (Category.Any(t => t == MenuType.SelfMinMP))
Menu.Add("selfminmp" + Name + "pct", new Slider("Minimum Mana/Energy %", 40));
if (Category.Any(t => t == MenuType.SelfMinHP))
Menu.Add("selfminhp" + Name + "pct", new Slider("Minimum HP %", 40));
if (Category.Any(t => t == MenuType.SpellShield))
{
Menu.Add("ss" + Name + "all", new CheckBox("Use on Any Spell", false));
Menu.Add("ss" + Name + "cc", new CheckBox("Use on Crowd Control"));
}
if (Category.Any(t => t == MenuType.Zhonyas))
{
Menu.Add("use" + Name + "norm", new CheckBox("Use on Dangerous (Spells)", false));
Menu.Add("use" + Name + "ulti", new CheckBox("Use on Dangerous (Ultimates Only)"));
}
if (Category.Any(t => t == MenuType.ActiveCheck))
Menu.Add("mode" + Name, new ComboBox("Mode: ", 0, "Always", "Combo"));
Menu.AddSeparator();
}
catch (Exception e)
{
Console.WriteLine(e);
Chat.Print("<font color=\"#FFF280\">Exception thrown at CoreSpell.CreateMenu: </font>: " + e.Message);
}
return this;
}
示例13: Init
public static void Init(Menu mainMenu)
{
MenuLocal = mainMenu.AddSubMenu("Mana Settings", "MinMana");
MenuLocal.Add("MinMana.Jungle.DontCheckEnemyBuff", new ComboBox("Don't check min. mana if I'm taking:", 2, "Off", "Ally Buff", "Enemy Buff", "Both"));
MenuLocal.Add("MinMana.Jungle.DontCheckBlueBuff", new CheckBox("Don't check min. mana if I have Blue Buff"));
MenuLocal.Add("MinMana.Jungle.Default", new CheckBox("Load Recommended Settings")).OnValueChange +=
(sender, args) =>
{
if (args.NewValue)
{
LoadDefaultSettings();
}
};
MenuLocal.AddSeparator();
InitAdvancedMenu();
}
示例14: OnLoad
private static void OnLoad()
{
Menu = MainMenu.AddMenu("Aatrox", "Aatrox");
Menu.AddLabel("Ported from BrianSharp - Berb");
Menu.AddSeparator();
ComboMenu = Menu.AddSubMenu("Combo");
ComboMenu.Add("Q", new CheckBox("Use Q"));
ComboMenu.Add("W", new CheckBox("Use W"));
ComboMenu.Add("WHpU", new Slider("-> Switch To Heal If Hp <", 50));
ComboMenu.Add("E", new CheckBox("Use E"));
ComboMenu.Add("R", new CheckBox("Use R"));
ComboMenu.Add("RHpU", new Slider("-> If Enemy Hp <", 60));
ComboMenu.Add("RCountA", new Slider("-> Or Enemy >=", 2, 1, 5));
ComboMenu.AddSeparator();
HarassMenu = Menu.AddSubMenu("Harass");
HarassMenu.Add("AutoE", new KeyBind("Auto E", false, KeyBind.BindTypes.PressToggle, 'H'));
HarassMenu.Add("AutoEHpA", new Slider("-> If Hp >=", 50));
HarassMenu.Add("Q", new CheckBox("Use Q"));
HarassMenu.Add("QHpA", new Slider("-> If Hp >=", 20));
HarassMenu.Add("E", new CheckBox("Use E"));
HarassMenu.AddSeparator();
ClearMenu = Menu.AddSubMenu("Clear");
ClearMenu.Add("Q", new CheckBox("Use Q"));
ClearMenu.Add("W", new CheckBox("Use W"));
ClearMenu.Add("WPriority", new CheckBox("-> Priority Heal"));
ClearMenu.Add("WHpU", new Slider("-> Switch To Heal If Hp <", 50));
ClearMenu.Add("E", new CheckBox("Use E"));
ClearMenu.Add("Item", new CheckBox("Use Tiamat/Hydra Item"));
ClearMenu.AddSeparator();
FleeMenu = Menu.AddSubMenu("Flee");
FleeMenu.Add("Q", new CheckBox("Use Q"));
FleeMenu.Add("E", new CheckBox("Use E"));
FleeMenu.AddSeparator();
KSMenu = Menu.AddSubMenu("Kill Steal");
KSMenu.Add("Q", new CheckBox("Use Q"));
KSMenu.Add("E", new CheckBox("Use E"));
KSMenu.Add("Smite", new CheckBox("Use Smite"));
KSMenu.Add("Ignite", new CheckBox("Use Ignite"));
KSMenu.AddSeparator();
GapMenu = Menu.AddSubMenu("Anti Gap Closer");
GapMenu.Add("Q", new CheckBox("Use Q"));
foreach (
var spell in
AntiGapcloser.Spells.Where(i => HeroManager.Enemies.Any(a => i.ChampionName == a.ChampionName)))
{
GapMenu.Add(spell.ChampionName + "_" + spell.Slot,
new CheckBox("-> Skill " + spell.Slot + " Of " + spell.ChampionName));
}
GapMenu.AddSeparator();
IntMenu = Menu.AddSubMenu("Interrupt");
IntMenu.Add("Q", new CheckBox("Use Q"));
foreach (
var spell in
Interrupter.Spells.Where(i => HeroManager.Enemies.Any(a => i.ChampionName == a.ChampionName)))
{
IntMenu.Add(spell.ChampionName + "_" + spell.Slot,
new CheckBox("-> Skill " + spell.Slot + " Of " + spell.ChampionName));
}
IntMenu.AddSeparator();
SmiteMenu = Menu.AddSubMenu("Smite Mob");
SmiteMenu.Add("Smite", new CheckBox("Use Smite"));
SmiteMenu.Add("Auto", new CheckBox("-> Auto Smite"));
SmiteMenu.Add("Baron", new CheckBox("-> Baron Nashor"));
SmiteMenu.Add("Dragon", new CheckBox("-> Dragon"));
SmiteMenu.Add("Red", new CheckBox("-> Red Brambleback"));
SmiteMenu.Add("Blue", new CheckBox("-> Blue Sentinel"));
SmiteMenu.Add("Krug", new CheckBox("-> Ancient Krug"));
SmiteMenu.Add("Gromp", new CheckBox("-> Gromp"));
SmiteMenu.Add("Raptor", new CheckBox("-> Crimson Raptor"));
SmiteMenu.Add("Wolf", new CheckBox("-> Greater Murk Wolf"));
SmiteMenu.AddSeparator();
DrawMenu = Menu.AddSubMenu("Drawings");
DrawMenu.Add("Q", new CheckBox("Use Q"));
DrawMenu.Add("E", new CheckBox("Use E"));
DrawMenu.Add("R", new CheckBox("Use R"));
DrawMenu.AddSeparator();
Q = new Spell(SpellSlot.Q, 650);
Q2 = new Spell(SpellSlot.Q, 650);
W = new Spell(SpellSlot.W);
E = new Spell(SpellSlot.E, 1075);
R = new Spell(SpellSlot.R, 550);
Q.SetSkillshot(0.6f, 250, 2000, false, SkillshotType.SkillshotCircle);
Q2.SetSkillshot(0.6f, 150, 2000, false, SkillshotType.SkillshotCircle);
E.SetSkillshot(0.25f, 35, 1250, false, SkillshotType.SkillshotLine);
Tiamat = ItemData.Tiamat_Melee_Only.GetItem();
Hydra = ItemData.Ravenous_Hydra_Melee_Only.GetItem();
foreach (var spell in myHero.Spellbook.Spells.Where(i => i.Name.ToLower().Contains("smite") && (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2)))
{
//.........这里部分代码省略.........
示例15: Menu
public static void Menu()
{
Miscc = MainMenu.AddMenu("PortAIO Misc", "berbsicmisc");
Miscc.AddGroupLabel("Options ");
Miscc.Add("intro", new CheckBox("Load Intro?", true));
Miscc.Add("resetorb", new CheckBox("Reset Orbwalker", false)).OnValueChange += Loader_OnValueChange;
Miscc.AddSeparator();
Miscc.AddGroupLabel("Champion Dual Port : ");
if (Champion.Contains(ObjectManager.Player.ChampionName))
{
if (Player.ChampionName.Equals(Champion[0]))
{
Miscc.Add("soraka", new ComboBox("Use addon for Soraka : ", 0, "Sophie Soraka", "ChallengerSeries"));
}
if (Player.ChampionName.Equals(Champion[1]))
{
Miscc.Add("kogmaw", new ComboBox("Use addon for Kog'Maw : ", 0, "Sharpshooter", "ChallengerSeries", "OKTW", "Marksman II", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[2]))
{
Miscc.Add("leesin", new ComboBox("Use addon for Lee Sin : ", 0, "ValvraveSharp", "El Lee Sin : Reborn", "FreshBooster"));
}
if (Player.ChampionName.Equals(Champion[3]))
{
Miscc.Add("kalista", new ComboBox("Use addon for Kalista : ", 0, "Marksman II", "iKalista - Reborn", "ChallengerSeries", "HastaKalista", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[4]))
{
Miscc.Add("diana", new ComboBox("Use addon for Diana : ", 0, "ElDiana", "Nechrito Diana", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[5]))
{
Miscc.Add("cait", new ComboBox("Use addon for Caitlyn : ", 0, "OKTW", "ExorAIO", "ChallengerSeries", "Marksman II"));
}
if (Player.ChampionName.Equals(Champion[6]))
{
Miscc.Add("twitch", new ComboBox("Use addon for Twitch : ", 0, "OKTW", "Infected Twitch", "iTwitch", "ExorAIO", "Marksman II"));
}
if (Player.ChampionName.Equals(Champion[7]))
{
Miscc.Add("nidalee", new ComboBox("Use addon for Nidalee : ", 0, "Kurisu", "Nechrito", "D_Nidalee"));
}
if (Player.ChampionName.Equals(Champion[8]))
{
Miscc.Add("lucian", new ComboBox("Use addon for Lucian : ", 0, "LCS Lucian", "ChallengerSeries", "iLucian", "Marksman II", "OKTW", "Hoola Lucian", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[9]))
{
Miscc.Add("ashe", new ComboBox("Use addon for Ashe : ", 0, "OKTW", "ChallengerSeries", "Marksman II", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[10]))
{
Miscc.Add("vayne", new ComboBox("Use addon for Vayne : ", 0, "Vayne 2.0", "VayneHunterReborn", "hi im gosu", "hVayne SDK", "ExorAIO", "Challenger Series", "Marksman II"));
}
if (Player.ChampionName.Equals(Champion[11]))
{
Miscc.Add("jayce", new ComboBox("Use addon for Jayce : ", 0, "OKTW", "Hoe's Jayce"));
}
if (Player.ChampionName.Equals(Champion[12]))
{
Miscc.Add("yasuo", new ComboBox("Use addon for Yasuo : ", 0, "ValvraveSharp", "YasuoPro", "GosuMechanics", "YasuoSharpV2", "Firestorm AIO"));
}
if (Player.ChampionName.Equals(Champion[13]))
{
Miscc.Add("katarina", new ComboBox("Use addon for Katarina : ", 0, "Staberina", "e.Motion Katarina"));
}
if (Player.ChampionName.Equals(Champion[14]))
{
Miscc.Add("xerath", new ComboBox("Use addon for Xerath : ", 0, "OKTW", "ElXerath"));
}
if (Player.ChampionName.Equals(Champion[15]))
{
Miscc.Add("gragas", new ComboBox("Use addon for Gragas : ", 0, "Drunk Carry", "Nechrito"));
}
if (Player.ChampionName.Equals(Champion[16]))
{
Miscc.Add("draven", new ComboBox("Use addon for Draven : ", 0, "Sharp Shooter/Exor", "Tyler1", "Marksman II", "ExorAIO", "MoonDraven"));
}
if (Player.ChampionName.Equals(Champion[17]))
{
Miscc.Add("ezreal", new ComboBox("Use addon for Ezreal : ", 0, "OKTW", "iDzEzreal", "Marksman II", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[18]))
{
Miscc.Add("brand", new ComboBox("Use addon for Brand : ", 0, "TheBrand", "OKTW", "yol0Brand"));
}
if (Player.ChampionName.Equals(Champion[19]))
{
Miscc.Add("blitzcrank", new ComboBox("Use addon for Blitzcrank : ", 0, "FreshBooster", "OKTW", "KurisuBlitz"));
}
if (Player.ChampionName.Equals(Champion[20]))
{
Miscc.Add("corki", new ComboBox("Use addon for Corki : ", 0, "ElCorki", "OKTW", "D-Corki", "Marksman II", "ExorAIO"));
}
if (Player.ChampionName.Equals(Champion[21]))
{
Miscc.Add("darius", new ComboBox("Use addon for Darius : ", 0, "ExorAIO", "OKTW", "KurisuDarius"));
}
if (Player.ChampionName.Equals(Champion[22]))
{
//.........这里部分代码省略.........