/// <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(); }
/// <summary> /// On Post Reset /// </summary> /// <param name="args">The Args</param> private static void OnPostReset(EventArgs args) { DxLine.OnResetDevice(); }
/// <summary> /// On Pre Reset /// </summary> /// <param name="args">The Args</param> private static void OnPreReset(EventArgs args) { DxLine.OnLostDevice(); }
/// <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(); }