コード例 #1
0
ファイル: Kalista.cs プロジェクト: hey101/EloBuddy-Addons
        private static void OnLoadingComplete(EventArgs args)
        {
            // Validate champion
            if (Player.Instance.Hero != Champion.Kalista)
            {
                return;
            }

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

            // Enable E damage indicators
            DamageIndicator.Initialize(Damages.GetRendDamage);
            DamageIndicator.DrawingColor = System.Drawing.Color.Goldenrod;

            //Initialize Jump Spot
            WallJump.InitSpots();

            // Listen to some required events
            Drawing.OnDraw         += OnDraw;
            Spellbook.OnCastSpell  += OnCastSpell;
            Orbwalker.OnPostAttack += OnPostAttack;
            Game.OnPostTick        += delegate { IsAfterAttack = false; };
        }
コード例 #2
0
ファイル: Config.cs プロジェクト: hey101/EloBuddy-Addons
                static Sentinel()
                {
                    Menu.AddGroupLabel("Sentinel (W) usage");

                    if (Game.MapId != GameMapId.SummonersRift)
                    {
                        Menu.AddLabel("Only on Summoners Rift, sorry.");
                    }
                    else
                    {
                        _enabled = Menu.Add("enabled", new CheckBox("Enabled"));
                        _noMode  = Menu.Add("noMode", new CheckBox("Only use when no mode active"));
                        _alert   = Menu.Add("alert", new CheckBox("Alert when sentinel is taking damage"));
                        _mana    = Menu.Add("mana", new Slider("Minimum mana available when casting W ({0}%)", 40));

                        Menu.AddLabel("Send to the following locations (no specific order):");
                        (_baron = Menu.Add("baron", new CheckBox("Baron (stuck bug usage)"))).OnValueChange    += OnValueChange;
                        (_dragon = Menu.Add("dragon", new CheckBox("Dragon (stuck bug usage)"))).OnValueChange += OnValueChange;
                        (_mid = Menu.Add("mid", new CheckBox("Mid lane brush"))).OnValueChange += OnValueChange;
                        (_blue = Menu.Add("blue", new CheckBox("Blue buff"))).OnValueChange    += OnValueChange;
                        (_red = Menu.Add("red", new CheckBox("Red buff"))).OnValueChange       += OnValueChange;
                        SentinelManager.RecalculateOpenLocations();
                    }
                }
コード例 #3
0
                static Sentinel()
                {
                    Menu.AddGroupLabel("Baron,Ejder Bugu Kullan");

                    if (Game.MapId != GameMapId.SummonersRift)
                    {
                        Menu.AddLabel("Sadece Sihirdar Vadisinde Üzgünüz");
                    }
                    else
                    {
                        _enabled = Menu.Add("enabled", new CheckBox("Aktif"));
                        _noMode  = Menu.Add("noMode", new CheckBox("Sadece aktif mod yokken"));
                        _alert   = Menu.Add("alert", new CheckBox("Gözcü Hasar alırsa ping ver"));
                        _mana    = Menu.Add("mana", new Slider("W kullanmak için şu kadar mana gerekli ({0}%)", 40));

                        Menu.AddLabel("Gönderdiğin yerleri kontrol et:");
                        (_baron = Menu.Add("baron", new CheckBox("Baron"))).OnValueChange    += OnValueChange;
                        (_dragon = Menu.Add("dragon", new CheckBox("Ejder"))).OnValueChange  += OnValueChange;
                        (_mid = Menu.Add("mid", new CheckBox("Mide Yolla"))).OnValueChange   += OnValueChange;
                        (_blue = Menu.Add("blue", new CheckBox("Blue Yolla"))).OnValueChange += OnValueChange;
                        (_red = Menu.Add("red", new CheckBox("Red Yolla"))).OnValueChange    += OnValueChange;
                        SentinelManager.RecalculateOpenLocations();
                    }
                }
コード例 #4
0
                static Sentinel()
                {
                    Menu.AddGroupLabel("使用灵魂哨兵 (W)");

                    if (Game.MapId != GameMapId.SummonersRift)
                    {
                        Menu.AddLabel("对不起,只支持召唤峡谷.");
                    }
                    else
                    {
                        _enabled = Menu.Add("enabled", new CheckBox("启用"));
                        _noMode  = Menu.Add("noMode", new CheckBox("只会在无模式下使用"));
                        _alert   = Menu.Add("alert", new CheckBox("哨兵受到伤害是警告"));
                        _mana    = Menu.Add("mana", new Slider("至少有({0}% 使用 W )", 40));

                        Menu.AddLabel("发送至一以下地点 (无特定顺序):");
                        (_baron = Menu.Add("baron", new CheckBox("男爵 (会使用卡男爵池BUG)"))).OnValueChange  += OnValueChange;
                        (_dragon = Menu.Add("dragon", new CheckBox("小龙 (会使用卡龙池BUG)"))).OnValueChange += OnValueChange;
                        (_mid = Menu.Add("mid", new CheckBox("中路草丛"))).OnValueChange    += OnValueChange;
                        (_blue = Menu.Add("blue", new CheckBox("蓝爸爸草丛"))).OnValueChange += OnValueChange;
                        (_red = Menu.Add("red", new CheckBox("红妈妈草丛"))).OnValueChange   += OnValueChange;
                        SentinelManager.RecalculateOpenLocations();
                    }
                }
コード例 #5
0
ファイル: Config.cs プロジェクト: tekintr/Elobuddy
                static Sentinel()
                {
                    Menu.AddGroupLabel("Sentinel (W) usage");

                    if (Game.MapId != GameMapId.SummonersRift)
                    {
                        Menu.AddLabel("Only on Summoners Rift, sorry.");
                    }
                    else
                    {
                        _enabled = Menu.Add("enabled", new CheckBox("Etkin"));
                        _noMode  = Menu.Add("noMode", new CheckBox("Yalnizca etkin mod yokken kullanin"));
                        _alert   = Menu.Add("alert", new CheckBox("Muhafizlar hasar aldiginda uyari yap"));
                        _mana    = Menu.Add("mana", new Slider("Kullanmak icin gereken mana W ({0}%)", 40));

                        Menu.AddLabel("Send to the following locations (no specific order):");
                        (_baron = Menu.Add("baron", new CheckBox("Baron (W bugu kullan)"))).OnValueChange    += OnValueChange;
                        (_dragon = Menu.Add("dragon", new CheckBox("Dragon (W bugu kullan)"))).OnValueChange += OnValueChange;
                        (_mid = Menu.Add("mid", new CheckBox("Mid lane brush"))).OnValueChange += OnValueChange;
                        (_blue = Menu.Add("blue", new CheckBox("Mavi buff"))).OnValueChange    += OnValueChange;
                        (_red = Menu.Add("red", new CheckBox("Kirmisi buff"))).OnValueChange   += OnValueChange;
                        SentinelManager.RecalculateOpenLocations();
                    }
                }
コード例 #6
0
ファイル: Config.cs プロジェクト: hey101/EloBuddy-Addons
 private static void OnValueChange(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
 {
     SentinelManager.RecalculateOpenLocations();
 }