Beispiel #1
0
            public Configuration(Menu root)
            {
                ComboMenu     = MenuFactory.CreateMenu(root, "Combo");
                HarassMenu    = MenuFactory.CreateMenu(root, "Harass");
                LaneClearMenu = MenuFactory.CreateMenu(root, "Lane Clear");
                MiscMenu      = MenuFactory.CreateMenu(root, "Misc");
                DrawingMenu   = MenuFactory.CreateMenu(root, "Drawing");

                Combos(MenuItemFactory.Create(ComboMenu));
                Harass(MenuItemFactory.Create(HarassMenu));
                LaneClear(MenuItemFactory.Create(LaneClearMenu));
                Misc(MenuItemFactory.Create(MiscMenu));
                Drawings(MenuItemFactory.Create(DrawingMenu));
            }
Beispiel #2
0
 private void Skins(MenuItemFactory factory)
 {
     // Skins Menu
     SkinID  = factory.WithName("Skin ID").WithValue(new Slider(6, 0, 10)).Build();
     UseSkin = factory.WithName("Enabled?").WithValue(true).Build();
     UseSkin.ValueChanged += (sender, eventArgs) =>
     {
         if (!eventArgs.GetNewValue <bool>())
         {
             ObjectManager.Player.SetSkin(ObjectManager.Player.CharData.BaseSkinName,
                                          ObjectManager.Player.BaseSkinId);
         }
     };
 }
Beispiel #3
0
 private void Misc(MenuItemFactory factory)
 {
     // Misc Menu
     KSQ         = factory.WithName("Use Q to KillSteal").WithValue(true).Build();
     KSW         = factory.WithName("Use W to KillSteal").WithValue(true).Build();
     KSE         = factory.WithName("Use E to KillSteal").WithValue(true).Build();
     StackTear   = factory.WithName("Stack Tear/Manamune/Archangel in Fountain?").WithValue(true).Build();
     StackTearNF =
         factory.WithName("Stack Tear/Manamune/Archangel if You've Blue Buff?").WithValue(true).Build();
     InterruptWithW = factory.WithName("Interrupt Spells W").WithValue(true).Build();
     WGapCloser     = factory.WithName("Use W on Enemy GapCloser (Ex: Irelia's Q)").WithValue(true).Build();
     ChaseWithR     = factory.WithName("Use R to Chase (Being Added)").Build();
     EscapeWithR    = factory.WithName("Use R to Escape (Ultimate Menu)").Build();
 }
Beispiel #4
0
            private void Drawings(MenuItemFactory factory)
            {
                // Drawing Menu
                drawAA          = factory.WithName("Draw AA range").WithValue(true).Build();
                drawW           = factory.WithName("Draw W range").WithValue(true).Build();
                DrawComboDamage = factory
                                  .WithName("Draw Combo Damage")
                                  .WithValue(true)
                                  .Build();

                FillColor = factory
                            .WithName("Fill Color")
                            .WithValue(new Circle(true, Color.FromArgb(204, 255, 0, 1)))
                            .Build();
            }
