Shift the item display over a column instead
This commit is contained in:
@@ -66,7 +66,7 @@ public class StatValues{
|
||||
}
|
||||
|
||||
public static StatValue liquid(Liquid liquid, float amount, boolean perSecond){
|
||||
return table -> table.add(new LiquidDisplay(liquid, amount, perSecond));
|
||||
return table -> table.add(new LiquidDisplay(liquid, amount, perSecond)).left();
|
||||
}
|
||||
|
||||
public static StatValue liquids(Boolf<Liquid> filter, float amount, boolean perSecond){
|
||||
@@ -295,7 +295,9 @@ public class StatValues{
|
||||
public static StatValue itemEffMultiplier(Floatf<Item> efficiency, Boolf<Item> filter){
|
||||
return table -> {
|
||||
table.row();
|
||||
table.add().size(0);
|
||||
table.table(c -> {
|
||||
c.left();
|
||||
for(Item item : content.items().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden())){
|
||||
c.table(Styles.grayPanel, b -> {
|
||||
b.image(item.uiIcon).size(40).pad(10f).left().scaling(Scaling.fit);
|
||||
@@ -303,23 +305,23 @@ public class StatValues{
|
||||
b.add(Core.bundle.format("stat.efficiency", fixValue(efficiency.get(item) * 100f))).right().pad(10f).padRight(15f);
|
||||
}).growX().pad(5).row();
|
||||
}
|
||||
}).growX().colspan(table.getColumns());
|
||||
table.row();
|
||||
}).growX().colspan(table.getColumns() - 2).row();
|
||||
};
|
||||
}
|
||||
|
||||
public static StatValue liquidEffMultiplier(Floatf<Liquid> efficiency, float amount, Boolf<Liquid> filter){
|
||||
return table -> {
|
||||
table.row();
|
||||
table.add().size(0);
|
||||
table.table(c -> {
|
||||
c.left();
|
||||
for(Liquid liquid : content.liquids().select(l -> filter.get(l) && l.unlockedNow() && !l.isHidden())){
|
||||
c.table(Styles.grayPanel, b -> {
|
||||
b.add(new LiquidDisplay(liquid, 40f, amount, true)).pad(10f).left().grow();
|
||||
b.add(Core.bundle.format("stat.efficiency", fixValue(efficiency.get(liquid) * 100f))).right().pad(10f).padRight(15f);
|
||||
}).growX().pad(5).row();
|
||||
}
|
||||
}).growX().colspan(table.getColumns()).row();
|
||||
table.row();
|
||||
}).growX().colspan(table.getColumns() - 2).row();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user