mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-21 03:51:41 -08:00
UI fix
This commit is contained in:
parent
dfd6e7a07b
commit
b370e04035
1 changed files with 10 additions and 3 deletions
|
|
@ -113,9 +113,16 @@ public class ZoneInfoDialog extends FloatingDialog{
|
|||
t.add("$zone.resources").padRight(6);
|
||||
|
||||
if(zone.resources.length > 0){
|
||||
for(Item item : zone.resources){
|
||||
t.addImage(item.icon(Item.Icon.medium)).size(8 * 3);
|
||||
}
|
||||
t.table(r -> {
|
||||
t.left();
|
||||
int i = 0;
|
||||
for(Item item : zone.resources){
|
||||
r.addImage(item.icon(Item.Icon.medium)).size(8 * 3);
|
||||
if(++i % 4 == 0){
|
||||
r.row();
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
t.add("$none");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue