Ejemplo n.º 1
0
        public static void OnLoad(EventArgs args)
        {
            // Validate champion
            if (HeroManager.Player.ChampionName != "Kalista")
            {
                return;
            }

            // Initialize classes
            Config.Initialize();
            SoulBoundSaver.Initialize();
            ModeLogic.Initialize();
            SentinelManager.Initialize();

            // Enable E damage indicators
            //DamageIndicator.Initialize(Damages.GetRendDamage);
            CNLib.DamageIndicator.Enabled      = true;
            CNLib.DamageIndicator.Fill         = true;
            CNLib.DamageIndicator.DamageToUnit = Damages.GetRendDamage;

            // Listen to some required events
            Drawing.OnDraw        += OnDraw;
            Spellbook.OnCastSpell += OnCastSpell;
            Orbwalking.OnAttack   += OnPostAttack;
            //Game.OnPostTick += delegate { IsAfterAttack = false; };
        }
Ejemplo n.º 2
0
            static Sentinel()
            {
                if (Game.MapId == GameMapId.SummonersRift)
                {
                    var SentinelMenu = Menu.AddMenu("Sentinel", "哨兵选项");
                    SentinelMenu.AddLabel("哨兵 (W) 设置");
                    SentinelMenu.AddBool("enabled", "启用", true);
                    SentinelMenu.AddBool("noMode", "只在没有攻击模式时使用", true);
                    SentinelMenu.AddBool("alert", "哨兵被攻击时提示", true);
                    SentinelMenu.AddSlider("mana", "使用W最少蓝量%", 40);
                    SentinelMenu.AddSeparator();

                    SentinelMenu.AddLabel("查看以下位置");
                    SentinelMenu.AddBool("baron", "大龙 (卡BUG)", false).ValueChanged  += OnValueChange;
                    SentinelMenu.AddBool("dragon", "小龙 (卡BUG)", false).ValueChanged += OnValueChange;
                    SentinelMenu.AddBool("mid", "中路草丛", true).ValueChanged          += OnValueChange;
                    SentinelMenu.AddBool("blue", "蓝buff", true).ValueChanged        += OnValueChange;
                    SentinelMenu.AddBool("red", "红buff", true).ValueChanged         += OnValueChange;
                    SentinelManager.RecalculateOpenLocations();
                }
            }
Ejemplo n.º 3
0
 private static void OnValueChange(object sender, OnValueChangeEventArgs e)
 {
     SentinelManager.RecalculateOpenLocations();
 }