mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 22:12:16 -08:00
Payload fixes
This commit is contained in:
parent
ea0358d570
commit
256f805754
10 changed files with 664 additions and 634 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue