/// <summary>
        /// Called when the game finishes loading.
        /// </summary>
        /// <param name="args"></param>
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Champion.Teemo != Player.Instance.Hero)
            {
                Chat.Print("PandaTeemo | Encountered Error: Incorrect Champion | Champion Not Loaded",
                           System.Drawing.Color.Red);
                return;
            }

            Config.Initialize();
            SpellManager.Initialize();
            ModeManager.Initialize();
            AutoShroom.Initialize();
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Orbwalker.OnPostAttack           += Orbwalker_OnPostAttack;
            Orbwalker.OnPostAttack           += Orbwalker_LaneClear_OnPostAttack;
            Orbwalker.OnPostAttack           += Orbwalker_JungleClear_OnPostAttack;
            GameObject.OnCreate            += GameObject_OnCreate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Drawing.OnDraw += Drawing_OnDraw;

            Chat.Print("PandaTeemo | Successfully Loaded ", System.Drawing.Color.LawnGreen);
        }
Exemplo n.º 2
0
        static Config()
        {
            PandaTeemoReborn = MainMenu.AddMenu("PandaTeemoReborn", "PTR");
            PandaTeemoReborn.AddGroupLabel("This addon is made by KarmaPanda and should not be redistributed in any way.");
            PandaTeemoReborn.AddGroupLabel(
                "Any unauthorized redistribution without credits will result in severe consequences.");
            PandaTeemoReborn.AddGroupLabel("Thank you for using this addon and have a fun time!");

            ComboMenu = PandaTeemoReborn.AddSubMenu("Combo", "Combo");
            ComboMenu.AddLabel("Spell Settings");
            ComboMenu.Add("useQ", new CheckBox("Use Q in Combo"));
            ComboMenu.Add("useW", new CheckBox("Use W in Combo"));
            ComboMenu.Add("useR", new CheckBox("Use R in Combo"));
            ComboMenu.AddLabel("ManaManager");
            ComboMenu.Add("manaQ", new Slider("Mana before casting Q"));
            ComboMenu.Add("manaW", new Slider("Mana before casting W"));
            ComboMenu.Add("manaR", new Slider("Mana before casting R"));
            ComboMenu.AddLabel("Q Settings");
            ComboMenu.Add("checkAA", new Slider("Range to subtract from Q: {0}", 0, 0, 180));
            ComboMenu.AddLabel("R Settings");
            ComboMenu.Add("doubleShroom", new CheckBox("Use Double Shroom Logic"));
            ComboMenu.Add("rPoison", new CheckBox("Cast R only if target isn't Poisoned"));
            ComboMenu.Add("rCharge", new Slider("Charges of R before using R: {0}", 2, 1, 3));
            ComboMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            ComboMenu.AddLabel("Misc Settings");
            ComboMenu.Add("adc", new CheckBox("Use Q only on ADC", false));
            ComboMenu.Add("wRange", new CheckBox("Use W only if enemy is in range"));

            HarassMenu = PandaTeemoReborn.AddSubMenu("Harass", "Harass");
            HarassMenu.AddGroupLabel("Spell Settings");
            HarassMenu.Add("useQ", new CheckBox("Use Q in Harass"));
            HarassMenu.Add("useW", new CheckBox("Use W in Harass", false));
            HarassMenu.AddLabel("ManaManager");
            HarassMenu.Add("manaQ", new Slider("Mana before casting Q"));
            HarassMenu.Add("manaW", new Slider("Mana before casting W"));
            HarassMenu.AddLabel("Q Settings");
            HarassMenu.Add("checkAA", new Slider("Range to subtract from Q: {0}", 0, 0, 180));
            HarassMenu.AddLabel("Misc Settings");
            HarassMenu.Add("adc", new CheckBox("Use Q only on ADC", false));
            HarassMenu.Add("wRange", new CheckBox("Use W only if enemy is in range"));

            LaneClearMenu = PandaTeemoReborn.AddSubMenu("LaneClear", "LaneClear");
            LaneClearMenu.AddLabel("Spell Settings");
            LaneClearMenu.Add("useQ", new CheckBox("LaneClear with Q"));
            LaneClearMenu.Add("useR", new CheckBox("LaneClear with R"));
            LaneClearMenu.AddLabel("ManaManager");
            LaneClearMenu.Add("manaQ", new Slider("Q Mana Manager", 50));
            LaneClearMenu.Add("manaR", new Slider("R Mana Manager", 50));
            LaneClearMenu.AddLabel("Q Settings");
            LaneClearMenu.Add("harass", new CheckBox("Use Harass Based Logic"));
            LaneClearMenu.Add("disableLC", new CheckBox("Disable LaneClear Based Logic"));
            LaneClearMenu.AddLabel("R Settings");
            LaneClearMenu.Add("rKillable", new CheckBox("Only cast R if minion(s) are killable"));
            LaneClearMenu.Add("rPoison", new CheckBox("Cast R only if minion isn't Poisoned"));
            LaneClearMenu.Add("rCharge", new Slider("Charges of R before using R: {0}", 2, 1, 3));
            LaneClearMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            LaneClearMenu.Add("minionR", new Slider("Minions before casting R: {0}", 3, 1, 4));

            JungleClearMenu = PandaTeemoReborn.AddSubMenu("JungleClear", "JungleClear");
            JungleClearMenu.AddGroupLabel("Spell Settings");
            JungleClearMenu.Add("useQ", new CheckBox("JungleClear with Q"));
            JungleClearMenu.Add("useR", new CheckBox("JungleClear with R"));
            JungleClearMenu.AddLabel("ManaManager");
            JungleClearMenu.Add("manaQ", new Slider("Q Mana Manager", 25));
            JungleClearMenu.Add("manaR", new Slider("R Mana Manager", 25));
            JungleClearMenu.AddLabel("R Settings");
            JungleClearMenu.Add("rKillable", new CheckBox("Only cast R if mob(s) are killable", false));
            JungleClearMenu.Add("rPoison", new CheckBox("Cast R only if mob isn't Poisoned"));
            JungleClearMenu.Add("rCharge", new Slider("Charges of R before using R: {0}", 2, 1, 3));
            JungleClearMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            JungleClearMenu.Add("mobR", new Slider("Mobs before casting R: {0}", 1, 1, 4));
            JungleClearMenu.AddLabel("Misc Settings");
            JungleClearMenu.Add("bMob", new CheckBox("Prevent Spell Usage on Small Mobs"));

            KillStealMenu = PandaTeemoReborn.AddSubMenu("Kill Steal", "Kill Steal");
            KillStealMenu.AddGroupLabel("Spell Settings");
            KillStealMenu.Add("useQ", new CheckBox("Kill Steal with Q"));
            KillStealMenu.Add("useR", new CheckBox("Kill Steal with R", false));
            KillStealMenu.AddLabel("ManaManager");
            KillStealMenu.Add("manaQ", new Slider("Q Mana Manager", 25));
            KillStealMenu.Add("manaR", new Slider("R Mana Manager", 25));
            KillStealMenu.AddLabel("R Settings");
            KillStealMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            KillStealMenu.Add("doubleShroom", new CheckBox("Use Double Shroom Logic"));

            FleeMenu = PandaTeemoReborn.AddSubMenu("Flee Menu", "Flee");
            FleeMenu.AddGroupLabel("Flee Settings");
            FleeMenu.Add("useW", new CheckBox("Flee with W"));
            FleeMenu.Add("useR", new CheckBox("Flee with R"));
            FleeMenu.AddLabel("R Settings");
            FleeMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            FleeMenu.Add("rCharge", new Slider("Charges of R before using R: {0}", 2, 1, 3));

            AutoShroomMenu = PandaTeemoReborn.AddSubMenu("Auto Shroom", "Auto Shroom");
            AutoShroomMenu.AddGroupLabel("Auto Shroom Settings");
            AutoShroomMenu.Add("useR", new CheckBox("AutoShroom with R"));
            AutoShroomMenu.Add("manaR", new Slider("R Mana Manager", 25));
            AutoShroomMenu.Add("rCharge", new Slider("Charges of R before using R: {0}", 2, 1, 3));
            AutoShroomMenu.Add("enableShroom", new CheckBox("Load AutoShroom (Requires F5)"));
            AutoShroomMenu.Add("enableDefaultLocations", new CheckBox("Use Default Locations (Requires F5)"));
            AutoShroomMenu.AddLabel("Debug Mode");
            var enable = AutoShroomMenu.Add("enableDebug", new CheckBox("Enable Debug Mode", false));

            enable.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    Chat.Print("PandaTeemo | Debug Mode Disabled", System.Drawing.Color.LawnGreen);
                }
                else
                {
                    Chat.Print("PandaTeemo | Debug Mode Enabled", System.Drawing.Color.Red);
                }
            };
            var save = AutoShroomMenu.Add("saveButton", new KeyBind("Save Configuration", false, KeyBind.BindTypes.HoldActive, 'K'));

            save.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    save.CurrentValue = false;
                    AutoShroom.SavePositions();
                }
            };
            AutoShroomMenu.AddLabel("Shroom Location Adder");
            AutoShroomMenu.Add("posMode", new ComboBox("Position Mode", 0, "Save Mouse", "Save Player Position"));
            var add = AutoShroomMenu.Add("newposButton", new KeyBind("Save Position", false, KeyBind.BindTypes.HoldActive, 'L'));

            add.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    add.CurrentValue = false;

                    Vector3 newPosition = Vector3.Zero;

                    switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                    {
                    case 0:
                        newPosition = Game.CursorPos;
                        break;

                    case 1:
                        newPosition = Player.Instance.Position;
                        break;
                    }

                    if (newPosition != Vector3.Zero && !AutoShroom.ShroomPosition.Contains(newPosition))
                    {
                        AutoShroom.AddShroomLocation(newPosition);
                        AutoShroom.SavePositions();
                    }
                }
            };
            var remove = AutoShroomMenu.Add("delposButton", new KeyBind("Delete Position", false, KeyBind.BindTypes.HoldActive, 'U'));

            remove.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    remove.CurrentValue = false;
                }

                Vector3 newPosition = Vector3.Zero;

                switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                {
                case 0:
                    newPosition = Game.CursorPos;
                    break;

                case 1:
                    newPosition = Player.Instance.Position;
                    break;
                }

                if (newPosition == Vector3.Zero)
                {
                    return;
                }

                var nearbyShrooms = AutoShroom.PlayerAssignedShroomPosition.Where(pos => pos.IsInRange(newPosition, SpellManager.R.Radius)).ToList();

                if (!nearbyShrooms.Any())
                {
                    return;
                }

                AutoShroom.RemoveShroomLocations(nearbyShrooms);
                AutoShroom.SavePositions();
            };

            DrawingMenu = PandaTeemoReborn.AddSubMenu("Drawing", "Drawing");
            DrawingMenu.AddGroupLabel("Drawing Settings");
            DrawingMenu.Add("drawQ", new CheckBox("Draw Q Range"));
            DrawingMenu.Add("drawR", new CheckBox("Draw R Range"));
            DrawingMenu.Add("drawautoR", new CheckBox("Draw Auto Shroom Positions"));
            DrawingMenu.Add("drawdoubleR", new CheckBox("Draw Double Shroom Prediction", false));

            MiscMenu = PandaTeemoReborn.AddSubMenu("Misc", "Misc");
            MiscMenu.AddGroupLabel("Spell Settings");
            MiscMenu.Add("autoQ", new CheckBox("Automatic Q", false));
            MiscMenu.Add("autoW", new CheckBox("Automatic W", false));
            MiscMenu.Add("intq", new CheckBox("Interrupt with Q"));
            MiscMenu.Add("gapR", new CheckBox("Gapcloser with R"));
        }
