mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Fixed squished pump liquid icon
This commit is contained in:
parent
f9c73c2fdc
commit
62d0d62d22
@ -58,10 +58,11 @@ public class Pump extends LiquidBlock{
|
||||
if(liquidDrop != null){
|
||||
float width = drawPlaceText(Core.bundle.formatFloat("bar.pumpspeed", amount * pumpAmount * 60f, 0), x, y, valid);
|
||||
float dx = x * tilesize + offset - width/2f - 4f, dy = y * tilesize + offset + size * tilesize / 2f + 5, s = iconSmall / 4f;
|
||||
float ratio = (float)liquidDrop.fullIcon.width / liquidDrop.fullIcon.height;
|
||||
Draw.mixcol(Color.darkGray, 1f);
|
||||
Draw.rect(liquidDrop.fullIcon, dx, dy - 1, s, s);
|
||||
Draw.rect(liquidDrop.fullIcon, dx, dy - 1, s * ratio, s);
|
||||
Draw.reset();
|
||||
Draw.rect(liquidDrop.fullIcon, dx, dy, s, s);
|
||||
Draw.rect(liquidDrop.fullIcon, dx, dy, s * ratio, s);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user