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();
        }
Beispiel #2
0
 /// <summary>
 ///     On Post Reset
 /// </summary>
 /// <param name="args">The Args</param>
 private static void OnPostReset(EventArgs args)
 {
     DxLine.OnResetDevice();
 }
Beispiel #3
0
 /// <summary>
 ///     On Pre Reset
 /// </summary>
 /// <param name="args">The Args</param>
 private static void OnPreReset(EventArgs args)
 {
     DxLine.OnLostDevice();
 }
Beispiel #4
0
 /// <summary>
 ///     On Domain Unload
 /// </summary>
 /// <param name="sender">The Sender</param>
 /// <param name="eventArgs">The Args</param>
 private static void OnDomainUnload(object sender, EventArgs eventArgs)
 {
     DxLine.Dispose();
 }