Exemplo n.º 3
0
        static Config()
        {
            PandaTeemoReborn = MainMenu.AddMenu("PandaTeemoReborn", "PTR");
            PandaTeemoReborn.AddGroupLabel("Yapimci KarmaPanda.");
            PandaTeemoReborn.AddGroupLabel("Turkce ceviri TekinTR.");
            PandaTeemoReborn.AddGroupLabel("Herhangi bir sorunla karsilasirsan TekinTR ile iletisime gec!");

            ComboMenu = PandaTeemoReborn.AddSubMenu("Combo", "Combo");
            ComboMenu.AddLabel("Spell Settings");
            ComboMenu.Add("useQ", new CheckBox("Kullan Q Komboda"));
            ComboMenu.Add("useW", new CheckBox("Kullan W Komboda"));
            ComboMenu.Add("useR", new CheckBox("Kullan R Komboda"));
            ComboMenu.AddLabel("ManaManager");
            ComboMenu.Add("manaQ", new Slider("Mana kullanmadan once Q"));
            ComboMenu.Add("manaW", new Slider("Mana kullanmadan once W"));
            ComboMenu.Add("manaR", new Slider("Mana kullanmadan once R"));
            ComboMenu.AddLabel("Q Settings");
            ComboMenu.Add("checkAA", new Slider("Menzilden cikarma araligi Q: {0}", 0, 0, 180));
            ComboMenu.AddLabel("R Settings");
            ComboMenu.Add("doubleShroom", new CheckBox("Kullan cift mantar mantigi"));
            ComboMenu.Add("rPoison", new CheckBox("Kullan R sadece hedef zehirlenmemisse"));
            ComboMenu.Add("rCharge", new Slider("Sayisi R kullanmadan once R: {0}", 2, 1, 3));
            //ComboMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            ComboMenu.AddLabel("Misc Settings");
            ComboMenu.Add("adc", new CheckBox("Kullanilsin Q sadece ADC icin", false));
            ComboMenu.Add("wRange", new CheckBox("Kullan W sadece dusman menzilde ise"));

            HarassMenu = PandaTeemoReborn.AddSubMenu("Harass", "Harass");
            HarassMenu.AddGroupLabel("Spell Settings");
            HarassMenu.Add("useQ", new CheckBox("Kullan Q durterken"));
            HarassMenu.Add("useW", new CheckBox("Kullan W durterken", false));
            HarassMenu.AddLabel("ManaManager");
            HarassMenu.Add("manaQ", new Slider("Mana kullanmadan once Q"));
            HarassMenu.Add("manaW", new Slider("Mana kullanmadan once W"));
            HarassMenu.AddLabel("Q Settings");
            HarassMenu.Add("checkAA", new Slider("Menzilden cikarma araligi Q: {0}", 0, 0, 180));
            HarassMenu.AddLabel("Misc Settings");
            HarassMenu.Add("adc", new CheckBox("Kullanilsin Q sadece ADC icin", false));
            HarassMenu.Add("wRange", new CheckBox("Kullan W sadece dusman menzilde ise"));

            LaneClearMenu = PandaTeemoReborn.AddSubMenu("LaneClear", "LaneClear");
            LaneClearMenu.AddLabel("Spell Settings");
            LaneClearMenu.Add("useQ", new CheckBox("Koridor temizlemede Q"));
            LaneClearMenu.Add("useR", new CheckBox("Koridor temizlemede R"));
            LaneClearMenu.AddLabel("ManaManager");
            LaneClearMenu.Add("manaQ", new Slider("Q Mana yardimcisi", 50));
            LaneClearMenu.Add("manaR", new Slider("R Mana yardimcisi", 50));
            LaneClearMenu.AddLabel("Q Settings");
            LaneClearMenu.Add("harass", new CheckBox("Kullan durtme mantigi"));
            LaneClearMenu.Add("disableLC", new CheckBox("Koridor temizleme mantigini kapat"));
            LaneClearMenu.AddLabel("R Settings");
            LaneClearMenu.Add("rKillable", new CheckBox("Sadece kullan R minyonlar(s) olucekse"));
            LaneClearMenu.Add("rPoison", new CheckBox("Kullan R sadece minyonlar zehirlenmesse"));
            LaneClearMenu.Add("rCharge", new Slider("Sayisi R kullanmadan once R: {0}", 2, 1, 3));
            //LaneClearMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            LaneClearMenu.Add("minionR", new Slider("Kac minyon icin kullanilsin R: {0}", 3, 1, 4));

            JungleClearMenu = PandaTeemoReborn.AddSubMenu("JungleClear", "JungleClear");
            JungleClearMenu.AddGroupLabel("Spell Settings");
            JungleClearMenu.Add("useQ", new CheckBox("Ormanda Q"));
            JungleClearMenu.Add("useR", new CheckBox("Ormanda R"));
            JungleClearMenu.AddLabel("ManaManager");
            JungleClearMenu.Add("manaQ", new Slider("Q Mana yardimcisi", 25));
            JungleClearMenu.Add("manaR", new Slider("R Mana yardimcisi", 25));
            JungleClearMenu.AddLabel("R Settings");
            JungleClearMenu.Add("rKillable", new CheckBox("Sadece kullan R yaratik(s) oldurulebilirse", false));
            JungleClearMenu.Add("rPoison", new CheckBox("Kullan R sadece mob zehirlenmesse"));
            JungleClearMenu.Add("rCharge", new Slider("Sayisi R kullanmadan once R: {0}", 2, 1, 3));
            //JungleClearMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            JungleClearMenu.Add("mobR", new Slider("Yaratik sayisi kullanmadan once R: {0}", 1, 1, 4));
            JungleClearMenu.AddLabel("Misc Settings");
            JungleClearMenu.Add("bMob", new CheckBox("Kucuk yaratiklarda skill kullanimini onle"));

            KillStealMenu = PandaTeemoReborn.AddSubMenu("Kill Steal", "Kill Steal");
            KillStealMenu.AddGroupLabel("Spell Settings");
            KillStealMenu.Add("useQ", new CheckBox("Kullanarak oldur Q"));
            KillStealMenu.Add("useR", new CheckBox("Kullanarak oldur R", false));
            KillStealMenu.AddLabel("ManaManager");
            KillStealMenu.Add("manaQ", new Slider("Q Mana yardimcisi", 25));
            KillStealMenu.Add("manaR", new Slider("R Mana yardimcisi", 25));
            KillStealMenu.AddLabel("R Settings");
            //KillStealMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            KillStealMenu.Add("doubleShroom", new CheckBox("Kullan mantar sektirme"));

            FleeMenu = PandaTeemoReborn.AddSubMenu("Flee Menu", "Flee");
            FleeMenu.AddGroupLabel("Flee Settings");
            FleeMenu.Add("useW", new CheckBox("Kacarken W kullan"));
            FleeMenu.Add("useR", new CheckBox("Kacarken R kullan"));
            FleeMenu.AddLabel("R Settings");
            //FleeMenu.Add("rDelay", new Slider("Delay for R Casting in ms: {0}", 1000, 0, 5000));
            FleeMenu.Add("rCharge", new Slider("Sayisi R kullanmadan once R: {0}", 2, 1, 3));

            AutoShroomMenu = PandaTeemoReborn.AddSubMenu("Auto Shroom", "Auto Shroom");
            AutoShroomMenu.AddGroupLabel("Auto Shroom Settings");
            AutoShroomMenu.Add("useR", new CheckBox("Otomatik R"));
            AutoShroomMenu.Add("manaR", new Slider("R mana yardimcisi", 25));
            AutoShroomMenu.Add("rCharge", new Slider("Sayisi R kullanmadan once R: {0}", 2, 1, 3));
            AutoShroomMenu.Add("enableShroom", new CheckBox("Yukle otomatik mantar (Basmalisin F5)"));
            AutoShroomMenu.Add("enableDefaultLocations", new CheckBox("Varsayilan konumlari kullan (Basmalisin F5)"));
            AutoShroomMenu.AddLabel("Debug Mode");
            var enable = AutoShroomMenu.Add("enableDebug", new CheckBox("Enable Debug Mode", false));

            enable.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    Chat.Print("PandaTeemo | Debug Mode Disabled", System.Drawing.Color.LawnGreen);
                }
                else
                {
                    Chat.Print("PandaTeemo | Debug Mode Enabled", System.Drawing.Color.Red);
                }
            };
            var save = AutoShroomMenu.Add("saveButton", new KeyBind("Save Configuration", false, KeyBind.BindTypes.HoldActive, 'K'));

            save.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    save.CurrentValue = false;
                    AutoShroom.SavePositions();
                }
            };
            AutoShroomMenu.AddLabel("Shroom Location Adder");
            AutoShroomMenu.Add("posMode", new ComboBox("Position Mode", 0, "Save Mouse", "Save Player Position"));
            var add = AutoShroomMenu.Add("newposButton", new KeyBind("Save Position", false, KeyBind.BindTypes.HoldActive, 'L'));

            add.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    add.CurrentValue = false;

                    Vector3 newPosition = Vector3.Zero;

                    switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                    {
                    case 0:
                        newPosition = Game.CursorPos;
                        break;

                    case 1:
                        newPosition = Player.Instance.Position;
                        break;
                    }

                    if (newPosition != Vector3.Zero && !AutoShroom.ShroomPosition.Contains(newPosition))
                    {
                        AutoShroom.AddShroomLocation(newPosition);
                        AutoShroom.SavePositions();
                    }
                }
            };
            var remove = AutoShroomMenu.Add("delposButton", new KeyBind("Delete Position", false, KeyBind.BindTypes.HoldActive, 'U'));

            remove.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    remove.CurrentValue = false;
                }

                Vector3 newPosition = Vector3.Zero;

                switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                {
                case 0:
                    newPosition = Game.CursorPos;
                    break;

                case 1:
                    newPosition = Player.Instance.Position;
                    break;
                }

                if (newPosition == Vector3.Zero)
                {
                    return;
                }

                var nearbyShrooms = AutoShroom.PlayerAssignedShroomPosition.Where(pos => pos.IsInRange(newPosition, SpellManager.R.Radius)).ToList();

                if (!nearbyShrooms.Any())
                {
                    return;
                }

                AutoShroom.RemoveShroomLocations(nearbyShrooms);
                AutoShroom.SavePositions();
            };

            DrawingMenu = PandaTeemoReborn.AddSubMenu("Drawing", "Drawing");
            DrawingMenu.AddGroupLabel("Drawing Settings");
            DrawingMenu.Add("drawQ", new CheckBox("Goster Q Menzili"));
            DrawingMenu.Add("drawR", new CheckBox("Goster R Menzili"));
            DrawingMenu.Add("drawautoR", new CheckBox("Goster oto mantar pozisyonlari"));
            DrawingMenu.Add("drawdoubleR", new CheckBox("Goster cift mantar tahmini", false));

            MiscMenu = PandaTeemoReborn.AddSubMenu("Misc", "Misc");
            MiscMenu.AddGroupLabel("Spell Settings");
            MiscMenu.Add("autoQ", new CheckBox("Otomatik Q", false));
            MiscMenu.Add("autoW", new CheckBox("Otomatik W", false));
            MiscMenu.Add("intq", new CheckBox("Kesici Q"));
            MiscMenu.Add("gapR", new CheckBox("Atilma yapanlara R"));
        }
