Beispiel #1
0
        int IContextMenu.QueryContextMenu(HMenu hMenu, uint iMenu, uint idCmdFirst, uint idCmdLast, CMF uFlags)
        {
            int id = 0;

            if ((uFlags & (CMF.CMF_VERBSONLY | CMF.CMF_DEFAULTONLY | CMF.CMF_NOVERBS)) == 0 ||
                (uFlags & CMF.CMF_EXPLORE) != 0)
            {
                //创建子菜单
                HMenu submenu = ShellLib.Helpers.CreatePopupMenu();
                Helpers.AppendMenu(submenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), "上传");
                Helpers.AppendMenu(submenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), "下载");
                Helpers.AppendMenu(submenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), "查看远程文件");

                //将子菜单插入到上下文菜单中
                Helpers.InsertMenu(hMenu, 1, MFMENU.MF_BYPOSITION | MFMENU.MF_POPUP, submenu.handle, "FTP管理");

                //为菜单增加图标
                Bitmap bpCopy = Resource1.copy;
                Helpers.SetMenuItemBitmaps(submenu, 0, MFMENU.MF_BYPOSITION, bpCopy.GetHbitmap(), bpCopy.GetHbitmap());
                Helpers.SetMenuItemBitmaps(submenu, 1, MFMENU.MF_BYPOSITION, bpCopy.GetHbitmap(), bpCopy.GetHbitmap());
                Bitmap bpHome = Resource1.home;
                Helpers.SetMenuItemBitmaps(submenu, 2, MFMENU.MF_BYPOSITION, bpHome.GetHbitmap(), bpHome.GetHbitmap());
            }
            return(id);
        }
Beispiel #2
0
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Harass Options");
     _useQ  = HMenu.Add("harassQ", new CheckBox("Use Q"));
     _useE  = HMenu.Add("harassE", new CheckBox("Use E"));
     _manaQ = HMenu.Add("harassManaQ", new Slider("Use Q until % Mana", 40));
     _manaE = HMenu.Add("harassManaE", new Slider("Use E until % Mana", 40));
 }
Beispiel #3
0
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Dürtme Ayarları");
     _useQ  = HMenu.Add("harassQ", new CheckBox("Kullan Q"));
     _useE  = HMenu.Add("harassE", new CheckBox("Kullan E"));
     _manaQ = HMenu.Add("harassManaQ", new Slider("Q için mana %", 40));
     _manaE = HMenu.Add("harassManaE", new Slider("E için mana %", 40));
 }
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Dürtme");
     _useW  = HMenu.Add("harassW", new CheckBox("Kullan W"));
     _useE  = HMenu.Add("harassE", new CheckBox("Kullan E"));
     _manaW = HMenu.Add("harassManaW", new Slider("W için gereken mana %", 40));
     _manaE = HMenu.Add("harassManaE", new Slider("E için gereken mana %", 40));
 }
