Research system progress
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package mindustry.ui.dialogs;
|
||||
|
||||
import arc.graphics.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.ui.*;
|
||||
@@ -23,14 +22,15 @@ public class ResourcesDialog extends BaseDialog{
|
||||
t.margin(10f);
|
||||
int[] exports = universe.getTotalExports();
|
||||
for(Item item : content.items()){
|
||||
if(exports[item.id] > 0 || data.getItem(item) > 0){
|
||||
//TODO display total items
|
||||
if(exports[item.id] > 0){
|
||||
t.image(item.icon(Cicon.small)).padRight(4);
|
||||
t.add(ui.formatAmount(data.getItem(item))).color(Color.lightGray);
|
||||
if(exports[item.id] > 0){
|
||||
//t.add(ui.formatAmount(data.getItem(item))).color(Color.lightGray);
|
||||
//if(exports[item.id] > 0){
|
||||
t.add("+ [accent]" + ui.formatAmount(exports[item.id]) + " [lightgray]/T");
|
||||
}else{
|
||||
t.add();
|
||||
}
|
||||
//}else{
|
||||
// t.add();
|
||||
//}
|
||||
t.row();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user