Smooth block shadows / Large procedural blocks

This commit is contained in:
Anuken
2019-01-27 12:09:01 -05:00
parent f31fd622dd
commit 5a9307e9a7
9 changed files with 1336 additions and 1233 deletions

View File

@@ -41,8 +41,6 @@ public class DeployDialog extends FloatingDialog{
layout.gapBetweenNodes = 40f;
layout.layout(root);
cont.setFillParent(true);
addCloseButton();
buttons.addImageTextButton("$techtree", "icon-tree", 16 * 2, () -> ui.tech.show()).size(230f, 64f);
@@ -51,21 +49,10 @@ public class DeployDialog extends FloatingDialog{
public void setup(){
cont.clear();
titleTable.remove();
marginTop(0f);
cont.stack(new Table(){{
top().left().margin(10);
ObjectIntMap<Item> items = data.items();
for(Item item : content.items()){
if(item.type == ItemType.material && data.isUnlocked(item)){
label(() -> items.get(item, 0) + "").left();
addImage(item.region).size(8*4).pad(4);
add("[LIGHT_GRAY]" + item.localizedName()).left();
row();
}
}
}}, control.saves.getZoneSlot() == null ? new View() : new Table(){{
cont.stack(control.saves.getZoneSlot() == null ? new View() : new Table(){{
SaveSlot slot = control.saves.getZoneSlot();
TextButton[] b = {null};
@@ -106,6 +93,19 @@ public class DeployDialog extends FloatingDialog{
});
}).growX().height(50f).pad(-12).padTop(10);
}}, new Table(){{
top().left().margin(10);
ObjectIntMap<Item> items = data.items();
for(Item item : content.items()){
if(item.type == ItemType.material && data.isUnlocked(item)){
label(() -> items.get(item, 0) + "").left();
addImage(item.region).size(8*4).pad(4);
add("[LIGHT_GRAY]" + item.localizedName()).left();
row();
}
}
}}).grow();
}