Balancing
This commit is contained in:
@@ -38,8 +38,8 @@ public class DatabaseDialog extends FloatingDialog{
|
||||
for(int j = 0; j < allContent.length; j ++){
|
||||
ContentType type = ContentType.values()[j];
|
||||
|
||||
Array<Content> array = allContent[j];
|
||||
if(array.size == 0 || !(array.first() instanceof UnlockableContent)) continue;
|
||||
Array<Content> array = allContent[j].select(c -> c instanceof UnlockableContent && !((UnlockableContent)c).isHidden());
|
||||
if(array.size == 0) continue;
|
||||
|
||||
table.add("$content." + type.name() + ".name").growX().left().color(Palette.accent);
|
||||
table.row();
|
||||
@@ -49,15 +49,13 @@ public class DatabaseDialog extends FloatingDialog{
|
||||
list.left();
|
||||
|
||||
int maxWidth = UIUtils.portrait() ? 7 : 13;
|
||||
int size = 8 * 6;
|
||||
int size = 8 * 4;
|
||||
|
||||
int count = 0;
|
||||
|
||||
for(int i = 0; i < array.size; i++){
|
||||
UnlockableContent unlock = (UnlockableContent) array.get(i);
|
||||
|
||||
if(unlock.isHidden()) continue;
|
||||
|
||||
Image image = data.isUnlocked(unlock) ? new Image(unlock.getContentIcon()) : new Image("icon-tree-locked");
|
||||
image.addListener(new HandCursorListener());
|
||||
list.add(image).size(size).pad(3);
|
||||
|
||||
@@ -48,12 +48,6 @@ public class DeployDialog extends FloatingDialog{
|
||||
}
|
||||
|
||||
public void setup(){
|
||||
if(!System.getProperty("mindustry.debug", "false").equals("true")){
|
||||
ui.showInfo("This is not ready for testing. Play custom games instead.");
|
||||
Core.app.post(this::hide);
|
||||
return;
|
||||
}
|
||||
|
||||
cont.clear();
|
||||
titleTable.remove();
|
||||
marginTop(0f);
|
||||
|
||||
Reference in New Issue
Block a user