Beispiel #5
0
            public Configuration(Menu root)
            {
                ComboMenu       = MenuFactory.CreateMenu(root, ":: Combo");
                HarassMenu      = MenuFactory.CreateMenu(root, ":: Harass");
                LaneClearMenu   = MenuFactory.CreateMenu(root, ":: Lane Clear");
                JungleClearMenu = MenuFactory.CreateMenu(root, ":: Jungle Clear");
                MiscMenu        = MenuFactory.CreateMenu(root, ":: Misc");
                DrawingMenu     = MenuFactory.CreateMenu(root, ":: Drawing");

                Combo(MenuItemFactory.Create(ComboMenu));
                Harass(MenuItemFactory.Create(HarassMenu));
                LaneClear(MenuItemFactory.Create(LaneClearMenu));
                JungleClear(MenuItemFactory.Create(JungleClearMenu));
                Misc(MenuItemFactory.Create(MiscMenu));
                Drawings(MenuItemFactory.Create(DrawingMenu));
            }
 public void SpellsUsage(MenuItemFactory factory)
 {
     SummonerDot = new Spell(ObjectManager.Player.GetSpellSlot("SummonerDot"), 550);
     if (SummonerDot.Slot != LeagueSharp.SpellSlot.Unknown)
     {
         UseIgnite = factory.WithName("Use Smart Ignite").WithValue(true).Build();
     }
     else
     {
         UseIgnite =
             factory.WithName("Use Smart Ignite (No Ignite Found)")
             .WithValue(false)
             .WithTooltip("Turning it On/Off won't make a difference lad!")
             .Build();
     }
 }
        public IEnumerable <IMenuItem> CollectDynamicMenuItems(object commandParameter)
        {
            var builder = new MenuBuilder();

            // Menu:  Virtual devices
            int       currentWeight   = 0;
            IMenuItem deviceMenuGroup =
                MenuItemFactory.CreateMenuItem(
                    menuText: "Virtual Devices",
                    weight: currentWeight++);

            using (builder.AddMenuGroup(deviceMenuGroup))
            {
                int i = 0;
                var virtualDevices = this.driverOperations.VirtualDeviceNames;
                var currentlySelectedVirtualDevice = this.SelectedVirtualDevice;
                foreach (var virtualDevice in virtualDevices)
                {
                    IMenuItem deviceMenuItem =
                        MenuItemFactory.CreateMenuItem(
                            menuCommand:
                            new NationalInstruments.RelayCommand(
                                executeParam => this.SelectedVirtualDevice = virtualDevice,
                                canExecuteParam => virtualDevice != currentlySelectedVirtualDevice),
                            menuText: virtualDevice,
                            weight: i,
                            commandParameter: null);
                    builder.AddMenu(deviceMenuItem);
                    i++;
                }
            }

            builder.AddMenu(MenuItemFactory.CreateSeparator(currentWeight++));

            //Menu: Refresh
            builder.AddMenu(
                MenuItemFactory.CreateMenuItem(
                    menuCommand:
                    new NationalInstruments.RelayCommand(
                        executeParam => this.driverOperations.Refresh(),
                        canExecuteParam => !this.IsAnyDeviceOffline),
                    menuText: "Refresh",
                    weight: currentWeight++,
                    commandParameter: null));

            return(builder.MenuItems);
        }
Beispiel #8
0
            private void LaneClear(MenuItemFactory factory)
            {
                // LaneClear Menu
                laneclearW = factory.WithName("Use W to LaneHit").WithValue(true).Build();
                laneclearE = factory.WithName("Use E to LaneHit").WithValue(true).Build();

                LaneClearWMinions = factory
                                    .WithName("Minimum Enemies inside W")
                                    .WithValue(new Slider(2, 1, 10))
                                    .Build();

                laneclearMinimumMana = factory
                                       .WithName("Minimum Mana%")
                                       .WithValue(new Slider(30))
                                       .WithTooltip("Minimum Mana that you need to have to LaneHit with Q/E.")
                                       .Build();
            }
Beispiel #9
0
            private void Misc(MenuItemFactory factory)
            {
                // Misc Menu
                PrioritizeStunned = factory.WithName("Prioritize Stunned Targets?").WithValue(true).Build();

                StunTargetKey =
                    factory.WithName("Stun the target if possible while holding Key -> 'G'")
                    .WithValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Press))
                    .Build();

                QAblazedEnemy  = factory.WithName("Auto Q if Target's [ABlazed]").WithValue(true).Build();
                QGapC          = factory.WithName("Auto Stun GapClosers").WithValue(true).Build();
                InterruptEQ    = factory.WithName("Auto E-Q to Interrupt").WithValue(true).Build();
                QOnlyAblazed   = factory.WithName("Use Q Only if Enemy is Ablazed").WithValue(true).Build();
                NearbyREnemies =
                    factory.WithName("Use R in Combo if X Enemies are nearby 'X' ->").WithValue(true).Build();
            }
Beispiel #10
0
            public void AutoLevelerSettings(MenuItemFactory factory)
            {
                AutoLeveler1 =
                    factory.WithName("First: ").WithValue(new StringList(new[] { "Q", "W", "E", "R" }, 3)).Build();

                AutoLeveler2 =
                    factory.WithName("Second: ").WithValue(new StringList(new[] { "Q", "W", "E", "R" }, 0)).Build();

                AutoLeveler3 =
                    factory.WithName("Third: ").WithValue(new StringList(new[] { "Q", "W", "E", "R" }, 0)).Build();

                AutoLeveler4 =
                    factory.WithName("Fourth: ").WithValue(new StringList(new[] { "Q", "W", "E", "R" }, 1)).Build();

                AutoLvlStartFrom =
                    factory.WithName("AutoLeveler Start from Level: ").WithValue(new Slider(2, 6, 1)).Build();
            }
