当前位置: 首页>>代码示例>>C#>>正文


C# Menu.SubMenu方法代码示例

本文整理汇总了C#中LeagueSharp.Common.Menu.SubMenu方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.SubMenu方法的具体用法?C# Menu.SubMenu怎么用?C# Menu.SubMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LeagueSharp.Common.Menu的用法示例。


在下文中一共展示了Menu.SubMenu方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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;
        }
开发者ID:AlrikSharp,项目名称:LeagueSharp,代码行数:28,代码来源:J4.cs

示例2: Initialize

        public static void Initialize(Menu config, string checkUrl, string newsUrl = "")
        {
            MenuConfig = config;
            CheckUrl = checkUrl;
            NewsUrl = newsUrl;

            if (config.SubMenu("Credits") != null)
            {
                var Menu = config.SubMenu("Credits");
                Menu.AddSeparator();
                Menu.AddBool("檢查版本", "檢查版本", true);
                Menu.AddBool("消息", "提示消息", true);
            }
            else
            {
                var Menu = config.AddMenu("Credits", "腳本訊息");
                Menu.AddLabel("作者:TwCn");
                Menu.AddLabel("如果你喜歡這個脚本,記得在數據庫中點綠色讚");
                Menu.AddSeparator();
                Menu.AddBool("檢查版本", "檢查版本", true);
                Menu.AddBool("消息", "提示消息", true);
            }

            CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
        }
开发者ID:CjShu,项目名称:L-CC,代码行数:25,代码来源:TweckVersion.cs

