ItemImage label outline
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user