本文整理汇总了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;
}
示例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");
}
}
示例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");
}
}
示例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");
}
}
示例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();
}