Added support for Mac file association; minor optimizations

This commit is contained in:
Anuken
2018-06-01 13:01:05 -04:00
parent cfa95eef39
commit 5c120e532f
9 changed files with 80 additions and 2 deletions

View File

@@ -215,6 +215,11 @@ public class AndroidInput extends InputHandler implements GestureListener{
}}.visible(() -> !state.is(State.menu)).end();
}
@Override
public boolean isDrawing(){
return selection.size > 0 || removals.size > 0;
}
@Override
public void drawBottom(){

View File

@@ -60,6 +60,11 @@ public class DesktopInput extends InputHandler{
}
}
@Override
public boolean isDrawing(){
return mode != none;
}
@Override
public void drawBottom(){
Tile cursor = tileAt(control.gdxInput().getX(), control.gdxInput().getY());

View File

@@ -81,6 +81,10 @@ public abstract class InputHandler extends InputAdapter{
}
public boolean isDrawing(){
return false;
}
/**Handles tile tap events that are not platform specific.*/
public boolean tileTapped(Tile tile){
tile = tile.target();