本文整理汇总了C#中LeagueSharp.Common.Menu.KeyBind方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.KeyBind方法的具体用法?C# Menu.KeyBind怎么用?C# Menu.KeyBind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.KeyBind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateMenu
public static void CreateMenu()
{
var evadeMenu = new LeagueSharp.Common.Menu("Evade Skillshot", "Evade");
{
evadeMenu.Separator("Credit: Evade#");
var evadeSpells = new LeagueSharp.Common.Menu("Spells", "Spells");
{
foreach (
var spell in
EvadeSpellDatabase.Spells)
{
var subMenu = new LeagueSharp.Common.Menu(
string.Format("{0} ({1})", spell.Name, spell.Slot), spell.Name);
{
//if (spell.UnderTower)
//{
subMenu.Bool(spell.Slot + "Tower", "Under Tower", false);
//}
//if (spell.ExtraDelay)
//{
subMenu.Slider(spell.Slot + "Delay", "Extra Delay", 100, 0, 150);
//}
subMenu.Slider("DangerLevel", "If Danger Level >=", 3, 1, 5);
//if (spell.IsTargetted && spell.ValidTargets.Contains(SpellValidTargets.AllyWards))
//{
// subMenu.Bool("WardJump", "Ward Jump");
//}
subMenu.Bool("Enabled", "Enabled");
}
evadeSpells.AddSubMenu(subMenu);
}
evadeMenu.AddSubMenu(evadeSpells);
}
//foreach (var hero in
// HeroManager.Enemies.Where(
// i =>
// SpellDatabase.Spells.Any(
// a =>
// string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
// )
//{
// evadeMenu.AddSubMenu(new LeagueSharp.Common.Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
//}
foreach (var spell in
SpellDatabase.Spells.Where(
i =>
HeroManager.Enemies.Any(
a =>
string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
)
{
var subMenu = new LeagueSharp.Common.Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
{
subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
subMenu.Bool("Draw", "Draw",false);
subMenu.Bool("Enabled", "Enabled",false /*!spell.DisabledByDefault*/);
((LeagueSharp.Common.Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).AddSubMenu(subMenu);
}
}
evadeMenu.Bool("DrawStatus", "Draw Evade Status");
evadeMenu.KeyBind("Enabled", "Enabled", Keys.K, KeyBindType.Toggle);
evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", Keys.Space);
}
FioraProject.Program.Menu.AddSubMenu(evadeMenu);
}