本文整理汇总了C#中LeagueSharp.Common.Orbwalking.Orbwalker.RegisterCustomMode方法的典型用法代码示例。如果您正苦于以下问题:C# Orbwalking.Orbwalker.RegisterCustomMode方法的具体用法?C# Orbwalking.Orbwalker.RegisterCustomMode怎么用?C# Orbwalking.Orbwalker.RegisterCustomMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Orbwalking.Orbwalker
的用法示例。
在下文中一共展示了Orbwalking.Orbwalker.RegisterCustomMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetupMenu
/// <summary>
/// Setups the menu.
/// </summary>
public void SetupMenu()
{
try
{
Menu = new Menu(Global.Name, "tf", true);
Orbwalker = new Orbwalking.Orbwalker(Menu.AddSubMenu(new Menu("Orbwalker", $"{Menu.Name}.orb")));
Orbwalker.RegisterCustomMode($"{Menu.Name}.orb.flee", "Flee", '8');
SetupComboMenu();
SetupHarassMenu();
SetupLaneClearMenu();
var fleeMenu = Menu.AddSubMenu(new Menu("Flee", $"{Menu.Name}.flee"));
fleeMenu.AddItem(new MenuItem($"{fleeMenu.Name}.w", "Use Gold Card").SetValue(true));
SetupMiscMenu();
SetupManualMenu();
Q.Range = Menu.Item($"{Menu.Name}.miscellaneous.q-range").GetValue<Slider>().Value;
W.Range = Menu.Item($"{Menu.Name}.miscellaneous.w-range").GetValue<Slider>().Value;
Cards.Delay = Menu.Item($"{Menu.Name}.miscellaneous.w-delay").GetValue<Slider>().Value;
Menu.AddToMainMenu();
}
catch (Exception ex)
{
Global.Logger.AddItem(new LogItem(ex));
}
}