本文整理汇总了C#中LeagueSharp.Common.Menu.AddSubMenu方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddSubMenu方法的具体用法?C# Menu.AddSubMenu怎么用?C# Menu.AddSubMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddSubMenu方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public static void Init()
{
Map = Utility.Map.GetMap().Type;
if (Map != Utility.Map.MapType.HowlingAbyss) return;
Config = new Menu("AIM: " + ObjectManager.Player.ChampionName,
"autosharp." + ObjectManager.Player.ChampionName, true);
Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));
options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));
new PluginLoader();
Cache.Load();
Game.OnUpdate += Positioning.OnUpdate;
Autoplay.Load();
Game.OnEnd += OnEnd;
Obj_AI_Base.OnIssueOrder += AntiShrooms;
Game.OnUpdate += AntiShrooms2;
Spellbook.OnCastSpell += OnCastSpell;
Obj_AI_Base.OnDamage += OnDamage;
Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);
Utility.DelayAction.Add(
new Random().Next(1000, 10000), () =>
{
new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
LeagueSharp.Common.AutoLevel.Enable();
Console.WriteLine("AutoLevel Init Success!");
});
}
示例2: AddToMenu
public static void AddToMenu(Menu theMenu)
{
_myMenu = theMenu;
//add item list to menu
CreateList();
var offensiveItem = new Menu("Offensive Items", "Offensive Items");
{
foreach (var item in ItemList)
{
AddOffensiveItem(offensiveItem, item);
}
_myMenu.AddSubMenu(offensiveItem);
}
var summoners = new Menu("Summoners", "Summoners");
{
var ignite = new Menu("Ignite", "Ignite");
{
ignite.AddItem(new MenuItem("ignite", "Use Ignite", true).SetValue(true));
ignite.AddItem(
new MenuItem("igniteMode", "Ignite Mode", true).SetValue(new StringList(new[] { "Combo", "KS" })));
summoners.AddSubMenu(ignite);
}
_myMenu.AddSubMenu(summoners);
}
Orbwalking.AfterAttack += AfterAttack;
Orbwalking.OnAttack += OnAttack;
Game.OnUpdate += Game_OnGameUpdate;
}
示例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: Init
public static void Init(Menu nParentMenu)
{
MenuCastSettings = nParentMenu.AddSubMenu("Spell Cast:", "MenuSettings.CastDelay");
{
string[] strQ = new string[1000/250];
for (float i = 250; i <= 1000; i += 250)
{
strQ[(int) (i/250 - 1)] = (i/1000) + " sec. ";
}
MenuCastSettings.Add("Settings.SpellCast.VisibleDelay", new ComboBox("Cast Delay: Instatly Visible Enemy", 2, strQ));
MenuCastSettings.Add("Settings.SpellCast.Default", new CheckBox("Load Recommended Settings"))
.OnValueChange += (sender, args) =>
{
if (args.NewValue)
{
LoadDefaultCastDelaySettings();
}
};
}
MenuHitchanceSettings = nParentMenu.AddSubMenu("Hitchance:", "MenuSettings.Hitchance");
{
string[] nHitchanceList = new[] { "Medium", "High", "VeryHigh" };
MenuHitchanceSettings.Add("MenuSettings.Hitchance.Q", new ComboBox("Q Hitchance:", 1, nHitchanceList));
MenuHitchanceSettings.Add("MenuSettings.Hitchance.W", new ComboBox("W Hitchance:", 1, nHitchanceList));
MenuHitchanceSettings.Add("MenuSettings.Hitchance.E", new ComboBox("E Hitchance:", 1, nHitchanceList));
MenuHitchanceSettings.Add("MenuSettings.Hitchance.R", new ComboBox("R Hitchance:", 1, nHitchanceList));
}
}
示例5: SFXHumanize
public SFXHumanize()
{
try
{
Menu = new Menu(Name, Name, true);
var infoMenu = new Menu("Info", Name + "Info");
infoMenu.AddItem(new MenuItem(infoMenu.Name + "Version", string.Format("{0}: {1}", "Version", Version)));
infoMenu.AddItem(new MenuItem(infoMenu.Name + "Forum", "Forum" + ": Lizzaran"));
infoMenu.AddItem(new MenuItem(infoMenu.Name + "Github", "GitHub" + ": Lizzaran"));
infoMenu.AddItem(new MenuItem(infoMenu.Name + "IRC", "IRC" + ": Appril"));
infoMenu.AddItem(new MenuItem(infoMenu.Name + "Exception", string.Format("{0}: {1}", "Exception", 0)));
var globalMenu = new Menu("Settings", Name + "Settings");
AddReport(globalMenu);
Menu.AddSubMenu(infoMenu);
Menu.AddSubMenu(globalMenu);
AppDomain.CurrentDomain.DomainUnload += OnExit;
AppDomain.CurrentDomain.ProcessExit += OnExit;
CustomEvents.Game.OnGameEnd += OnGameEnd;
CustomEvents.Game.OnGameLoad += OnGameLoad;
}
catch (Exception ex)
{
Global.Logger.AddItem(new LogItem(ex));
}
}
示例6: LoadJungleMenu
public static void LoadJungleMenu()
{
var junglemenu = new Menu("Jungle Settings", "Jungle Settings");
var oMenu = new Menu("Jungle Smite Options", "jungle.options.smite");
{
AddKeyBind(oMenu, "Auto-Smite", "jungle.options.autoSmite", 'G', KeyBindType.Toggle);
AddBool(oMenu, "Smite Buffs", "jungle.options.smiteBuffs", true);
AddBool(oMenu, "Smite Epics", "jungle.options.smiteEpics", true);
// AddBool(oMenu, "Smite Scuttle", "jungle.options.smiteScuttle", false);
// AddBool(oMenu, "Smite Krug", "jungle.options.smiteKrug", false);
// AddBool(oMenu, "Smite Wolf", "jungle.options.smiteWolf", false);
// AddBool(oMenu, "Smite Gromp", "jungle.options.smiteGromp", false);
// AddBool(oMenu, "Smite Raptors", "jungle.options.smiteRaptors", false);
// AddBool(oMenu, "Smite Enemies For KS", "jungle.options.smiteChampions", false);
}
junglemenu.AddSubMenu(oMenu);
var oMenu2 = new Menu("Jungle Drawing Options", "jungle.options.drawing");
{
AddBool(oMenu2, "Display Smite Range", "jungle.options.drawing.range", true);
AddBool(oMenu2, "Display Smite Damage", "jungle.options.drawing.damage", true);
AddBool(oMenu2, "Fill Smite Damage", "jungle.options.drawing.damage.fill", true);
AddBool(oMenu2, "Display Killable Text", "jungle.options.drawing.killable.text", true);
AddBool(oMenu2, "Display Jungle Timers", "jungle.options.drawing.timers", true);
}
var oMenu3 = new Menu("Spell + Smite", "Spell + Smite");
{
AddBool(oMenu3, "Nunu Q", "usenunuq", true);
AddBool(oMenu3, "Activate", "Nunu", true);
}
junglemenu.AddSubMenu(oMenu2);
junglemenu.AddSubMenu(oMenu3);
Config.AddSubMenu(junglemenu);
}
示例7: LoadMenu
public static void LoadMenu()
{
Menu = MainMenu.AddMenu("iTwitch 2.0", "com.itwitch");
comboOptions = Menu.AddSubMenu("iTwitch 2.0 - Combo", "com.itwitch.combo");
comboOptions.Add("com.itwitch.combo.useW", new CheckBox("Use W", true));
comboOptions.Add("com.itwitch.combo.useEKillable", new CheckBox("Use E Killable", true));
harassOptions = Menu.AddSubMenu("iTwitch 2.0 - Harass", "com.itwitch.harass");
harassOptions.Add("com.itwitch.harass.useW", new CheckBox("Use W", true));
harassOptions.Add("com.itwitch.harass.useEKillable", new CheckBox("Use E", true));
miscOptions = Menu.AddSubMenu("iTwitch 2.0 - Misc", "com.itwitch.misc");
miscOptions.Add("com.itwitch.misc.autoYo", new CheckBox("Youmuus with R", true));
miscOptions.Add("com.itwitch.misc.noWTurret", new CheckBox("Don't W Under Tower", true));
miscOptions.Add("com.itwitch.misc.noWAA", new Slider("No W if x aa can kill", 2, 0, 10));
miscOptions.Add("com.itwitch.misc.saveManaE", new CheckBox("Save Mana for E", true));
miscOptions.Add("com.itwitch.misc.recall", new KeyBind("Stealth Recall", false, KeyBind.BindTypes.HoldActive, 'T'));
drawOptions = Menu.AddSubMenu("iTwitch 2.0 - Drawing", "com.itwitch.drawing");
drawOptions.Add("com.itwitch.drawing.drawERange", new CheckBox("Draw E Range", true));
drawOptions.Add("com.itwitch.drawing.drawRRange", new CheckBox("Draw R Range", true));
drawOptions.Add("com.itwitch.drawing.drawQTime", new CheckBox("Draw Q Time", true));
drawOptions.Add("com.itwitch.drawing.drawEStacks", new CheckBox("Draw E Stacks", true));
drawOptions.Add("com.itwitch.drawing.drawEStackT", new CheckBox("Draw E Stack Time", true));
drawOptions.Add("com.itwitch.drawing.drawRTime", new CheckBox("Draw R Time", true));
drawOptions.Add("com.itwitch.drawing.eDamage", new CheckBox("Draw E Damage on Enemies", true));
}
示例8: Init
public static void Init(Menu MenuParent)
{
MenuSettingQ = MenuParent.AddSubMenu("Q:", "SettingsQ");
{
string[] strQ = new string[1000 / 250];
for (var i = 250; i <= 1000; i += 250)
{
strQ[i / 250 - 1] = i + " ms. ";
}
MenuSettingQ.Add("Settings.Q.VisibleDelay", new ComboBox("Instatly Visible Enemy Cast Delay:", 2, strQ));
MenuSettingQ.Add("Settings.Q.CastDelay", new ComboBox("Humanizer Cast Delay [Lane / Combo]", 2, strQ));
}
MenuSettingE = MenuParent.AddSubMenu("E:", "SettingsE");
{
string[] strE = new string[1000/250];
for (var i = 250; i <= 1000; i += 250)
{
strE[i/250 - 1] = i + " ms. ";
}
MenuSettingE.Add("Settings.E.VisibleDelay", new ComboBox("Instatly Visible Enemy Cast Delay:", 2, strE));
MenuSettingE.Add("Settings.E.Auto", new ComboBox("Auto-Use (If can stun enemy)", 1, "Off", "On"));
}
MenuFlame = MenuParent.AddSubMenu("Flame", "Flame");
MenuFlame.Add("Flame.Laugh", new ComboBox("After Kill:", 4, "Off", "Joke", "Taunt", "Laugh", "Random"));
MenuFlame.Add("Flame.Ctrl6", new ComboBox("After Kill: Show Champion Point Icon (Ctrl + 6)", 0, "Off", "On"));
Modes.ModeJump.Init(MenuParent);
}
示例9: LoadDamagesMenu
public static void LoadDamagesMenu()
{
var Damagesmeny = new Menu("Damage Settings", "Damage Settings");
{
var DtoP = new Menu("Damage to Player Settings", "Damage To Player Settings");
{
AddBool(DtoP, "Display Selected Target Damage", "dtop.selectedtarget", false);
foreach (var champion in HeroManager.Enemies)
{
var champions = new Menu(champion.ChampionName, champion.ChampionName);
DtoP.AddSubMenu(champions);
foreach (var spells in Slots)
{
AddBool(champions, "Display" + " " + spells + " " + "Damage", "damagesmenu.dtop" + spells,
true);
}
}
}
Damagesmeny.AddSubMenu(DtoP);
var DtoT = new Menu("Damage to Target Settings", "Damage To Target Settings");
{
AddBool(DtoT, "Display Combo Damage on Targets", "dtot.damage", false);
foreach (var spells in Slots) // probably wrong, will be checking.
{
AddBool(DtoT, "Display" + " " + spells + " " + "Damage", "damagesmenu.dtot" + spells, true);
}
}
Damagesmeny.AddSubMenu(DtoT);
}
Config.AddSubMenu(Damagesmeny);
}
示例10: 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");
}
示例11: 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();
}
示例12: BadaoActivate
public static void BadaoActivate()
{
// spells init
BadaoMainVariables.Q = new Spell(SpellSlot.Q, 625);
BadaoMainVariables.W = new Spell(SpellSlot.W);
BadaoMainVariables.E = new Spell(SpellSlot.E,1000);
BadaoMainVariables.R = new Spell(SpellSlot.R);
// main menu
config = MainMenu.AddMenu("BadaoKingdom " + ObjectManager.Player.ChampionName, ObjectManager.Player.ChampionName);
// Combo
Menu Combo = config.AddSubMenu("Combo", "Combo");
BadaoGangplankVariables.ComboE1 = Combo.Add("ComboE1", new CheckBox("Place 1st Barrel")).CurrentValue;
// Harass
Menu Harass = config.AddSubMenu("Harass", "Harass");
BadaoGangplankVariables.HarassQ = Harass.Add("HarassQ", new CheckBox("Q")).CurrentValue;
// LaneClear
Menu LaneClear = config.AddSubMenu("LaneClear", "LaneClear");
BadaoGangplankVariables.LaneQ = LaneClear.Add("LaneQ", new CheckBox("Use Q last hit")).CurrentValue;
// JungleClear
Menu JungleClear = config.AddSubMenu("JungleClear", "JungleClear");
BadaoGangplankVariables.JungleQ = JungleClear.Add("jungleQ", new CheckBox("Use Q last hit")).CurrentValue;
//Auto
Menu Auto = config.AddSubMenu("Auto", "Auto");
BadaoGangplankVariables.AutoWLowHealth = (Auto.Add("AutoWLowHealth", new CheckBox("W when low health"))).CurrentValue;
BadaoGangplankVariables.AutoWLowHealthValue = Auto.Add("AutoWLowHealthValue", new Slider("% HP to W", 20, 1, 100)).CurrentValue;
BadaoGangplankVariables.AutoWCC = Auto.Add("AutoWCC", new CheckBox("W anti CC")).CurrentValue;
}
示例13: Auto
private Menu Auto()
{
var basename=_baseName+"Auto.";
var mainMenu=new Menu(nameof(Auto), basename);
mainMenu.AddItem(new MenuItem($"{basename}.UseW.OnImmobile ", "Use W on Immobile enemies").SetValue(true));
mainMenu.AddItem(new MenuItem($"{basename}.UseE.OnGapClose", "Use E on gapclose").SetValue(true));
var eMenu=new Menu("GapClose E Settings", basename+"GapCloseE");
foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
eMenu.AddItem(new MenuItem($"{basename}.UseE.OnGapClose.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));
mainMenu.AddItem(new MenuItem($"{basename}.UseW.OnGapClose", "Use W on gapclose").SetValue(true));
var wMenu=new Menu("GapClose W Settings", basename+"GapCloseW");
foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
wMenu.AddItem(new MenuItem($"{basename}.UseW.OnGapClose.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));
mainMenu.AddItem(new MenuItem($"{basename}.UseR.OnKillable", "Use R on Killable").SetValue(true));
var rMenu=new Menu("Killable R Settings", basename+"KillableR");
foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
rMenu.AddItem(new MenuItem($"{basename}.UseR.OnKillable.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));
mainMenu.AddSubMenu(eMenu);
mainMenu.AddSubMenu(wMenu);
mainMenu.AddSubMenu(rMenu);
return mainMenu;
}
示例14: Karthus
public Karthus()
{
if (ObjectManager.Player.ChampionName != "Karthus")
return;
_menu = MainMenu.AddMenu("KarthusSharp", "KarthusSharp");
comboMenu = _menu.AddSubMenu("Combo", "Combo");
comboMenu.Add("comboQ", new CheckBox("Use Q", true));
comboMenu.Add("comboW", new CheckBox("Use W", true));
comboMenu.Add("comboE", new CheckBox("Use E", true));
comboMenu.Add("comboAA", new CheckBox("Disable AA?", false));
comboMenu.Add("comboWPercent", new Slider("Use W until Mana %", 10, 0, 100));
comboMenu.Add("comboEPercent", new Slider("Use E until Mana %", 15, 0, 100));
harassMenu = _menu.AddSubMenu("Harass", "Harass");
harassMenu.Add("harassQ", new CheckBox("Use Q", true));
harassMenu.Add("harassQPercent", new Slider("Use Q until Mana %", 15, 0, 100));
harassMenu.Add("harassQLasthit", new CheckBox("Prioritize Last Hit", true));
harassMenu.Add("harassQToggle", new KeyBind("Toggle Q", false, KeyBind.BindTypes.PressToggle, 'H'));
farmMenu = _menu.AddSubMenu("Farming", "Farming");
farmMenu.Add("farmQ", new ComboBox("Last Hit", 1, "Last Hit", "Lane Clear", "No"));
farmMenu.Add("farmE", new CheckBox("Use E in Lane Clear", true));
farmMenu.Add("farmAA", new CheckBox("Disable AA in Lane Clear", false));
farmMenu.Add("farmQPercent", new Slider("Use Q until Mana %", 15, 0, 100));
farmMenu.Add("farmEPercent", new Slider("Use E until Mana %", 20, 0, 100));
notifyMenu = _menu.AddSubMenu("Notify on R killable", "Notify");
notifyMenu.Add("notifyR", new CheckBox("Text Notify", true));
notifyMenu.Add("notifyPing", new CheckBox("Ping Notify", false));
drawMenu = _menu.AddSubMenu("Drawing", "Drawing");
drawMenu.Add("drawQ", new CheckBox("Draw Q range", true));
drawMenu.Add("DamageAfterCombo", new CheckBox("Damage After Combo", true));
miscMenu = _menu.AddSubMenu("Misc", "Misc");
miscMenu.Add("ultKS", new CheckBox("Ultimate KS", true));
miscMenu.Add("autoCast", new CheckBox("Auto Combo/LaneClear if dead", false));
miscMenu.Add("packetCast", new CheckBox("Packet Cast", false));
_spellQ = new Spell(SpellSlot.Q, 875);
_spellW = new Spell(SpellSlot.W, 1000);
_spellE = new Spell(SpellSlot.E, 505);
_spellR = new Spell(SpellSlot.R, 20000f);
_spellQ.SetSkillshot(1f, 160, float.MaxValue, false, SkillshotType.SkillshotCircle);
_spellW.SetSkillshot(.5f, 70, float.MaxValue, false, SkillshotType.SkillshotCircle);
_spellE.SetSkillshot(1f, 505, float.MaxValue, false, SkillshotType.SkillshotCircle);
_spellR.SetSkillshot(3f, float.MaxValue, float.MaxValue, false, SkillshotType.SkillshotCircle);
LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
Drawing.OnDraw += Drawing_OnDraw;
Game.OnUpdate += Game_OnUpdate;
Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
Chat.Print(
"<font color=\"#1eff00\">KarthusSharp by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
}
示例15: 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();
}