DZLib.Menu.ModesMenuExtensions.AddModeMenu C# (CSharp) Method

AddModeMenu() public static method

public static AddModeMenu ( this menu, Mode mode, SpellSlot spellList, bool values ) : void
menu this
mode Mode
spellList SpellSlot
values bool
return void
        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]));
            }
        }