Пример #1
0
        public void DrawOnEnd(EventArgs args)
        {
            if (_turnOff.CurrentValue)
            {
                return;
            }

            var x = _xPos.CurrentValue;
            var y = _yPos.CurrentValue;

            var bonus = 0;

            foreach (var recall in Recalls.ToList())
            {
                Line.DrawLine(Color.GhostWhite, 18, new Vector2(x + 20, y + bonus + 33), new Vector2(x + 250, y + bonus + 33));

                Line.DrawLine(recall.IsAborted ? Color.DarkRed : BarColor(recall.PercentComplete()), 18,
                              new Vector2(x + 20, y + bonus + 33),
                              new Vector2(x + 20 + 230 * (recall.PercentComplete() / 100), y + bonus + 33));

                //Line.DrawLine(Color.Red, 18, new Vector2(x + 180, y + bonus + 33), new Vector2(x + 182, y + bonus + 33));

                _Font.DrawText(null, recall.Unit.ChampionName, x + 25, y + bonus + 23, SharpDX.Color.Black);
                _FontNumber.DrawText(null, recall.PercentComplete() + "% ", x + 203, y + bonus + 24, SharpDX.Color.Black);


                if (recall.ExpireTime < Environment.TickCount && Recalls.Contains(recall))
                {
                    Recalls.Remove(recall);
                }
                bonus += 35;
            }
        }
Пример #2
0
        private static void Drawing_OnEndScene(EventArgs args)
        {
            foreach (
                var enemy in
                EntityManager.Heroes.Enemies.Where(e => e.IsValid && e.IsHPBarRendered && e.TotalShieldHealth() > 10)
                )
            {
                var damage = enemy.GetTotalDamage();
                if (MyMenu.DrawMenu.GetCheckBoxValue("damageColorBox"))
                {
                    //Drawing Line Over Enemies Helth bar
                    var dmgPer = (enemy.TotalShieldHealth() - damage > 0 ? enemy.TotalShieldHealth() - damage : 0) /
                                 enemy.TotalShieldMaxHealth();
                    var currentHPPer = enemy.TotalShieldHealth() / enemy.TotalShieldMaxHealth();
                    var initPoint    = new Vector2((int)(enemy.HPBarPosition.X + XOff + dmgPer * Width),
                                                   (int)enemy.HPBarPosition.Y + YOff);
                    var endPoint = new Vector2((int)(enemy.HPBarPosition.X + XOff + currentHPPer * Width) + 1,
                                               (int)enemy.HPBarPosition.Y + YOff);

                    var colour = MyMenu.DamageIndicatorColor.CurrentColor;
                    Line.DrawLine(colour, Thick, initPoint, endPoint);
                }

                if (MyMenu.DrawMenu.GetCheckBoxValue("statDraw"))
                {
                    //Statistics
                    var posXStat = (int)enemy.HPBarPosition[0] - 46;
                    var posYStat = (int)enemy.HPBarPosition[1] + 12;
                    var mathStat = " - " + Math.Round(damage) + " / " +
                                   Math.Round(enemy.Health - damage);
                    _Font2.DrawText(null, mathStat, posXStat, posYStat, MyMenu.DamageIndicatorColor.CurrentColor.ToSharpDX());
                }

                if (MyMenu.DrawMenu.GetCheckBoxValue("perDraw"))
                {
                    //Percent
                    var posXPer = (int)enemy.HPBarPosition[0] - 28;
                    var posYPer = (int)enemy.HPBarPosition[1];
                    _Font.DrawText(null, string.Concat(Math.Ceiling((int)damage / enemy.TotalShieldHealth() * 100), "%"),
                                   posXPer, posYPer, MyMenu.DamageIndicatorColor.CurrentColor.ToSharpDX());
                }
            }
        }