Beispiel #5
0
        public static void CreateMenu()
        {
            Menu = MainMenu.AddMenu("PureTrundle", "Menu");
            Menu.AddGroupLabel("PureTrundle By Darakath");

            CMenu = Menu.AddSubMenu("Combo", "cMenu");
            CMenu.Add("W", new CheckBox("Use W"));
            CMenu.AddSeparator();
            CMenu.Add("E", new CheckBox("Use E"));
            CMenu.AddSeparator();
            CMenu.Add("R", new CheckBox("Use R"));
            CMenu.AddSeparator();
            CMenu.Add("BC", new CheckBox("Use Botrk/Cutlass"));
            CMenu.AddSeparator();
            CMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            HMenu = Menu.AddSubMenu("Harass", "hMenu");
            HMenu.Add("W", new CheckBox("Use W"));
            HMenu.AddSeparator();
            HMenu.Add("E", new CheckBox("Use E"));
            HMenu.AddSeparator();
            HMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            WMenu = Menu.AddSubMenu("Wave/Jungle Clear", "wMenu");
            WMenu.Add("QW", new CheckBox("Use Q for WaveClear", false));
            WMenu.AddSeparator();
            WMenu.Add("QJ", new CheckBox("Use Q for JungleClear", false));
            WMenu.AddSeparator();
            WMenu.Add("WW", new CheckBox("Use W for WaveClear", false));
            WMenu.AddSeparator();
            WMenu.Add("WJ", new CheckBox("Use W for JungleClear", false));
            WMenu.AddSeparator();
            WMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            MMenu = Menu.AddSubMenu("Mana", "mMenu");
            MMenu.Add("Q", new Slider("Mana for Q"));
            MMenu.Add("W", new Slider("Mana for W"));
            MMenu.Add("E", new Slider("Mana for E"));
            MMenu.Add("R", new Slider("Mana for R"));
            Menu.AddSeparator();
            MMenu.Add("WC", new Slider("Mana for WaveClear"));
            MMenu.Add("JF", new Slider("Mana for JungleFarm"));
            MMenu.Add("H", new Slider("Mana for Harass"));

            DMenu = Menu.AddSubMenu("Drawings", "dMenu");
            DMenu.Add("W", new CheckBox("Draw W Range", false));
            DMenu.Add("E", new CheckBox("Draw E Range", false));
            DMenu.Add("R", new CheckBox("Draw R Range"));
            DMenu.Add("RD", new CheckBox("HP Bar Indicator (Q+R+AA+Items)"));

            OMenu = Menu.AddSubMenu("Other", "oMenu");
            OMenu.Add("GC", new CheckBox("Auto Anti-GapCloser", false));
        }
Beispiel #6
0
    /// <summary>
    /// Metodo que carga los nodos del menu en una variable de session para que perdure en la misma
    /// </summary>
    /// <param name="titulo">Nombre o identificador del nombre del nodo del menu a generar</param>
    /// <param name="link">vinculo al que direccionará el menú</param>
    /// <param name="nvl">Nivel del item del menu. de esta manera puedo conocer el anidamiento del mismo</param>
    private void CargarMenu(string nodoPadre, string titulo, string link, int nvl, string id)
    {
        if (HMenu == null)
        {
            HMenu = new HashSet <Nodo>();
        }
        Nodo Item = new Nodo()
        {
            NodoPadre = nodoPadre, Titulo = titulo, Vinculo = link, Nivel = nvl, Id = id
        };

        HMenu.Add(Item);
    }
Beispiel #7
0
    /// <summary>
    /// Funcion que realiza la consulta Linq sobre el web.sitemap. Se lanza la consulta recursiva con nivel = 0
    /// </summary>
    private void LeerWebSiteMap()
    {
        if (HMenu == null)
        {
            XElement documento = XElement.Load(Server.MapPath("Web.sitemap"));

            var nodos = from n in documento.Elements().First().Elements()
                        select n;

            ExaminaNodo(nodos.FirstOrDefault(), 0);
        }
        HMenu.ToString();
    }
Beispiel #8
0
    /// <summary>
    /// Metodo que carga los nodos del menu en una variable de session para que perdure en la misma
    /// </summary>
    /// <param name="titulo">Nombre o identificador del nombre del nodo del menu a generar</param>
    /// <param name="link">Vinculo al que direccionará el menú</param>
    /// <param name="nvl">Nivel del item del menu. de esta manera puedo conocer el anidamiento del mismo</param>
    private void CargarMenu(string titulo, string link, int nvl)
    {
        if (HMenu == null)
        {
            HMenu = new HashSet <Nodo>();
        }
        Nodo Item = new Nodo()
        {
            Titulo = titulo, Vinculo = link, Nivel = nvl
        };

        HMenu.Add(Item);
    }
