本文整理汇总了C#中LeagueSharp.Common.Menu.AddCircle方法的典型用法代码示例。如果您正苦于以下问题:C# Menu.AddCircle方法的具体用法?C# Menu.AddCircle怎么用?C# Menu.AddCircle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LeagueSharp.Common.Menu
的用法示例。
在下文中一共展示了Menu.AddCircle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public static void Initialize(Menu menu, Dictionary<SpellSlot, int[]> manaDictionary)
{
_manaBarItem = menu.AddCircle("ManaBarEnabled", "Draw Mana Indicator", Color.Black);
_manaBarItem.SetTooltip("Draw indicator on mana bar. Red means not enough mana.");
Drawing.OnPreReset += DrawingOnOnPreReset;
Drawing.OnPostReset += DrawingOnOnPostReset;
AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload;
Drawing.OnEndScene += eventArgs =>
{
if (ObjectManager.Player.IsDead || !_manaBarItem.IsActive())
{
return;
}
var spell = ObjectManager.Player.Spellbook;
var totalMana = manaDictionary.Sum(kvp => kvp.Value[spell.GetSpell(kvp.Key).Level]);
DrawManaPercent(
totalMana, totalMana > ObjectManager.Player.Mana ? new ColorBGRA(255, 0, 0, 255) : DrawColor);
};
}
示例2: Attach
internal static void Attach(Menu menu)
{
menu.AddBool("Drawing.Active", "Disable Drawings");
menu.AddCircle("Drawing.DrawQ", "Draw Q", Yas.Qrange, System.Drawing.Color.Red);
menu.AddCircle("Drawing.DrawE", "Draw E", Yas.Erange, System.Drawing.Color.CornflowerBlue);
menu.AddCircle("Drawing.DrawR", "Draw R", Yas.Rrange, System.Drawing.Color.DarkOrange);
menu.AddBool("Drawing.SS", "Draw Skillshot Drawings", false);
}