本文整理汇总了C#中LeagueSharp.Common.Menu.AddKeyBind方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddKeyBind方法的具体用法?C# Menu.AddKeyBind怎么用?C# Menu.AddKeyBind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddKeyBind方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LaneClear
static LaneClear()
{
#region Menu
var laneclear = new Menu("Farm Settings", "LaneClear");
var lcQ = laneclear.AddMenu("Q", "Q");
lcQ.AddBool("LaneClearQ", "Use Q");
lcQ.AddSlider("LaneClearQMana", "Minimum Q Mana Percent", 30);
var lcW = laneclear.AddMenu("W", "W");
lcW.AddBool("LaneClearW", "Use W");
lcW.AddBool("LaneClearRW", "Use RW");
lcW.AddSlider("LaneClearWHits", "Min Enemies Hit", 2, 0, 5);
lcW.AddSlider("LaneClearWMana", "Minimum W Mana Percent", 30);
laneclear.AddKeyBind("LaneClearKey", "Farm Key", (byte) 'V');
#endregion
LocalMenu = laneclear;
Game.OnUpdate += Game_OnGameUpdate;
}
示例2: Harass
static Harass()
{
#region Menu
var harass = new Menu(Name + " Settings", Name);
var harassQ = harass.AddMenu("Q", "Q");
harassQ.AddBool("HarassQ", "Use Q");
harassQ.AddSlider("HarassQMana", "Min Mana %", 40);
var harassW = harass.AddMenu("W", "W");
harassW.AddBool("HarassW", "Use W");
harassW.AddBool("HarassW2", "Use Second W");
harassW.AddList("HarassW2Mode", "Second W Setting", new[] { "Auto", "After E" });
harassW.AddSlider("HarassWMana", "Min Mana %", 40);
var harassE = harass.AddMenu("E", "E");
harassE.AddBool("HarassE", "Use E");
harassE.AddHitChance("HarassEHC", "Min HitChance", HitChance.Medium);
harassE.AddSlider("HarassEMana", "Min Mana %", 40);
// harass.AddItem(new MenuItem("HarassCombo", "W->Q->E->W Combo").SetValue(true));
/* var harassR = harass.AddSubMenu(new Menu("R", "R"));
harassR.AddItem(new MenuItem("HarassR", "Use R").SetValue(true));
*/
harass.AddKeyBind("HarassKey", "Harass Key", (byte) 'C');
#endregion
LocalMenu = harass;
Game.OnUpdate += Game_OnGameUpdate;
}
示例3: Initialize
public static void Initialize()
{
Menu = SpellManager.Menu.AddMenu("Smite", "Smite");
Menu.AddKeyBind("Enabled", "Smite Enabled", 'K', KeyBindType.Toggle, true);
Menu.AddBool("DrawSmite", "Draw Smite Range");
Menu.AddBool("DrawDamage", "Draw Smite Damage");
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnUpdate;
}
示例4: CreateMenu
public static void CreateMenu()
{
Menu = new Menu("Evade Skillshot", "Evade");
foreach (var spell in
SpellDatabase.Spells.Where(
i =>
HeroManager.Enemies.Any(
a =>
string.Equals(
a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase))))
{
var subMenu = new Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
subMenu.AddSlider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
subMenu.AddBool("IsDangerous", "Is Dangerous", spell.IsDangerous);
subMenu.AddBool("DisableFoW", "Disable FoW Dodging", false);
subMenu.AddBool("Draw", "Draw", false);
subMenu.AddBool("Enabled", "Enabled", !spell.DisabledByDefault);
Menu.SubMenu(spell.ChampionName.ToLowerInvariant()).AddSubMenu(subMenu);
Menu.AddBool("DrawStatus", "Draw Evade Status");
Menu.AddKeyBind("Enabled", "Enabled", 'K', KeyBindType.Toggle);
Menu.AddKeyBind("OnlyDangerous", "Dodge Only Dangerous", 32);
}
}
示例5: Combo
static Combo()
{
#region Menu
var combo = new Menu(Name + " Settings", Name);
var comboQ = combo.AddMenu("Q", "Q");
comboQ.AddBool("ComboQ", "Use Q");
var comboW = combo.AddMenu("W", "W");
comboW.AddBool("ComboW", "Use W");
comboW.AddObject("Spacer", "Set to 0% To Always W");
comboW.AddSlider("ComboWMinHP", "Min HP To Use W", 20);
comboW.AddBool("ComboW2", "Use Second W");
comboW.AddBool("ComboW2Spells", "Use After Spells on CD");
var comboE = combo.AddMenu("E", "E");
comboE.AddBool("ComboE", "Use E");
comboE.AddBool("ComboEStart", "Start Combo with E", false);
comboE.AddHitChance("ComboEHC", "Min HitChance", HitChance.Medium);
var comboR = combo.AddMenu("R", "R");
comboR.AddBool("ComboR", "Use R");
comboR.AddList(
"ComboRMode", "Ult Mode",
new[] { SpellSlot.Q.ToString(), SpellSlot.W.ToString(), SpellSlot.E.ToString() });
/* var wCombo = combo.AddMenu("AOE Combo", "AOECombo");
wCombo.AddBool("wComboEnabled", "Enabled");
wCombo.AddBool("wComboFlash", "Use Flash");
wCombo.AddSlider("wComboEnemies", "Min Enemies", 2, 1, 5);
*/
combo.AddBool("ComboItems", "Use Items");
combo.AddKeyBind("ComboKey", "Combo Key", 32);
#endregion
LocalMenu = combo;
GameObject.OnCreate += GameObject_OnCreate;
GameObject.OnDelete += GameObject_OnDelete;
Game.OnUpdate += Game_OnGameUpdate;
}
示例6: Flee
static Flee()
{
#region Menu
var flee = new Menu(Name + " Settings", Name);
var fleeW = flee.AddMenu("W", "W");
fleeW.AddBool("FleeW", "Use W");
var fleeE = flee.AddMenu("E", "E");
fleeE.AddBool("FleeE", "Use E");
fleeE.AddHitChance("FleeEHC", "Min HitChance", HitChance.Medium);
var fleeR = flee.AddMenu("R", "R");
fleeR.AddBool("FleeRW", "Use W Ult");
flee.AddKeyBind("FleeKey", "Flee Key", (byte) 'T');
#endregion
LocalMenu = flee;
Game.OnUpdate += Game_OnGameUpdate;
}
示例7: Attach
internal static void Attach(Menu menu)
{
menu.AddBool("Misc.AutoR", "Auto Ultimate").Permashow();
menu.AddSlider("Misc.RMinHit", "Min Enemies for Autoult", 1, 1, 5);
menu.AddKeyBind("Misc.TowerDive", "Tower Dive Key", KeyCode("T"), KeyBindType.Press).Permashow(true, "Tower Diving Override");
menu.AddSList("Hitchance.Q", "Q Hitchance", new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString() }, 1);
menu.AddSlider("Misc.Healthy", "Healthy Amount HP", 20, 0, 100);
menu.AddBool("Misc.AG", "Use Q (Tornado) on Gapcloser");
menu.AddBool("Misc.Interrupter", "Use Q (Tornado) to Interrupt");
menu.AddBool("Misc.Debug", "Debug", false);
}
示例8: Attach
internal static void Attach(Menu menu)
{
menu.AddGroupLabel("Flee");
menu.AddSList("Flee.Mode", "Flee Mode", new[] { "To Nexus", "To Allies", "To Cursor" }, 2);
menu.AddBool("Flee.Smart", "Smart Flee", true);
menu.AddBool("Flee.StackQ", "Stack Q during Flee");
menu.AddBool("Flee.UseQ2", "Use Tornado", false);
menu.AddSeparator();
menu.AddGroupLabel("Misc :");
menu.AddBool("Misc.SafeE", "Safety Check for E");
menu.AddBool("Misc.AutoStackQ", "Auto Stack Q", false);
menu.AddBool("Misc.AutoR", "Auto Ultimate");
menu.AddSlider("Misc.RMinHit", "Min Enemies for Autoult", 1, 1, 5);
menu.AddSeparator();
menu.AddKeyBind("Misc.TowerDive", "Tower Dive Key", KeyCode("T"), EloBuddy.SDK.Menu.Values.KeyBind.BindTypes.HoldActive);
menu.AddSeparator();
menu.AddSList("Hitchance.Q", "Q Hitchance", new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString(), HitChance.VeryHigh.ToString() }, 2);
menu.AddSlider("Misc.Healthy", "Healthy Amount HP", 5, 0, 100);
menu.AddSeparator();
menu.AddBool("Misc.AG", "Use Q (Tornado) on Gapcloser");
menu.AddBool("Misc.Interrupter", "Use Q (Tornado) to Interrupt");
menu.AddBool("Misc.Walljump", "Use Walljump", false);
menu.AddBool("Misc.Debug", "Debug", false);
}
示例9: Katarina
public Katarina()
{
Q = SpellManager.Q;
W = SpellManager.W;
E = SpellManager.E;
R = SpellManager.R;
Menu = new Menu("Staberina", "Staberina", true);
Menu.SetFontStyle(FontStyle.Regular, ScriptColor);
Orbwalker = Menu.AddOrbwalker();
var spells = Menu.AddMenu("Spells", "Spells");
var qMenu = spells.AddMenu("Q", "Q");
qMenu.AddBool("QCombo", "Use in Combo");
qMenu.AddBool("QHarass", "Use in Harass");
var wMenu = spells.AddMenu("W", "W");
wMenu.AddBool("WCombo", "Use in Combo");
wMenu.AddBool("WHarass", "Use in Harass");
wMenu.AddBool("WAuto", "Auto W", false);
var eMenu = spells.AddMenu("E", "E");
eMenu.AddBool("ECombo", "Use in Combo");
eMenu.AddBool("EHarass", "Use in Harass");
eMenu.AddSlider("EEnemies", "Max Enemies", 5, 1, 5);
eMenu.Item("EEnemies").SetTooltip("Maximum enemies to E into in Combo.");
var rMenu = spells.AddMenu("R", "R");
rMenu.AddBool("RCombo", "Smart R");
rMenu.Item("RCombo").SetTooltip("Use R in Combo when killable enemy is around");
rMenu.AddSlider("RUltTicks", "Smart R Ticks", 7, 1, 10);
rMenu.Item("RUltTicks").SetTooltip("For damage calculation. One tick is 250 ms of channeling.");
rMenu.AddSlider("RRangeDecrease", "Decrease Range", 30);
rMenu.Item("RRangeDecrease").ValueChanged += (sender, args) =>
{
R.Range = RRange - args.GetNewValue<Slider>().Value;
var rDraw = Menu.Item("3Draw");
if (rDraw == null)
{
return;
}
var rCircle = rDraw.GetValue<Circle>();
rDraw.SetValue(new Circle(rCircle.Active, rCircle.Color, R.Range));
};
R.Range = RRange - rMenu.Item("RRangeDecrease").GetValue<Slider>().Value;
rMenu.AddBool("RInCombo", "Always R in Combo", false);
rMenu.AddBool("RMovement", "Disable Movement while casting R");
rMenu.AddBool("REvade", "Disable Evade while casting R");
rMenu.AddBool("RCancelNoEnemies", "Cancel R if no enemies", false);
rMenu.AddKeyBind("RCancelUlt", "Cancel R Key", 'J');
var ks = Menu.AddMenu("Killsteal", "Killsteal");
ks.AddBool("KSEnabled", "Use Smart KS");
ks.AddInfo("KSInfo", "-- Spells --", ScriptColor);
ks.AddBool("KSQ", "Use Q");
ks.AddBool("KSW", "Use W");
ks.AddBool("KSE", "Use E");
ks.AddBool("KSR", "Use Smart R");
ks.Item("KSR").SetTooltip("Uses ultimate tick amount from Spells > R.");
ks.AddInfo("KSInfo2", "-- Misc --", ScriptColor);
ks.AddBool("KSRCancel", "Cancel R to KS");
ks.Item("KSRCancel").SetTooltip("Cancel ultimate channel to KS with other spells.");
ks.AddSlider("KSEnemies", "Max Enemies", 5, 1, 5);
ks.Item("KSEnemies").SetTooltip("Maximum enemies to E in to KS.");
ks.AddSlider("KSHealth", "Min Health", 10);
ks.Item("KSHealth").SetTooltip("Minimum health to E in to KS.");
ks.AddBool("KSGapclose", "Gapclose with E", false);
ks.Item("KSGapclose").SetTooltip("Cast E to units in range of killable target.");
ks.AddBool("KSWardJump", "Ward Jump", false);
ks.Item("KSWardJump").SetTooltip("Ward jump with e to killable target.");
ks.AddBool("KSTurret", "Block E Under Turret");
ks.Item("KSTurret").SetTooltip("Don't attempt to KS units (with E) under turret.");
var farm = Menu.AddMenu("Farm", "Farm");
var qFarm = farm.AddMenu("FarmQ", "Q");
qFarm.AddBool("QFarm", "Use in Farm");
qFarm.AddBool("QLastHit", "Only Last Hit (Only Killable)");
var wFarm = farm.AddMenu("FarmW", "W");
wFarm.AddBool("WFarm", "Use in Farm");
wFarm.AddSlider("WMinionsHit", "Min Minions Killed", 2, 1, 4);
var eFarm = farm.AddMenu("FarmE", "E");
eFarm.AddBool("EFarm", "Use E->W in Farm", false);
eFarm.AddSlider("EMinionsHit", "Min Minions Killed", 3, 1, 4);
farm.AddKeyBind("FarmEnabled", "Farm Enabled", 'J', KeyBindType.Toggle, true);
farm.Item("FarmEnabled").SetTooltip("Enabled in LastHit and LaneClear mode.", ScriptColor);
var flee = Menu.AddMenu("Flee", "Flee");
flee.AddKeyBind("FleeEnabled", "Flee Enabled", 'T');
flee.AddBool("FleeE", "Use E");
//.........这里部分代码省略.........