Beispiel #9
0
        public static void CreateMenu()
        {
            Menu = MainMenu.AddMenu("redRiven", "Menu");
            Menu.AddGroupLabel("redRiven By Darakath");
            Menu.AddSeparator();
            Menu.AddLabel("A reworked version of dRiven.");

            CMenu = Menu.AddSubMenu("Combo", "cMenu");
            CMenu.Add("q", new CheckBox("Use Q"));
            CMenu.AddSeparator();
            CMenu.Add("w", new CheckBox("Use W"));
            CMenu.AddSeparator();
            CMenu.Add("e", new CheckBox("Use E"));
            CMenu.AddSeparator();
            CMenu.Add("r", new CheckBox("Use R"));
            CMenu.AddSeparator();
            CMenu.Add("r2", new Slider("Use R2 Health Percent", 10));
            CMenu.AddSeparator();
            CMenu.Add("r1", new Slider("Use R1 Enemies", 2, 0, 5));

            HMenu = Menu.AddSubMenu("Harass", "hMenu");
            HMenu.Add("q", new CheckBox("Use Q"));
            HMenu.AddSeparator();
            HMenu.Add("w", new CheckBox("Use W"));
            HMenu.AddSeparator();
            HMenu.Add("e", new CheckBox("Use E"));

            WMenu = Menu.AddSubMenu("WaveClear", "wMenu");
            WMenu.Add("q", new CheckBox("Use Q"));
            WMenu.AddSeparator();
            WMenu.Add("w", new CheckBox("Use W"));
            WMenu.AddSeparator();
            WMenu.Add("e", new CheckBox("Use E"));

            JMenu = Menu.AddSubMenu("JungleClear", "jMenu");
            JMenu.Add("q", new CheckBox("Use Q"));
            JMenu.AddSeparator();
            JMenu.Add("w", new CheckBox("Use W"));
            JMenu.AddSeparator();
            JMenu.Add("e", new CheckBox("Use E"));

            MMenu = Menu.AddSubMenu("Misc", "mMenu");
            MMenu.Add("q", new CheckBox("Keep Q"));
            MMenu.Add("dr", new CheckBox("Draw R Range"));
            MMenu.Add("hp", new CheckBox("Draw HP Indicator"));
        }
Beispiel #10
0
        public static void CreateMenu()
        {
            Menu = MainMenu.AddMenu("Radiant Leona", "Menu");
            Menu.AddGroupLabel("Developed by Darakath");
            Menu.AddLabel("Version 1.0.1");

            CMenu = Menu.AddSubMenu("Combo", "cMenu");
            CMenu.Add("Q", new CheckBox("Use Q"));
            CMenu.AddSeparator();
            CMenu.Add("W", new CheckBox("Use W"));
            CMenu.AddSeparator();
            CMenu.Add("E", new CheckBox("Use E"));
            CMenu.AddSeparator();
            CMenu.Add("R", new CheckBox("Use R"));
            CMenu.AddSeparator();
            CMenu.Add("RE", new Slider("Use R Enemies", 2, 1, 5));

            HMenu = Menu.AddSubMenu("Harass", "hMenu");
            HMenu.Add("Q", new CheckBox("Use Q"));
            HMenu.AddSeparator();
            HMenu.Add("E", new CheckBox("Use E"));

            MMenu = Menu.AddSubMenu("Mana", "mMenu");
            MMenu.Add("Q", new Slider("Mana for Q"));
            MMenu.Add("W", new Slider("Mana for W"));
            MMenu.Add("E", new Slider("Mana for E"));
            MMenu.Add("R", new Slider("Mana for R"));
            MMenu.Add("H", new Slider("Mana for Harass"));

            DMenu = Menu.AddSubMenu("Drawings", "dMenu");
            DMenu.Add("Q", new CheckBox("Draw Q Range"));
            DMenu.Add("W", new CheckBox("Draw W Range"));
            DMenu.Add("E", new CheckBox("Draw E Range"));
            DMenu.Add("R", new CheckBox("Draw R Range"));

            OMenu = Menu.AddSubMenu("Other", "oMenu");
            OMenu.Add("G", new CheckBox("Auto QAA on Gapcloser"));
            OMenu.Add("C", new CheckBox("Auto AA Cancel With Q on Champions"));
        }
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Dürtme Ayarları");
     _useQ2 = HMenu.Add("harassQ", new CheckBox("Kullan Q (Yeraltında)"));
 }
