From 891c84cd0f70ec74d19c186d25312fb7070841ac Mon Sep 17 00:00:00 2001 From: Tharylia <41393569+Tharylia@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:46:30 +0200 Subject: [PATCH 1/3] Draw only current fill height --- Blish HUD/Controls/DetailsButton.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blish HUD/Controls/DetailsButton.cs b/Blish HUD/Controls/DetailsButton.cs index 7388cb93a..a4f3cc384 100644 --- a/Blish HUD/Controls/DetailsButton.cs +++ b/Blish HUD/Controls/DetailsButton.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.Linq; using Blish_HUD.Controls.Effects; @@ -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) From 186ed8979814b6b2f8ac8df47b1b9ccc06ba8f2b Mon Sep 17 00:00:00 2001 From: Tharylia <41393569+Tharylia@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:46:54 +0200 Subject: [PATCH 2/3] Revert back to custom texture with added transparency --- Blish HUD/Controls/DetailsButton.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blish HUD/Controls/DetailsButton.cs b/Blish HUD/Controls/DetailsButton.cs index a4f3cc384..351c765b5 100644 --- a/Blish HUD/Controls/DetailsButton.cs +++ b/Blish HUD/Controls/DetailsButton.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ComponentModel; using System.Linq; using Blish_HUD.Controls.Effects; @@ -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); From 3b8c4b1b3ccf63cba2c6b58857689dbef97e004c Mon Sep 17 00:00:00 2001 From: Tharylia <41393569+Tharylia@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:47:11 +0200 Subject: [PATCH 3/3] Remove unused details button textures --- Blish HUD/ref/controls/detailsbutton/605003.png | Bin 883 -> 0 bytes Blish HUD/ref/controls/detailsbutton/605011.png | Bin 1213 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Blish HUD/ref/controls/detailsbutton/605003.png delete mode 100644 Blish HUD/ref/controls/detailsbutton/605011.png diff --git a/Blish HUD/ref/controls/detailsbutton/605003.png b/Blish HUD/ref/controls/detailsbutton/605003.png deleted file mode 100644 index 8a8e97a7c2fda017a81e11913f61fcf8032333c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 883 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I0wfs{c7_5;mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VX;-`;;_Kaj^> z;_2(k{*;}cUrZn?moE}1U+wAQ7?N@C?997;mkk73?fqjNxLuw8ti83w^I@rg|Ec1F z?g=~cFSWU9HwtJ8o!+)_=Ze`&Zo2Fiy6yKoZHiBhe6?Eov2BTrM|3LrQkKLp89(c} zaq95`dDdEAH?AoRDL#xRDuw6$pEO}|!ih!}`CGB9v0;DfSk>D4MMOkuxY;i*4{KfR~XFyfIx&AluI zTVtbgmK$srQstYUs!wZTy}ss~ok_#-2Oq0@eHl`}u^H+b>^uC-d4AL59&VlZiu6WS zhSgd=eTqU&)mkr3IY}P~*-#y`+8n6a4uZGp?0)}4?3d`{zeArM%`WVj*8xl(zt{6BLU z1&*C2O-`;$LT}1O3$0DLqOd4_Pnz?}11zG#dZKmCc|jZfj83VZiO*&gdMK*um-r)B z??%SX1rxayg4S?K`>Y5P-T#E0Us5ZimF;w}uGY6(zndnnUi4NXG~O|6U!tPISx m4S=M<#(7?BC>nC}Q!>*kacekm_|q<+1_n=8KbLh*2~7Z5np~>@ diff --git a/Blish HUD/ref/controls/detailsbutton/605011.png b/Blish HUD/ref/controls/detailsbutton/605011.png deleted file mode 100644 index 50716273f2734e4d9d404a2b11ac2297f6f613ed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1213 zcmV;u1Va0XP)vH2Z423@u^d(8B`$GG)eZbD{CUIn20Q-Z02&v(WM$|z|0w!LkQ49%+!cKYQh`@Mfd(v$QGJd-KY>e{8}RVC04IOHDf%JEYqI;= zfG7fV+cfu7f)X;3CKm2YC0jdjrnyIFtf?16D=X z5sIve;(#weQ}hlLMgO?I3i432x#uKPi?iixzNP}@!^ovm&mC8x0g7Kts zby=fw!FXbP0Z-th=z`aPzh9{v16|SDfLDy_xjJFkA%e(vMAk4?-~(d;I`EFs+}YLT zSI>3#^o%;IoIKbkaBFV(?h9Y;aL`|=?&Ru#EE$JUbW!EF{)^jFU%Mq4afV`?nmc~F z@#-6k3+rLed~bCJ#}g6`1E4w}^ZA|5CxssYssSHKxg_Cn{wq;*f4OYmj12&94x#`{ z%5gA&J3G0|o9jJbRHQO4k`;J&P%9m!aB-yu{Mu-o&#OC+G&P`jly4sKuvvI<5TE{I zFwps;@bI`E4rovqu?}t;9Vo2sJZ`~YY^AeMIJ@pA^A^Q{Jb^0(3EQz5j&bL5ps>-s z`1)>rItckrXQn4#YGGUHn|<9YkFhZGI$|GpH*Pr6wQ?Mt2Zid+SKv(N=B(iiD)Y3_ z9Ocag#)%kZB#!n@`5z-o(w}UU&2fNRo$ecjSIQ>;WYoh~qx0JrawMS`$ZyPJcT3J! z3hMb(=Sz}~5Y1=SQ*_n_vP=016`~ zafRmE$Jd&g-T|b_OJV^vMXEHHyE54I{XP3*(sR1fgN>lT8TV?V0+%5xvr1>Ya zpI-um%l%?s7pQ4Y?|Rt#h>IwU+!@6Ybi=%!1yD78NR@y&SDjUvUyXJ$=%wHdZn=9*zO&CQhp0EXFNUMtm-d`