Un-lonely the liquid display
This commit is contained in:
@@ -31,7 +31,7 @@ public class LiquidDisplay extends Table{
|
|||||||
t.add(Strings.autoFixed(amount, 2)).style(Styles.outlineLabel);
|
t.add(Strings.autoFixed(amount, 2)).style(Styles.outlineLabel);
|
||||||
add(t);
|
add(t);
|
||||||
}
|
}
|
||||||
}}).height(size).left();
|
}}).height(size).minWidth(size).left();
|
||||||
add(liquid.localizedName + (perSecond && amount != 0 ? "\n[lightgray]" + Strings.autoFixed(amount, 2) + StatUnit.perSecond.localized() : "[]")).left().style(Styles.outlineLabel);
|
add(liquid.localizedName + (perSecond && amount != 0 ? "\n[lightgray]" + Strings.autoFixed(amount, 2) + StatUnit.perSecond.localized() : "[]")).left().style(Styles.outlineLabel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ public class ContentInfoDialog extends BaseDialog{
|
|||||||
value.display(inset);
|
value.display(inset);
|
||||||
inset.add().size(10f);
|
inset.add().size(10f);
|
||||||
}
|
}
|
||||||
|
|
||||||
}).fillX().padLeft(10);
|
}).fillX().padLeft(10);
|
||||||
table.row();
|
table.row();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ public class StatValues{
|
|||||||
|
|
||||||
public static StatValue itemEffMultiplier(Floatf<Item> efficiency, Boolf<Item> filter){
|
public static StatValue itemEffMultiplier(Floatf<Item> efficiency, Boolf<Item> filter){
|
||||||
return table -> {
|
return table -> {
|
||||||
|
table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left
|
||||||
table.row();
|
table.row();
|
||||||
table.table(c -> {
|
table.table(c -> {
|
||||||
for(Item item : content.items().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden())){
|
for(Item item : content.items().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden())){
|
||||||
@@ -309,6 +310,7 @@ public class StatValues{
|
|||||||
|
|
||||||
public static StatValue liquidEffMultiplier(Floatf<Liquid> efficiency, float amount, Boolf<Liquid> filter){
|
public static StatValue liquidEffMultiplier(Floatf<Liquid> efficiency, float amount, Boolf<Liquid> filter){
|
||||||
return table -> {
|
return table -> {
|
||||||
|
table.getCells().peek().growX(); //Expand the spacer on the row above to push everything to the left
|
||||||
table.row();
|
table.row();
|
||||||
table.table(c -> {
|
table.table(c -> {
|
||||||
for(Liquid liquid : content.liquids().select(l -> filter.get(l) && l.unlockedNow() && !l.isHidden())){
|
for(Liquid liquid : content.liquids().select(l -> filter.get(l) && l.unlockedNow() && !l.isHidden())){
|
||||||
|
|||||||
Reference in New Issue
Block a user