mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Fixed #6864
This commit is contained in:
parent
966a93ddfa
commit
a4c0441961
@ -110,10 +110,17 @@ public class UnitFactory extends UnitBlock{
|
|||||||
table.row();
|
table.row();
|
||||||
for(var plan : p){
|
for(var plan : p){
|
||||||
if(plan.unit.unlockedNow()){
|
if(plan.unit.unlockedNow()){
|
||||||
table.image(plan.unit.uiIcon).size(8 * 3).padRight(2).right();
|
table.table(c -> {
|
||||||
table.add(plan.unit.localizedName).left();
|
c.left();
|
||||||
table.add(Strings.autoFixed(plan.time / 60f, 1) + " " + Core.bundle.get("unit.seconds")).color(Color.lightGray).padLeft(12).left();
|
c.image(plan.unit.uiIcon).size(8 * 3).padRight(2);
|
||||||
table.row();
|
c.add(plan.unit.localizedName).left();
|
||||||
|
c.add(Strings.autoFixed(plan.time / 60f, 1) + " " + Core.bundle.get("unit.seconds")).color(Color.lightGray).padLeft(12).left();
|
||||||
|
}).padLeft(40).left().row();
|
||||||
|
table.table(req -> {
|
||||||
|
req.left();
|
||||||
|
StatValues.items(plan.requirements).display(req);
|
||||||
|
}).padLeft(40).left();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user