Skip to content

Commit

Permalink
Merge pull request #978 from Tharylia/fix/details-button-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
dlamkins authored Aug 29, 2024
2 parents 5ee820e + 3b8c4b1 commit e3e7b91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blish HUD/Controls/DetailsButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class DetailsButton : FlowPanel {

#region Textures

private readonly AsyncTexture2D _textureFillCrest = AsyncTexture2D.FromAssetId(605004);
private readonly AsyncTexture2D _textureFillCrest = Content.GetTexture(@"controls/detailsbutton/605004");
private readonly AsyncTexture2D _textureVignette = AsyncTexture2D.FromAssetId(605003);
private readonly AsyncTexture2D _textureCornerButton = AsyncTexture2D.FromAssetId(605011);
private readonly AsyncTexture2D _textureBottomSectionSeparator = AsyncTexture2D.FromAssetId(157218);
Expand Down Expand Up @@ -342,7 +342,7 @@ public override void PaintBeforeChildren(SpriteBatch spriteBatch, Rectangle boun

// Only show the fill crest if we aren't full
if (fillPercent < 0.99)
spriteBatch.DrawOnCtrl(this, _textureFillCrest, new Rectangle(0, iconSize - (int) (fillSpace), iconSize, iconSize));
spriteBatch.DrawOnCtrl(this, _textureFillCrest, new Rectangle(0, iconSize - (int) (fillSpace), iconSize, (int)fillSpace));
}

if (_showFillFraction)
Expand Down
Binary file removed Blish HUD/ref/controls/detailsbutton/605003.png
Binary file not shown.
Binary file removed Blish HUD/ref/controls/detailsbutton/605011.png
Binary file not shown.

0 comments on commit e3e7b91

Please sign in to comment.