Exemplo n.º 4
0
        static Config()
        {
            PandaTeemoReborn = MainMenu.AddMenu("PandaTeemoReborn", "PTR");
            PandaTeemoReborn.AddGroupLabel("Bu addon KarmaPanda Tarafından Geliştirilmiştir.");
            PandaTeemoReborn.AddGroupLabel(
                "Kimseden yardım alınmamıştır.");
            PandaTeemoReborn.AddGroupLabel("Addonumu Kullandığınız için Teşekkür Ederim!");
            PandaTeemoReborn.AddGroupLabel("Çeviri TRAdana");

            ComboMenu = PandaTeemoReborn.AddSubMenu("Combo", "Combo");
            ComboMenu.AddLabel("Büyü Ayarları");
            ComboMenu.Add("useQ", new CheckBox("Q Kullan"));
            ComboMenu.Add("useW", new CheckBox("W Kullan"));
            ComboMenu.Add("useR", new CheckBox("R Kullan"));
            ComboMenu.AddLabel("ManaYardımcısı");
            ComboMenu.Add("manaQ", new Slider("Q dan önce hesapla"));
            ComboMenu.Add("manaW", new Slider("Wden önce hesapla"));
            ComboMenu.Add("manaR", new Slider("R den önce hesapla"));
            ComboMenu.AddLabel("Q Ayarları");
            ComboMenu.Add("checkAA", new Slider("Q için menzil: {0}", 0, 0, 180));
            ComboMenu.AddLabel("R Ayarları");
            ComboMenu.Add("doubleShroom", new CheckBox("Çift mantar mantığı kullan"));
            ComboMenu.Add("rPoison", new CheckBox("Hedef sadece zehirlenmemişse R Kullan"));
            ComboMenu.Add("rCharge", new Slider("R kullanmak için mevcut R yükü: {0}", 2, 1, 3));
            ComboMenu.Add("rDelay", new Slider("R kullanma gecikmesi: {0}", 1000, 0, 5000));
            ComboMenu.AddLabel("Ek Ayarları");
            ComboMenu.Add("adc", new CheckBox("Qyu sadece adc de kullan", false));
            ComboMenu.Add("wRange", new CheckBox("W yi sadece hedef menzildeyse kullan"));

            HarassMenu = PandaTeemoReborn.AddSubMenu("Harass", "Harass");
            HarassMenu.AddGroupLabel("Büyü Ayarları");
            HarassMenu.Add("useQ", new CheckBox("Q Kullan"));
            HarassMenu.Add("useW", new CheckBox("W Kullan", false));
            HarassMenu.AddLabel("ManaYardımcısı");
            HarassMenu.Add("manaQ", new Slider("Q dan önce hesapla"));
            HarassMenu.Add("manaW", new Slider("W den önce hesapla"));
            HarassMenu.AddLabel("Q Ayarları");
            HarassMenu.Add("checkAA", new Slider("Q için menzil: {0}", 0, 0, 180));
            HarassMenu.AddLabel("Misc Ayarları");
            HarassMenu.Add("adc", new CheckBox("Qyu sadece adc de kullan", false));
            HarassMenu.Add("wRange", new CheckBox("W yi sadece hedef menzildeyse kullan"));

            LaneClearMenu = PandaTeemoReborn.AddSubMenu("LaneClear", "LaneClear");
            LaneClearMenu.AddLabel("Büyü Ayarları");
            LaneClearMenu.Add("useQ", new CheckBox("Q Kullan"));
            LaneClearMenu.Add("useR", new CheckBox("R Kullan"));
            LaneClearMenu.AddLabel("ManaYardımcısı");
            LaneClearMenu.Add("manaQ", new Slider("Q için en az mana", 50));
            LaneClearMenu.Add("manaR", new Slider("R için en az mana", 50));
            LaneClearMenu.AddLabel("Q Ayarları");
            LaneClearMenu.Add("harass", new CheckBox("Dürtme mantığı Kullan"));
            LaneClearMenu.Add("disableLC", new CheckBox("Laneclearda mantığı devredışı bırak"));
            LaneClearMenu.AddLabel("R Ayarları");
            LaneClearMenu.Add("rKillable", new CheckBox("Sadece minyonlar ölecekse R fırlat"));
            LaneClearMenu.Add("rPoison", new CheckBox("Sadece minyonlar zehirlenmemişse at"));
            LaneClearMenu.Add("rCharge", new Slider("R kullanmak için mevcut R yükü: {0}", 2, 1, 3));
            LaneClearMenu.Add("rDelay", new Slider("R için gecikme: {0}", 1000, 0, 5000));
            LaneClearMenu.Add("minionR", new Slider("Şu kadar minyon varsa R Kullan: {0}", 3, 1, 4));

            JungleClearMenu = PandaTeemoReborn.AddSubMenu("JungleClear", "JungleClear");
            JungleClearMenu.AddGroupLabel("Büyü Ayarları");
            JungleClearMenu.Add("useQ", new CheckBox("Q Kullan"));
            JungleClearMenu.Add("useR", new CheckBox("R Kullan"));
            JungleClearMenu.AddLabel("ManaYardımcısı");
            JungleClearMenu.Add("manaQ", new Slider("Q için en az mana", 25));
            JungleClearMenu.Add("manaR", new Slider("R için en az mana", 25));
            JungleClearMenu.AddLabel("R Ayarları");
            JungleClearMenu.Add("rKillable", new CheckBox("Sadece canavar ölecekse R Kullan", false));
            JungleClearMenu.Add("rPoison", new CheckBox("Sadece zehirlenmemişse R Kullan"));
            JungleClearMenu.Add("rCharge", new Slider("R kullanmak için mevcut R yükü: {0}", 2, 1, 3));
            JungleClearMenu.Add("rDelay", new Slider("R gecikmesi: {0}", 1000, 0, 5000));
            JungleClearMenu.Add("mobR", new Slider("R için gereken canavar sayısı: {0}", 1, 1, 4));
            JungleClearMenu.AddLabel("Ek Ayarları");
            JungleClearMenu.Add("bMob", new CheckBox("Küçük canavarlara büyü kullanmayı önle"));

            KillStealMenu = PandaTeemoReborn.AddSubMenu("Kill Steal", "Kill Steal");
            KillStealMenu.AddGroupLabel("Büyü Ayarları");
            KillStealMenu.Add("useQ", new CheckBox("Q Kullan"));
            KillStealMenu.Add("useR", new CheckBox("R Kullan", false));
            KillStealMenu.AddLabel("ManaYardımcısı");
            KillStealMenu.Add("manaQ", new Slider("Q için en az mana", 25));
            KillStealMenu.Add("manaR", new Slider("R için en az mana", 25));
            KillStealMenu.AddLabel("R Ayarları");
            KillStealMenu.Add("rDelay", new Slider("R gecikmesi: {0}", 1000, 0, 5000));
            KillStealMenu.Add("doubleShroom", new CheckBox("Çift mantar mantığını kullan"));

            FleeMenu = PandaTeemoReborn.AddSubMenu("Flee Menu", "Flee");
            FleeMenu.AddGroupLabel("Flee Ayarları");
            FleeMenu.Add("useW", new CheckBox("W Kullan"));
            FleeMenu.Add("useR", new CheckBox("R Kullan"));
            FleeMenu.AddLabel("R Ayarları");
            FleeMenu.Add("rDelay", new Slider("R gecikmesi: {0}", 1000, 0, 5000));
            FleeMenu.Add("rCharge", new Slider("R kullanmak için mevcut R yükü: {0}", 2, 1, 3));

            AutoShroomMenu = PandaTeemoReborn.AddSubMenu("Auto Shroom", "Auto Shroom");
            AutoShroomMenu.AddGroupLabel("Otomatik Mantar Ayarları");
            AutoShroomMenu.Add("useR", new CheckBox("R kullan"));
            AutoShroomMenu.Add("manaR", new Slider("R için en az mana", 25));
            AutoShroomMenu.Add("rCharge", new Slider("R kullanmak için mevcut R yükü: {0}", 2, 1, 3));
            AutoShroomMenu.Add("enableShroom", new CheckBox("Otomatik Mantar Yükle (F5 basman gerek)"));
            AutoShroomMenu.Add("enableDefaultLocations", new CheckBox("Varsayılan konumları kullan(mantar atma konumları) (F5 basman gerek)"));
            AutoShroomMenu.AddLabel("Hata Ayıklama Modu");
            var enable = AutoShroomMenu.Add("enableDebug", new CheckBox("Aktif hata ayıklama", false));

            enable.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    Chat.Print("PandaTeemo | Hata ayiklama devredisi", System.Drawing.Color.LawnGreen);
                }
                else
                {
                    Chat.Print("PandaTeemo | Hata Ayiklama aktif", System.Drawing.Color.Red);
                }
            };
            var save = AutoShroomMenu.Add("saveButton", new KeyBind("Ayarları kaydet", false, KeyBind.BindTypes.HoldActive, 'K'));

            save.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    save.CurrentValue = false;
                    AutoShroom.SavePositions();
                }
            };
            AutoShroomMenu.AddLabel("Mantar atma konumları");
            AutoShroomMenu.Add("posMode", new ComboBox("Position Mode", 0, "Save Mouse", "Save Player Position"));
            var add = AutoShroomMenu.Add("newposButton", new KeyBind("Konumu kaydet", false, KeyBind.BindTypes.HoldActive, 'L'));

            add.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    add.CurrentValue = false;

                    Vector3 newPosition = Vector3.Zero;

                    switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                    {
                    case 0:
                        newPosition = Game.CursorPos;
                        break;

                    case 1:
                        newPosition = Player.Instance.Position;
                        break;
                    }

                    if (newPosition != Vector3.Zero && !AutoShroom.ShroomPosition.Contains(newPosition))
                    {
                        AutoShroom.AddShroomLocation(newPosition);
                        AutoShroom.SavePositions();
                    }
                }
            };
            var remove = AutoShroomMenu.Add("delposButton", new KeyBind("Konumu Sil", false, KeyBind.BindTypes.HoldActive, 'U'));

            remove.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (!args.NewValue)
                {
                    return;
                }

                if (Extensions.MenuValues.AutoShroom.DebugMode)
                {
                    remove.CurrentValue = false;
                }

                Vector3 newPosition = Vector3.Zero;

                switch (Extensions.MenuValues.AutoShroom.PositionMode.CurrentValue)
                {
                case 0:
                    newPosition = Game.CursorPos;
                    break;

                case 1:
                    newPosition = Player.Instance.Position;
                    break;
                }

                if (newPosition == Vector3.Zero)
                {
                    return;
                }

                var nearbyShrooms = AutoShroom.PlayerAssignedShroomPosition.Where(pos => pos.IsInRange(newPosition, SpellManager.R.Radius)).ToList();

                if (!nearbyShrooms.Any())
                {
                    return;
                }

                AutoShroom.RemoveShroomLocations(nearbyShrooms);
                AutoShroom.SavePositions();
            };

            DrawingMenu = PandaTeemoReborn.AddSubMenu("Drawing", "Drawing");
            DrawingMenu.AddGroupLabel("Gösterge Ayarları");
            DrawingMenu.Add("drawQ", new CheckBox("Göster Q Menzili"));
            DrawingMenu.Add("drawR", new CheckBox("Göster R Menzili"));
            DrawingMenu.Add("drawautoR", new CheckBox("Göster Otomatik mantar atma yerleri"));
            DrawingMenu.Add("drawdoubleR", new CheckBox("Göster Çift mantar mantığını", false));

            MiscMenu = PandaTeemoReborn.AddSubMenu("Misc", "Misc");
            MiscMenu.AddGroupLabel("Büyü Ayarları");
            MiscMenu.Add("autoQ", new CheckBox("Otomatik Q", false));
            MiscMenu.Add("autoW", new CheckBox("Otomatik W", false));
            MiscMenu.Add("intq", new CheckBox("Interrupt ile Q"));
            MiscMenu.Add("gapR", new CheckBox("Gapcloser ile R"));
        }