mirror of
https://github.com/GTNewHorizons/bdlib.git
synced 2026-11-19 03:49:36 +00:00
Fixed WidgetFluidGauge not respecting it's width
This commit is contained in:
1 parent
0b94b006ec
commit
c495fb8b33
1 file changed
+2
-2
@@ -42,10 +42,10 @@ class WidgetFluidGauge(val rect: Rect, overlay: TextureLocation, dslot: DataSlot
|
||||
|
||||
while (fillHeight > 0) {
|
||||
if (fillHeight > 16) {
|
||||
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - 16 - yStart, icon, 16, 16)
|
||||
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - 16 - yStart, icon, rect.w, 16)
|
||||
fillHeight -= 16
|
||||
} else {
|
||||
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - fillHeight - yStart, icon, 16, fillHeight)
|
||||
parent.drawTexturedModelRectFromIcon(rect.x, rect.y + rect.h - fillHeight - yStart, icon, rect.w, fillHeight)
|
||||
fillHeight = 0
|
||||
}
|
||||
yStart = yStart + 16
|
||||
|
||||
Reference in new issue
Block a user