v1.2.0: item slots now hide extra info based on width

This commit is contained in:
Evan Debenham
2022-01-21 13:59:18 -05:00
parent 2e741a4e2e
commit d2f477f656

View File

@@ -131,6 +131,12 @@ public class ItemSlot extends Button {
extra.x = x + (width - extra.width());
extra.y = y;
PixelScene.align(extra);
if ((status.width() + extra.width()) > width){
extra.visible = false;
} else {
extra.visible = true;
}
}
if (itemIcon != null){