Added schematics dialog to desktop menu

This commit is contained in:
Anuken
2019-11-03 08:59:51 -05:00
parent 7ca8ac64a3
commit cf6d2c7593
7 changed files with 13 additions and 8 deletions

View File

@@ -254,7 +254,7 @@ public class DesktopInput extends InputHandler{
table.row();
table.left().margin(0f).defaults().size(48f).left();
table.addImageButton(Icon.wikiSmall, Styles.clearPartiali, () -> {
table.addImageButton(Icon.pasteSmall, Styles.clearPartiali, () -> {
ui.schematics.show();
});
}

View File

@@ -205,7 +205,7 @@ public class MobileInput extends InputHandler implements GestureListener{
boolean arrow = block != null && block.rotate;
i.getImage().setRotationOrigin(!arrow ? 0 : rotation * 90, Align.center);
i.getStyle().imageUp = arrow ? Icon.arrowSmall : Icon.wikiSmall;
i.getStyle().imageUp = arrow ? Icon.arrowSmall : Icon.pasteSmall;
i.setChecked(!arrow && schematicMode);
});

View File

@@ -58,7 +58,7 @@ public class Placement{
private static float tileHeuristic(Tile tile, Tile other){
Block block = control.input.block;
if(!other.block().alwaysReplace && !(block != null && block.canReplace(other.block()))){
if((!other.block().alwaysReplace && !(block != null && block.canReplace(other.block()))) || other.floor().isDeep()){
return 20;
}else{
if(parents.containsKey(tile.pos())){