Beispiel #11
0
        private void PopupTxn(string action, bool autoExec, Dictionary <string, string> fields)
        {
            MenuItemFactory  mif = new MenuItemFactory();
            AbstractMenuItem mi  = mif.ItemForContentCode(this.UserContext, action);

            if (Page.Master is Site)
            {
                Site Master = (Site)Page.Master;
                Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields);
            }

            else
            {
                SiteNewPage Master = (SiteNewPage)Page.Master;
                Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields);
            }
        }
Beispiel #12
0
            private void Drawings(MenuItemFactory factory)
            {
                // Drawing Menu
                drawQ           = factory.WithName("Draw Q Range").WithValue(false).Build();
                drawWE          = factory.WithName("Draw W/E Range").WithValue(false).Build();
                drawR           = factory.WithName("Draw R Range").WithValue(false).Build();
                DrawRMinimap    = factory.WithName("Draw R Range | On Minimap").WithValue(true).Build();
                DrawComboDamage = factory
                                  .WithName("Draw Combo Damage")
                                  .WithValue(true)
                                  .Build();

                FillColor = factory
                            .WithName("Fill Color")
                            .WithValue(new Circle(true, Color.FromArgb(204, 255, 0, 1)))
                            .Build();
            }
Beispiel #13
0
 private void Combos(MenuItemFactory factory)
 {
     ComboQUse = null;
     ComboWUse = null;
     ComboEUse = null;
     ComboQUse = factory.WithName("[Combo] Use Q").WithValue(true).Build();
     //Game.PrintChat("ComboQUse Set to: "+ComboQUse.ValueSet + " | " + ComboQUse.GetValue<bool>().ToString());
     ComboWUse = factory.WithName("[Combo] Use W").WithValue(true).WithValue(true).Build();
     //Game.PrintChat("ComboWUse Set to: " + ComboWUse.ValueSet + " | " + ComboWUse.GetValue<bool>().ToString());
     ComboEUse = factory.WithName("[Combo] Use E").WithValue(true).WithValue(true).Build();
     //Game.PrintChat("ComboEUse Set to: " + ComboEUse.ValueSet + " | " + ComboEUse.GetValue<bool>().ToString());
     CBlockAA  = factory.WithName("Don't AA while doing Combo").WithValue(true).Build();
     ComboRUse = factory.WithName("Ultimate (R) in Ultimate Menu").Build();
     ComboMode =
         factory.WithName("[Combo Mode]")
         .WithValue(new StringList(new[] { "Burst", "Survivor Mode" }, 0))
         .Build();
 }
Beispiel #14
0
        private void MenuInit()
        {
            MenuItemFactory itemFactory = new MenuItemFactory();

            MenuList = new StackPanel()
            {
                Orientation         = Orientation.Vertical,
                HorizontalAlignment = HorizontalAlignment.Stretch
            };
            MenuList.Children.Add(itemFactory.CreateMenuItem("\uED25", ApplicationCommands.Open.Text, ApplicationCommands.Open));
            MenuList.Children.Add(itemFactory.CreateMenuItem("\uE105", ApplicationCommands.Save.Text, ApplicationCommands.Save));
            MenuList.Children.Add(itemFactory.CreateMenuItem("\uEA35", ApplicationCommands.SaveAs.Text, ApplicationCommands.SaveAs));
            MenuList.Children.Add(itemFactory.CreateMenuItem("\uE8C8", ApplicationCommands.Copy.Text, ApplicationCommands.Copy));
            MenuList.Children.Add(itemFactory.CreateHSeparator((Color)(new ColorConverter().ConvertFrom("#FF2C628B"))));
            MenuList.Children.Add(itemFactory.CreateMenuItem("\uE107", ApplicationCommands.Delete.Text, ApplicationCommands.Delete));

            itemFactory = null;
        }
Beispiel #15
0
            private void LaneClear(MenuItemFactory factory)
            {
                // LaneClear Menu
                EnableFarming =
                    factory.WithName("Enable Farming with Spells?")
                    .WithValue(true)
                    .WithTooltip("You either change the value here by clicking or by Scrolling Down using the mouse")
                    .WithPerma("Farming with Spells?").Build();

                UseQLC = factory.WithName("Use Q to LaneHit").WithValue(true).Build();
                UseELC = factory.WithName("Use E to LaneHit").WithValue(true).Build();

                laneclearMinimumMana = factory
                                       .WithName("Minimum Mana%")
                                       .WithValue(new Slider(30))
                                       .WithTooltip("Minimum Mana that you need to have to LaneHit with Q/E.")
                                       .Build();
            }
