v1.2.0: item slots now hide extra info based on width
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user