示例3: Initialize

        public static void Initialize()
        {
            #region Initialize Menu
            Config = new Menu("SPredictioner", "spredictioner", true);
            Config.AddItem(new MenuItem("COMBOKEY", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddItem(new MenuItem("HARASSKEY", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Config.AddItem(new MenuItem("ENABLED", "Enabled").SetValue(true));

            #region Initialize Spells
            Menu skillshots = new Menu("Skillshots", "spredskillshots");
            foreach (var spell in SpellDatabase.Spells)
            {
                if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName)
                {
                    Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
                    Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000f, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
                    skillshots.AddItem(new MenuItem(String.Format("{0}{1}", spell.ChampionName, spell.Slot), "Convert Spell " + spell.Slot.ToString()).SetValue(true));
                }
            }
            Config.AddSubMenu(skillshots);
            #endregion

            SPrediction.Prediction.Initialize(Config, "SPREDFORSPREDICTONER");
            Config.SubMenu("SPREDFORSPREDICTONER").Name = "SPrediction";
            Config.SubMenu("SPREDFORSPREDICTONER").AddItem(new MenuItem("SPREDHITC", "Hit Chance").SetValue(new StringList(ShineCommon.Utility.HitchanceNameArray, 2))).SetTooltip("High is recommended");
            Config.AddToMainMenu();
            #endregion

            #region Initialize Events
            Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
            Obj_AI_Hero.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
            #endregion
        }
开发者ID:ShineSharp,项目名称:LeagueSharp,代码行数:33,代码来源:SPredictioner.cs

示例4: Game_OnGameLoad

 private static void Game_OnGameLoad(EventArgs args)
 {
     if (ObjectManager.Player.ChampionName != "Diana")
     return;
       _q = new Spell(SpellSlot.Q, 830);
       _q2 = new Spell(SpellSlot.Q, 350);
       _w = new Spell(SpellSlot.W, 200);
       _e = new Spell(SpellSlot.E, 350);
       _r = new Spell(SpellSlot.R, 825);
       _q.SetSkillshot(0.25f, 90, 900, false, SkillshotType.SkillshotCircle);
       _q2.SetSkillshot(0.25f, 60, 2500, false, SkillshotType.SkillshotCircle);
       _config = new Menu("Diana", "Diana", true);
       _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
       var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
       TargetSelector.AddToMenu(targetSelectorMenu);
       _config.AddSubMenu(targetSelectorMenu);
       _config.AddItem(new MenuItem("ec", "E mode").SetValue(new StringList(new[]{"after W", "in mid jump", "E off"})));
       _config.SubMenu("autokill").AddItem(new MenuItem("autokil", "autokill").SetValue(true));
       _config.SubMenu("autokill").AddItem(new MenuItem("kill", "autokill only if <= x enemys in 1600 range").SetValue(new Slider(5, 5, 1)));
       foreach (var hero in HeroManager.Enemies)
     {
       _config.SubMenu("autokill").SubMenu("autokill champion select").AddItem(new MenuItem("auto" + hero.ChampionName, hero.ChampionName).SetValue(false));
     }
       _config.AddToMainMenu();
       Obj_AI_Base.OnProcessSpellCast += oncast;
       Game.OnUpdate += Game_OnUpdate;
 }
开发者ID:rexyrexy,项目名称:LeagueSharp,代码行数:27,代码来源:Program.cs

示例5: Menu

        private void Menu()
        {
            try
            {
                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("Soraka_CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("Soraka_CUse_E", "Use E").SetValue(true));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);

                var Harass = new Menu("Harass", "Harass");
                {
                    Harass.AddItem(new MenuItem("Soraka_HUse_Q", "Use Q").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_HUse_E", "Use E").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_Auto_HEnable", "Auto Harass").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_HMana", "Min. Mana %").SetValue(new Slider(50, 0, 100)));
                    Harass.AddItem(new MenuItem("HKey", "Harass Key").SetValue(new KeyBind('C', KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Harass);

                var KillSteal = new Menu("KillSteal", "KillSteal");
                {
                    KillSteal.AddItem(new MenuItem("Soraka_KUse_Q", "Use Q").SetValue(true));
                    KillSteal.AddItem(new MenuItem("Soraka_KUse_E", "Use E").SetValue(true));
                }
                _MainMenu.AddSubMenu(KillSteal);

                var Misc = new Menu("Misc", "Misc");
                {
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMin", "Min Ally HP %").SetValue(new Slider(70, 0, 100)));
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMMin", "Min My HP %").SetValue(new Slider(30, 0, 100)));
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMinEnable", "Enable").SetValue(true));
                    Misc.SubMenu("Heal R").AddItem(new MenuItem("Soraka_RMin", "Min Ally HP %").SetValue(new Slider(15, 0, 100)));
                    Misc.SubMenu("Heal R").AddItem(new MenuItem("Soraka_RMinEnable", "Enable").SetValue(true));
                    Misc.AddItem(new MenuItem("Soraka_AntiE", "Anti-Gabcloser E").SetValue(true));
                    Misc.AddItem(new MenuItem("Soraka_InterE", "Interrupt E").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Soraka_QRange", "Q Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_WRange", "W Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_ERange", "E Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_WAlly", "Draw line Me to dangerous Ally").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_Indicator", "Draw Damage Indicator").SetValue(false));
                }
                _MainMenu.AddSubMenu(Draw);
            }
            catch (Exception)
            {
                if (NowTime() > ErrorTime)
                {
                    Game.PrintChat(ChampName + " in FreshBooster isn't Load. Error Code 02");
                    ErrorTime = TickCount(10000);
                }
            }
        }
开发者ID:NaviFly,项目名称:LeagueSharp,代码行数:60,代码来源:Soraka.cs

示例6: Initialize

        public static void Initialize()
        {
            #region Initialize Menu
            Config = new Menu("SPredictioner", "spredictioner", true);
            TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
            Config.AddItem(new MenuItem("COMBOKEY", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddItem(new MenuItem("HARASSKEY", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Config.AddItem(new MenuItem("ENABLED", "Enabled").SetValue(true));
            SPrediction.Prediction.Initialize(Config);
            Config.SubMenu("SPRED").AddItem(new MenuItem("SPREDHITC", "Hit Chance").SetValue(new StringList(ShineCommon.Utility.HitchanceNameArray, 2)));
            Config.AddToMainMenu();
            #endregion

            #region Initialize Events
            Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
            Obj_AI_Hero.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
            #endregion

            #region Initialize Spells
            foreach (var spell in SpellDatabase.Spells)
            {
                if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName)
                {
                    Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
                    Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
                }
            }
            #endregion
        }
开发者ID:47110572,项目名称:LeagueSharp,代码行数:29,代码来源:SPredictioner.cs

示例7: 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();


        }
开发者ID:BaFuSs,项目名称:StreamSharp,代码行数:25,代码来源:Program.cs

示例8: LoadMenu

        static void LoadMenu()
        {
            //Start Menu
            _menu = new Menu("PacketSharp", "PacketSharp", true);

            String[] find = { "OnCreateGromp", "OnMissileHit", "OnAttack", "OnDisengaged", "OnMonsterSkill", "Custom" };
            _menu.AddItem(new MenuItem("finding", "Finding Header").SetValue(new StringList(find,5)));

            //Custom Header
            _menu.AddSubMenu(new Menu("Custom Header", "Custom Header"));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customHeader1", "From Header").SetValue(new Slider(1,1,450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customHeader2", "To Header").SetValue(new Slider(450, 1, 450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customLenght1", "From Lenght").SetValue(new Slider(1, 1, 450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customLenght2", "To Lenght").SetValue(new Slider(450, 1, 450)));

            //Objects
            _menu.AddSubMenu(new Menu("Objects", "Objects"));
            _menu.SubMenu("Objects").AddItem(new MenuItem("getobject", "Get Object").SetValue(true));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj1", "Obj_AI_Hero").SetValue(false));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj2", "Obj_AI_Minion").SetValue(true));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj3", "Obj_AI_Turret").SetValue(false));

            //Misc
            _menu.AddItem(new MenuItem("packetobjknown", "Only get packets with known Objects").SetValue(false));
            _menu.AddItem(new MenuItem("packetobjmouse", "Only print Objects close to mouse (Console)").SetValue(false));
            _menu.AddItem(new MenuItem("packetdata", "Write Packet Data(Console)").SetValue(false));
            _menu.AddItem(new MenuItem("headersblock", "Add headers to block list").SetValue(false));
            _menu.AddItem(new MenuItem("packetamount", "Amount of packets to draw").SetValue(new Slider(3, 0, 10)));
            _menu.AddItem(new MenuItem("cursorrange", "Max object dist from cursor").SetValue(new Slider(300, 100, 1000)));

            _menu.AddToMainMenu();
        }
开发者ID:Backup521,项目名称:Orbwalker,代码行数:32,代码来源:Program.cs

示例9: BaseChamp

        public BaseChamp(string szChampName)
        {
            Text = new Font(Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Malgun Gothic",
                    Height = 15,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.ClearTypeNatural
                });

            Config = new Menu(String.Format("Synx {0} !", szChampName), szChampName, true);

            TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            activator = new Menu("Activator", "activator");
            new Smite(TargetSelector.DamageType.Magical, activator);
            new Ignite(TargetSelector.DamageType.Magical, activator);

            drawing = new Menu("Drawings", "drawings");

            Config.AddSubMenu(activator);
            Config.AddSubMenu(drawing);
            SpellDatabase.InitalizeSpellDatabase();
        }
开发者ID:xQxCPMxQx,项目名称:Leaguesharp-7,代码行数:26,代码来源:BaseChamp.cs

示例10: Menu

        private void Menu()
        {
            try
            {
                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("Braum_CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("Braum_CUse_Q_Hit", "Q HitChance").SetValue(new Slider(3, 1, 6)));
                    Combo.AddItem(new MenuItem("Braum_CUse_R", "Use R").SetValue(true));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);

                var Harass = new Menu("Harass", "Harass");
                {
                    Harass.AddItem(new MenuItem("Braum_HUse_Q", "Use Q").SetValue(true));
                    Harass.AddItem(new MenuItem("Braum_Auto_HEnable", "Auto Harass").SetValue(true));
                    Harass.AddItem(new MenuItem("Braum_HMana", "Min. Mana %").SetValue(new Slider(50, 0, 100)));
                    Harass.AddItem(new MenuItem("HKey", "Harass Key").SetValue(new KeyBind('C', KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Harass);

                var KillSteal = new Menu("KillSteal", "KillSteal");
                {
                    KillSteal.AddItem(new MenuItem("Braum_KUse_Q", "Use Q").SetValue(true));
                    KillSteal.AddItem(new MenuItem("Braum_KUse_R", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(KillSteal);

                var Misc = new Menu("Misc", "Misc");
                {
                    Misc.AddItem(new MenuItem("Braum_Flee", "Flee Key").SetValue(new KeyBind('G', KeyBindType.Press)));
                    Misc.AddItem(new MenuItem("Braum_AutoW", "Auto W").SetValue(true));
                    Misc.AddItem(new MenuItem("Braum_AutoE", "Auto E").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("Braum_InterR", "Use R").SetValue(true));
                    Misc.SubMenu("Anti-GapCloser").AddItem(new MenuItem("Braum_GapQ", "Use Q").SetValue(true));
                    Misc.SubMenu("Anti-GapCloser").AddItem(new MenuItem("Braum_GapR", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Braum_Draw_Q", "Draw Q").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Draw_W", "Draw W").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Draw_R", "Draw R").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Indicator", "Draw Damage Indicator").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            }
            catch (Exception)
            {
                if (NowTime() > ErrorTime)
                {
                    Game.PrintChat(ChampName + " in FreshBooster isn't Load. Error Code 02");
                    ErrorTime = TickCount(10000);
                }
            }
        }
开发者ID:NaviFly,项目名称:LeagueSharp,代码行数:58,代码来源:Braum.cs

示例11: Menu

        public static void Menu()
        {
            try // try start
            {
                _MainMenu = new Menu("FreshBlitzcrank", "FreshBlitzcrank", true).SetFontStyle(System.Drawing.FontStyle.Regular, Color.Aqua); ; ;
                _MainMenu.AddToMainMenu();

                Menu orbwalkerMenu = new Menu("OrbWalker", "OrbWalker");
                _OrbWalker = new Orbwalking.Orbwalker(orbwalkerMenu);
                _MainMenu.AddSubMenu(orbwalkerMenu);

                var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
                TargetSelector.AddToMenu(targetSelectorMenu);
                _MainMenu.AddSubMenu(targetSelectorMenu);

                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_W", "Use W").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_E", "Use E").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_R", "Use R").SetValue(true));
                    Combo.AddItem(new MenuItem("CUseQ_Hit", "Q HitChance").SetValue(new Slider(6,1,6)));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);                

                var Misc = new Menu("Misc", "Misc");
                {                    
                    foreach(var enemy in ObjectManager.Get<Obj_AI_Hero>())
                    {
                        if(enemy.Team != Program.Player.Team)
                        {
                            Misc.SubMenu("SetGrab").AddItem(new MenuItem("GrabSelect" + enemy.ChampionName, enemy.ChampionName)).SetValue(new StringList(new[] { "Enable", "Dont", "Auto" }));
                        }
                    }
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterQ", "Use Q").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterE", "Use E").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterR", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(false));                    
                    Draw.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(false));
                    Draw.AddItem(new MenuItem("Indicator", "Draw Damage Indicator").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            } // try end     
            catch (Exception e)
            {
                Console.Write(e);
                Game.PrintChat("FreshBlitzcrank is not working. plz send message by KorFresh (Code 1)");
            }           
            
        }
开发者ID:qq2128969,项目名称:LeagueSharp,代码行数:56,代码来源:Menu.cs

示例12: Menu

        public static void Menu()
        {
            try
            {
                _MainMenu = new Menu("프레시 블리츠크랭크", "FreshBlitzcrank", true).SetFontStyle(System.Drawing.FontStyle.Regular, Color.Aqua); ; ;
                _MainMenu.AddToMainMenu();

                Menu orbwalkerMenu = new Menu("오브워커", "OrbWalker");
                _OrbWalker = new Orbwalking.Orbwalker(orbwalkerMenu);
                _MainMenu.AddSubMenu(orbwalkerMenu);

                var targetSelectorMenu = new Menu("타겟셀렉터", "TargetSelector");
                TargetSelector.AddToMenu(targetSelectorMenu);
                _MainMenu.AddSubMenu(targetSelectorMenu);

                var Combo = new Menu("콤보", "Combo");
                {
                    Combo.AddItem(new MenuItem("CUse_Q", "Q 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_W", "W 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_E", "E 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_R", "R 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUseQ_Hit", "그랩정확도 (6추천)").SetValue(new Slider(6,1,6)));
                    Combo.AddItem(new MenuItem("CKey", "콤보 키").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);                

                var Misc = new Menu("기타", "Misc");
                {                    
                    foreach(var enemy in ObjectManager.Get<Obj_AI_Hero>())
                    {
                        if(enemy.Team != Program.Player.Team)
                        {
                            Misc.SubMenu("그랩설정").AddItem(new MenuItem("GrabSelect" + enemy.ChampionName, enemy.ChampionName)).SetValue(new StringList(new[] { "사용", "미사용", "자동" }));
                        }
                    }
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterQ", "Q 사용").SetValue(true));
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterE", "E 사용").SetValue(true));
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterR", "R 사용").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("드로잉", "Draw");
                {
                    Draw.AddItem(new MenuItem("Draw_Q", "Q 사거리").SetValue(false));                    
                    Draw.AddItem(new MenuItem("Draw_R", "R 사거리").SetValue(false));
                    Draw.AddItem(new MenuItem("Indicator", "데미지 계산 드로잉").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            } // try end     
            catch (Exception e)
            {
                Console.Write(e);
                Game.PrintChat("FreshBlitzcrank is not working. plz send message by KorFresh (Code 1)");
            }           
            
        }
开发者ID:OGNSharp,项目名称:FreshSharp,代码行数:56,代码来源:Menu.cs

示例13: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }

            _q = new Spell(SpellSlot.Q, 850);
            _w = new Spell(SpellSlot.W, 850);
            _e = new Spell(SpellSlot.E, 700);
            _r = new Spell(SpellSlot.R, 825);

            _igniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");

            const double ultAngle = 80 * Math.PI / 180;
            const float fUltAngle = (float) ultAngle;

            _q.SetSkillshot(0.60f, 75f, int.MaxValue, false, SkillshotType.SkillshotCircle);
            _w.SetSkillshot(0.50f, 106f, 2500f, false, SkillshotType.SkillshotCircle);
            _r.SetSkillshot(0.30f, fUltAngle, int.MaxValue, false, SkillshotType.SkillshotCone);

            SpellList.Add(_q);
            SpellList.Add(_w);
            SpellList.Add(_e);

            _config = new Menu(ChampionName, ChampionName, true);

            _config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));

            _config.AddSubMenu(new Menu("Combo", "Combo"));
            _config.SubMenu("Combo")
                .AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));

            _config.AddSubMenu(new Menu("Drawings", "Drawings"));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("QRange", "Q range").SetValue(new Circle(true, Color.FromArgb(255, 255, 255, 255))));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("WRange", "W range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("ERange", "E range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));

            _config.AddSubMenu(new Menu("Extra", "Extra"));
            _config.SubMenu("Extra")
                .AddItem(new MenuItem("Passive", "Keep Passive Up").SetValue(new KeyBind(114, KeyBindType.Toggle)));
            _config.SubMenu("Extra").AddItem(new MenuItem("Minions", "Use Q on minions").SetValue(true));
            _config.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnGameUpdate;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            Game.OnSendPacket += Game_OnGameSendPacket;
        }
开发者ID:qq2128969,项目名称:L-Assemblies,代码行数:56,代码来源:Program.cs

示例14: AddSupportmode

        public void AddSupportmode(Menu menu)
        {
            menu.AddSubMenu(new Menu("鏀寔妯″紡", "SupportMode"));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("sup_sep0", "===== 鏀寔妯″紡"));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("SubMode", "鏀寔妯″紡").SetValue(false));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("sup_sep1", "========="));

            HaveSupportMode = true;
            Game.OnGameSendPacket += GameSendPacker_Supportmode;
        }
开发者ID:lanyi777,项目名称:CN,代码行数:10,代码来源:Champion.cs

示例15: HumanizerMenu

        private static Menu HumanizerMenu()
        {
            var humanizerMenu = new Menu("Humanizer", "Humanizer");

            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("minDelay", "Minimum delay for actions (ms)").SetValue(new Slider(10, 0, 200)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("maxDelay", "Maximum delay for actions (ms)").SetValue(new Slider(75, 0, 250)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("doHuman", "Humanize").SetValue(true));

            return humanizerMenu;
        }
开发者ID:Faqer,项目名称:LeagueSharp-3,代码行数:10,代码来源:MenuManager.cs


注:本文中的LeagueSharp.Common.Menu.SubMenu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。