Add to TODO
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -133,6 +133,8 @@ public class BlocksFragment implements Fragment{
|
||||
get().marginLeft(0f);
|
||||
get().marginRight(0f);
|
||||
|
||||
|
||||
|
||||
end();
|
||||
}}.right().bottom().uniformX();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user