public static AddDrawMenu ( this menu, Spell>.Dictionary |
||
menu | this | |
dictionary | Spell>.Dictionary | |
myColor | Color | |
Результат | void |
public static void AddDrawMenu(this LeagueSharp.Common.Menu menu, Dictionary<SpellSlot, Spell> dictionary, Color myColor)
{
foreach (var entry in dictionary)
{
var slot = entry.Key;
if (entry.Value.Range < 4000f)
{
menu.AddItem(new MenuItem(BaseName + ".drawing.draw" + GetStringFromSpellSlot(slot), "Draw " + GetStringFromSpellSlot(slot)).SetValue(new Circle(true, myColor)));
}
}
}