Example #1
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("技能", "SpellMenu");
                {
                    var qMenu = new Menu("Q", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "自动Q静止").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("W", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "只抓球").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("R", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "击杀提示").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "不R"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("连招", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "使用QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "使用点燃");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("骚扰", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q骚扰(锁定)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press)));
                    AddSpelltoMenu(harassMenu, "QE", true, "使用QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("清线", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("杂项", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "向鼠标QE").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE打断").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE防突").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("显示", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "禁用").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "显示Q").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "显示QE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "显示W").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "显示E").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "显示R").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "显示R可杀").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "显示伤害").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled      = drawComboDamageMenu.GetValue <bool>();
                    drawComboDamageMenu.ValueChanged         +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Example #2
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("娉曟湳", "SpellMenu");
                {
                    var qMenu = new Menu("Q", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "鑷姩Q闈欐").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("W", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "鍙姄鐞億").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("R", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "鍑绘潃鎻愮ず").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "涓峈"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("杩炴嫑", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "浣跨敤QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "浣跨敤鐐圭噧");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("楠氭壈", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q楠氭壈(閿佸畾)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press)));
                    AddSpelltoMenu(harassMenu, "QE", true, "浣跨敤QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("娓呯嚎", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("鏉傞」", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "鍚戦紶鏍嘠E").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE鎵撴柇").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE闃茬獊").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("鏄剧ず", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "绂佺敤").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "鏄剧ずQ").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "鏄剧ずQE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "鏄剧ずW").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "鏄剧ずE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "鏄剧ずR").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "鏄剧ずR鍙潃").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "鏄剧ず浼ゅ").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled      = drawComboDamageMenu.GetValue <bool>();
                    drawComboDamageMenu.ValueChanged         +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Example #3
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");
            {
                var SpellMenu = new Menu("SpellMenu", "SpellMenu");
                {
                    var qMenu = new Menu("QMenu", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "Auto Q on Immobile").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("WMenu", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "Only Pick Up Orb").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("RMenu", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "Overkill Check").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "Dont_R"));
                        foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                        )
                            rMenu.SubMenu("Dont_R")
                                .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("Combo", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "Use Ignite");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("Harass", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    AddSpelltoMenu(harassMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("LaneClear", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("Misc", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "QE to mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "Use QE to Interrupt").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "Use E On Gap Closer").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("Drawing", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "Disable All").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "Draw QE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "Draw W").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "Draw E").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "Draw R Mark on Killable").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled = drawComboDamageMenu.GetValue<bool>();
                    drawComboDamageMenu.ValueChanged +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                        {
                            Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue<bool>();
                        };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Example #4
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("SpellMenu", "SpellMenu");
                {
                    var qMenu = new Menu("QMenu", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "Auto Q on Immobile").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("WMenu", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "Only Pick Up Orb").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("RMenu", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "Overkill Check").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "Dont_R"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("Combo", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "Use Ignite");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("Harass", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    AddSpelltoMenu(harassMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("LaneClear", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("Misc", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "QE to mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "Use QE to Interrupt").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "Use E On Gap Closer").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("Drawing", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "Disable All").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "Draw QE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "Draw W").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "Draw E").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "Draw R Mark on Killable").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled      = drawComboDamageMenu.GetValue <bool>();
                    drawComboDamageMenu.ValueChanged         +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Example #5
0
        public static void Initialize()
        {
            var config = new Menu("Target Selector", "TargetSelector");

            _configMenu = config;

            var focusMenu = new Menu("Focus Target Settings", "FocusTargetSettings");

            focusMenu.AddItem(new MenuItem("FocusSelected", "Focus selected target").SetShared().SetValue(true));
            focusMenu.AddItem(
                new MenuItem("SelTColor", "Focus selected target color").SetShared()
                .SetValue(new Circle(true, Color.Red)));
            focusMenu.AddItem(
                new MenuItem("ForceFocusSelected", "Only attack selected target").SetShared().SetValue(false));
            focusMenu.AddItem(new MenuItem("sep", ""));
            focusMenu.AddItem(
                new MenuItem("ForceFocusSelectedKeys", "Enable only attack selected Keys").SetShared()
                .SetValue(false));
            focusMenu.AddItem(new MenuItem("ForceFocusSelectedK", "Only attack selected Key"))
            .SetValue(new KeyBind(32, KeyBindType.Press));
            focusMenu.AddItem(new MenuItem("ForceFocusSelectedK2", "Only attack selected Key 2"))
            .SetValue(new KeyBind(32, KeyBindType.Press));
            focusMenu.AddItem(new MenuItem("ResetOnRelease", "Reset selected target upon release"))
            .SetValue(false);

            config.AddSubMenu(focusMenu);

            var autoPriorityItem =
                new MenuItem("AutoPriority", "Auto arrange priorities").SetShared()
                .SetValue(true)
                .SetTooltip("5 = Highest Priority");

            autoPriorityItem.ValueChanged += autoPriorityItem_ValueChanged;

            foreach (var enemy in HeroManager.Enemies)
            {
                config.AddItem(
                    new MenuItem("TargetSelector" + enemy.ChampionName + "Priority", enemy.ChampionName)
                    .SetShared()
                    .SetValue(
                        new Slider(
                            autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1,
                            5,
                            1)));
                if (autoPriorityItem.GetValue <bool>())
                {
                    config.Item("TargetSelector" + enemy.ChampionName + "Priority")
                    .SetValue(
                        new Slider(
                            autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1,
                            5,
                            1));
                }
            }
            config.AddItem(autoPriorityItem);
            config.AddItem(
                new MenuItem("TargetingMode", "Target Mode").SetShared()
                .SetValue(new StringList(Enum.GetNames(typeof(TargetingMode)))));

            CommonMenu.Instance.AddSubMenu(config);
            Game.OnWndProc += GameOnOnWndProc;

            if (!CustomTS)
            {
                Drawing.OnDraw += DrawingOnOnDraw;
            }
        }
Example #6
0
        /// <summary>
        ///     Draws a slider.
        /// </summary>
        /// <param name="position">
        ///     The position.
        /// </param>
        /// <param name="item">
        ///     The item.
        /// </param>
        /// <param name="width">
        ///     The width.
        /// </param>
        /// <param name="drawText">
        ///     Indicates whether to draw informative text.
        /// </param>
        internal static void DrawSlider(Vector2 position, MenuItem item, int width = -1, bool drawText = true)
        {
            var val = item.GetValue <Slider>();

            DrawSlider(position, item, val.MinValue, val.MaxValue, val.Value, width, drawText);
        }
Example #7
0
        public static void Initialize()
        {
            var config = new Menu("目標選擇", "TargetSelector");

            _configMenu = config;

            var focusMenu = new Menu("指定目標選擇", "FocusTargetSettings");

            focusMenu.AddItem(new MenuItem("FocusSelected", "選中目標畫圈").SetShared().SetValue(true));
            focusMenu.AddItem(
                new MenuItem("SelTColor", "選定目標線圈顏色").SetShared()
                .SetValue(new Circle(true, Color.Red)));
            focusMenu.AddItem(
                new MenuItem("ForceFocusSelected", "只攻擊已選定的目標").SetShared().SetValue(false));
            focusMenu.AddItem(new MenuItem("sep", ""));
            focusMenu.AddItem(
                new MenuItem("ForceFocusSelectedKeys", "啟動只攻擊選定的目標").SetShared()
                .SetValue(false));
            focusMenu.AddItem(new MenuItem("ForceFocusSelectedK", "只有攻擊選擇目標按鍵"))
            .SetValue(new KeyBind(32, KeyBindType.Press));
            focusMenu.AddItem(new MenuItem("ForceFocusSelectedK2", "只有攻擊選定目標按鍵"))
            .SetValue(new KeyBind(32, KeyBindType.Press));
            focusMenu.AddItem(new MenuItem("ResetOnRelease", "選定目標後施放"))
            .SetValue(false);

            config.AddSubMenu(focusMenu);

            var autoPriorityItem =
                new MenuItem("AutoPriority", "自動排列優先級數").SetShared()
                .SetValue(true)
                .SetTooltip("5 = 最高優先 1 = 最低優先");

            autoPriorityItem.ValueChanged += autoPriorityItem_ValueChanged;

            foreach (var enemy in HeroManager.Enemies)
            {
                config.AddItem(
                    new MenuItem("TargetSelector" + enemy.ChampionName + "Priority", enemy.ChampionName)
                    .SetShared()
                    .SetValue(
                        new Slider(
                            autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1,
                            5,
                            1)));
                if (autoPriorityItem.GetValue <bool>())
                {
                    config.Item("TargetSelector" + enemy.ChampionName + "Priority")
                    .SetValue(
                        new Slider(
                            autoPriorityItem.GetValue <bool>() ? GetPriorityFromDb(enemy.ChampionName) : 1,
                            5,
                            1));
                }
            }
            config.AddItem(autoPriorityItem);
            config.AddItem(
                new MenuItem("TargetingMode", "目標模式").SetShared()
                .SetValue(new StringList(Enum.GetNames(typeof(TargetingMode)))));

            CommonMenu.Instance.AddSubMenu(config);
            Game.OnWndProc += GameOnOnWndProc;

            if (!CustomTS)
            {
                Drawing.OnDraw += DrawingOnOnDraw;
            }
        }