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


C# Menu.Separator方法代码示例

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


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

示例1: InitMenu

 private static void InitMenu()
 {
     MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
     MainMenu.Separator("Author: Brian");
     MainMenu.Separator("Paypal: [email protected]");
     Orbwalker.Init(MainMenu);
     Plugins[Player.ChampionName].Invoke();
     LeagueSharp.SDK.Core.Orbwalker.Enabled = false;
 }
开发者ID:q51251,项目名称:LeagueSharp-8,代码行数:9,代码来源:Program.cs

示例2: InitMenu

 private static void InitMenu(bool isSupport)
 {
     MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
     MainMenu.Separator("Author: Brian");
     MainMenu.Separator("Paypal: [email protected]");
     if (isSupport)
     {
         Plugins[Player.ChampionName].Invoke();
     }
     else
     {
         MainMenu.Separator(Player.ChampionName + " Not Support");
     }
 }
开发者ID:pandaChoi,项目名称:LeagueSharp-3,代码行数:14,代码来源:Program.cs

示例3: InitMenu

        private static void InitMenu(bool isSupport)
        {
            MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
            MainMenu.Separator("Author: Brian");
            MainMenu.Separator("Paypal: [email protected]");
            if (isSupport)
            {
                var skins = new List<string>();
                for (var i = 0; i <= Skins[Player.ChampionName]; i++)
                {
                    if (i == 0)
                    {
                        skins.Add("Default");
                    }
                    else
                    {
                        skins.Add("Skin " + i);
                    }
                }
                MainMenu.List("Skin", "Skin Changer", skins.ToArray()).ValueChanged +=
                    (sender, args) => { isSkinReset = true; };
                Plugins[Player.ChampionName].Invoke();
                Invulnerable.Deregister(new InvulnerableEntry("FerociousHowl"));
                Invulnerable.Deregister(new InvulnerableEntry("Meditate"));
                isSkinReset = true;

                Game.OnUpdate += args =>
                    {
                        if (Player.IsDead)
                        {
                            if (!isSkinReset)
                            {
                                isSkinReset = true;
                            }
                        }
                        else if (isSkinReset)
                        {
                            Player.SetSkin(Player.ChampionName, MainMenu["Skin"].GetValue<MenuList>().Index);
                            isSkinReset = false;
                        }
                    };
            }
            else
            {
                MainMenu.Separator(Player.ChampionName + " Not Support");
            }
        }
开发者ID:Inuyalx,项目名称:LeagueSharp,代码行数:47,代码来源:Program.cs

示例4: InitMenu

 private static void InitMenu(bool isSupport)
 {
     MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
     MainMenu.Separator("Author: Brian");
     MainMenu.Separator("Paypal: [email protected]");
     if (isSupport)
     {
         Plugins[Player.ChampionName].Invoke();
         Invulnerable.Deregister(new InvulnerableEntry("FerociousHowl"));
         Invulnerable.Deregister(new InvulnerableEntry("Meditate"));
         /*Drawing.OnDraw +=
             args => { Tracker.DetectedSkillshots.ForEach(i => i.Draw(Color.AliceBlue, Color.Red)); };*/
     }
     else
     {
         MainMenu.Separator(Player.ChampionName + " Not Support");
     }
 }
开发者ID:47110572,项目名称:LeagueSharp-10,代码行数:18,代码来源:Program.cs

示例5: OnLoad

 private static void OnLoad(object sender, EventArgs e)
 {
     UpdateCheck();
     if (!Plugins.ContainsKey(Player.ChampionName))
     {
         Game.PrintChat(string.Format("Valvrave Sharp => {0} Not Support!", Player.ChampionName));
         return;
     }
     InitItem();
     InitSummonerSpell();
     MainMenu = new Menu("ValvraveSharp", "Valvrave Sharp", true, Player.ChampionName).Attach();
     MainMenu.Separator("Author", "Author: Brian");
     MainMenu.Separator("Paypal", "Paypal: [email protected]");
     Plugins[Player.ChampionName].Invoke();
 }
开发者ID:dusql,项目名称:LeagueSharp,代码行数:15,代码来源:Program.cs


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