예제 #1
0
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.CreatSlotHitChance(SpellSlot.W, 60);
                Menu.AddGroupLabel("Misc");
                Menu.Add("UBAddons.Twitch.Recall.Q", new CheckBox("Enable Stealth Recall"));
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                    var logic    = ComboMenu.Add("UBAddons.Twitch.E.LogicBox", new ComboBox("E Logic", 1, "Only Kill Steal", "Killsteal Smart", "At stacks", "At stacks and enemy count"));
                    var slider   = ComboMenu.Add("UBAddons.Twitch.E.Slider", new Slider("Use E only more than {0} enemy has passive buff", 3, 1, 5));
                    var slider2  = ComboMenu.Add("UBAddons.Twitch.E.Slider2", new Slider("Killsteal immediately if more than {0} enemy around me", 3, 1, 5));
                    var checkbox = ComboMenu.Add("UBAddons.Twitch.E.CheckBox", new CheckBox("E + Passive Logic if enemy in turret"));
                    var tips     = ComboMenu.Add("UBAddons.Twitch.E.Tip", new Label(""));
                    switch (logic.CurrentValue)
                    {
                    case 0:
                    {
                        slider.IsVisible   = false;
                        slider2.IsVisible  = false;
                        checkbox.IsVisible = false;
                        tips.DisplayName   = "E immediately if can kill enemy";
                    }
                    break;

                    case 1:
                    {
                        slider.IsVisible   = true;
                        slider.DisplayName = "Killsteal immediately if more than {0} enemy/ally around me";
                        slider2.IsVisible  = false;
                        checkbox.IsVisible = true;
                        tips.DisplayName   = "Hold your E till and attack other target till you can double kill/ triple kill, but smart usage";
                    }
                    break;

                    case 2:
                    {
                        slider.IsVisible    = false;
                        slider2.IsVisible   = true;
                        slider2.MaxValue    = 6;
                        slider2.DisplayName = "At Stacks";
                        checkbox.IsVisible  = true;
                        tips.DisplayName    = "Use E immediately if any Enemy has enough stacks";
                    }
                    break;

                    case 3:
                    {
                        slider.IsVisible    = true;
                        slider2.IsVisible   = true;
                        slider2.MaxValue    = 6;
                        slider2.DisplayName = "At Stacks";
                        checkbox.IsVisible  = true;
                        tips.DisplayName    = "Use E immediately if enough Enemy has enough stacks";
                    }
                    break;

                    default:
                    {
                        throw new ArgumentOutOfRangeException();
                    }
                    }
                    logic.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                    {
                        switch (args.NewValue)
                        {
                        case 0:
                        {
                            slider.IsVisible   = false;
                            slider2.IsVisible  = false;
                            checkbox.IsVisible = false;
                            tips.DisplayName   = "E immediately if can kill enemy";
                        }
                        break;

                        case 1:
                        {
                            slider.IsVisible   = true;
                            slider2.IsVisible  = false;
                            slider.DisplayName = "Killsteal immediately if more than {0} enemy/ally around me";
                            checkbox.IsVisible = true;
                            tips.DisplayName   = "Hold your E till and attack other target till you can double kill/ triple kill, but smart usage";
                        }
                        break;

                        case 2:
                        {
                            slider.IsVisible    = false;
                            slider2.IsVisible   = true;
                            slider2.MaxValue    = 6;
                            slider2.DisplayName = "At Stacks";
                            checkbox.IsVisible  = false;
                            tips.DisplayName    = "Use E immediately if any Enemy has enough stacks";
                        }
                        break;

                        case 3:
                        {
                            slider.IsVisible    = true;
                            slider.DisplayName  = "Use E only more than {0} enemy has passive buff";
                            slider2.IsVisible   = true;
                            slider2.MaxValue    = 6;
                            slider2.DisplayName = "At Stacks";
                            checkbox.IsVisible  = false;
                            tips.DisplayName    = "Use E immediately if enough Enemy has enough stacks";
                        }
                        break;

                        default:
                        {
                            throw new ArgumentOutOfRangeException();
                        }
                        }
                    };
                    ComboMenu.CreatSlotCheckBox(SpellSlot.R);
                    ComboMenu.Add("UBAddons.Twitch.R.OutRange", new CheckBox("Use R if target out of R Range"));
                    ComboMenu.CreatSlotHitSlider(SpellSlot.R, 3, 1, 5);
                    ComboMenu.AddLabel("Only Use R out range if 90% can kill enemy");
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "Settings your harass below");
                {
                    HarassMenu.CreatSlotCheckBox(SpellSlot.E);
                    HarassMenu.CreatManaLimit();
                    HarassMenu.CreatHarassKeyBind();
                }
                #endregion

                #region LaneClear
                LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "Settings your laneclear below");
                {
                    LaneClearMenu.CreatLaneClearOpening();
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.W, 5, 1, 10);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10);
                    LaneClearMenu.CreatManaLimit();
                }
                #endregion

                #region JungleClear
                JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.E);
                    JungleClearMenu.CreatManaLimit();
                }
                #endregion

                #region LastHit
                LastHitMenu = Menu.AddSubMenu("Lasthit", "UBAddons.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below");
                {
                    LastHitMenu.CreatLasthitOpening();
                    LastHitMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    LastHitMenu.CreatManaLimit();
                }
                #endregion

                #region Misc
                MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "Settings your misc below");
                {
                    MiscMenu.AddGroupLabel("Anti Gapcloser settings");
                    MiscMenu.CreatMiscGapCloser();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser");
                }
                #endregion

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings", "UBAddons.Drawings" + player.Hero, "Settings your drawings below");
                {
                    DrawMenu.CreatDrawingOpening();
                    DrawMenu.Add("UBAddons.Twitch.Passive.Draw", new ComboBox("Draw Time Passive", 2, "Disable", "Circular", "Line", "Number"));
                    DrawMenu.Add("UBAddons.Twitch.Passive.ColorPicker", new ColorPicker("Dagger Color", ColorReader.Load("UBAddons.Twitch.Passive.ColorPicker", Color.GreenYellow)));
                    DrawMenu.CreatColorPicker(SpellSlot.W);
                    DrawMenu.CreatColorPicker(SpellSlot.E);
                    DrawMenu.CreatColorPicker(SpellSlot.R);
                    DrawMenu.CreatColorPicker(SpellSlot.Unknown);
                }
                #endregion

                DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg);
            }
            catch (Exception exception)
            {
                Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }
