Better cliff sprites

This commit is contained in:
Anuken
2020-10-10 11:37:58 -04:00
parent 5a31d419fc
commit fb831e8fef
29 changed files with 4225 additions and 429 deletions

View File

@@ -557,6 +557,12 @@ public class MapEditorDialog extends Dialog implements Disposable{
t.add(slider).width(size * 3f - 20).padTop(4f);
}).padTop(5).growX().top();
mid.row();
mid.table(t -> {
t.button("@editor.center", () -> view.center()).growX();
}).pad(-5).style(Styles.squaret).growX().top();
}).margin(0).left().growY();

View File

@@ -171,6 +171,10 @@ public class MapView extends Element implements GestureListener{
this.grid = grid;
}
public void center(){
offsetx = offsety = 0;
}
@Override
public void act(float delta){
super.act(delta);