Beispiel #12
0
        public int QueryContextMenu(IntPtr hMenu, uint iMenu, uint idCmdFirst, uint idCmdLast, uint uFlags)
        {
            if (((uint)CMF.CMF_DEFAULTONLY & uFlags) != 0)
            {
                return(WinError.MAKE_HRESULT(WinError.SEVERITY_SUCCESS, 0, 0));
            }

            devices = AndroidDevice.GetAndroidDevices();

            uint id = 0;

            try
            {
                HMenu submenu = NativeMethods.CreatePopupMenu();
                if (devices.Count > 0)
                {
                    MenuInstall2Memory_ID = new uint[devices.Count];
                    MenuInstall2SD_ID     = new uint[devices.Count];
                    MenuUninstall_ID      = new uint[devices.Count];
                    MenuDisconnect_ID     = new uint[devices.Count];

                    for (int i = 0; i < devices.Count; i++)
                    {
                        HMenu subsubmenu = NativeMethods.CreatePopupMenu();
                        MenuInstall2Memory_ID[i] = id;
                        NativeMethods.AppendMenu(subsubmenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_InstallToInternalMemory);
                        MenuInstall2SD_ID[i] = id;
                        NativeMethods.AppendMenu(subsubmenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_InstallToSDCard);
                        MenuUninstall_ID[i] = id;
                        NativeMethods.AppendMenu(subsubmenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_Uninstall);
                        if (((AndroidDevice)devices[i]).ConnectedFromWIFI)
                        {
                            MenuDisconnect_ID[i] = id;
                            NativeMethods.AppendMenu(subsubmenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_DisconnectWIFI);
                        }
                        else
                        {
                            MenuDisconnect_ID[i] = 0;
                        }

                        NativeMethods.InsertMenu(submenu, 1, MFMENU.MF_BYPOSITION | MFMENU.MF_POPUP, subsubmenu.handle, ((AndroidDevice)devices[i]).Serialno);
                        //NativeMethods.AppendMenu(submenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), s);
                    }
                }
                else
                {
                    NativeMethods.AppendMenu(submenu, MFMENU.MF_STRING | MFMENU.MF_DISABLED | MFMENU.MF_GRAYED, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_CannotFindPhone);
                }
                // a separator
                NativeMethods.AppendMenu(submenu, MFMENU.MF_SEPARATOR, new IntPtr(idCmdFirst + id++), "");
                // Connect with WIFI
                MenuConnectWIFI_ID = id;
                NativeMethods.AppendMenu(submenu, MFMENU.MF_STRING, new IntPtr(idCmdFirst + id++), Properties.Resources.menu_ConnectViaWIFI);

                // Insert to popup-menu
                NativeMethods.InsertMenu(new HMenu(hMenu), 1, MFMENU.MF_BYPOSITION | MFMENU.MF_POPUP, submenu.handle, Properties.Resources.menu_InstallToPhone);
            }
            catch {
                return(Marshal.GetHRForLastWin32Error());
            }

            // Return an HRESULT value with the severity set to SEVERITY_SUCCESS.
            // Set the code value to the offset of the largest command identifier
            // that was assigned, plus one (1).
            return(WinError.MAKE_HRESULT(WinError.SEVERITY_SUCCESS, 0, id + 1));
        }
Beispiel #13
0
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Harass Options");
     _useQ = HMenu.Add("harassQ", new CheckBox("Use Q"));
     _useW = HMenu.Add("harassW", new CheckBox("Use W"));
 }
Beispiel #14
0
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Harass Options");
     _useQ   = HMenu.Add("harassQ", new CheckBox("Use [Q]"));
     _health = HMenu.Add("harassHealth", new Slider("Maximum health usage in percent({0})", 40));
 }
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Dürtme");
     _useQ = HMenu.Add("harassQ", new CheckBox("Kullan Q"));
     _useW = HMenu.Add("harassW", new CheckBox("Kullan W"));
 }
Beispiel #16
0
 static HarassMenu()
 {
     HMenu.AddGroupLabel("Harass Options");
     _useQ2 = HMenu.Add("harassQ", new CheckBox("Use Q (burrowed)"));
 }
