public static void addlayout() { var temp = new LeagueSharp.Common.Menu("Layout" + layoutnum, "Layout" + layoutnum); baseMenu.AddSubMenu(temp); temp.AddItem(new LeagueSharp.Common.MenuItem("visible" + layoutnum, "Visible").SetValue(true)); var fileitem = new LeagueSharp.Common.MenuItem("file" + layoutnum, "File:").SetValue(false); if (setFile.Exists) { var path = CaptureLib.GetSettingValue_String("Layout" + layoutnum, "path", setFile.FullName); fileitem.DisplayName = "File : " + path.Split('\\').Last(); } temp.AddItem(fileitem); var smoothvalue = new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" , "-10", "-9", "-8", "-7", "-6", "-5", "-4", "-3", "-2", "-1" }; var smoothvalue2 = new[] { "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" , "-100", "-90", "-80", "-70", "-60", "-50", "-40", "-30", "-20", "-10" }; temp.AddItem(new LeagueSharp.Common.MenuItem("reset" + layoutnum, "Reset").SetValue(false)); temp.AddItem(new LeagueSharp.Common.MenuItem("line" + layoutnum, "Coordinate--------------------------------------------------------")); temp.AddItem(new LeagueSharp.Common.MenuItem("X" + layoutnum, "X").SetValue <Slider>(new Slider(200, 1, 2100))); temp.AddItem(new LeagueSharp.Common.MenuItem("X_smooth" + layoutnum, "SmoothX").SetValue(new StringList(smoothvalue))); temp.AddItem(new LeagueSharp.Common.MenuItem("Y" + layoutnum, "Y").SetValue <Slider>(new Slider(200, 0, 2100))); temp.AddItem(new LeagueSharp.Common.MenuItem("Y_smooth" + layoutnum, "SmoothY").SetValue(new StringList(smoothvalue))); temp.AddItem(new LeagueSharp.Common.MenuItem("line_scale" + layoutnum, "Scale--------------------------------------------------------")); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_X" + layoutnum, "Scale_X").SetValue <Slider>(new Slider(1000, 0, 3000))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_X_smooth" + layoutnum, "SmoothX").SetValue(new StringList(smoothvalue2))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_Y" + layoutnum, "Scale_Y").SetValue <Slider>(new Slider(1000, 0, 3000))); temp.AddItem(new LeagueSharp.Common.MenuItem("Scale_Y_smooth" + layoutnum, "SmoothY").SetValue(new StringList(smoothvalue2))); menus.Add(temp); layoutnum += 1; }
private void LoadMenu() { var champMenu = new Menu("Syndra Plugin", "Syndra"); { var SpellMenu = new Menu("娉曟湳", "SpellMenu"); { var qMenu = new Menu("Q", "QMenu"); { qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "鑷姩Q闈欐").SetValue(true)); SpellMenu.AddSubMenu(qMenu); } var wMenu = new Menu("W", "WMenu"); { wMenu.AddItem(new MenuItem("W_Only_Orb", "鍙姄鐞億").SetValue(false)); SpellMenu.AddSubMenu(wMenu); } var rMenu = new Menu("R", "RMenu"); { rMenu.AddItem(new MenuItem("R_Overkill_Check", "鍑绘潃鎻愮ず").SetValue(true)); rMenu.AddSubMenu(new Menu("Don't use R on", "涓峈")); foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team) ) { rMenu.SubMenu("Dont_R") .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false)); } SpellMenu.AddSubMenu(rMenu); } champMenu.AddSubMenu(SpellMenu); } var comboMenu = new Menu("杩炴嫑", "Combo"); { AddSpelltoMenu(comboMenu, "Q", true); AddSpelltoMenu(comboMenu, "QE", true, "浣跨敤QE"); AddSpelltoMenu(comboMenu, "W", true); AddSpelltoMenu(comboMenu, "E", true); AddSpelltoMenu(comboMenu, "R", true); AddSpelltoMenu(comboMenu, "Ignite", true, "浣跨敤鐐圭噧"); champMenu.AddSubMenu(comboMenu); } var harassMenu = new Menu("楠氭壈", "Harass"); { AddSpelltoMenu(harassMenu, "Q", true); harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q楠氭壈(閿佸畾)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press))); AddSpelltoMenu(harassMenu, "QE", true, "浣跨敤QE"); AddSpelltoMenu(harassMenu, "W", true); AddSpelltoMenu(harassMenu, "E", true); AddManaManagertoMenu(harassMenu, 30); champMenu.AddSubMenu(harassMenu); } var laneClearMenu = new Menu("娓呯嚎", "LaneClear"); { AddSpelltoMenu(laneClearMenu, "Q", true); AddSpelltoMenu(laneClearMenu, "W", true); AddSpelltoMenu(laneClearMenu, "E", true); AddManaManagertoMenu(laneClearMenu, 30); champMenu.AddSubMenu(laneClearMenu); } var miscMenu = new Menu("鏉傞」", "Misc"); { miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "鍚戦紶鏍嘠E").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))); miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE鎵撴柇").SetValue(true)); miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE闃茬獊").SetValue(true)); champMenu.AddSubMenu(miscMenu); } var drawMenu = new Menu("鏄剧ず", "Drawing"); { drawMenu.AddItem(new MenuItem("Draw_Disabled", "绂佺敤").SetValue(false)); drawMenu.AddItem(new MenuItem("Draw_Q", "鏄剧ずQ").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_QE", "鏄剧ずQE").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_W", "鏄剧ずW").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_E", "鏄剧ずE").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R", "鏄剧ずR").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R_Killable", "鏄剧ずR鍙潃").SetValue(true)); MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "鏄剧ず浼ゅ").SetValue(true); drawMenu.AddItem(drawComboDamageMenu); Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage; Utility.HpBarDamageIndicator.Enabled = drawComboDamageMenu.GetValue <bool>(); drawComboDamageMenu.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>(); }; champMenu.AddSubMenu(drawMenu); } } Menu.AddSubMenu(champMenu); Menu.AddToMainMenu(); }
private void LoadMenu() { var champMenu = new Menu("Syndra Plugin", "Syndra"); { var SpellMenu = new Menu("技能", "SpellMenu"); { var qMenu = new Menu("Q", "QMenu"); { qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "自动Q静止").SetValue(true)); SpellMenu.AddSubMenu(qMenu); } var wMenu = new Menu("W", "WMenu"); { wMenu.AddItem(new MenuItem("W_Only_Orb", "只抓球").SetValue(false)); SpellMenu.AddSubMenu(wMenu); } var rMenu = new Menu("R", "RMenu"); { rMenu.AddItem(new MenuItem("R_Overkill_Check", "击杀提示").SetValue(true)); rMenu.AddSubMenu(new Menu("Don't use R on", "不R")); foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team) ) { rMenu.SubMenu("Dont_R") .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false)); } SpellMenu.AddSubMenu(rMenu); } champMenu.AddSubMenu(SpellMenu); } var comboMenu = new Menu("连招", "Combo"); { AddSpelltoMenu(comboMenu, "Q", true); AddSpelltoMenu(comboMenu, "QE", true, "使用QE"); AddSpelltoMenu(comboMenu, "W", true); AddSpelltoMenu(comboMenu, "E", true); AddSpelltoMenu(comboMenu, "R", true); AddSpelltoMenu(comboMenu, "Ignite", true, "使用点燃"); champMenu.AddSubMenu(comboMenu); } var harassMenu = new Menu("骚扰", "Harass"); { AddSpelltoMenu(harassMenu, "Q", true); harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q骚扰(锁定)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press))); AddSpelltoMenu(harassMenu, "QE", true, "使用QE"); AddSpelltoMenu(harassMenu, "W", true); AddSpelltoMenu(harassMenu, "E", true); AddManaManagertoMenu(harassMenu, 30); champMenu.AddSubMenu(harassMenu); } var laneClearMenu = new Menu("清线", "LaneClear"); { AddSpelltoMenu(laneClearMenu, "Q", true); AddSpelltoMenu(laneClearMenu, "W", true); AddSpelltoMenu(laneClearMenu, "E", true); AddManaManagertoMenu(laneClearMenu, 30); champMenu.AddSubMenu(laneClearMenu); } var miscMenu = new Menu("杂项", "Misc"); { miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "向鼠标QE").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))); miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE打断").SetValue(true)); miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE防突").SetValue(true)); champMenu.AddSubMenu(miscMenu); } var drawMenu = new Menu("显示", "Drawing"); { drawMenu.AddItem(new MenuItem("Draw_Disabled", "禁用").SetValue(false)); drawMenu.AddItem(new MenuItem("Draw_Q", "显示Q").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_QE", "显示QE").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_W", "显示W").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_E", "显示E").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R", "显示R").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R_Killable", "显示R可杀").SetValue(true)); MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "显示伤害").SetValue(true); drawMenu.AddItem(drawComboDamageMenu); Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage; Utility.HpBarDamageIndicator.Enabled = drawComboDamageMenu.GetValue <bool>(); drawComboDamageMenu.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>(); }; champMenu.AddSubMenu(drawMenu); } } Menu.AddSubMenu(champMenu); Menu.AddToMainMenu(); }
private void LoadMenu() { var champMenu = new Menu("Syndra Plugin", "Syndra"); { var SpellMenu = new Menu("SpellMenu", "SpellMenu"); { var qMenu = new Menu("QMenu", "QMenu"); { qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "Auto Q on Immobile").SetValue(true)); SpellMenu.AddSubMenu(qMenu); } var wMenu = new Menu("WMenu", "WMenu"); { wMenu.AddItem(new MenuItem("W_Only_Orb", "Only Pick Up Orb").SetValue(false)); SpellMenu.AddSubMenu(wMenu); } var rMenu = new Menu("RMenu", "RMenu"); { rMenu.AddItem(new MenuItem("R_Overkill_Check", "Overkill Check").SetValue(true)); rMenu.AddSubMenu(new Menu("Don't use R on", "Dont_R")); foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team) ) rMenu.SubMenu("Dont_R") .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false)); SpellMenu.AddSubMenu(rMenu); } champMenu.AddSubMenu(SpellMenu); } var comboMenu = new Menu("Combo", "Combo"); { AddSpelltoMenu(comboMenu, "Q", true); AddSpelltoMenu(comboMenu, "QE", true, "Use QE"); AddSpelltoMenu(comboMenu, "W", true); AddSpelltoMenu(comboMenu, "E", true); AddSpelltoMenu(comboMenu, "R", true); AddSpelltoMenu(comboMenu, "Ignite", true, "Use Ignite"); champMenu.AddSubMenu(comboMenu); } var harassMenu = new Menu("Harass", "Harass"); { AddSpelltoMenu(harassMenu, "Q", true); AddSpelltoMenu(harassMenu, "QE", true, "Use QE"); AddSpelltoMenu(harassMenu, "W", true); AddSpelltoMenu(harassMenu, "E", true); AddManaManagertoMenu(harassMenu, 30); champMenu.AddSubMenu(harassMenu); } var laneClearMenu = new Menu("LaneClear", "LaneClear"); { AddSpelltoMenu(laneClearMenu, "Q", true); AddSpelltoMenu(laneClearMenu, "W", true); AddSpelltoMenu(laneClearMenu, "E", true); AddManaManagertoMenu(laneClearMenu, 30); champMenu.AddSubMenu(laneClearMenu); } var miscMenu = new Menu("Misc", "Misc"); { miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "QE to mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))); miscMenu.AddItem(new MenuItem("QE_Interrupt", "Use QE to Interrupt").SetValue(true)); miscMenu.AddItem(new MenuItem("E_Gap_Closer", "Use E On Gap Closer").SetValue(true)); champMenu.AddSubMenu(miscMenu); } var drawMenu = new Menu("Drawing", "Drawing"); { drawMenu.AddItem(new MenuItem("Draw_Disabled", "Disable All").SetValue(false)); drawMenu.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_QE", "Draw QE").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_W", "Draw W").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_E", "Draw E").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R_Killable", "Draw R Mark on Killable").SetValue(true)); MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage").SetValue(true); drawMenu.AddItem(drawComboDamageMenu); Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage; Utility.HpBarDamageIndicator.Enabled = drawComboDamageMenu.GetValue<bool>(); drawComboDamageMenu.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>(); }; champMenu.AddSubMenu(drawMenu); } } Menu.AddSubMenu(champMenu); Menu.AddToMainMenu(); }
private void LoadMenu() { var champMenu = new Menu("Syndra Plugin", "Syndra"); { var SpellMenu = new Menu("SpellMenu", "SpellMenu"); { var qMenu = new Menu("QMenu", "QMenu"); { qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "Auto Q on Immobile").SetValue(true)); SpellMenu.AddSubMenu(qMenu); } var wMenu = new Menu("WMenu", "WMenu"); { wMenu.AddItem(new MenuItem("W_Only_Orb", "Only Pick Up Orb").SetValue(false)); SpellMenu.AddSubMenu(wMenu); } var rMenu = new Menu("RMenu", "RMenu"); { rMenu.AddItem(new MenuItem("R_Overkill_Check", "Overkill Check").SetValue(true)); rMenu.AddSubMenu(new Menu("Don't use R on", "Dont_R")); foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team) ) { rMenu.SubMenu("Dont_R") .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false)); } SpellMenu.AddSubMenu(rMenu); } champMenu.AddSubMenu(SpellMenu); } var comboMenu = new Menu("Combo", "Combo"); { AddSpelltoMenu(comboMenu, "Q", true); AddSpelltoMenu(comboMenu, "QE", true, "Use QE"); AddSpelltoMenu(comboMenu, "W", true); AddSpelltoMenu(comboMenu, "E", true); AddSpelltoMenu(comboMenu, "R", true); AddSpelltoMenu(comboMenu, "Ignite", true, "Use Ignite"); champMenu.AddSubMenu(comboMenu); } var harassMenu = new Menu("Harass", "Harass"); { AddSpelltoMenu(harassMenu, "Q", true); AddSpelltoMenu(harassMenu, "QE", true, "Use QE"); AddSpelltoMenu(harassMenu, "W", true); AddSpelltoMenu(harassMenu, "E", true); AddManaManagertoMenu(harassMenu, 30); champMenu.AddSubMenu(harassMenu); } var laneClearMenu = new Menu("LaneClear", "LaneClear"); { AddSpelltoMenu(laneClearMenu, "Q", true); AddSpelltoMenu(laneClearMenu, "W", true); AddSpelltoMenu(laneClearMenu, "E", true); AddManaManagertoMenu(laneClearMenu, 30); champMenu.AddSubMenu(laneClearMenu); } var miscMenu = new Menu("Misc", "Misc"); { miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "QE to mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))); miscMenu.AddItem(new MenuItem("QE_Interrupt", "Use QE to Interrupt").SetValue(true)); miscMenu.AddItem(new MenuItem("E_Gap_Closer", "Use E On Gap Closer").SetValue(true)); champMenu.AddSubMenu(miscMenu); } var drawMenu = new Menu("Drawing", "Drawing"); { drawMenu.AddItem(new MenuItem("Draw_Disabled", "Disable All").SetValue(false)); drawMenu.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_QE", "Draw QE").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_W", "Draw W").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_E", "Draw E").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(true)); drawMenu.AddItem(new MenuItem("Draw_R_Killable", "Draw R Mark on Killable").SetValue(true)); MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage").SetValue(true); drawMenu.AddItem(drawComboDamageMenu); Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage; Utility.HpBarDamageIndicator.Enabled = drawComboDamageMenu.GetValue <bool>(); drawComboDamageMenu.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs) { Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>(); }; champMenu.AddSubMenu(drawMenu); } } Menu.AddSubMenu(champMenu); Menu.AddToMainMenu(); }
public static void Initialize() { CustomEvents.Game.OnGameLoad += args => { var config = new Menu("Target Selector", "TargetSelector"); _configMenu = config; var focusMenu = new Menu("Focus Target Settings", "FocusTargetSettings"); focusMenu.AddItem(new MenuItem("FocusSelected", "Focus selected target").SetShared().SetValue(true)); focusMenu.AddItem( new MenuItem("SelTColor", "Focus selected target color").SetShared() .SetValue(new Circle(true, Color.Red))); focusMenu.AddItem( new MenuItem("ForceFocusSelected", "Only attack selected target").SetShared().SetValue(false)); focusMenu.AddItem(new MenuItem("sep", "")); focusMenu.AddItem( new MenuItem("ForceFocusSelectedKeys", "Enable only attack selected Keys").SetShared() .SetValue(false)); focusMenu.AddItem(new MenuItem("ForceFocusSelectedK", "Only attack selected Key")) .SetValue(new KeyBind(32, KeyBindType.Press)); focusMenu.AddItem(new MenuItem("ForceFocusSelectedK2", "Only attack selected Key 2")) .SetValue(new KeyBind(32, KeyBindType.Press)); focusMenu.AddItem(new MenuItem("ResetOnRelease", "Reset selected target upon release")) .SetValue(false); config.AddSubMenu(focusMenu); var autoPriorityItem = new MenuItem("AutoPriority", "Auto arrange priorities").SetShared() .SetValue(true) .SetTooltip("5 = Highest Priority"); autoPriorityItem.ValueChanged += autoPriorityItem_ValueChanged; foreach (var enemy in HeroManager.Enemies) { config.AddItem( new MenuItem("TargetSelector" + enemy.ChampionName + "Priority", enemy.ChampionName) .SetShared() .SetValue( new Slider( autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1, 5, 1))); if (autoPriorityItem.GetValue <bool>()) { config.Item("TargetSelector" + enemy.ChampionName + "Priority") .SetValue( new Slider( autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1, 5, 1)); } } config.AddItem(autoPriorityItem); config.AddItem( new MenuItem("TargetingMode", "Target Mode").SetShared() .SetValue(new StringList(Enum.GetNames(typeof(TargetingMode))))); CommonMenu.Instance.AddSubMenu(config); Game.OnWndProc += new GameWndProc(GameOnOnWndProc); if (!CustomTS) { Drawing.OnDraw += new DrawingDraw(DrawingOnOnDraw); } }; }