ItemImage label outline

This commit is contained in:
Anuken
2022-02-12 16:41:20 -05:00
parent 58c044f509
commit 710ef89e36
3 changed files with 11 additions and 11 deletions

View File

@@ -17,19 +17,11 @@ public class ItemImage extends Stack{
add(new Table(t -> {
t.left().bottom();
//TODO outline? .style(Styles.outlineLabel)
t.add(amount > 1000 ? UI.formatAmount(amount) : amount + "");
t.add(amount > 1000 ? UI.formatAmount(amount) : amount + "").style(Styles.outlineLabel);
t.pack();
}));
}
public ItemImage(TextureRegion region){
Table t = new Table().left().bottom();
add(new Image(region));
add(t);
}
public ItemImage(ItemStack stack){
add(new Table(o -> {
@@ -49,4 +41,10 @@ public class ItemImage extends Stack{
public ItemImage(BlockStack stack){
this(stack.block.uiIcon, stack.amount);
}
/** @deprecated what the heck is this */
@Deprecated
public ItemImage(TextureRegion region){
add(new Image(region));
}
}