Beispiel #17
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != "DrMundo")
            {
                return;
            }

            _q = new Spell.Skillshot(SpellSlot.Q, 1000, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 250, 1850, 60)
            {
                MinimumHitChance = EloBuddy.SDK.Enumerations.HitChance.High
            };
            _q.AllowedCollisionCount = 0;

            _w = new Spell.Active(SpellSlot.W, 325);

            _e = new Spell.Active(SpellSlot.E, 150);

            _r = new Spell.Active(SpellSlot.R);

            Menu = MainMenu.AddMenu("Dr.Mundo", "Ten Percent Dr.Mundo".ToLower(), "Ten Percent Dr.Mundo");
            Menu.AddLabel("Gangnam");
            Menu.AddLabel("Ten Percent Dr.Mundo Ver 0.0.0.91 (Beta)");
            Menu.AddLabel("Last Update 2016.03.20");
            Menu.AddLabel("Plz give me Many FeedBack :)");
            Menu.AddLabel("Change Log");
            Menu.AddLabel("0.0.0.9  - Release");
            Menu.AddLabel("0.0.0.91 - Auto Harass Added");

            CMenu = Menu.AddSubMenu("Combo", "CMenu");
            CMenu.Add("CQ", new CheckBox("Use Q"));
            CMenu.Add("CW", new CheckBox("Use W"));
            CMenu.Add("CE", new CheckBox("Use E"));
            CMenu.Add("CR", new CheckBox("Use R", false));
            CMenu.Add("CH", new Slider("R If HP", 30, 0, 100));
            CMenu.AddSeparator();

            HMenu = Menu.AddSubMenu("Harass", "HMenu");
            HMenu.Add("HQ", new CheckBox("Use Q"));
            HMenu.Add("HW", new CheckBox("Use W"));
            HMenu.Add("HE", new CheckBox("Use E"));
            HMenu.Add("HA", new CheckBox("Auto Harass Q", false));
            HMenu.AddSeparator();

            LCMenu = Menu.AddSubMenu("LaneClear", "LCMenu");
            LCMenu.Add("LCQ", new CheckBox("Use Q"));
            LCMenu.Add("LCW", new CheckBox("Use W", false));
            LCMenu.Add("LCE", new CheckBox("Use E"));
            LCMenu.AddSeparator();

            JCMenu = Menu.AddSubMenu("JungleClear", "JCMenu");
            JCMenu.Add("JCQ", new CheckBox("Use Q"));
            JCMenu.Add("JCW", new CheckBox("Use W", false));
            JCMenu.Add("JCE", new CheckBox("Use E"));
            JCMenu.AddSeparator();

            MMenu = Menu.AddSubMenu("Misc", "MMenu");
            MMenu.Add("MO", new Slider("Auto W Off If HP", 10, 0, 100));
            MMenu.Add("MA", new CheckBox("Smart W Logic"));
            MMenu.AddSeparator();

            DMenu = Menu.AddSubMenu("Drawing", "DMenu");
            DMenu.Add("DO", new CheckBox("Disable Drawings", false));
            DMenu.Add("DQ", new CheckBox("Draw Q Range"));
            DMenu.Add("DW", new CheckBox("Draw W Range"));
            DMenu.Add("DH", new CheckBox("Draw HP"));
            DMenu.AddSeparator();

            Menu.AddSeparator();

            Game.OnUpdate          += Game_OnUpdate;
            Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
            Drawing.OnDraw         += Drawing_OnDraw;
        }