예제 #2
0
        static CoreMenu()
        {
            try
            {
                Core = MainMenu.AddMenu("UBAddons", "UBAddons.Core", "Core of UBAddons");
                Core.AddGroupLabel("UBAddons - version " + typeof(CoreMenu).Assembly.GetName().Version.ToString());
                Core.AddLabel("Made by Uzumaki Boruto. ~Dattebasa~");
                Core.AddGroupLabel("Inject Option");
                Core.Add("Core.Activator", new CheckBox("Inject Activator"));
                Core.Add("Core.BaseUlt", new CheckBox("Inject BaseUlt"));
                Core.Add("Core.AutoLv", new CheckBox("Inject Auto level up"));
                //Core.Add("Core.Surrender", new CheckBox("Inject Surrender Tracker", false)); this is no need
                if (Variables.IsADC)
                {
                    Core.Add("Core.Orbwalker", new CheckBox("Inject Extension for OrbWalker"));
                }
                Core.AddGroupLabel("FPS Protector");
                Core.Add("Core.Enable.FPS", new CheckBox("Enable FPS Protection"));
                Core.Add("Core.Min.FPS", new Slider("Min Fps", 45, 1, 300));
                Core.Add("Core.Calculate", new Slider("Calculations per second", 35, 1, 350));
                Core.AddGroupLabel("Global Settings");
                Core.AddLabel("Must F5 to take effect");
                var OnTickButton   = Core.Add("Core.OnTick", new CheckBox("Use Game.OnTick (More fps)"));
                var OnUpdateButton = Core.Add("Core.OnUpdate", new CheckBox("Use Game.OnUpdate (Faster rection)", false));
                OnUpdateButton.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        OnTickButton.CurrentValue = false;
                        return;
                    }
                    if (!OnTickButton.CurrentValue)
                    {
                        OnUpdateButton.CurrentValue = true;
                    }
                };
                OnTickButton.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        OnUpdateButton.CurrentValue = false;
                        return;
                    }
                    if (!OnUpdateButton.CurrentValue)
                    {
                        OnTickButton.CurrentValue = true;
                    }
                };

                if (UBAddons.PluginInstance != null)
                {
                    GapCloser = Core.AddSubMenu("GapCloser", "UBAddons.Core.GapCloser", "General GapCloser");
                    GapCloser.Add("UBAddons.Core.GapCloser.Melee", new CheckBox("Anti Melee Champ GapCloser"));
                    GapCloser.Add("UBAddons.Core.GapCloser.Flash", new CheckBox("Anti Flash GapCloser"));
                    GapCloser.Add("UBAddons.Core.GapCloser.Dash", new CheckBox("Anti Dash GapCloser"));

                    if (IplayEkko)
                    {
                        SpotJump = Core.AddSubMenu("Dash", "UBAddons.Core." + Player.Instance.Hero, "You're using " + Player.Instance.Hero);
                        {
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot", new CheckBox("Load Dash Spot"));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Range", new Slider("Range of Click", 75, 15, 150));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot.Draw", new CheckBox("Draw Dash Spot"));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot.Color", new ColorPicker("Spot Color", ColorReader.Load("UBAddons.Core." + Player.Instance.Hero + ".Spot.Color", System.Drawing.Color.Green)));
                            if (Game.MapId.Equals(GameMapId.SummonersRift) && SpotJump.VChecked("UBAddons.Core." + Player.Instance.Hero + ".Spot"))
                            {
                                UtilityPlugin.AddPlugin(EUtility.JumpSpot);
                            }
                        }
                    }
                    if (IplayVelkoz)
                    {
                        RDirect = Core.AddSubMenu("Direct", "UBAddons.Core.Velkoz", "You're using Velkoz");
                        {
                            RDirect.Add("UBAddons.Core.Velkoz.Change.Direct", new CheckBox("Auto Follow R"));
                            RDirect.Add("UBAddons.Core.Velkoz.Change.Direct.Only.Combo", new CheckBox("Combo Only"));
                        }
                        Interrupter.OnInterruptableSpell += delegate(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
                        {
                            if (sender.IsMe)
                            {
                                if (Player.Instance.Spellbook.IsChanneling)
                                {
                                    var target = Champions.Velkoz.Velkoz.R.GetTarget();
                                    if (target != null)
                                    {
                                        var screenPos = target.Position.WorldToScreen();
                                        System.Windows.Forms.Cursor.Position = new System.Drawing.Point((int)screenPos.X, (int)screenPos.Y);
                                    }
                                }
                            }
                        };
                    }
                    Obj_AI_Base.OnBasicAttack      += AIHeroClient_OnBasicAttack;
                    Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
                    Dash.OnDash += Dash_OnDash;
                }
                if (Core.VChecked("Core.Activator"))
                {
                    UtilityPlugin.AddPlugin(EUtility.Activator);
                }
                if (Core.VChecked("Core.BaseUlt"))
                {
                    UtilityPlugin.AddPlugin(EUtility.BaseUlt);
                }
                if (Core.VChecked("Core.AutoLv"))
                {
                    UtilityPlugin.AddPlugin(EUtility.AutoLv);
                }
                if (Variables.IsADC && Core.VChecked("Core.Orbwalker"))
                {
                    UtilityPlugin.AddPlugin(EUtility.ADOrbwalker);
                }
            }
            catch (Exception e)
            {
                Log.Debug.Print(e.ToString(), General.Console_Message.Error);
            }
        }
