本文整理汇总了C#中LeagueSharp.Common.Menu.AddList方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddList方法的具体用法?C# Menu.AddList怎么用?C# Menu.AddList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public static void Initialize(Menu menu)
{
_menu = menu.AddMenu("Passive", "Passive");
_menu.AddInfo("CloneInfo", " --> Automatic movement of clone.", Color.Red);
_menu.AddBool("CloneEnabled", "Control Clone");
_menu.AddList("CloneMode", "Mode", new[] { "To Player", "To Target", "Away from Player" });
_menu.AddBool("CloneOverride", "Manual Override");
_menu.Item("CloneOverride").SetTooltip("If clone is manually moved stop automatically moving.");
Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
Game.OnUpdate += Game_OnGameUpdate;
GameObject.OnCreate += GameObject_OnCreate;
GameObject.OnDelete += GameObject_OnDelete;
}
示例2: Clone
static Clone()
{
#region Menu
var clone = new Menu("Clone Settings", "Clone");
clone.AddBool("CloneEnabled", "Enabled");
clone.AddList("CloneMode", "Mode", new[] { "To Player", "To Target", "Away from Player" });
#endregion
LocalMenu = clone;
Game.OnUpdate += Game_OnGameUpdate;
GameObject.OnCreate += GameObject_OnCreate;
GameObject.OnDelete += GameObject_OnDelete;
}
示例3: MiscMenu
public override void MiscMenu(Menu config)
{
config.AddList("Misc.Laugh", "绗戠殑鍔ㄤ綔", new[] { "OFF", "ON", "ON + Mute" });
config.AddBool("Misc.E.NoFace", "E NoFace寮€鍙戙劎NoFace Exploit", false);
}
示例4: MiscMenu
public override void MiscMenu(Menu config)
{
config.AddList("Misc.Laugh", "Laugh Emote", new[] { "OFF", "ON", "ON + Mute" });
}
示例5: Katarina
//.........这里部分代码省略.........
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");
flee.AddBool("FleeWard", "Use Wards to Flee");
var draw = Menu.AddMenu("Drawing", "Drawing");
draw.AddCircle("0Draw", "Draw Q", Color.Purple, Q.Range);
draw.AddCircle("1Draw", "Draw W", Color.DeepPink, W.Range);
draw.AddCircle("2Draw", "Draw E", Color.DeepPink, E.Range);
draw.AddCircle("3Draw", "Draw R", Color.White, R.Range);
draw.AddBool("ComboKillablePermashow", "Permashow Combo Killable");
draw.AddBool("FarmPermashow", "Permashow Farm Enabled");
draw.Item("FarmPermashow").ValueChanged +=
(sender, eventArgs) =>
{
farm.Item("FarmEnabled").Permashow(eventArgs.GetNewValue<bool>(), null, ScriptColor);
};
if (draw.Item("FarmPermashow").IsActive())
{
farm.Item("FarmEnabled").Permashow(true, null, ScriptColor);
}
var dmg = draw.AddMenu("DamageIndicator", "Damage Indicator");
dmg.AddBool("DmgEnabled", "Draw Damage Indicator");
dmg.AddCircle("HPColor", "Predicted Health Color", Color.White);
dmg.AddCircle("FillColor", "Damage Color", Color.HotPink);
dmg.AddBool("Killable", "Killable Text");
DamageIndicator.Initialize(dmg, Utility.GetComboDamage);
Menu.AddInfo("MenuInfo", "-- Misc --", ScriptColor);
Menu.AddList("ComboMode", "Combo Mode", new[] { "E->Q->W", "Q->E->W" });
Menu.AddKeyBind("ComboKillable", "Only Combo Killable", 'K', KeyBindType.Toggle);
draw.Item("ComboKillablePermashow").ValueChanged +=
(sender, eventArgs) =>
{
Menu.Item("ComboKillable").Permashow(eventArgs.GetNewValue<bool>(), null, ScriptColor);
};
if (draw.Item("ComboKillablePermashow").IsActive())
{
Menu.Item("ComboKillable").Permashow(true, null, ScriptColor);
}
Menu.AddBool("Sounds", "Sounds");
if (Menu.Item("Sounds").IsActive())
{
new SoundObject(Resources.Load).Play();
}
Menu.AddInfo("Info", "By Trees and Lilith", ScriptColor);
SpellManager.Initialize(Menu, Orbwalker);
Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
Menu.AddToMainMenu();
}
示例6: Game_OnGameLoad
//.........这里部分代码省略.........
passive.AddSlider("SectorAngle", "Vital Polygon Angle", 70, 60, 90);
passive.Item("SectorAngle")
.SetTooltip("The angle of vital polygon. Draw polygon to understand what this is.", ScriptColor);
var qMenu = spells.AddMenu("Q", "Q");
qMenu.AddBool("QCombo", "Use in Combo");
qMenu.AddBool("QHarass", "Use in Harass");
qMenu.AddSlider("QRangeDecrease", "Decrease Q Range", 10, 0, 150);
Q.Range = 750 - qMenu.Item("QRangeDecrease").GetValue<Slider>().Value;
qMenu.Item("QRangeDecrease").ValueChanged += (sender, eventArgs) =>
{
Q.Range = 750 - eventArgs.GetNewValue<Slider>().Value;
var qDraw = Menu.Item("QDraw");
if (qDraw == null)
{
return;
}
var qCircle = qDraw.GetValue<Circle>();
qDraw.SetValue(new Circle(qCircle.Active, qCircle.Color, Q.Range));
};
qMenu.AddBool("QBlockTurret", "Block Q Under Turret", false);
qMenu.Item("QBlockTurret").SetTooltip("Don't Q under turret in combo/harass.", ScriptColor);
qMenu.AddKeyBind("QFlee", "Q Flee", 'T');
qMenu.Item("QFlee").SetTooltip("Flees towards cursor position.", ScriptColor);
//qMenu.AddInfo("FleeInfo", " --> Flees towards cursor position.", ScriptColor);
qMenu.AddBool("QKillsteal", "Use for Killsteal");
var wSpells = wMenu.AddMenu("BlockSpells", "Blocked Spells");
wMenu.AddKeyBind("WSpells", "Enabled", 'U', KeyBindType.Toggle, true);
wMenu.AddList("WMode", "W Spellblock to: ", new[] { "Spell Caster", "Target" });
wMenu.Item("WMode").SetTooltip("TR", ScriptColor);
wMenu.AddBool("WKillsteal", "Use for Killsteal");
wMenu.AddBool("WTurret", "Block W Under Enemy Turret", false);
SpellBlock.Initialize(wSpells);
Dispeller.Initialize(wSpells);
var eMenu = spells.AddMenu("E", "E");
eMenu.AddBool("ECombo", "Use in Combo");
eMenu.AddBool("EHarass", "Use in Harass");
var rMenu = spells.AddMenu("R", "R");
var duelistMenu = rMenu.AddMenu("Duelist Champion", "Duelist Mode Champions");
foreach (var enemy in Enemies)
{
duelistMenu.AddBool("Duelist" + enemy.ChampionName, "Use on " + enemy.ChampionName);
}
rMenu.AddBool("RCombo", "Use R");
rMenu.AddList("RMode", "Cast Mode", new[] { "Duelist", "Combo" });
rMenu.Item("RMode")
.SetTooltip("Duelist: Only cast when killable. Combo: Cast during normal combo.", ScriptColor);
rMenu.AddKeyBind("RToggle", "Toggle Mode", 'L');
rMenu.Item("RToggle").SetTooltip("Toggles cast mode between Duelist and Combo.", ScriptColor);
rMenu.Item("RToggle").ValueChanged += (sender, eventArgs) =>
{
if (!eventArgs.GetNewValue<KeyBind>().Active)
{