Beispiel #16
0
            private void Drawings(MenuItemFactory factory)
            {
                DrawAA            = factory.WithName("Draw (AA) Range").WithValue(false).Build();
                DrawQ             = factory.WithName("Draw (Q) Range").WithValue(true).Build();
                DrawR             = factory.WithName("Draw (R) Range").WithValue(true).Build();
                DrawStunnable     = factory.WithName("Draw Stunnable?").WithValue(true).Build();
                QMinionDrawHelper = factory.WithName("Draw Q Circle on Minion if killable?").WithValue(true).Build();

                DrawComboDamage = factory
                                  .WithName("Draw Combo Damage")
                                  .WithValue(true)
                                  .Build();

                FillColor = factory
                            .WithName("Fill Color")
                            .WithValue(new Circle(true, Color.FromArgb(204, 255, 0, 1)))
                            .Build();
            }
Beispiel #17
0
 private void Combos(MenuItemFactory factory)
 {
     CUseQ           = factory.WithName("Use Q").WithValue(true).Build();
     CUseW           = factory.WithName("Use W").WithValue(true).Build();
     CUseE           = factory.WithName("Use E").WithValue(true).Build();
     CBlockAA        = factory.WithName("Don't AA while doing Combo").WithValue(true).Build();
     Combo2TimesMana =
         factory.WithName("Champion needs to have mana for atleast 2 times (Q/W/E)?")
         .WithValue(false)
         .WithTooltip(
             "If it's set to 'false' it'll need atleast mana for Q/W/E [1x] Post in thread if needs a change")
         .Build();
     CUseR     = factory.WithName("Ultimate (R) in Ultimate Menu").Build();
     ComboMode =
         factory.WithName("Combo Mode")
         .WithValue(new StringList(new[] { "Burst", "Survivor Mode" }, 0))
         .Build();
 }
Beispiel #18
0
            private void Drawings(MenuItemFactory factory)
            {
                // Drawing Menu
                drawQ = factory.WithName("Draw Q Range").WithValue(false).Build();
                drawW = factory.WithName("Draw W Range").WithValue(false).Build();
                drawE = factory.WithName("Draw E Range").WithValue(false).Build();
                drawR = factory.WithName("Draw R Range").WithValue(true).Build();
                DrawPassiveBombOnEnemy = factory.WithName("Draw Passive Bomb on Enemy (Range)").WithValue(true).Build();
                DrawComboDamage        = factory
                                         .WithName("Draw Combo Damage")
                                         .WithValue(true)
                                         .Build();

                FillColor = factory
                            .WithName("Fill Color")
                            .WithValue(new Circle(true, Color.FromArgb(204, 255, 0, 1)))
                            .Build();
            }
            public void Potion(MenuItemFactory factory)
            {
                // Potion Menu
                UsePotions            = factory.WithName("Use Potions").WithValue(true).Build();
                UsePotionsAtHPPercent =
                    factory.WithName("Use Potions at HP Percent 'X'").WithValue(new Slider(30, 0, 100)).Build();
                UseSmartPotion =
                    factory.WithName("Use Smart Potion Logic")
                    .WithValue(true)
                    .WithTooltip("If Enabled, it'll check if enemy's around so it doesn't waste potions.")
                    .Build();

                UseSmartPotion.ValueChanged += (sender, eventArgs) =>
                {
                    if (!UsePotions.GetValue <bool>() && eventArgs.GetNewValue <bool>())
                    {
                        UsePotions.SetValue(true);
                    }
                };
            }
Beispiel #20
0
    public void DisplayDataTables()
    {
        ServerFactory serverFactory = (ServerFactory)Session[Constants.ServersFactory];

        serverGrid.DataSource = serverFactory.GetServerDataTable();
        serverGrid.DataBind();

        MenuItemFactory menuFactory = (MenuItemFactory)Session[Constants.MenuItemsFactory];

        menuGrid.DataSource = menuFactory.GetMenuDataTable();
        menuGrid.DataBind();

        OrderFactory orderFactory = (OrderFactory)Session[Constants.OrderFactory];

        orderGrid.DataSource = orderFactory.GetOrderDataTable();
        orderGrid.DataBind();

        orderItemGrid.DataSource = orderFactory.GetOrderItemDataTable();
        orderItemGrid.DataBind();
    }
