本文整理汇总了C#中LeagueSharp.Common.Menu.AddText方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddText方法的具体用法?C# Menu.AddText怎么用?C# Menu.AddText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnLoad
public static void OnLoad()
{
var RootMenu = Variables.Menu;
var OWMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
{
Variables.Orbwalker = new Orbwalking.Orbwalker(OWMenu);
RootMenu.AddSubMenu(OWMenu);
}
var TSMenu = new Menu("[VHR] TS", "dz191.vhr.ts");
{
TargetSelector.AddToMenu(TSMenu);
RootMenu.AddSubMenu(TSMenu);
}
var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
{
var manaMenu = new Menu("Mana Manager", "dz191.vhr.combo.mm");
{
manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
manaMenu.AddManaLimiter(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSubMenu(manaMenu);
}
comboMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSkill(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo, false);
comboMenu.AddSlider("dz191.vhr.combo.r.minenemies", "Min. R Enemies", new Tuple<int, int, int>(2, 1, 5)).SetTooltip("Minimum enemies in range for R");
comboMenu.AddBool("dz191.vhr.combo.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");
RootMenu.AddSubMenu(comboMenu);
}
var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.mixed");
{
var manaMenu = new Menu("Mana Manager", "dz191.vhr.mixed.mm");
{
manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddSubMenu(manaMenu);
}
harassMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddBool("dz191.vhr.mixed.q.2wstacks", "Only Q if 2W Stacks on Target").SetTooltip("Will Q for 3rd proc only. Enable if you want AA AA Q AA");
harassMenu.AddBool("dz191.vhr.mixed.ethird", "Use E for Third Proc").SetTooltip("Uses E for 3rd W proc. Enable if you want AA Q AA E");
RootMenu.AddSubMenu(harassMenu);
}
var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
{
farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear).SetTooltip("Q Laneclear");
farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear, 45, true);
farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit);
farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit, 45, true).SetTooltip("Q Lasthit");
farmMenu.AddBool("dz191.vhr.farm.condemnjungle", "Use E to condemn jungle mobs", true).SetTooltip("Use Condemn against jungle creeps");
farmMenu.AddBool("dz191.vhr.farm.qjungle", "Use Q against jungle mobs", true).SetTooltip("Use Tumble in the Jungle");
RootMenu.AddSubMenu(farmMenu);
}
var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
{
var miscQMenu = new Menu("Misc - Q (Tumble)", "dz191.vhr.misc.tumble");
{
miscQMenu.AddStringList("dz191.vhr.misc.condemn.qlogic", "Q Logic", new[] { "Reborn", "Normal", "Kite melees", "Kurisu" }).SetTooltip("The Tumble Method. Reborn = Safest & Besto");
miscQMenu.AddBool("dz191.vhr.mixed.mirinQ", "Q to Wall when Possible (Mirin Mode)", true).SetTooltip("Will Q to walls when possible for really fast bursts!");
miscQMenu.AddBool("dz191.vhr.misc.tumble.smartq", "Try to QE when possible").SetTooltip("Will try to do the Tumble + Condemn combo when possible"); //Done
miscQMenu.AddKeybind("dz191.vhr.misc.tumble.noaastealthex", "Don't AA while stealthed", new Tuple<uint, KeyBindType>('K', KeyBindType.Toggle)).SetTooltip("Will not AA while you are in Ult+Q"); //Done
miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies").SetTooltip("If true it will not Q into 2 or more enemies"); //done
miscQMenu.AddBool("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance").SetTooltip("Use the enemy AA range as the 'Don't Q into enemies' safety distance?"); //done
miscQMenu.AddBool("dz191.vhr.misc.tumble.qspam", "Ignore Q checks").SetTooltip("Ignores 'Safe Q' and 'Don't Q into enemies' checks"); //Done
miscQMenu.AddBool("dz191.vhr.misc.tumble.qinrange", "Q For KS", true).SetTooltip("Uses Q to KS by Qing in range if you can kill with Q + AA"); //Done
miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning", "Click and hold Walltumble")
.SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning.2",
"It will walk to the nearest Tumble spot and Tumble")
.SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
miscQMenu.AddKeybind("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)",
new Tuple<uint, KeyBindType>('Y', KeyBindType.Press)).SetTooltip("DISABLED! (For security reasons)! Tumbles over wall.");
miscMenu.AddSubMenu(miscQMenu);
}
var miscEMenu = new Menu("Misc - E (Condemn)", "dz191.vhr.misc.condemn");
{
miscEMenu.AddStringList("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method",
new[] { "VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#" }).SetTooltip("The condemn method. Recommended: Revolution > Shine/Reborn > Marksman");
miscEMenu.AddSlider("dz191.vhr.misc.condemn.pushdistance", "E Push Distance",
new Tuple<int, int, int>(420, 350, 470)).SetTooltip("The E Knockback distance the script uses. Recommended: 400-430");
//.........这里部分代码省略.........
示例2: OnLoad
public static void OnLoad()
{
var RootMenu = Variables.Menu;
var OWMenu = new Menu("[VHR] Orbwalker", "dz191.vhr.orbwalker");
{
Variables.Orbwalker = new Orbwalking.Orbwalker(OWMenu);
RootMenu.AddSubMenu(OWMenu);
}
var TSMenu = new Menu("[VHR] TS", "dz191.vhr.ts");
{
TargetSelector.AddToMenu(TSMenu);
RootMenu.AddSubMenu(TSMenu);
}
var comboMenu = new Menu("[VHR] Combo", "dz191.vhr.combo");
{
var manaMenu = new Menu("Mana Manager", "dz191.vhr.combo.mm");
{
manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
manaMenu.AddManaLimiter(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSubMenu(manaMenu);
}
comboMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Combo);
comboMenu.AddSkill(Enumerations.Skills.R, Orbwalking.OrbwalkingMode.Combo, false);
comboMenu.AddSlider("dz191.vhr.combo.r.minenemies", "Min R Enemies", new Tuple<int, int, int>(2, 1, 5));
comboMenu.AddBool("dz191.vhr.combo.q.2wstacks","Only Q if 2W Stacks on Target");
RootMenu.AddSubMenu(comboMenu);
}
var harassMenu = new Menu("[VHR] Harass", "dz191.vhr.mixed");
{
var manaMenu = new Menu("Mana Manager", "dz191.vhr.mixed.mm");
{
manaMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
manaMenu.AddManaLimiter(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddSubMenu(manaMenu);
}
harassMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddSkill(Enumerations.Skills.E, Orbwalking.OrbwalkingMode.Mixed);
harassMenu.AddBool("dz191.vhr.mixed.q.2wstacks", "Only Q if 2W Stacks on Target");
harassMenu.AddBool("dz191.vhr.mixed.ethird", "Use E for Third Proc");
harassMenu.AddBool("dz191.vhr.mixed.mirinQ","Q to Wall when Possible (Mirin Mode)", true);
RootMenu.AddSubMenu(harassMenu);
}
var farmMenu = new Menu("[VHR] Farm", "dz191.vhr.farm");
{
farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear);
farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LaneClear, 45, true);
farmMenu.AddSkill(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit);
farmMenu.AddManaLimiter(Enumerations.Skills.Q, Orbwalking.OrbwalkingMode.LastHit, 45, true);
farmMenu.AddBool("dz191.vhr.farm.condemnjungle","Use E to condemn jungle mobs", true);
RootMenu.AddSubMenu(farmMenu);
}
var miscMenu = new Menu("[VHR] Misc", "dz191.vhr.misc");
{
var miscQMenu = new Menu("Misc - Q (Tumble)", "dz191.vhr.misc.tumble");
{
miscQMenu.AddStringList("dz191.vhr.misc.condemn.qlogic", "Q Logic", new[] {"Normal", "Kite melees", "Kurisu"});
miscQMenu.AddBool("dz191.vhr.misc.tumble.smartq", "Try to QE when possible"); //Done
miscQMenu.AddKeybind("dz191.vhr.misc.tumble.noaastealth", "Don't AA while stealthed", new Tuple<uint, KeyBindType>('K', KeyBindType.Toggle)); //Done
miscQMenu.AddBool("dz191.vhr.misc.tumble.noqenemies", "Don't Q into enemies"); //done
miscQMenu.AddBool("dz191.vhr.misc.tumble.dynamicqsafety", "Use dynamic Q Safety Distance"); //done
miscQMenu.AddBool("dz191.vhr.misc.tumble.qspam", "Ignore Q checks"); //Done
miscQMenu.AddBool("dz191.vhr.misc.tumble.qinrange", "Q For KS", true); //Done
miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning", "Click and hold Walltumble")
.SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
miscQMenu.AddText("dz191.vhr.misc.tumble.walltumble.warning.2",
"It will walk to the nearest Tumble spot and Tumble")
.SetFontStyle(FontStyle.Bold, SharpDX.Color.Red);
miscQMenu.AddKeybind("dz191.vhr.misc.tumble.walltumble", "Tumble Over Wall (WallTumble)",
new Tuple<uint, KeyBindType>('Y', KeyBindType.Press));
miscMenu.AddSubMenu(miscQMenu);
}
var miscEMenu = new Menu("Misc - E (Condemn)", "dz191.vhr.misc.condemn");
{
miscEMenu.AddStringList("dz191.vhr.misc.condemn.condemnmethod", "Condemn Method",
new[] {"VH Revolution", "VH Reborn", "Marksman/Gosu", "Shine#"});
miscEMenu.AddSlider("dz191.vhr.misc.condemn.pushdistance", "E Push Distance",
new Tuple<int, int, int>(395, 350, 470));
miscEMenu.AddSlider("dz191.vhr.misc.condemn.accuracy", "Accuracy (Revolution Only)",
//.........这里部分代码省略.........