Add to TODO

This commit is contained in:
Anuken
2017-12-26 00:28:13 -05:00
parent 560ab4d379
commit 00d781dadd
7 changed files with 52 additions and 37 deletions

View File

@@ -214,6 +214,9 @@ public class World extends Module{
}
void set(int x, int y, Block type, int rot){
if(!Mathf.inBounds(x, y, tiles)){
return;
}
if(type == ProductionBlocks.stonedrill){
tiles[x][y].setFloor(Blocks.stone);
}

View File

@@ -72,7 +72,7 @@ public class MapEditorDialog extends Dialog{
Pixmaps.write(editor.pixmap(), result);
}catch (Exception e){
Vars.ui.showError("Error saving image file:\n[orange]" + Strings.parseException(e, false));
e.printStackTrace();
if(!Vars.android) e.printStackTrace();
}
Vars.ui.hideLoading();
});

View File

@@ -133,6 +133,8 @@ public class BlocksFragment implements Fragment{
get().marginLeft(0f);
get().marginRight(0f);
end();
}}.right().bottom().uniformX();

View File

@@ -23,19 +23,6 @@ public class PlacementFragment implements Fragment{
visible(()->player.recipe != null && !GameState.is(State.menu));
abottom();
aleft();
/*
Image image = new Image("icon-arrow");
image.update(() -> {
image.setRotation(player.rotation*90);
image.setOrigin(Align.center);
});
new table("pane"){{
visible(() -> player.recipe != null && player.recipe.result.rotate);
add(image).size(40f);
}}.size(54f).end();
row();*/
new table(){{
touchable(Touchable.enabled);

View File

@@ -137,7 +137,7 @@ public class Maps implements Disposable{
}
return true;
}catch(Exception e){
e.printStackTrace();
if(!Vars.android) e.printStackTrace();
Gdx.app.error("Mindustry-Maps", "Failed loading map file: " + file);
return false;
}