Beispiel #21
0
            public Configuration(Menu root)
            {
                ComboMenu       = MenuFactory.CreateMenu(root, "Combo");
                HarassMenu      = MenuFactory.CreateMenu(root, "Harass");
                LaneClearMenu   = MenuFactory.CreateMenu(root, "Lane Clear");
                JungleClearMenu = MenuFactory.CreateMenu(root, "Jungle Clear");
                LastHitMenu     = MenuFactory.CreateMenu(root, "Last Hit");
                MiscMenu        = MenuFactory.CreateMenu(root, "Misc");
                SkinsMenu       = MenuFactory.CreateMenu(root, "Skins Menu");
                UltimateMenu    = MenuFactory.CreateMenu(root, "Ultimate Menu");
                DrawingMenu     = MenuFactory.CreateMenu(root, "Drawing");

                Combos(MenuItemFactory.Create(ComboMenu));
                Harass(MenuItemFactory.Create(HarassMenu));
                LaneClear(MenuItemFactory.Create(LaneClearMenu));
                JungleClear(MenuItemFactory.Create(JungleClearMenu));
                LastHit(MenuItemFactory.Create(LastHitMenu));
                Misc(MenuItemFactory.Create(MiscMenu));
                Skins(MenuItemFactory.Create(SkinsMenu));
                Ultimate(MenuItemFactory.Create(UltimateMenu));
                Drawings(MenuItemFactory.Create(DrawingMenu));
            }
Beispiel #22
0
    /// <summary>
    /// 绑定数据到AspxTreeList1
    /// </summary>
    private void bindData()
    {
        userManager theUserManager = (userManager)Session["theUserManager"];

        this.TranslateASPxControl(ASPxTreeList1);

        theCompanyCode = theUserManager.getCompanyCode();
        //theContentPrintSql = "SELECT * FROM CODE_MENU WHERE COMPANY_CODE='" + theCompanyCode + "' ORDER BY MENU_INDEX";

        //DataTable dt = conn.GetTable(theContentPrintSql);

        ASPxTreeList1.KeyFieldName    = "MENU_CODE";
        ASPxTreeList1.ParentFieldName = "MENU_CODE_FATHER";


        ASPxTreeList1.SettingsEditing.Mode = DevExpress.Web.ASPxTreeList.TreeListEditMode.PopupEditForm;
        ASPxTreeList1.SettingsPopupEditForm.HorizontalAlign = DevExpress.Web.ASPxClasses.PopupHorizontalAlign.Center;

        ASPxTreeList1.SettingsPopupEditForm.VerticalOffset = 10;
        //caoly 20130110 改成离当前行下面10个像素正中间弹出修改或新增框,原来下面的一句是整个页面的正中间,不容易找到
        //ASPxTreeList1.SettingsPopupEditForm.VerticalAlign = DevExpress.Web.ASPxClasses.PopupVerticalAlign.WindowCenter;

        ASPxTreeList1.SettingsPopupEditForm.AllowResize = true;
        ASPxTreeList1.SettingsPopupEditForm.Modal       = true;
        ASPxTreeList1.SettingsPopupEditForm.Width       = 500;
        ASPxTreeList1.SettingsPopupEditForm.Caption     = "菜单编辑";

        //ASPxTreeList1.DataSource = dt;
        ASPxTreeList1.DataSource = MenuItemFactory.GetByCompany(theCompanyCode);
        ASPxTreeList1.DataBind();

        ASPxTreeList1.SettingsEditing.AllowNodeDragDrop = true;
        ASPxTreeList1.ProcessDragNode      += new DevExpress.Web.ASPxTreeList.TreeListNodeDragEventHandler(ASPxTreeList1_ProcessDragNode);
        ASPxTreeList1.CellEditorInitialize += new DevExpress.Web.ASPxTreeList.TreeListColumnEditorEventHandler(ASPxTreeList1_CellEditorInitialize);
        ASPxTreeList1.NodeValidating       += new DevExpress.Web.ASPxTreeList.TreeListNodeValidationEventHandler(ASPxTreeList1_NodeValidating);
        ASPxTreeList1.NodeInserting        += new DevExpress.Web.Data.ASPxDataInsertingEventHandler(ASPxTreeList1_NodeInserting);
        ASPxTreeList1.NodeUpdating         += new DevExpress.Web.Data.ASPxDataUpdatingEventHandler(ASPxTreeList1_NodeUpdating);
        ASPxTreeList1.NodeDeleting         += new DevExpress.Web.Data.ASPxDataDeletingEventHandler(ASPxTreeList1_NodeDeleting);
    }