Beispiel #18
0
            public static void Init()
            {
                #region combo

                ComboMenu = Program.GlobalMenu.AddSubMenu("Fiora: Combo");

                ComboMenu.AddGroupLabel("Vital Settings");
                ComboMenu.CreateCheckBox("QValidvitals", "Q Valid Vitals Only");
                ComboMenu.CreateCheckBox("QShortvital", "Q Vital in Range");
                ComboMenu.CreateCheckBox("QLongvital", "Q Vitals Long Range");
                ComboMenu.CreateCheckBox("orbVital", "Orbwalk To Vitals");
                ComboMenu.CreateCheckBox("orbUltVital", "Orbwalk to R Vitals Only", false);
                ComboMenu.CreateCheckBox("aaVitl", "Orbwalk to Vitals in AA Range Only");
                ComboMenu.CreateCheckBox("focusR", "Force Focus Target with R Mark");
                ComboMenu.AddGroupLabel("Extra Settings");
                ComboMenu.CreateCheckBox("EReset", "E Reset Auto Attack");
                ComboMenu.CreateCheckBox("R", "Auto use R");

                #endregion combo

                #region Harass

                HMenu = Program.GlobalMenu.AddSubMenu("Fiora: Harass");
                HMenu.CreateKeyBind("autoHarass", "Auto Harass", false, KeyBind.BindTypes.PressToggle);
                HMenu.CreateCheckBox("qharass", "Q Vitals");
                HMenu.CreateCheckBox("qhturret", "Dont Q Dive Enemy Turret");
                HMenu.CreateSlider("qHarassHP", "Q Harass Health limit", 40);
                HMenu.CreateSlider("qHarassMana", "Q Harass Mana limit", 60);

                #endregion

                #region Evade

                spellblock = Program.GlobalMenu.AddSubMenu("Fiora: SpellBlock");
                spellblock.CreateCheckBox("enable", "Enable SpellBlock");
                spellblock.CreateCheckBox("executeBlock", "Block Any Spell if it will Kill Player");
                var enabledSpells = new List <SpellBlocker.EnabledSpell>();

                #region AutoAttacks
                var validAttacks = EmpowerdAttackDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.Hero))).ToArray();
                if (validAttacks.Any())
                {
                    spellblock.AddGroupLabel("Empowered Attacks");
                    spellblock.CreateCheckBox("AABlock", "Block Empowered Attacks");
                    foreach (var s in validAttacks.OrderBy(s => s.Hero))
                    {
                        var spellname = s.MenuItemName;
                        if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                        {
                            spellblock.AddLabel(spellname);
                            spellblock.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1 || s.CrowdControl);
                            spellblock.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                            enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                            spellblock.AddSeparator(0);
                        }
                    }
                }
                #endregion AutoAttacks

                #region buffs
                var validBuffs = DangerBuffDataDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.Hero))).ToArray();
                if (validBuffs.Any())
                {
                    spellblock.AddSeparator(5);
                    spellblock.AddGroupLabel("Danger Buffs");
                    spellblock.CreateCheckBox("buffBlock", "Block Danger Buffs");

                    foreach (var s in validBuffs.OrderBy(s => s.Hero))
                    {
                        var spellname = s.MenuItemName;
                        if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                        {
                            spellblock.AddLabel(spellname);
                            spellblock.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1);
                            if (s.HasStackCount)
                            {
                                var stackCount = spellblock.CreateSlider("stackCount", "Block at Stack Count", s.StackCount, 1, s.MaxStackCount);
                                s.StackCountFromMenu = () => stackCount.CurrentValue;
                            }
                            spellblock.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                            enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                            spellblock.AddSeparator(0);
                        }
                    }
                }
                #endregion buffs

                #region Targeted
                var validTargeted = TargetedSpellDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.hero))).ToArray();
                if (validTargeted.Any())
                {
                    spellblock.AddSeparator(5);
                    spellblock.AddGroupLabel("Targeted Spells");
                    spellblock.CreateCheckBox("targetedBlock", "Block Targeted Spells");
                    foreach (var s in validTargeted.OrderBy(s => s.hero))
                    {
                        var spellname = s.MenuItemName;
                        if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                        {
                            spellblock.AddLabel(spellname);
                            spellblock.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1);
                            spellblock.CreateCheckBox("fast" + spellname, "Fast Block (Instant)", s.FastEvade);
                            spellblock.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                            enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                            spellblock.AddSeparator(0);
                        }
                    }
                }
                #endregion Targeted

                #region Speical spells
                var specialSpells = SpecialSpellsDatabase.Current.Where(s => EntityManager.Heroes.Enemies.Any(h => s.Hero.Equals(h.Hero))).ToArray();
                if (specialSpells.Any())
                {
                    spellblock.AddSeparator(5);
                    spellblock.AddGroupLabel("Special Spells");
                    spellblock.CreateCheckBox("specialBlock", "Block Special Spells");
                    foreach (var s in specialSpells)
                    {
                        var display = s.MenuItemName;
                        if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(display)))
                        {
                            spellblock.AddLabel(display);
                            spellblock.CreateCheckBox($"enable{display}", "Enable", s.DangerLevel > 1);
                            spellblock.CreateCheckBox($"fast{display}", "Fast Block (Instant)", s.DangerLevel > 2);
                            spellblock.CreateSlider($"danger{display}", "Danger Level", s.DangerLevel, 1, 5);
                            enabledSpells.Add(new SpellBlocker.EnabledSpell(display));
                        }
                    }
                }
                #endregion Speical spells

                #region SkillShots
                var validskillshots =
                    SkillshotDatabase.Current.Where(s => (s.GameType.Equals(GameType.Normal) || s.GameType.Equals(Game.Type)) &&
                                                    EntityManager.Heroes.Enemies.Any(h => s.IsCasterName(Champion.Unknown) || s.IsCasterName(h.Hero))).OrderBy(s => s.CasterNames[0]);
                if (validskillshots.Any())
                {
                    spellblock.AddSeparator(5);
                    spellblock.AddGroupLabel("SkillShots");
                    spellblock.CreateCheckBox("skillshotBlock", "Block SkillShots");

                    foreach (var s in validskillshots)
                    {
                        var display = s.MenuItemName;
                        if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(display)))
                        {
                            spellblock.AddLabel(display);
                            spellblock.CreateCheckBox($"enable{display}", "Enable", s.DangerLevel > 1);
                            spellblock.CreateCheckBox($"fast{display}", "Fast Block (Instant)", s.FastEvade);
                            spellblock.CreateSlider($"danger{display}", "Danger Level", s.DangerLevel, 1, 5);
                            enabledSpells.Add(new SpellBlocker.EnabledSpell(display));
                        }
                    }
                }
                #endregion SkillShots

                SpellBlocker.EnabledSpells = enabledSpells.ToArray();

                #endregion evade

                #region laneclear

                LMenu = Program.GlobalMenu.AddSubMenu("Fiora: LaneClear");
                LMenu.CreateCheckBox("Eunk", "Use E On Unkillable Minions");
                LMenu.CreateCheckBox("ETurrets", "Use E Reset On Structures");
                LMenu.CreateCheckBox("EWard", "Use E Reset On Wards");
                LMenu.CreateSlider("ELaneMana", "E Mana Limit", 60);

                #endregion laneclear

                #region jungleclear

                JMenu = Program.GlobalMenu.AddSubMenu("Fiora: JungleClear");
                JMenu.CreateCheckBox("Ejung", "Use E");
                JMenu.CreateSlider("Ejungmana", "E Mana Limit", 60);

                #endregion

                #region Killsteal

                ksMenu = Program.GlobalMenu.AddSubMenu("Fiora: Killsteal");
                ksMenu.CreateCheckBox("Qks", "Use Q");
                ksMenu.CreateCheckBox("Wks", "Use W");

                #endregion Killsteal

                #region Misc

                MiscMenu = Program.GlobalMenu.AddSubMenu("Fiora: Misc");
                MiscMenu.CreateCheckBox("audio", "Play Audio");
                MiscMenu.AddGroupLabel("R Block list");
                foreach (var e in EntityManager.Heroes.Enemies)
                {
                    MiscMenu.CreateCheckBox(e.Name(), $"Dont R {e.Name()}", false);
                }

                #endregion Misc

                #region Drawing

                DMenu = Program.GlobalMenu.AddSubMenu("Fiora: Drawing");
                DMenu.CreateCheckBox("DrawQ", "Draw Q Range");
                DMenu.CreateCheckBox("DrawVitals", "Draw Vitals");
                DMenu.CreateCheckBox("DrawDamage", "Draw Damage On Enemies");

                #endregion Drawing
            }