示例#1
0
文件: Program.cs 项目: jayblah/xQx
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.CharData.BaseSkinName != "Pantheon")
                return;

            Q = new Spell(SpellSlot.Q, 620f);
            W = new Spell(SpellSlot.W, 620f);
            E = new Spell(SpellSlot.E, 640f);
            R = new Spell(SpellSlot.R, 5500f);

            Q.SetTargetted(0.2f, 1700f);
            W.SetTargetted(0.2f, 1700f);
            E.SetSkillshot(0.25f, 15f*2*(float) Math.PI/180, 2000f, false, SkillshotType.SkillshotCone);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Config = new Menu("xQx | Pantheon", "Pantheon", true);

            var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            Utils = new Utils();
            Sprite.Load();
            Items = new Items();

            AssassinManager = new AssassinManager();
            AssassinManager.Load();

            // Combo
            Config.AddSubMenu(new Menu("Combo", "Combo"));
            {
                Config.SubMenu("Combo")
                    .AddItem(
                        new MenuItem("ComboActive", "Combo!").SetValue(
                            new KeyBind(Config.Item("Orbwalk").GetValue<KeyBind>().Key, KeyBindType.Press)));
            }

            Config.AddSubMenu(new Menu("Harass", "Harass"));
            {
                Config.SubMenu("Harass").AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));
                Config.SubMenu("Harass").AddItem(new MenuItem("UseEHarass", "Use E").SetValue(true));
                Config.SubMenu("Harass")
                    .AddItem(new MenuItem("HarassMana", "Min. Mana Percent: ").SetValue(new Slider(50, 100, 0)));
                Config.SubMenu("Harass")
                    .AddItem(
                        new MenuItem("HarassActiveT", "Harass (Toggle)").SetValue(new KeyBind("H".ToCharArray()[0],
                            KeyBindType.Toggle)))
                    .Permashow(true);
                Config.SubMenu("Harass")
                    .AddItem(
                        new MenuItem("HarassActive", "Harass!").SetValue(new KeyBind("C".ToCharArray()[0],
                            KeyBindType.Press)));
            }

            var menuLane = new Menu("Lane Mode", "Lane Mode");
            {
                menuLane.AddItem(
                    new MenuItem("Lane.UseQ", "Use Q").SetValue(
                        new StringList(new[] {"Off", "On", "Just out of AA Range"}, 1)));
                menuLane.AddItem(new MenuItem("Lane.UseE", "Use E").SetValue(false));

                menuLane.AddItem(
                    new MenuItem("Lane.Mana.Option", "Min. Mana Options").SetValue(
                        new StringList(new[] {"Don't check", "Min. Mana Percent", "Protect my mana for"}))
                        .SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua)).ValueChanged +=
                    (sender, eventArgs) =>
                    {
                        menuLane.Item("Lane.Mana.MinMana").Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 1);
                        menuLane.Item("Lane.Mana.KeepQ").Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuLane.Item("Lane.Mana.KeepW").Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuLane.Item("Lane.Mana.KeepE").Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuLane.Item("Lane.Mana.KeepR").Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                    };
                menuLane.AddItem(
                    new MenuItem("Lane.Mana.MinMana", Tab + "Min. Mana Percent: ").SetValue(new Slider(30, 100, 0)));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepQ", Tab + "Q Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepW", Tab + "W Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepE", Tab + "E Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepR", Tab + "R Spell").SetValue(true));

                menuLane.AddItem(
                    new MenuItem("Lane.Exec", "Lane Clear Active!").SetValue(new KeyBind("V".ToCharArray()[0],
                        KeyBindType.Press))).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);
                Config.AddSubMenu(menuLane);
            }

            // Jungling Farm
            var menuJungle = new Menu("Jungle Mode", "Jungle Mode");
            Config.AddSubMenu(menuJungle);
            {
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseQ", "Use Q").SetValue(
                        new StringList(new[] {"Off", "On", "Just for big Mobs"}, 1)));
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseW", "Use W").SetValue(
                        new StringList(new[] {"Off", "On", "Just for big Mobs"}, 1)));
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseE", "Use E").SetValue(
                        new StringList(new[] {"Off", "Mob Count > =1", "Mob Count > =2", "Mob Count > =3"}, 2)));

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.Option", "Min. Mana Options").SetValue(
                        new StringList(new[] {"Don't check", "Min. Mana Percent", "Protect my mana (for Combo):"}))
                        .SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua)).ValueChanged +=
                    (sender, eventArgs) =>
                    {
                        menuJungle.Item("Jungle.Mana.MinMana")
                            .Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 1);

                        menuJungle.Item("Jungle.Mana.KeepQ")
                            .Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuJungle.Item("Jungle.Mana.KeepW")
                            .Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuJungle.Item("Jungle.Mana.KeepE")
                            .Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                        menuJungle.Item("Jungle.Mana.KeepR")
                            .Show(eventArgs.GetNewValue<StringList>().SelectedIndex == 2);
                    };

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.MinMana", Tab + "Min. Mana Percent: ").SetValue(new Slider(30, 100, 0)));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepQ", Tab + "Q Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepW", Tab + "W Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepE", Tab + "E Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepR", Tab + "R Spell").SetValue(true));

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.Dont.Title", "Dont control mana If I'm taking").SetFontStyle(
                        FontStyle.Regular, SharpDX.Color.IndianRed));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Blue", Tab + "Blue Monster").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Red", Tab + "Red Monster").SetValue(false));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Dragon", Tab + "Dragon").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Baron", Tab + "Baron").SetValue(true));

                menuJungle.AddItem(
                    new MenuItem("JungleFarmActive", "JungleMode!").SetValue(new KeyBind("V".ToCharArray()[0],
                        KeyBindType.Press))).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);
            }

            menuMisc = new Menu("Misc", "Misc");
            {
                Config.AddSubMenu(menuMisc);
                menuMisc.AddItem(new MenuItem("InterruptSpells", "Interrupt Spells").SetValue(true));
                menuMisc.AddItem(new MenuItem("PingLH", "Ping low health enemies (Only local)").SetValue(true));
            }

            // Drawing
            Config.AddSubMenu(new Menu("Drawings", "Drawings"));
            {
                Config.SubMenu("Drawings")
                    .AddItem(
                        new MenuItem("QRange", "Q Range").SetValue(
                            new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                    .AddItem(
                        new MenuItem("WRange", "W Range").SetValue(
                            new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                    .AddItem(
                        new MenuItem("ERange", "E Range").SetValue(
                            new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                    .AddItem(
                        new MenuItem("RRange", "R Range").SetValue(
                            new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                    .AddItem(
                        new MenuItem("RRange2", "R Range (minimap)").SetValue(new Circle(true,
                            Color.FromArgb(255, 255, 255, 255))));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Damage After Combo").SetValue(true);
                Config.SubMenu("Drawings").AddItem(dmgAfterComboItem);

                Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
                Utility.HpBarDamageIndicator.Enabled = true;
            }

            menuLane.Item("Lane.Mana.MinMana")
                .Show(menuLane.Item("Lane.Mana.Option").GetValue<StringList>().SelectedIndex == 1);
            menuLane.Item("Lane.Mana.KeepQ")
                .Show(menuLane.Item("Lane.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepW")
                .Show(menuLane.Item("Lane.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepE")
                .Show(menuLane.Item("Lane.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepR")
                .Show(menuLane.Item("Lane.Mana.Option").GetValue<StringList>().SelectedIndex == 2);

            menuJungle.Item("Jungle.Mana.MinMana")
                .Show(menuJungle.Item("Jungle.Mana.Option").GetValue<StringList>().SelectedIndex == 1);
            menuJungle.Item("Jungle.Mana.KeepQ")
                .Show(menuJungle.Item("Jungle.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepW")
                .Show(menuJungle.Item("Jungle.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepE")
                .Show(menuJungle.Item("Jungle.Mana.Option").GetValue<StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepR")
                .Show(menuJungle.Item("Jungle.Mana.Option").GetValue<StringList>().SelectedIndex == 2);

            PotionManager = new PotionManager();

            Config.AddToMainMenu();

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnEndScene += DrawingOnOnEndScene;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Notifications.AddNotification(string.Format("{0} Loaded", ChampionName), 4000);
        }
示例#2
0
        public static void Game_OnGameLoad()
        {
            if (Player.CharData.BaseSkinName != "Pantheon")
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 620f);
            W = new Spell(SpellSlot.W, 620f);
            E = new Spell(SpellSlot.E, 600f);
            R = new Spell(SpellSlot.R, 5500f);

            Q.SetTargetted(0.2f, 1700f);
            W.SetTargetted(0.2f, 1700f);
            E.SetSkillshot(0.25f, 15f * 2 * (float)Math.PI / 180, 2000f, false, SkillshotType.SkillshotCone);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Config = new Menu("Pantheon", "Pantheon", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);

            var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");

            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            Utils = new Utils();
            Sprite.Load();
            Items = new Items();

            AssassinManager = new AssassinManager();
            AssassinManager.Load();


            // Combo
            Config.AddSubMenu(new Menu("Combo", "Combo"));
            {
                Config.SubMenu("Combo")
                .AddItem(
                    new MenuItem("ComboActive", "Combo!").SetValue(
                        new KeyBind(Config.Item("Orbwalk").GetValue <KeyBind>().Key, KeyBindType.Press)));
            }

            Config.AddSubMenu(new Menu("Harass", "Harass"));
            {
                Config.SubMenu("Harass").AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));
                Config.SubMenu("Harass").AddItem(new MenuItem("UseEHarass", "Use E").SetValue(true));
                Config.SubMenu("Harass")
                .AddItem(new MenuItem("HarassMana", "Min. Mana Percent: ").SetValue(new Slider(50, 100, 0)));
                Config.SubMenu("Harass")
                .AddItem(
                    new MenuItem("HarassActiveT", "Harass (Toggle)").SetValue(new KeyBind("H".ToCharArray()[0],
                                                                                          KeyBindType.Toggle)))
                .Permashow(true);
                Config.SubMenu("Harass")
                .AddItem(
                    new MenuItem("HarassActive", "Harass!").SetValue(new KeyBind("C".ToCharArray()[0],
                                                                                 KeyBindType.Press)));
            }

            var menuLane = new Menu("Lane Mode", "Lane Mode");
            {
                menuLane.AddItem(
                    new MenuItem("Lane.UseQ", "Use Q").SetValue(
                        new StringList(new[] { "Off", "On", "Just out of AA Range" }, 1)));
                menuLane.AddItem(new MenuItem("Lane.UseE", "Use E").SetValue(false));

                menuLane.AddItem(
                    new MenuItem("Lane.Mana.Option", "Min. Mana Options").SetValue(
                        new StringList(new[] { "Don't check", "Min. Mana Percent", "Protect my mana for" }))
                    .SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua)).ValueChanged +=
                    (sender, eventArgs) =>
                {
                    menuLane.Item("Lane.Mana.MinMana").Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 1);
                    menuLane.Item("Lane.Mana.KeepQ").Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuLane.Item("Lane.Mana.KeepW").Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuLane.Item("Lane.Mana.KeepE").Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuLane.Item("Lane.Mana.KeepR").Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                };
                menuLane.AddItem(
                    new MenuItem("Lane.Mana.MinMana", Tab + "Min. Mana Percent: ").SetValue(new Slider(30, 100, 0)));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepQ", Tab + "Q Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepW", Tab + "W Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepE", Tab + "E Spell").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.Mana.KeepR", Tab + "R Spell").SetValue(true));


                menuLane.AddItem(
                    new MenuItem("Lane.Exec", "Lane Clear Active!").SetValue(new KeyBind("V".ToCharArray()[0],
                                                                                         KeyBindType.Press))).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);
                Config.AddSubMenu(menuLane);
            }

            // Jungling Farm
            var menuJungle = new Menu("Jungle Mode", "Jungle Mode");

            Config.AddSubMenu(menuJungle);
            {
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseQ", "Use Q").SetValue(
                        new StringList(new[] { "Off", "On", "Just for big Mobs" }, 1)));
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseW", "Use W").SetValue(
                        new StringList(new[] { "Off", "On", "Just for big Mobs" }, 1)));
                menuJungle.AddItem(
                    new MenuItem("Jungle.UseE", "Use E").SetValue(
                        new StringList(new[] { "Off", "Mob Count > =1", "Mob Count > =2", "Mob Count > =3" }, 2)));

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.Option", "Min. Mana Options").SetValue(
                        new StringList(new[] { "Don't check", "Min. Mana Percent", "Protect my mana (for Combo):" }))
                    .SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua)).ValueChanged +=
                    (sender, eventArgs) =>
                {
                    menuJungle.Item("Jungle.Mana.MinMana")
                    .Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 1);

                    menuJungle.Item("Jungle.Mana.KeepQ")
                    .Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuJungle.Item("Jungle.Mana.KeepW")
                    .Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuJungle.Item("Jungle.Mana.KeepE")
                    .Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                    menuJungle.Item("Jungle.Mana.KeepR")
                    .Show(eventArgs.GetNewValue <StringList>().SelectedIndex == 2);
                };

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.MinMana", Tab + "Min. Mana Percent: ").SetValue(new Slider(30, 100, 0)));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepQ", Tab + "Q Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepW", Tab + "W Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepE", Tab + "E Spell").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.KeepR", Tab + "R Spell").SetValue(true));

                menuJungle.AddItem(
                    new MenuItem("Jungle.Mana.Dont.Title", "Dont control mana If I'm taking").SetFontStyle(
                        FontStyle.Regular, SharpDX.Color.IndianRed));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Blue", Tab + "Blue Monster").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Red", Tab + "Red Monster").SetValue(false));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Dragon", Tab + "Dragon").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Mana.Dont.Baron", Tab + "Baron").SetValue(true));


                menuJungle.AddItem(
                    new MenuItem("JungleFarmActive", "JungleMode!").SetValue(new KeyBind("V".ToCharArray()[0],
                                                                                         KeyBindType.Press))).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);
            }

            menuMisc = new Menu("Misc", "Misc");
            {
                Config.AddSubMenu(menuMisc);
                menuMisc.AddItem(new MenuItem("InterruptSpells", "Interrupt Spells").SetValue(true));
                menuMisc.AddItem(new MenuItem("PingLH", "Ping low health enemies (Only local)").SetValue(true));
            }

            // Drawing
            Config.AddSubMenu(new Menu("Drawings", "Drawings"));
            {
                Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("QRange", "Q Range").SetValue(
                        new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("WRange", "W Range").SetValue(
                        new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("ERange", "E Range").SetValue(
                        new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("RRange", "R Range").SetValue(
                        new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("RRange2", "R Range (minimap)").SetValue(new Circle(true,
                                                                                     Color.FromArgb(255, 255, 255, 255))));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Damage After Combo").SetValue(true);
                Config.SubMenu("Drawings").AddItem(dmgAfterComboItem);

                LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
                LeagueSharp.Common.Utility.HpBarDamageIndicator.Enabled      = true;
            }

            menuLane.Item("Lane.Mana.MinMana")
            .Show(menuLane.Item("Lane.Mana.Option").GetValue <StringList>().SelectedIndex == 1);
            menuLane.Item("Lane.Mana.KeepQ")
            .Show(menuLane.Item("Lane.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepW")
            .Show(menuLane.Item("Lane.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepE")
            .Show(menuLane.Item("Lane.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuLane.Item("Lane.Mana.KeepR")
            .Show(menuLane.Item("Lane.Mana.Option").GetValue <StringList>().SelectedIndex == 2);

            menuJungle.Item("Jungle.Mana.MinMana")
            .Show(menuJungle.Item("Jungle.Mana.Option").GetValue <StringList>().SelectedIndex == 1);
            menuJungle.Item("Jungle.Mana.KeepQ")
            .Show(menuJungle.Item("Jungle.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepW")
            .Show(menuJungle.Item("Jungle.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepE")
            .Show(menuJungle.Item("Jungle.Mana.Option").GetValue <StringList>().SelectedIndex == 2);
            menuJungle.Item("Jungle.Mana.KeepR")
            .Show(menuJungle.Item("Jungle.Mana.Option").GetValue <StringList>().SelectedIndex == 2);


            PotionManager = new PotionManager();

            Config.AddToMainMenu();

            foreach (var i in Config.Children.Cast <Menu>().SelectMany(GetChildirens))
            {
                i.DisplayName = ":: " + i.DisplayName;
            }

            Game.OnUpdate         += Game_OnUpdate;
            Drawing.OnDraw        += Drawing_OnDraw;
            Drawing.OnEndScene    += DrawingOnOnEndScene;
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Chat.Print(
                "<font color='#ff3232'>Pantheon: </font><font color='#d4d4d4'><font color='#FFFFFF'> Loaded </font>");
        }