Пример #1
0
        /*Credit Eox*/
        private static void HcMenu_ValueChanged(MenuComponent sender, ValueChangedArgs args)
        {
            if (args.InternalName == "qHit")
            {
                _q.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }

            if (args.InternalName == "wHit")
            {
                _w.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }
        }
Пример #2
0
 private void ResetKey_OnValueChanged(MenuComponent sender, ValueChangedArgs args)
 {
     if (!args.GetNewValue <MenuKeyBind>().Enabled)
     {
         this.SelectedTarget = null;
     }
 }
Пример #3
0
        private void OnSpellHeroChange(MenuComponent sender, ValueChangedArgs args)
        {
            //var previousHeroStr = e.GetOldValue<MenuList>().SelectedValue;
            var selectedHeroStr  = args.GetNewValue <MenuList>().SelectedItem;
            var selectedHero     = spellCache[selectedHeroStr];
            var selectedHeroList = selectedHero.Keys.ToArray();

            selectSpellMenu["DummySpellList"].As <MenuList>().Items = selectedHeroList;
        }
Пример #4
0
 private void TapKey_ValueChanged(MenuComponent sender, ValueChangedArgs args)
 {
     if (CurrentRMode == RMode.OnTap && this.UltimateTracker.CastingUltimate && R.Ready)
     {
         if (args.GetNewValue <MenuKeyBind>().Value)
         {
             CastR(RMode.OnTap);
         }
     }
 }
Пример #5
0
        private void HcMenu_ValueChanged(MenuComponent sender, ValueChangedArgs args)
        {
            if (args.InternalName == "hcQ")
            {
                this.Q.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }

            if (args.InternalName == "hcW")
            {
                this.W.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }

            if (args.InternalName == "hcE")
            {
                this.E.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }

            if (args.InternalName == "hcR")
            {
                this.R.HitChance = (HitChance)args.GetNewValue <MenuList>().Value + 3;
            }
        }
Пример #6
0
        private void AllyJunglerMenuChanged(MenuComponent sender, ValueChangedArgs args)
        {
            if (!args.GetNewValue <MenuBool>().Value)
            {
                return;
            }

            _allyJunglerMenu.Value = false;

            var index = _junglerMenuIndex % GameObjects.AllyHeroes.Count();

            _allyJungler = GameObjects.AllyHeroes.Skip(index).FirstOrDefault();
            _allyJunglerMenu.DisplayName = $"Ally Jungler: {_allyJungler?.ChampionName ?? "None"}";
            _junglerMenuIndex++;
        }
Пример #7
0
        private void OnIsDisabledValueChanged(MenuComponent sender, ValueChangedArgs args)
        {
            if (args.GetNewValue <MenuBool>().Enabled)
            {
                Console.WriteLine("SUBSCRIBED");
                Game.OnUpdate            += OnUpdate;
                Global.Orbwalker.PreMove += OnPreMove;
            }
            else
            {
                Console.WriteLine("DE-SUBSCRIBED");
                Game.OnUpdate            -= OnUpdate;
                Global.Orbwalker.PreMove -= OnPreMove;

                KeyManager.ClearKeys();
            }
        }
