本文整理汇总了C#中LeagueSharp.Common.Menu.AddToMainMenu方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddToMainMenu方法的具体用法?C# Menu.AddToMainMenu怎么用?C# Menu.AddToMainMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddToMainMenu方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
Config = new Menu("Tracker", "Tracker", true);
HbTracker.AttachToMenu(Config);
WardTracker.AttachToMenu(Config);
Config.AddToMainMenu();
}
示例2: CreateMenu
private static void CreateMenu()
{
Menu = new Menu("AIOAuto", "menu", true);
Menu.AddItem(new MenuItem("timer", "timer")).SetValue(new Slider(500, 200, 5000));
Menu.AddItem(new MenuItem("dbbuff", "Simple Buff Checker")).SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press, false));
Menu.AddToMainMenu();
}
示例3: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
EQDrawList = new List<Vector3>();
Player = ObjectManager.Player;
if (Player.ChampionName != ChampionName) return;
Q = new Spell(SpellSlot.Q, 700f);
Q.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotLine);
W = new Spell(SpellSlot.W, 300f);
E = new Spell(SpellSlot.E, 830f);
E.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotCircle);
Config = new Menu("J4Helper", "J4Helper", true);
//Orbwalker
Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
//Misc
Config.AddSubMenu(new Menu("Keys", "Keys"));
Config.SubMenu("Keys")
.AddItem(
new MenuItem("EQMouse", "EQ to Mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
Config.AddToMainMenu();
Game.OnUpdate += Game_OnUpdate;
Drawing.OnDraw += Drawing_OnDraw;
Game.PrintChat("J4Helper Loaded.");
Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
}
示例4: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
Config = new Menu("SharpChatLiner", "SharpChatLiner", true);
Config.AddSubMenu(new Menu("Text 1", "Text 1"));
Config.SubMenu("Text 1").AddItem(new MenuItem("1", "Say txt File 1").SetValue(new KeyBind("1".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 1").AddItem(new MenuItem("ALL1", "Say txt File 1 To ALL")).SetValue(false);
Config.AddSubMenu(new Menu("Text 2", "Text 2"));
Config.SubMenu("Text 2").AddItem(new MenuItem("2", "Say txt File 2").SetValue(new KeyBind("2".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 2").AddItem(new MenuItem("ALL2", "Say txt File 2 To ALL")).SetValue(false);
Config.AddSubMenu(new Menu("Text 3", "Text 3"));
Config.SubMenu("Text 3").AddItem(new MenuItem("3", "Say txt File 3").SetValue(new KeyBind("3".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 3").AddItem(new MenuItem("ALL3", "Say txt File 3 To ALL")).SetValue(false);
Config.AddSubMenu(new Menu("Text 4", "Text 4"));
Config.SubMenu("Text 4").AddItem(new MenuItem("4", "Say txt File 4").SetValue(new KeyBind("4".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 4").AddItem(new MenuItem("ALL4", "Say txt File 4 To ALL")).SetValue(false);
Config.AddSubMenu(new Menu("Text 5", "Text 5"));
Config.SubMenu("Text 5").AddItem(new MenuItem("5", "Say txt File 5").SetValue(new KeyBind("5".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 5").AddItem(new MenuItem("ALL5", "Say txt File 5 To ALL")).SetValue(false);
Config.AddSubMenu(new Menu("Text 6", "Text 6"));
Config.SubMenu("Text 6").AddItem(new MenuItem("6", "Say txt File 6").SetValue(new KeyBind("6".ToCharArray()[0], KeyBindType.Press)));
Config.SubMenu("Text 6").AddItem(new MenuItem("ALL6", "Say txt File 6 To ALL")).SetValue(false);
Config.AddToMainMenu();
Game.OnGameUpdate += OnGameUpdate;
Game.PrintChat("<font color='#FF00BF'>Sharp Chat Liner Loaded By</font> <font color='#FF0000'>The</font><font color='#FFFF00'>Kush</font><font color='#40FF00'>Style</font>");
}
示例5: OnLoad
public static void OnLoad(Menu RootMenu)
{
var OrbwalkerMenu = new Menu("Orbwalker", "dz191.jayce.orbwalker");
Jayce.Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
RootMenu.AddSubMenu(OrbwalkerMenu);
var TSMenu = new Menu("TargetSelector", "dz191.jayce.ts");
TargetSelector.AddToMenu(TSMenu);
RootMenu.AddSubMenu(TSMenu);
var ComboMenu = new Menu("Combo","dz191.jayce.combo");
{
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qranged", "Use Q Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wranged", "Use W Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.eranged", "Use E Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qmelee", "Use Q Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wmelee", "Use W Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.emelee", "Use E Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.r", "Use R").SetValue(true));
RootMenu.AddSubMenu(ComboMenu);
}
var MiscMenu = new Menu("MiscMenu", "dz191.jayce.misc");
{
MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.gatemode", "Gate Mode").SetValue(new StringList(new []{"Horizontal", "Vertical"})));
MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.castqe", "Cast QE to best target").SetValue(new KeyBind('T', KeyBindType.Press)));
MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.castqemouse", "Cast QE to mouse").SetValue(new KeyBind('Z', KeyBindType.Press)));
RootMenu.AddSubMenu(MiscMenu);
}
RootMenu.AddToMainMenu();
}
示例6: OnGameLoad
public static void OnGameLoad(EventArgs args)
{
Menu = new Menu("Disrespect#", "masteryemotespammermenu", true);
Menu.AddItem(new MenuItem("mode", "[ Respect ]").SetValue(new StringList(new[] { "MASTERY", "HARD FLAME" })));
Menu.AddItem(new MenuItem("chatdisrespectmode", "[ Type ]").SetValue(new StringList(new[] { "DISABLED", "CHAMPION NAME", "SUMMONER NAME" })));
Menu.AddItem(new MenuItem("onkill", "[ Mes Kills ]").SetValue(true));
Menu.AddItem(new MenuItem("onassist", "[ Mes Assistances ]").SetValue(true));
Menu.AddItem(new MenuItem("ondeath", "[ Mes Morts ]").SetValue(false));
Menu.AddItem(new MenuItem("neardead", "[ Morts ]").SetValue(true));
Menu.AddItem(new MenuItem("ondodgedskillshot", "[ Esquive ]").SetValue(true));
Menu.AddItem(new MenuItem("afterignite", "[ Ignite ]").SetValue(true));
Menu.AddItem(new MenuItem("afterflash", "[ Flash ]").SetValue(false));
Menu.AddItem(new MenuItem("afterq", "[ A ]").SetValue(false));
Menu.AddItem(new MenuItem("afterw", "[ Z ]").SetValue(false));
Menu.AddItem(new MenuItem("aftere", "[ E ]").SetValue(false));
Menu.AddItem(new MenuItem("afterr", "[ R ]").SetValue(false));
Menu.AddToMainMenu();
Random = new Random();
FlashSlot = ObjectManager.Player.GetSpellSlot("SummonerFlash");
IgniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");
Game.OnUpdate += OnUpdate;
Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
//init chat disrespekter
foreach (var en in ObjectManager.Get<Obj_AI_Hero>().Where(h => h.IsEnemy))
{
DeathsHistory.Add(en.NetworkId, en.Deaths);
}
}
示例7: ZiggsMain
private static void ZiggsMain(EventArgs args)
{
Player = ObjectManager.Player;
if (Player.CharData.BaseSkinName != "Ziggs")
{
return;
}
Config = ZiggsMenu.CreateMenu();
Config.AddToMainMenu();
InitializeSpells();
ObjectHandling();
AntiGapcloser.OnEnemyGapcloser += OnGapClose;
Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
Game.OnUpdate += OnUpdate;
Game.OnUpdate += AutoSpells;
Drawing.OnDraw += OnDraw;
}
示例8: CassMain
private static void CassMain(EventArgs args)
{
Player = ObjectManager.Player;
if (Player.CharData.BaseSkinName != "Cassiopeia")
{
return;
}
Config = CassiopeiaMenu.CreateMenu();
Config.AddToMainMenu();
InitializeSpells();
new CommonAutoLevel(skillorder);
AntiGapcloser.OnEnemyGapcloser += OnGapClose;
Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
Game.OnUpdate += OnUpdate;
Game.OnUpdate += CheckKillable;
Game.OnUpdate += AutoSpells;
Drawing.OnDraw += OnDraw;
Orbwalking.BeforeAttack += BeforeAuto;
}
示例9: onGameLoad
private static void onGameLoad(EventArgs args)
{
Spellbook.OnCastSpell += Spellbook_OnCastSpell;
Obj_AI_Base.OnIssueOrder += GameObject_issueOrder;
Game.OnWndProc += Game_OnWndProc;
Drawing.OnDraw += OnDraw;
Option = new Menu("StreamSharp", "Stream Sharp", true);
Option.SubMenu("Keys").AddItem(new MenuItem("X", "LastHit").SetValue((new KeyBind("X".ToCharArray()[0], KeyBindType.Press))));
Option.SubMenu("Keys").AddItem(new MenuItem("C", "Harras").SetValue((new KeyBind("C".ToCharArray()[0], KeyBindType.Press))));
Option.SubMenu("Keys").AddItem(new MenuItem("V", "Clear").SetValue((new KeyBind("V".ToCharArray()[0], KeyBindType.Press))));
Option.SubMenu("Keys").AddItem(new MenuItem("Space", "Combo").SetValue((new KeyBind(32, KeyBindType.Press))));
Option.AddToMainMenu();
CursorAttack = new Render.Sprite(Properties.Resources.Attack, new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
CursorAttack.Add(0);
CursorAttack.Visible = false;
CursorAttack.OnDraw();
CursorMove = new Render.Sprite(Properties.Resources.normal, new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
CursorMove.Add(0);
CursorMove.OnDraw();
}
示例10: _BuildMenu
private static void _BuildMenu()
{
MainMenu = new Menu("PingMe", "MainMenu", true);
var allyMenu = new Menu("Allies", "allyMenu");
{
allyMenu.AddItem(new MenuItem("sep0", "-- Note : 0% = disable"));
foreach(var ally in Allies)
{
allyMenu.AddItem(new MenuItem("ally" + ally.ChampionName + "HPPERCENT", ally.ChampionName + " HP%")).SetValue<Slider>(new Slider(20, 0, 100));
}
MainMenu.AddSubMenu(allyMenu);
}
var enemyMenu = new Menu("Ennemies", "enemyMenu");
{
enemyMenu.AddItem(new MenuItem("sep1", "-- Note : 0% = disable"));
foreach (var enemy in Ennemies)
{
enemyMenu.AddItem(new MenuItem("enemy" + enemy.ChampionName + "HPPERCENT", enemy.ChampionName + " HP%")).SetValue<Slider>(new Slider(20, 0, 100));
}
MainMenu.AddSubMenu(enemyMenu);
}
MainMenu.AddItem(new MenuItem("PingAlly", "Ping locally when an ally is low", true).SetValue<Boolean>(false));
MainMenu.AddItem(new MenuItem("PingEnemy", "Ping locally when an enemy is low", true).SetValue<Boolean>(true));
if (hasTP) MainMenu.AddItem(new MenuItem("TpPing", "Ping if TP is up", true).SetValue<Boolean>(true));
if (hasLongRangeUlt) MainMenu.AddItem(new MenuItem("UltPing", "Ping if R is up", true).SetValue<Boolean>(true));
MainMenu.AddToMainMenu();
}
示例11: Game_OnGameLoad
private static void Game_OnGameLoad(EventArgs args)
{
if (Player.ChampionName != "Tryndamere")
return;
Q = new Spell(SpellSlot.Q);
W = new Spell(SpellSlot.W, 400f);
E = new Spell(SpellSlot.E, 660f);
R = new Spell(SpellSlot.R);
E.SetSkillshot(0f, 93f, 600, false, SkillshotType.SkillshotLine);
Menu = new Menu(Player.ChampionName, Player.ChampionName, true);
Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
TargetSelector.AddToMenu(ts);
Menu spellMenu = Menu.AddSubMenu(new Menu("Spells", "Spells"));
spellMenu.AddItem(new MenuItem("useQ", "Use Q").SetValue(true));
spellMenu.AddItem(new MenuItem("qBelow", "Q below % hp").SetValue(new Slider(20, 0, 95)));
spellMenu.AddItem(new MenuItem("useW", "Use W").SetValue(true));
spellMenu.AddItem(new MenuItem("useE", "Use E").SetValue(true));
spellMenu.AddItem(new MenuItem("useR", "Use R Before Death").SetValue(true));
spellMenu.AddItem(new MenuItem("rBelow", "R below % hp").SetValue(new Slider(15, 0, 95)));
Menu fleeMenu = Menu.AddSubMenu(new Menu("Flee", "Run Nigger"));
fleeMenu.AddItem(new MenuItem("useEFlee", "Use E")).SetValue(new KeyBind('Z', KeyBindType.Press));
Menu.AddToMainMenu();
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnGameUpdate;
Game.PrintChat("I'm a DK");
}
示例12: Menu
public static void Menu()
{
menu = new Menu("Master Of Jump", "MasterOfJump", true);
menu.AddItem(new MenuItem("Drawings", "draws").SetValue(true));
menu.AddItem(new MenuItem("wardjump", "WardJump key").SetValue(new KeyBind('Z', KeyBindType.Press)));
menu.AddToMainMenu();
}
示例13: OnLoad
public static void OnLoad(Menu RootMenu)
{
var OrbwalkerMenu = new Menu("Orbwalker", "dz191.jayce.orbwalker");
Jayce.Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
RootMenu.AddSubMenu(OrbwalkerMenu);
var TSMenu = new Menu("TargetSelector", "dz191.jayce.ts");
TargetSelector.AddToMenu(TSMenu);
RootMenu.AddSubMenu(TSMenu);
var ComboMenu = new Menu("Combo","dz191.jayce.combo");
{
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qranged", "Use Q Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wranged", "Use W Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.eranged", "Use E Ranged").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qmelee", "Use Q Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wmelee", "Use W Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.emelee", "Use E Melee").SetValue(true));
ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.r", "Use R").SetValue(true));
RootMenu.AddSubMenu(ComboMenu);
}
RootMenu.AddToMainMenu();
}
示例14: Init
public static void Init(Yasuo yas)
{
Yas = yas;
Config = new Menu("YasuoPro", "YasuoPro", true);
Menu OWMenu = Config.AddSubMenu("Orbwalking");
Orbwalker = new Orbwalking.Orbwalker(OWMenu);
Menu Combo = Config.AddSubMenu("Combo");
YasuoMenu.Combo.Attach(Combo);
Menu Harass = Config.AddSubMenu("Harass");
YasuoMenu.Harass.Attach(Harass);
Menu Evade = Config.AddSubMenu("Evade");
YasuoMenu.Evade.Attach(Evade);
Menu Killsteal = Config.AddSubMenu("Killsteal");
YasuoMenu.Killsteal.Attach(Killsteal);
Menu Farming = Config.AddSubMenu("LastHitting");
YasuoMenu.Farm.Attach(Farming);
Menu Waveclear = Config.AddSubMenu("Waveclear");
YasuoMenu.Waveclear.Attach(Waveclear);
Menu Misc = Config.AddSubMenu("Misc");
YasuoMenu.Misc.Attach(Misc);
Menu Drawings = Config.AddSubMenu("Drawings");
YasuoMenu.Drawings.Attach(Drawings);
Config.AddToMainMenu();
}
示例15: onLoad
private static void onLoad(EventArgs args)
{
Config = new Menu("Standalone DW", "standDW", true);
//Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
DeathWalker.AddToMenu(Config);
Config.AddToMainMenu();
}