예제 #3
0
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.CreatSlotHitChance(SpellSlot.E);
                Menu.CreatSlotHitChance(SpellSlot.R);
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.CreatSlotComboBox(SpellSlot.W, 1, "Safe", "Damage");
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.R);
                    ComboMenu.AddGroupLabel("E Setting");
                    ComboMenu.Add("UBAddons.Katarina.E.Turret.Disabble", new CheckBox("Prevent E to turret"));
                    ComboMenu.Add("UBAddons.Katarina.E.Killable.Only", new CheckBox("Only E if killable"));
                    ComboMenu.Add("UBAddons.Katarina.E.Killable.Anyway", new CheckBox("E anyway if killable"));
                    ComboMenu.Add("UBAddons.Katarina.E.To.Minion", new CheckBox("E To Minion", false));
                    ComboMenu.Add("UBAddons.Katarina.E.To.Champ.Enemy", new CheckBox("E To Enemy Champ"));
                    ComboMenu.Add("UBAddons.Katarina.E.To.Champ.Ally", new CheckBox("E To Ally Champ"));
                    ComboMenu.Add("UBAddons.Katarina.E.To.Dagger", new CheckBox("E To Dagger"));
                    ComboMenu.Add("UBAddons.Katarina.E.Kill", new ComboBox("When one enemy killed, I want E to", 0, "Smart", "Unit near Cursor", "Next Target"));
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below");
                {
                    HarassMenu.CreatSlotCheckBox(SpellSlot.Q);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.W);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.E);
                    HarassMenu.CreatHarassKeyBind();
                }
                #endregion

                #region LaneClear
                LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below");
                {
                    LaneClearMenu.CreatLaneClearOpening();
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.W, 5, 1, 10);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10);
                }
                #endregion

                #region JungleClear
                JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.W);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                }
                #endregion

                #region Lasthit
                LasthitMenu = Menu.AddSubMenu("Lasthit", "UBAddons.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below");
                {
                    LasthitMenu.CreatLasthitOpening();
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.Q);
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                }
                #endregion

                #region Flee
                FleeMenu = Menu.AddSubMenu("Flee", "UBAddons.Flee" + player.Hero, "Setting your flee below");
                {
                    string BeginText = Variables.AddonName + "." + Player.Instance.Hero + ".";
                    FleeMenu.Add(BeginText + "E", new CheckBox("Use E for flee"));
                    FleeMenu.Add(BeginText + "E.ToDagger", new CheckBox("E to dagger"));
                    FleeMenu.Add(BeginText + "E.ToMinion", new CheckBox("E to minion"));
                    FleeMenu.Add(BeginText + "E.ToMonster", new CheckBox("E to monster"));
                    FleeMenu.Add(BeginText + "E.ToChamp", new CheckBox("E to champ"));
                    FleeMenu.Add(BeginText + "E.HP", new Slider("Min {0}% HP for E champ & monster", 15));
                }
                #endregion

                #region Misc
                MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "UB" + player.Hero + " - Settings your misc below");
                {
                    MiscMenu.AddGroupLabel("Anti Gapcloser settings");
                    MiscMenu.CreatMiscGapCloser();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser");
                    MiscMenu.AddGroupLabel("Interrupter settings");
                    MiscMenu.AddGroupLabel("Killsteal settings");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.E, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.R, "KillSteal");
                }
                #endregion

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings");
                {
                    DrawMenu.CreatDrawingOpening();
                    DrawMenu.Add("UBAddons.Katarina.Dagger.Draw", new ComboBox("Draw Time", 0, "Disable", "Circular", "Line", "Number"));
                    DrawMenu.Add("UBAddons.Katarina.Draw.Status", new CheckBox("Draw status"));
                    DrawMenu.Add("UBAddons.Katarina.Dagger.ColorPicker", new ColorPicker("Dagger Color", ColorReader.Load("UBAddons.Katarina.Dagger.ColorPicker", Color.GreenYellow)));
                    DrawMenu.CreatColorPicker(SpellSlot.Q);
                    DrawMenu.CreatColorPicker(SpellSlot.E);
                    DrawMenu.CreatColorPicker(SpellSlot.R);
                    DrawMenu.CreatColorPicker(SpellSlot.Unknown);
                }
                #endregion

                DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg);
            }
            catch (Exception exception)
            {
                Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }