Unfinished graphite press block
This commit is contained in:
@@ -117,41 +117,45 @@ public class TechTree implements ContentList{
|
||||
});
|
||||
});
|
||||
|
||||
node(siliconSmelter, () -> {
|
||||
|
||||
node(graphitePress, () -> {
|
||||
node(pyratiteMixer, () -> {
|
||||
node(blastMixer, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
node(biomatterCompressor, () -> {
|
||||
node(plastaniumCompressor, () -> {
|
||||
node(phaseWeaver, () -> {
|
||||
node(siliconSmelter, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
node(incinerator, () -> {
|
||||
node(melter, () -> {
|
||||
node(surgeSmelter, () -> {
|
||||
|
||||
});
|
||||
|
||||
node(separator, () -> {
|
||||
node(pulverizer, () -> {
|
||||
node(biomatterCompressor, () -> {
|
||||
node(plastaniumCompressor, () -> {
|
||||
node(phaseWeaver, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
node(cryofluidMixer, () -> {
|
||||
node(incinerator, () -> {
|
||||
node(melter, () -> {
|
||||
node(surgeSmelter, () -> {
|
||||
|
||||
});
|
||||
|
||||
node(separator, () -> {
|
||||
node(pulverizer, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
node(cryofluidMixer, () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
node(mechanicalPump, () -> {
|
||||
node(conduit, () -> {
|
||||
node(liquidJunction, () -> {
|
||||
|
||||
@@ -29,13 +29,12 @@ import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
public class DeployDialog extends FloatingDialog{
|
||||
private static final float nodeSize = 250f;
|
||||
private ZoneNode root;
|
||||
private ObjectSet<ZoneNode> nodes = new ObjectSet<>();
|
||||
|
||||
public DeployDialog(){
|
||||
super("");
|
||||
|
||||
root = new ZoneNode(Zones.groundZero, null);
|
||||
ZoneNode root = new ZoneNode(Zones.groundZero, null);
|
||||
|
||||
TreeLayout layout = new TreeLayout();
|
||||
layout.gapBetweenLevels = 40f;
|
||||
@@ -43,21 +42,16 @@ public class DeployDialog extends FloatingDialog{
|
||||
layout.layout(root);
|
||||
|
||||
cont.setFillParent(true);
|
||||
cont.add(new View()).grow();
|
||||
|
||||
addCloseButton();
|
||||
buttons.addImageTextButton("$techtree", "icon-tree", 16 * 2, () -> ui.tech.show()).size(230f, 64f);
|
||||
|
||||
//shown(this::setup);
|
||||
shown(this::setup);
|
||||
}
|
||||
|
||||
public void setup(){
|
||||
buttons.clear();
|
||||
cont.clear();
|
||||
|
||||
addCloseButton();
|
||||
buttons.addImageTextButton("$techtree", "icon-tree", 16 * 2, () -> ui.tech.show()).size(230f, 64f);
|
||||
|
||||
cont.stack(new Table(){{
|
||||
top().left().margin(10);
|
||||
|
||||
@@ -71,7 +65,7 @@ public class DeployDialog extends FloatingDialog{
|
||||
}
|
||||
}
|
||||
|
||||
}}, new Table(){{
|
||||
}}, control.saves.getZoneSlot() == null ? new View() : new Table(){{
|
||||
SaveSlot slot = control.saves.getZoneSlot();
|
||||
|
||||
TextButton[] b = {null};
|
||||
@@ -243,8 +237,10 @@ public class DeployDialog extends FloatingDialog{
|
||||
}
|
||||
}
|
||||
|
||||
//should be static variables of View, but that's impossible
|
||||
static float panX = 0, panY = -200;
|
||||
|
||||
class View extends Group{
|
||||
float panX = 0, panY = -200;
|
||||
|
||||
{
|
||||
for(ZoneNode node : nodes){
|
||||
|
||||
@@ -13,6 +13,8 @@ import io.anuke.arc.graphics.g2d.Lines;
|
||||
import io.anuke.arc.graphics.g2d.TextureRegion;
|
||||
import io.anuke.arc.math.Mathf;
|
||||
import io.anuke.arc.scene.ui.layout.Table;
|
||||
import io.anuke.arc.util.Log;
|
||||
import io.anuke.arc.util.Strings;
|
||||
import io.anuke.arc.util.Time;
|
||||
import io.anuke.mindustry.entities.Damage;
|
||||
import io.anuke.mindustry.entities.Player;
|
||||
@@ -280,6 +282,10 @@ public class Block extends BlockStorage{
|
||||
setStats();
|
||||
|
||||
consumes.checkRequired(this);
|
||||
|
||||
if(buildRequirements.length > 0 && !Core.bundle.has("block." + name + ".name")){
|
||||
Log.warn("No name for block '{0}' found. Add the following to bundle.properties:\nblock.{0}.name = {1}", name, Strings.capitalize(name));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user