Пример #8
0
        private static void OnEvadeModeChange(MenuComponent sender, ValueChangedArgs e)
        {
            var mode = e.GetNewValue <MenuList>().SelectedItem;

            switch (mode)
            {
            case "Fastest":
                Menu["FastMovementBlock"].As <MenuBool>().Value         = true;
                Menu["FastEvadeActivationTime"].As <MenuSlider>().Value = 120;
                Menu["RejectMinDistance"].As <MenuSlider>().Value       = 25;
                Menu["ExtraCPADistance"].As <MenuSlider>().Value        = 25;
                Menu["ExtraPingBuffer"].As <MenuSlider>().Value         = 80;
                Menu["TickLimiter"].As <MenuSlider>().Value             = 100;
                Menu["SpellDetectionTime"].As <MenuSlider>().Value      = 0;
                Menu["ReactionTime"].As <MenuSlider>().Value            = 0;
                Menu["DodgeInterval"].As <MenuSlider>().Value           = 0;
                break;

            case "Very Smooth":
                Menu["FastEvadeActivationTime"].As <MenuSlider>().Value = 0;
                Menu["RejectMinDistance"].As <MenuSlider>().Value       = 0;
                Menu["ExtraCPADistance"].As <MenuSlider>().Value        = 0;
                Menu["ExtraPingBuffer"].As <MenuSlider>().Value         = 40;
                break;

            case "Smooth":
                Menu["FastMovementBlock"].As <MenuBool>().Value         = true;
                Menu["FastEvadeActivationTime"].As <MenuSlider>().Value = 65;
                Menu["RejectMinDistance"].As <MenuSlider>().Value       = 10;
                Menu["ExtraCPADistance"].As <MenuSlider>().Value        = 10;
                Menu["ExtraPingBuffer"].As <MenuSlider>().Value         = 65;
                break;

            case "Hawk":
                Menu["DodgeDangerous"].As <MenuBool>().Value            = false;
                Menu["DodgeFOWSpells"].As <MenuBool>().Value            = false;
                Menu["DodgeCircularSpells"].As <MenuBool>().Value       = false;
                Menu["DodgeDangerousKeyEnabled"].As <MenuBool>().Value  = true;
                Menu["HigherPrecision"].As <MenuBool>().Value           = true;
                Menu["RecalculatePosition"].As <MenuBool>().Value       = true;
                Menu["ContinueMovement"].As <MenuBool>().Value          = true;
                Menu["CalculateWindupDelay"].As <MenuBool>().Value      = true;
                Menu["CheckSpellCollision"].As <MenuBool>().Value       = true;
                Menu["PreventDodgingUnderTower"].As <MenuBool>().Value  = false;
                Menu["PreventDodgingNearEnemy"].As <MenuBool>().Value   = true;
                Menu["AdvancedSpellDetection"].As <MenuBool>().Value    = true;
                Menu["ClickOnlyOnce"].As <MenuBool>().Value             = true;
                Menu["EnableEvadeDistance"].As <MenuBool>().Value       = true;
                Menu["TickLimiter"].As <MenuSlider>().Value             = 200;
                Menu["SpellDetectionTime"].As <MenuSlider>().Value      = 375;
                Menu["ReactionTime"].As <MenuSlider>().Value            = 285;
                Menu["DodgeInterval"].As <MenuSlider>().Value           = 235;
                Menu["FastEvadeActivationTime"].As <MenuSlider>().Value = 0;
                Menu["SpellActivationTime"].As <MenuSlider>().Value     = 200;
                Menu["RejectMinDistance"].As <MenuSlider>().Value       = 0;
                Menu["ExtraPingBuffer"].As <MenuSlider>().Value         = 65;
                Menu["ExtraCPADistance"].As <MenuSlider>().Value        = 0;
                Menu["ExtraSpellRadius"].As <MenuSlider>().Value        = 0;
                Menu["ExtraEvadeDistance"].As <MenuSlider>().Value      = 200;
                Menu["ExtraAvoidDistance"].As <MenuSlider>().Value      = 200;
                Menu["MinComfortZone"].As <MenuSlider>().Value          = 550;
                break;

            case "Kurisu":
                Menu["DodgeFOWSpells"].As <MenuBool>().Value           = false;
                Menu["DodgeDangerousKeyEnabled"].As <MenuBool>().Value = true;
                Menu["RecalculatePosition"].As <MenuBool>().Value      = true;
                Menu["ContinueMovement"].As <MenuBool>().Value         = true;
                Menu["CalculateWindupDelay"].As <MenuBool>().Value     = true;
                Menu["PreventDodgingUnderTower"].As <MenuBool>().Value = true;
                Menu["PreventDodgingNearEnemy"].As <MenuBool>().Value  = true;
                Menu["MinComfortZone"].As <MenuSlider>().Value         = 850;
                break;

            case "GuessWho":
                Menu["DodgeDangerousKeyEnabled"].As <MenuBool>().Value = true;
                Menu["HigherPrecision"].As <MenuBool>().Value          = true;
                Menu["CheckSpellCollision"].As <MenuBool>().Value      = true;
                Menu["PreventDodgingUnderTower"].As <MenuBool>().Value = true;
                Menu["ShowStatus"].As <MenuBool>().Value   = false;
                Menu["DrawSpellPos"].As <MenuBool>().Value = true;
                break;
            }
        }