Beispiel #1
0
        /// <summary>
        ///     Fill HP Bar
        /// </summary>
        /// <param name="from"></param>
        /// <param name="to"></param>
        /// <param name="color">The Color</param>
        private void FillHpBar(Vector2 from, Vector2 to, ColorBGRA color)
        {
            DxLine.Begin();

            DxLine.Draw(
                new[] { new Vector2((int)from.X, (int)from.Y + 4f), new Vector2((int)to.X, (int)to.Y + 4f) },
                color);

            DxLine.End();
        }