Exemple #1
0
        public static void RecallBarDraw(this Program.EnemyInfo enemy)
        {
            Rect(X + X2, Y + Y2, Width, Height, 1, Color.White);
            var c = Color.White;

            if (enemy.CountDown() >= enemy.Enemy.traveltime())
            {
                c = Color.White;
                if (enemy.Enemy.Killable())
                {
                    c = Color.Red;
                    Drawing.DrawLine((X + 450) + X2 + Scale * enemy.Enemy.traveltime() - 1, Y + Y2 + 7, (X + 450) + X2 + Scale * enemy.Enemy.traveltime(), Y + Y2 - 11, 3, c);
                }
            }
            Drawing.DrawText((X + 450) + X2 + Scale * enemy.CountDown() - 1, Y + Y2 - 30, c, "(" + (int)enemy.Enemy.HealthPercent + "%)" + enemy.Enemy.BaseSkinName);
            Drawing.DrawLine((X + 450) + X2 + Scale * enemy.CountDown() - 1, Y + Y2 + 7, (X + 450) + X2 + Scale * enemy.CountDown(), Y + Y2 - 11, 3, c);
        }
Exemple #2
0
        public static void RecallBarDraw(this Program.EnemyInfo enemy)
        {
            Rect(X + X2, Y + Y2, Width, Height, 3, Color.White);
            var c = Color.White;

            if (enemy.CountDown() >= enemy.Enemy.traveltime())
            {
                c = Color.White;
                if (enemy.Enemy.Killable())
                {
                    c = Color.Red;
                    Drawing.DrawLine(startpoint.X, startpoint.Y - Scale * enemy.Enemy.traveltime() - 3, startpoint.X - 20, startpoint.Y - Scale * enemy.Enemy.traveltime() - 3, 3, c);
                }
            }
            var text       = "(" + (int)enemy.Enemy.GetDamage() + "|" + (int)enemy.Enemy.Health + ")" + enemy.Enemy.BaseSkinName;
            var textlength = text.Length * 9;

            Drawing.DrawText(startpoint.X - textlength, startpoint.Y - Scale * enemy.CountDown() - 10, c, text);

            var linex = startpoint.X - 20;
            var liney = startpoint.Y - Scale * enemy.CountDown() - 3;

            Drawing.DrawLine(linex + 20, liney, linex, liney, 3, c);
        }