Payload fixes

This commit is contained in:
Anuken
2020-04-16 09:55:57 -04:00
parent ea0358d570
commit 256f805754
10 changed files with 664 additions and 634 deletions

View File

@ -229,15 +229,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
public void drawSelected(int x, int y, Block block, Color color){
Draw.color(color);
for(int i = 0; i < 4; i++){
Point2 p = Geometry.d8edge[i];
float offset = -Math.max(block.size - 1, 0) / 2f * tilesize;
Draw.rect("block-select",
x*tilesize + block.offset() + offset * p.x,
y*tilesize + block.offset() + offset * p.y, i * 90);
}
Draw.reset();
Drawf.selected(x, y, block, color);
}
public void drawBreaking(BuildRequest request){