本文整理汇总了C#中SpellSlot.Count方法的典型用法代码示例。如果您正苦于以下问题:C# SpellSlot.Count方法的具体用法?C# SpellSlot.Count怎么用?C# SpellSlot.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SpellSlot
的用法示例。
在下文中一共展示了SpellSlot.Count方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddKillstealMenu
//TODO make it better?
public static void AddKillstealMenu(this Menu menu, SpellSlot[] spells, bool[] values)
{
for (int i = 0; i < spells.Count(); i++)
{
menu.AddItem(
new MenuItem(
"com.idzkatarina.killsteal.use" + GetStringFromSpellSlot(spells[i]).ToLowerInvariant(),
"Use " + GetStringFromSpellSlot(spells[i]) + " Killsteal"));
}
}
示例2: AddModeMenu
public static void AddModeMenu(this LeagueSharp.Common.Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
{
for (var i = 0; i < spellList.Count(); i++)
{
menu.AddItem(
new MenuItem(
BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
"Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(values[i]));
}
}
示例3: AddModeMenu
public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
{
for (var i = 0; i < spellList.Count(); i++)
{
menu.AddItem(
new MenuItem(
"dzaio.champion."+DZAIO.Player.ChampionName.ToLowerInvariant()+".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
"Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(values[i]));
}
}
示例4: AddModeMenu
public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
{
for (var i = 0; i < spellList.Count(); i++)
{
menu.Add(
new MenuBool(
"dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + GetStringFromMode(mode),
"Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode),
values[i]));
}
}
示例5: AddModeMenu
public static void AddModeMenu(this Menu menu, Mode mode, SpellSlot[] spellList, bool[] values)
{
for (var i = 0; i < spellList.Count(); i++)
{
menu.AddItem(
new MenuItem(
"com.idzlucian.use" + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() +
GetStringFromMode(mode),
"Use " + GetStringFromSpellSlot(spellList[i]) + " " + GetFullNameFromMode(mode)).SetValue(
values[i]));
}
}
示例6: AddManaManager
public static void AddManaManager(this LeagueSharp.Common.Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
{
var mmMenu = new LeagueSharp.Common.Menu("Mana Manager", BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".mm." + GetStringFromMode(mode));
for (var i = 0; i < spellList.Count(); i++)
{
mmMenu.AddItem(
new MenuItem(
BaseName + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" + GetStringFromMode(mode).ToLowerInvariant(),
GetStringFromSpellSlot(spellList[i]) + " Mana").SetValue(new Slider(manaCosts[i])));
}
menu.AddSubMenu(mmMenu);
}
示例7: AddManaManager
public static void AddManaManager(this Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
{
var mmMenu = new Menu("Mana Manager", "com.idzlucian.mm." + GetStringFromMode(mode));
for (var i = 0; i < spellList.Count(); i++)
{
mmMenu.AddItem(
new MenuItem(
"com.idzlucian.manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" +
GetStringFromMode(mode).ToLowerInvariant(), GetStringFromSpellSlot(spellList[i]) + " Mana")
.SetValue(new Slider(manaCosts[i])));
}
menu.AddSubMenu(mmMenu);
}
示例8: AddManaManager
public static void AddManaManager(this Menu menu, Mode mode, SpellSlot[] spellList, int[] manaCosts)
{
var mmMenu = new Menu("Mana Manager", "dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".mm." + GetStringFromMode(mode));
for (var i = 0; i < spellList.Count(); i++)
{
mmMenu.Add(
new MenuSlider(
"dz191.vhr." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".manamanager." + GetStringFromSpellSlot(spellList[i]).ToLowerInvariant() + "mana" + GetStringFromMode(mode).ToLowerInvariant(),
GetStringFromSpellSlot(spellList[i]) + " Mana",
manaCosts[i]));
}
menu.Add(mmMenu);
}