本文整理汇总了C#中LeagueSharp.Common.Menu.Item方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.Item方法的具体用法?C# Menu.Item怎么用?C# Menu.Item使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.Item方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AutoLevel
public AutoLevel()
{
LocalMenu = new Menu("Auto Level", "Auto Level").SetFontStyle(FontStyle.Regular, Color.IndianRed);
LocalMenu.AddItem(new MenuItem("AutoLevel.Set", "at Start:").SetValue(new StringList(new[] { "Allways Off", "Allways On", "Remember Last Settings" }, 2)));
LocalMenu.AddItem(new MenuItem("AutoLevel.Active", "Auto Level Active!").SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle))).Permashow(true, "Olaf | Auto Level");
var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();
switch (championName)
{
case "olaf":
SpellLevels = new[] { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };
LocalMenu.AddItem(new MenuItem("AutoLevel." + championName, GetLevelList(SpellLevels)));
break;
}
switch (LocalMenu.Item("AutoLevel.Set").GetValue<StringList>().SelectedIndex)
{
case 0:
LocalMenu.Item("AutoLevel.Active")
.SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle));
break;
case 1:
LocalMenu.Item("AutoLevel.Active").SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle, true));
break;
}
Program.MenuMisc.AddSubMenu(LocalMenu);
Game.OnUpdate += Game_OnUpdate;
}
示例2: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
Menu = new Menu("Summoners", "Summoners");
Menu.AddBool("SmiteManagerEnabled", "Load Smite Manager");
Menu.AddBool("IgniteManagerEnabled", "Load Ignite Manager");
Bootstrap.Menu.AddSubMenu(Menu);
var smite = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(h => h.Name.ToLower().Contains("smite"));
if (smite != null && !smite.Slot.Equals(SpellSlot.Unknown))
{
Smite = new Spell(smite.Slot, 500);
Smite.SetTargetted(.333f, 20);
if (Menu.Item("SmiteManagerEnabled").IsActive())
{
SmiteManager.Initialize();
}
}
var igniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot");
if (!igniteSlot.Equals(SpellSlot.Unknown))
{
Ignite = new Spell(igniteSlot, 600);
Ignite.SetTargetted(.172f, 20);
if (Menu.Item("IgniteManagerEnabled").IsActive())
{
IgniteManager.Initialize();
}
}
}
示例3: CreateConfigMenu
public override void CreateConfigMenu()
{
Menu combo = new Menu("Combo", "SAutoCarry.Vayne.Combo");
combo.AddItem(new MenuItem("SAutoCarry.Vayne.Combo.UseQ", "Use Q").SetValue(true));
combo.AddItem(new MenuItem("SAutoCarry.Vayne.Combo.UseE", "Use E").SetValue(true));
Menu harass = new Menu("Harass", "SAutoCarry.Vayne.Harass");
harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseQ", "Use Q").SetValue(true));
harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseE", "Use E").SetValue(true)).ValueChanged += (s, ar) => harass.Item("SAutoCarry.Vayne.Harass.UseE3RDW").Show(ar.GetNewValue<bool>());
harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseE3RDW", "Use E for 3rd W stack").SetValue(false)).Show(harass.Item("SAutoCarry.Vayne.Harass.UseE").GetValue<bool>());
Menu misc = new Menu("Misc", "SAutoCarry.Vayne.Misc");
misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.AAIndicator", "Draw AA Indicator").SetValue(true));
misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.DontAAInvisible", "Dont AA While Stealth").SetValue(true)).ValueChanged += (s, ar) => misc.Item("SAutoCarry.Vayne.Misc.DontAAInvisibleCount").Show(ar.GetNewValue<bool>());
misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.DontAAInvisibleCount", "Dont AA While Stealth if around enemy count >").SetValue(new Slider(1, 0, 5))).Show(misc.Item("SAutoCarry.Vayne.Misc.DontAAInvisible").GetValue<bool>());
misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.LaneClearQ", "Use Q LaneClear").SetValue(true));
ConfigMenu.AddSubMenu(combo);
ConfigMenu.AddSubMenu(harass);
ConfigMenu.AddSubMenu(misc);
ConfigMenu.AddToMainMenu();
Helpers.Tumble.Initialize(this);
Helpers.Condemn.Initialize(this);
}
示例4: Initialize
public static void Initialize(Champion champ)
{
s_Champion = champ;
s_Flash = ObjectManager.Player.GetSpellSlot("summonerflash");
Menu condemn = new Menu("Condemn Settings", "SAutoCarry.Helpers.Condemn.Root");
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.AntiGapCloser", "Use Condemn to Gapclosers").SetValue(false));
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.Interrupter", "Use Condemn to Interrupt spells").SetValue(false));
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.TumbleCondemn", "Q->E when possible").SetTooltip("if this option enabled, assembly will try to do tumble and condemn (this option may drop fps while E is up)").SetValue(true)).ValueChanged +=
(s, ar) =>
{
condemn.Item("SAutoCarry.Helpers.Condemn.Root.TumbleCondemnSafe").Show(ar.GetNewValue<bool>());
condemn.Item("SAutoCarry.Helpers.Condemn.Root.TumbleCondemnCount").Show(ar.GetNewValue<bool>());
};
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.TumbleCondemnCount", "Q->E Position Check Count").SetValue(new Slider(12, 2, 12)).SetTooltip("the bigger count is more fps drop")).Show(condemn.Item("SAutoCarry.Helpers.Condemn.Root.TumbleCondemn").GetValue<bool>());
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.TumbleCondemnSafe", "Only Q->E when tumble position is safe").SetValue(false)).Show(condemn.Item("SAutoCarry.Helpers.Condemn.Root.TumbleCondemn").GetValue<bool>());
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.FlashCondemn", "Condemn->Flash selected target").SetValue(new KeyBind('T', KeyBindType.Press)));
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.DontCondemnTurret", "Dont Condemn Under Turret").SetTooltip("if this option enabled, enemy wont condemned under his allied tower").SetValue(true));
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.PushDistance", "Push Distance").SetValue(new Slider(400, 300, 470)));
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.Accuracy", "Accuracy").SetValue(new Slider(12, 2, 12))).SetTooltip("the bigger count is more fps drop");
condemn.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.Root.Draw", "Draw").SetValue(true));
Menu whitelist = new Menu("Whitelist", "SAutoCarry.Helpers.Condemn.WhiteList");
foreach(var enemy in HeroManager.Enemies)
whitelist.AddItem(new MenuItem("SAutoCarry.Helpers.Condemn.WhiteList" + enemy.ChampionName, "Condemn " + enemy.ChampionName).SetValue(true));
condemn.AddSubMenu(whitelist);
s_Champion.ConfigMenu.AddSubMenu(condemn);
AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
}
示例5: Init
public static void Init(Menu parentMenu)
{
MenuLocal = new Menu("Auto Level", "Auto Level").SetFontStyle(FontStyle.Regular, Color.Aquamarine);
MenuLocal.AddItem(
new MenuItem("AutoLevel.Set", "at Start:").SetValue(
new StringList(new[] {"Allways Off", "Allways On", "Remember Last Settings"}, 2)));
MenuLocal.AddItem(
new MenuItem("AutoLevel.Active", "Auto Level Active!").SetValue(new KeyBind("L".ToCharArray()[0],
KeyBindType.Toggle)))
.Permashow(true, ObjectManager.Player.ChampionName + " | " + "Auto Level Up", Colors.ColorPermaShow);
SpellLevels = new[] {2, 3, 1, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3};
MenuLocal.AddItem(new MenuItem("AutoLevel." + ObjectManager.Player.ChampionName, GetLevelList(SpellLevels)));
switch (MenuLocal.Item("AutoLevel.Set").GetValue<StringList>().SelectedIndex)
{
case 0:
MenuLocal.Item("AutoLevel.Active")
.SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle));
break;
case 1:
MenuLocal.Item("AutoLevel.Active")
.SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle, true));
break;
}
parentMenu.AddSubMenu(MenuLocal);
Game.OnUpdate += Game_OnUpdate;
}
示例6: OnLoad
private void OnLoad(EventArgs args)
{
_map = new Map(20, 20);
_snake = new Snake(_map);
_food = new Food(_map, _snake);
_score = new Score(_map, _food);
_menu = new Menu("SFXSnake", "SFXSnake", true);
_menu.AddItem(new MenuItem(_menu.Name + "Speed", "Speed").SetValue(new Slider(200, 25, 500)));
_menu.AddItem(new MenuItem(_menu.Name + "Hotkey", "Hotkey").SetValue(new KeyBind('I', KeyBindType.Toggle)));
_menu.Item(_menu.Name + "Speed").ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
{
if (_onTickTimer != null)
{
_onTickTimer.Interval = eventArgs.GetNewValue<Slider>().Value;
}
};
_menu.AddToMainMenu();
Game.OnWndProc += OnWndProc;
Drawing.OnDraw += OnDrawingDraw;
_onTickTimer = new Timer(_menu.Item(_menu.Name + "Speed").GetValue<Slider>().Value);
_onTickTimer.Elapsed += OnTick;
_onTickTimer.Start();
}
示例7: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
menu = new Menu("Utility+", "UtilityPlus", true);
Menu pluginMenu = new Menu("PluginList", "PluginList");
pluginMenu.AddItem(new MenuItem("LoadSpellTracker", "Load SpellTracker Plugin").SetValue(true));
pluginMenu.AddItem(new MenuItem("LoadWardTracker", "Load WardTracker Plugin").SetValue(true));
pluginMenu.AddItem(new MenuItem("LoadTowerRange", "Load TowerRange Plugin").SetValue(true));
pluginMenu.AddItem(new MenuItem("LoadPluginDescription", " -- Reload to take effect --"));
menu.AddSubMenu(pluginMenu);
menu.AddToMainMenu();
if (menu.Item("LoadSpellTracker").GetValue<bool>())
{
spellTracker = new SpellTracker.Tracker(menu);
}
if (menu.Item("LoadWardTracker").GetValue<bool>())
{
wardTracker = new WardTracker.Tracker(menu);
}
if (menu.Item("LoadTowerRange").GetValue<bool>())
{
towerRange = new TowerRange.RangeIndicator(menu);
}
}
示例8: SpellTester
public SpellTester()
{
menu = new Menu("Spell Tester", "DummySpellTester", true);
selectSpellMenu = new Menu("Select Spell", "SelectSpellMenu");
menu.AddSubMenu(selectSpellMenu);
Menu setSpellPositionMenu = new Menu("Set Spell Position", "SetPositionMenu");
setSpellPositionMenu.AddItem(new MenuItem("SetDummySpellStartPosition", "Set Start Position").SetValue(false));
setSpellPositionMenu.AddItem(new MenuItem("SetDummySpellEndPosition", "Set End Position").SetValue(false));
setSpellPositionMenu.Item("SetDummySpellStartPosition").ValueChanged += OnSpellStartChange;
setSpellPositionMenu.Item("SetDummySpellEndPosition").ValueChanged += OnSpellEndChange;
menu.AddSubMenu(setSpellPositionMenu);
Menu fireDummySpellMenu = new Menu("Fire Dummy Spell", "FireDummySpellMenu");
fireDummySpellMenu.AddItem(new MenuItem("FireDummySpell", "Fire Dummy Spell Key").SetValue(new KeyBind('O', KeyBindType.Press)));
fireDummySpellMenu.AddItem(new MenuItem("SpellInterval", "Spell Interval").SetValue(new Slider(2500, 0, 5000)));
menu.AddSubMenu(fireDummySpellMenu);
menu.AddToMainMenu();
LoadSpellDictionary();
Game.OnUpdate += Game_OnGameUpdate;
Drawing.OnDraw += Drawing_OnDraw;
}
示例9: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
var spell = ObjectManager.Player.GetSpellSlot("summonersnowball");
if (spell == SpellSlot.Unknown || !Game.MapId.Equals(GameMapId.HowlingAbyss))
{
return;
}
Menu = new Menu("ARAMShooter", "ARAMShooter", true);
Menu.AddItem(new MenuItem("DecreaseRange", "Decrease Range by").SetValue(new Slider(10)));
Menu.AddItem(
new MenuItem("HitChance", "MinHitChance").SetValue(
new StringList(
new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString() }, 1)));
Menu.AddItem(new MenuItem("Auto", "AutoDash").SetValue(true));
Menu.AddItem(new MenuItem("Throw", "Throw Key").SetValue(new KeyBind(32, KeyBindType.Press)));
Menu.AddItem(new MenuItem("Stealth", "Throw When Stealthed").SetValue(false));
Menu.Item("HitChance").ValueChanged += Program_ValueChanged;
Menu.Item("DecreaseRange").ValueChanged += Program_ValueChanged1;
Menu.AddToMainMenu();
Throw = new Spell(spell, 1200f);
Throw.SetSkillshot(.33f, 50f, 1600, true, SkillshotType.SkillshotLine);
Throw.MinHitChance = GetHitChance();
ShowNotification("ARAMShooter - Loaded", Color.FromArgb(0, 250, 255), 3000);
Game.OnUpdate += Game_OnUpdate;
}
示例10: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
var spell = ObjectManager.Player.GetSpellSlot("summonersnowball");
if (spell == SpellSlot.Unknown)
{
return;
}
Menu = new Menu("ARAMShooter", "ARAMShooter", true);
Menu.AddItem(new MenuItem("DecreaseRange", "Decrease Range by").SetValue(new Slider(10)));
Menu.AddItem(
new MenuItem("HitChance", "MinHitChance").SetValue(
new StringList(
new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString() }, 1)));
Menu.AddItem(new MenuItem("Auto", "AutoDash").SetValue(true));
Menu.AddItem(new MenuItem("AutoThrow", "AutoThrow").SetValue(false));
Menu.AddItem(new MenuItem("Throw", "Throw").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
var dontThrow = new Menu("Don't throw at", "DontThrow");
foreach (var hero in ObjectManager.Get<Obj_AI_Hero>().Where(hero => hero.IsEnemy))
{
dontThrow.AddItem(new MenuItem("DontThrow" + hero.SkinName, hero.SkinName)).SetValue(false);
}
Menu.AddSubMenu(dontThrow);
Menu.Item("HitChance").ValueChanged += Program_ValueChanged;
Menu.Item("DecreaseRange").ValueChanged += Program_ValueChanged1;
Menu.AddToMainMenu();
Throw = new Spell(spell, 2500f);
Throw.SetSkillshot(.33f, 50f, 1600, true, SkillshotType.SkillshotLine);
Throw.MinHitChance = GetHitChance();
Game.OnUpdate += Game_OnUpdate;
}
示例11: CreateConfigMenu
public override void CreateConfigMenu()
{
Menu combo = new Menu("Combo", "SAutoCarry.Viktor.Combo");
combo.AddItem(new MenuItem("SAutoCarry.Viktor.Combo.UseQ", "Use Q").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Viktor.Combo.UseQOnlyRange").Show(ar.GetNewValue<bool>());
combo.AddItem(new MenuItem("SAutoCarry.Viktor.Combo.UseQOnlyRange", "Use Q Only When In AA Range (faster Q->AA burst)").SetValue(new KeyBind('G', KeyBindType.Toggle, true))).Show(combo.Item("SAutoCarry.Viktor.Combo.UseQ").GetValue<bool>());
combo.AddItem(new MenuItem("SAutoCarry.Viktor.Combo.UseE", "Use E").SetValue(true));
combo.AddItem(new MenuItem("SAutoCarry.Viktor.Combo.UseR", "Use R").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Viktor.Combo.UseRMin").Show(ar.GetNewValue<bool>());
combo.AddItem(new MenuItem("SAutoCarry.Viktor.Combo.UseRMin", "Use R Min. Hit").SetValue(new Slider(1, 1, 5))).Show(combo.Item("SAutoCarry.Viktor.Combo.UseR").GetValue<bool>());
Menu laneclear = new Menu("LaneClear", "SAutoCarry.Viktor.LaneClear");
laneclear.AddItem(new MenuItem("SAutoCarry.Viktor.LaneClear.UseQ", "Use Q").SetValue(false));
laneclear.AddItem(new MenuItem("SAutoCarry.Viktor.LaneClear.UseE", "Use E").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Viktor.LaneClear.UseEMin").Show(ar.GetNewValue<bool>());
laneclear.AddItem(new MenuItem("SAutoCarry.Viktor.LaneClear.UseEMin", "Use E Min. Minions").SetValue(new Slider(3, 1, 6))).Show(laneclear.Item("SAutoCarry.Viktor.LaneClear.UseE").GetValue<bool>());
laneclear.AddItem(new MenuItem("SAutoCarry.Viktor.LaneClear.Toggle", "Enable Spellfarm").SetValue(new KeyBind('T', KeyBindType.Toggle, true)));
laneclear.AddItem(new MenuItem("SAutoCarry.Viktor.LaneClear.MinMana", "Min. Mana %").SetValue(new Slider(40, 0, 100)));
Menu misc = new Menu("Misc", "SAutoCarry.Viktor.Misc");
misc.AddItem(new MenuItem("SAutoCarry.Viktor.Misc.AutoFollowR", "Auto Follow R").SetValue(true));
misc.AddItem(new MenuItem("SAutoCarry.Viktor.Misc.InterruptR", "Interrupt Channeling Spells With R").SetValue(true));
misc.AddItem(new MenuItem("SAutoCarry.Viktor.Misc.InterruptW", "Interrupt Spells With W").SetValue(true));
misc.AddItem(new MenuItem("SAutoCarry.Viktor.Misc.AntiGapW", "Anti Gap Closer With W").SetValue(true));
misc.AddItem(new MenuItem("SAutoCarry.Viktor.Misc.ImmobileW", "Auto W To Immobile Target").SetValue(true));
DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc);
ConfigMenu.AddSubMenu(combo);
ConfigMenu.AddSubMenu(laneclear);
ConfigMenu.AddSubMenu(misc);
ConfigMenu.AddToMainMenu();
}
示例12: Game_OnGameLoad
static void Game_OnGameLoad(EventArgs args)
{
AllPlayers = ObjectManager.Get<Obj_AI_Hero>().ToList();
if (AllPlayers.Contains(ObjectManager.Player))
AllPlayers.Remove(ObjectManager.Player);
(_main = new Menu("RageControl", "RageControl", true)).AddToMainMenu();
var enableChatMenu = _main.AddSubMenu(new Menu("Disable your chat", "dyc"));
enableChatMenu.AddItem(new MenuItem("disable", "Disable?").SetValue(false).DontSave());
enableChatMenu.AddItem(new MenuItem("perma", "!PERMA! Disable").SetValue(false).DontSave());
var bannedPlayers = _main.AddSubMenu(new Menu("Ban Player?", "bannedPlayer"));
Notifications.AddNotification("Rage Control Loaded!", 1000);
Notifications.AddNotification("Reading files....", 1000);
ReadFiles(SandboxConfig.DataDirectory);
_main.Item("disable").ValueChanged+=Program_ValueChanged;
_main.Item("perma").ValueChanged+=PermaDissable;
if (AllPlayers != null)
{
foreach (var player in AllPlayers)
{
bannedPlayers.AddItem(new MenuItem(player.Name, "Ban " + player.Name + "?").SetValue(false));
}
foreach (var item in bannedPlayers.Items)
{
item.ValueChanged += item_ValueChanged;
}
}
Game.OnInput += Game_OnInput;
Game.OnChat += Game_OnChat;
}
示例13: CreateConfigMenu
public override void CreateConfigMenu()
{
Menu combo = new Menu("Combo", "SAutoCarry.Jax.Combo");
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.UseQ", "Use Q").SetValue(true));
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.UseW", "Use W").SetValue(true));
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.UseE", "Use E").SetValue(true)).ValueChanged += (s, ar) => { ConfigMenu.Item("SAutoCarry.Jax.Combo.EStun").Show(ar.GetNewValue<bool>()); ConfigMenu.Item("SAutoCarry.Jax.Combo.EBeforeJump").Show(ar.GetNewValue<bool>()); };
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.EStun", "Stun With E After Jump").SetValue(new KeyBind('T', KeyBindType.Toggle)).Show(combo.Item("SAutoCarry.Jax.Combo.UseE").GetValue<bool>()));
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.EBeforeJump", "Use E Before Q").SetValue(new KeyBind('Z', KeyBindType.Toggle)).Show(combo.Item("SAutoCarry.Jax.Combo.UseE").GetValue<bool>()));
combo.AddItem(new MenuItem("SAutoCarry.Jax.Combo.UseTiamat", "Use Tiamat/Hydra").SetValue(true));
Menu harass = new Menu("Harass", "SAutoCarry.Jax.Harass");
harass.AddItem(new MenuItem("SAutoCarry.Jax.Harass.UseQ", "Use Q").SetValue(true));
harass.AddItem(new MenuItem("SAutoCarry.Jax.Harass.UseW", "Use W").SetValue(true));
harass.AddItem(new MenuItem("SAutoCarry.Jax.Harass.UseE", "Use E").SetValue(true));
Menu laneclear = new Menu("LaneClear/JungleClear", "SAutoCarry.Jax.LaneClear");
laneclear.AddItem(new MenuItem("SAutoCarry.Jax.LaneClear.UseQ", "Use Q").SetValue(true));
laneclear.AddItem(new MenuItem("SAutoCarry.Jax.LaneClear.UseE", "Use E").SetValue(true));
Menu misc = new Menu("Misc", "SautoCarry.Jax.Misc");
misc.AddItem(new MenuItem("SAutoCarry.Jax.Misc.WJump", "Ward Jump").SetValue(new KeyBind('G', KeyBindType.Press)));
ConfigMenu.AddSubMenu(combo);
ConfigMenu.AddSubMenu(harass);
ConfigMenu.AddSubMenu(laneclear);
ConfigMenu.AddSubMenu(misc);
ConfigMenu.AddToMainMenu();
}
示例14: GameOnOnStart
private static void GameOnOnStart(EventArgs args)
{
Player = ObjectManager.Player;
if (Player.ChampionName != ChampionName)
return;
PixManager.DrawPix = true;
Q = new Spell(SpellSlot.Q, 950);
Q.SetSkillshot(0.25f, 60, 1450, false, SkillshotType.SkillshotLine);
W = new Spell(SpellSlot.W, 650);
E = new Spell(SpellSlot.E, 650);
R = new Spell(SpellSlot.R, 900);
IgniteSlot = Player.GetSpellSlot("SummonerDot");
//Create menu
Config = new Menu(ChampionName, ChampionName, true);
TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
Config.SubMenu("Combo")
.AddItem(
new MenuItem("ComboActive", "Combo!").SetValue(
new KeyBind(Config.Item("Orbwalk").GetValue<KeyBind>().Key, KeyBindType.Press)));
Config.SubMenu("Farm").AddItem(new MenuItem("UseQFarm", "Use Q").SetValue(true));
Config.SubMenu("Farm").AddItem(new MenuItem("UseEFarm", "Use E").SetValue(true));
Config.SubMenu("Farm")
.AddItem(
new MenuItem("FarmActive", "Farm!").SetValue(
new KeyBind(Config.Item("LaneClear").GetValue<KeyBind>().Key, KeyBindType.Press)));
Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseQJFarm", "Use Q").SetValue(true));
Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseEJFarm", "Use E").SetValue(true));
Config.SubMenu("JungleFarm")
.AddItem(
new MenuItem("JungleFarmActive", "JungleFarm!").SetValue(
new KeyBind(Config.Item("LaneClear").GetValue<KeyBind>().Key, KeyBindType.Press)));
Config.SubMenu("W").AddItem(new MenuItem("InterruptSpellsW", "Interrupt spells using W").SetValue(true));
Config.SubMenu("W").AddItem(new MenuItem("WKite", "Use W to kite").SetValue(true));
Config.SubMenu("W").AddItem(new MenuItem("WKiteD", "W Kite distance").SetValue(new Slider(300, 0, 500)));
Config.SubMenu("E").AddItem(new MenuItem("AutoE", "KS with E").SetValue(true));
Config.SubMenu("E").AddItem(new MenuItem("AutoEMobs", "KS Blue / Drake / Baron with E").SetValue(true));
Config.SubMenu("R").AddItem(new MenuItem("InterruptSpellsR", "Interrupt dangerous spells using R").SetValue(true));
Config.SubMenu("R").AddItem(new MenuItem("AutoR", "Auto R AOE").SetValue(true));
Config.AddToMainMenu();
Game.OnUpdate += Game_OnUpdate;
Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
}
示例15: Initialize
public static void Initialize()
{
#region Spell Databases
StealthSpells.Add(new Tuple<int, string>(3, "akalismokebomb"));
StealthSpells.Add(new Tuple<int, string>(1, "khazixr"));
StealthSpells.Add(new Tuple<int, string>(1, "khazixrlong"));
StealthSpells.Add(new Tuple<int, string>(3, "talonshadowassault"));
StealthSpells.Add(new Tuple<int, string>(1, "monkeykingdecoy"));
StealthSpells.Add(new Tuple<int, string>(1, "hideinshadows"));
AntiStealthSpells.Add(new _sdata { ChampionName = "caitlyn", Spell = SpellSlot.W, SpellRange = 800, StealthDetectionLevel = 1 });
AntiStealthSpells.Add(new _sdata { ChampionName = "kogmaw", Spell = SpellSlot.R, SpellRange = 1200, StealthDetectionLevel = 1 }); //range + level * 300
AntiStealthSpells.Add(new _sdata { ChampionName = "leesin", Spell = SpellSlot.Q, SpellRange = 1100, StealthDetectionLevel = 1 });
AntiStealthSpells.Add(new _sdata { ChampionName = "nidalee", Spell = SpellSlot.W, SpellRange = 900, StealthDetectionLevel = 1 });
AntiStealthSpells.Add(new _sdata { ChampionName = "nocturne", Spell = SpellSlot.Q, SpellRange = 1200, StealthDetectionLevel = 1 });
AntiStealthSpells.Add(new _sdata { ChampionName = "twistedfate",Spell = SpellSlot.R, SpellRange = 4000, StealthDetectionLevel = 3, SelfCast = true });
#endregion
#region Config Menu
Config = new Menu("Where Did He Go", "wheredidhego", true);
Config.AddItem(new MenuItem("DRAWCIRCLE", "Show Where did enemy go").SetValue(true));
Config.AddItem(new MenuItem("PINGMODE", "Ping Enemy Missing").SetValue(new StringList(new string[] { "Only local", "Send to team", "Disabled" }, 0)));
Config.AddItem(new MenuItem("PINGCOUNT", "Ping X Times").SetValue(new Slider(1, 1, 100)));
Config.AddItem(new MenuItem("DRAWWAPOINTS", "Draw Enemy's Last Waypoint").SetValue(true));
Config.AddItem(new MenuItem("ENABLEINCOMBO", "Only Enable In Combo").SetValue(false)).ValueChanged += (s, ar) => Config.Item("ENABLECOMBOKEY").Show(ar.GetNewValue<bool>());
Config.AddItem(new MenuItem("ENABLECOMBOKEY", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press))).Show(Config.Item("ENABLEINCOMBO").GetValue<bool>());
Config.AddItem(new MenuItem("ENABLEWDHG", "Enabled").SetValue(true));
Menu antiStealth = new Menu("Anti-Stealth", "wdhgantistealth");
antiStealth.AddItem(new MenuItem("USEVISIONWARD", "Use Vision Ward").SetValue(true));
antiStealth.AddItem(new MenuItem("USEORACLESLENS", "Use Oracle's Lens").SetValue(true));
antiStealth.AddItem(new MenuItem("USELIGHTBRINGER", "Use Lightbringer").SetValue(true));
antiStealth.AddItem(new MenuItem("USEHEXTECHSWEEPER", "Use Hextech Sweeper").SetValue(true));
antiStealth.AddItem(new MenuItem("USESNOWBALL", "Use ARAM Snowball").SetValue(true));
Config.AddSubMenu(antiStealth);
var spells = AntiStealthSpells.Where(p => p.ChampionName == ObjectManager.Player.ChampionName.ToLower());
if (spells != null)
{
Menu antiStealthSpells = new Menu("Reveal Spells", "wdhgrevealspells");
foreach (var spell in spells)
{
Menu antiStealthSpell = new Menu(String.Format("{0} ({1})", ObjectManager.Player.Spellbook.GetSpell(spell.Spell).Name, spell.Spell), "wdhg" + spell.Spell.ToString());
antiStealthSpell.AddItem(new MenuItem(String.Format("DETECT{0}", spell.Spell.ToString()), "Detection Level").SetValue(new Slider(spell.StealthDetectionLevel, 1, 3)));
antiStealthSpell.AddItem(new MenuItem(String.Format("USE{0}", spell.Spell.ToString()), "Enabled").SetValue(true));
antiStealthSpells.AddSubMenu(antiStealthSpell);
}
Config.AddSubMenu(antiStealthSpells);
}
Config.AddToMainMenu();
#endregion
Teemo = HeroManager.Enemies.FirstOrDefault(p => p.ChampionName.ToLower() == "teemo");
}