Ejemplo n.º 1
0
        private static void DrawShootTime(int x, int y, int bonus, Recall recall)
        {
            if (!recall.GetsBaseUlted)
            {
                return;
            }

            var percentage     = recall.BaseUltArriveTimePercentComplete;
            var startBarVector = new Vector2(x + 80 + (170 * (percentage / 100)), y + bonus + 33);
            var endBarVector   = new Vector2(x + 80 + (170 * (percentage / 100 - 0.02f)), y + bonus + 33);

            Line.DrawLine(Color.Red, 10,
                          startBarVector,
                          endBarVector);
        }
Ejemplo n.º 2
0
        private static void DrawShootTime(int x, int y, int bonus, Recall recall)
        {
            if (!recall.GetsBaseUlted)
                return;

            var percentage = recall.BaseUltArriveTimePercentComplete;
            var startBarVector = new Vector2(x + 80 + (170*(percentage/100)), y + bonus + 33);
            var endBarVector = new Vector2(x + 80 + (170 * (percentage / 100 - 0.02f)), y + bonus + 33);

            Line.DrawLine(Color.Red, 10,
                                startBarVector,
                                endBarVector);
        }