Moved pref saving to specific locations

This commit is contained in:
Anuken
2020-07-02 10:20:16 -04:00
parent 5f6c71b9d3
commit fd2deb0a82
15 changed files with 53 additions and 10 deletions

View File

@@ -293,11 +293,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
stable.table(t -> {
t.left();
sector.save.meta.secinfo.exportRates().each(entry -> {
int total = (int)(entry.value * eventRate / 60f);
sector.save.meta.secinfo.production.each((item, stat) -> {
int total = (int)(stat.mean * 60);
if(total > 1){
t.image(entry.key.icon(Cicon.small)).padRight(3);
t.add(ui.formatAmount(total) + " /turn").color(Color.lightGray);
t.image(item.icon(Cicon.small)).padRight(3);
t.add(ui.formatAmount(total) + " /min").color(Color.lightGray);
t.row();
}
});