Balancing

This commit is contained in:
Anuken
2019-02-04 21:24:12 -05:00
parent eb5b50b3e9
commit 6e7514491c
9 changed files with 11 additions and 17 deletions

View File

@@ -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);

View File

@@ -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);