Beispiel #23
0
            private void Misc(MenuItemFactory factory)
            {
                // Misc Menu
                // Todo: Add more KillSteal Variants/Spells
                // foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(enemy => enemy.IsEnemy))
                // ConfigMenu.SubMenu("Misc Menu").SubMenu("GapCloser R").AddItem(new MenuItem("gapcloserR" + enemy.ChampionName, enemy.ChampionName).SetValue(false).SetTooltip("Use R on GapClosing Champions"));

                ksQ               = factory.WithName("Use Q to KillSteal").WithValue(true).Build();
                ksE               = factory.WithName("Use E to KillSteal").WithValue(true).Build();
                interruptQ        = factory.WithName("Interrupt Spells Q").WithValue(true).Build();
                useQAntiGapCloser = factory.WithName("Use Q on GapClosers").WithValue(true).Build();

                OneShotInfo =
                    factory.WithName("OneShot Combo [Info]")
                    .WithTooltip(
                        "If you don't have mana to cast Q/W/E/R spells all together it won't cast the spells. Use Combo Instead.")
                    .Build();
                oneshot =
                    factory.WithName("Burst Combo")
                    .WithValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))
                    .WithTooltip("It will cast Q+E+W+R on enemy when enemy is in E range.")
                    .Build();
            }
        private void okButton_Click(object sender, RoutedEventArgs e)
        {
            string flyoutCategoryName = Mytextbox.Text;

            if (!string.IsNullOrEmpty(flyoutCategoryName))
            {
                MenuItemFactory.addCategory(MenuItems, flyoutCategoryName);
                PhotoItemFactory.addCategory(flyoutCategoryName);
                PhotoItemFactory.getPhotoItemsByCategory(flyoutCategoryName, PhotoItems);
                TitleTextBlock.Text   = flyoutCategoryName;
                BackButton.Visibility = Visibility.Visible;
                Category = flyoutCategoryName;
                PhotoItemFactory.getAllLists(MenuItemsWithoutFavourites); //Hassan updated NEW
                foreach (var p in MenuItems)                              //Hassan added NEW
                {
                    if (p.Category.Length > 10)
                    {
                        splitViewPaneLength = ((p.Category.Length) * 15).ToString();
                    }
                }
                AddCategoryButton.Flyout.Hide();
            }
        }
Beispiel #25
0
            private void LaneClear(MenuItemFactory factory)
            {
                // LaneClear Menu
                EnableScrollToFarm =
                    factory.WithName("Enable Mouse Scroll Farm")
                    .WithValue(true)
                    .WithTooltip("Enable using mouse scroll to enable/disable spell usage in farming?")
                    .Build();
                EnableFarming =
                    factory.WithName("Enable Farming with Spells?")
                    .WithValue(true)
                    .WithTooltip("You either change the value here by clicking or by Scrolling Down using the mouse")
                    .WithPerma("Farming with Spells?").Build();

                UseQLC = factory.WithName("Use Q to LaneClear").WithValue(true).Build();
                UseELC = factory.WithName("Use E to LaneClear").WithValue(true).Build();

                laneclearMinimumMana = factory
                                       .WithName("Minimum Mana%")
                                       .WithValue(new Slider(50))
                                       .WithTooltip("Minimum Mana that you need to have to LaneClear with Q/E.")
                                       .Build();
            }
Beispiel #26
0
 private void Misc(MenuItemFactory factory)
 {
     KSCheck = factory.WithName("KS if Possible?").WithValue(true).Build();
 }
Beispiel #27
0
 private void Combos(MenuItemFactory factory)
 {
     UseQ = factory.WithName("Use Q").WithValue(true).Build();
     UseW = factory.WithName("Use W").WithValue(true).Build();
     UseR = factory.WithName("Use R").WithValue(true).Build();
 }
 public void ToNumberedMenuItems_GivenANullMenuItemList_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => MenuItemFactory.ToNumberedMenuItems(null));
 }
 public void OffensiveItems(MenuItemFactory factory)
 {
     GLP800    = factory.WithName("Use GLP800 in Combo").WithValue(true).Build();
     Hextech   = factory.WithName("Use Hextech in Combo").WithValue(true).Build();
     Protobelt = factory.WithName("Use Protobelt in Combo").WithValue(true).Build();
 }
 public void DefensiveItems(MenuItemFactory factory)
 {
     UseSeraph     = factory.WithName("Use Seraph to Survive").WithValue(true).Build();
     UseSeraphAtHP = factory.WithName("Use Seraph At HP (%)").WithValue(new Slider(30, 1, 100)).Build();
 }