Added support for Mac file association; minor optimizations
This commit is contained in:
@@ -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(){
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user