本文整理汇总了C#中LeagueSharp.Common.Menu.Slider方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.Slider方法的具体用法?C# Menu.Slider怎么用?C# Menu.Slider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.Slider方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
internal static void Init()
{
LoadSpellData();
Spells.RemoveAll(i => !HeroManager.Enemies.Any(
a =>
string.Equals(
a.ChampionName,
i.ChampionName,
StringComparison.InvariantCultureIgnoreCase)));
var evadeMenu = new Menu("Evade Targeted SkillShot", "EvadeTarget");
{
evadeMenu.Bool("W", "Use W");
var aaMenu = new Menu("Auto Attack", "AA");
{
aaMenu.Bool("B", "Basic Attack", false);
aaMenu.Slider("BHpU", "-> If Hp < (%)", 35);
aaMenu.Bool("C", "Crit Attack", false);
aaMenu.Slider("CHpU", "-> If Hp < (%)", 40);
evadeMenu.AddSubMenu(aaMenu);
}
foreach (var hero in
HeroManager.Enemies.Where(
i =>
Spells.Any(
a =>
string.Equals(
a.ChampionName,
i.ChampionName,
StringComparison.InvariantCultureIgnoreCase))))
{
evadeMenu.AddSubMenu(new Menu("-> " + hero.ChampionName, hero.ChampionName.ToLowerInvariant()));
}
foreach (var spell in
Spells.Where(
i =>
HeroManager.Enemies.Any(
a =>
string.Equals(
a.ChampionName,
i.ChampionName,
StringComparison.InvariantCultureIgnoreCase))))
{
((Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).Bool(
spell.MissileName,
spell.MissileName + " (" + spell.Slot + ")",
false);
}
}
Menu.AddSubMenu(evadeMenu);
Game.OnUpdate += OnUpdateTarget;
GameObject.OnCreate += ObjSpellMissileOnCreate;
GameObject.OnDelete += ObjSpellMissileOnDelete;
}
示例2: 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);
}