Пример #3
0
        private static void Drawing_OnEndScene(EventArgs args)
        {
            foreach (
                var enemy in
                EntityManager.Heroes.Enemies.Where(e => e.IsValid && e.IsHPBarRendered && (e.TotalShieldHealth() > 10))
                )
            {
                var damage = enemy.GetTotalDamage();

                if (Menus.DrawingsMenu["damageDraw"].Cast <CheckBox>().CurrentValue)
                {
                    var dmgPer = (enemy.TotalShieldHealth() - damage > 0 ? enemy.TotalShieldHealth() - damage : 0) /
                                 enemy.TotalShieldMaxHealth();
                    var currentHPPer = enemy.TotalShieldHealth() / enemy.TotalShieldMaxHealth();
                    var initPoint    = new Vector2((int)(enemy.HPBarPosition.X + XOff + dmgPer * Width),
                                                   (int)enemy.HPBarPosition.Y + YOff);
                    var endPoint = new Vector2((int)(enemy.HPBarPosition.X + XOff + currentHPPer * Width) + 1,
                                               (int)enemy.HPBarPosition.Y + YOff);

                    var colour = Color.FromArgb(180, Menus.DamageIndicatorColorSlide.GetSystemColor());
                    Line.DrawLine(colour, Thick, initPoint, endPoint);
                }

                if (Menus.DrawingsMenu["statDraw"].Cast <CheckBox>().CurrentValue)
                {
                    //Statistics
                    var posXStat = (int)enemy.HPBarPosition[0] - 46;
                    var posYStat = (int)enemy.HPBarPosition[1] + 12;
                    var mathStat = "- " + Math.Round(damage) + " / " +
                                   Math.Round(enemy.Health - damage);
                    _Font2.DrawText(null, mathStat, posXStat, posYStat, Menus.DamageIndicatorColorSlide.GetSharpColor());
                }

                if (Menus.DrawingsMenu["perDraw"].Cast <CheckBox>().CurrentValue)
                {
                    //Percent
                    var posXPer = (int)enemy.HPBarPosition[0] - 28;
                    var posYPer = (int)enemy.HPBarPosition[1];
                    _Font.DrawText(null, string.Concat(Math.Ceiling((int)damage / enemy.TotalShieldHealth() * 100), "%"),
                                   posXPer, posYPer, Menus.DamageIndicatorColorSlide.GetSharpColor());
                }
            }
        }
Пример #4
0
        public static void DrawOnEnd(EventArgs args)
        {
            if (Settings.TurnOff)
            {
                return;
            }

            var x = (int)(Drawing.Width * 0.8475 - Settings.XPos);
            var y = (int)(Drawing.Height * 0.1 + Settings.YPos);

            var bonus = 0;

            foreach (var recall in Recalls.ToList())
            {
                Line.DrawLine(Color.GhostWhite, 5, new Vector2(x + 20, y + bonus + 33), new Vector2(x + 250, y + bonus + 33));

                Line.DrawLine(recall.IsAborted ? Color.DarkRed : BarColor(recall.PercentComplete()), 5,
                              new Vector2(x + 20, y + bonus + 33),
                              new Vector2(x + 20 + 230 * (recall.PercentComplete() / 100), y + bonus + 33));

                //Line.DrawLine(Color.Red, 18, new Vector2(x + 180, y + bonus + 33), new Vector2(x + 182, y + bonus + 33));

                _Font.DrawText(null, recall.Unit.ChampionName, x - 35, y + bonus + 23, SharpDX.Color.White);
                _FontNumber.DrawText(null, recall.PercentComplete() + "%", x + 203, y + bonus + 14, SharpDX.Color.White);


                if (recall.ExpireTime < Environment.TickCount && Recalls.Contains(recall))
                {
                    Recalls.Remove(recall);
                    if (_finish)
                    {
                        int    colorIndex = (int)((recall.Unit.HealthPercent / 100) * 255);
                        string color      = (255 - colorIndex).ToString("X2") + colorIndex.ToString("X2") + "00";
                        Notify(recall.Unit.ChampionName + " has recalled with <font color='#" + color + "'>" + (int)recall.Unit.HealthPercent + "&#37; HP</font>");
                    }
                }
                bonus += 35;
            }
        }