Implemented #1048
This commit is contained in:
@@ -43,6 +43,10 @@ public class Drawf{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void arrow(float x, float y, float x2, float y2, float length, float radius){
|
public static void arrow(float x, float y, float x2, float y2, float length, float radius){
|
||||||
|
arrow(x, y, x2, y2, length, radius, Pal.accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void arrow(float x, float y, float x2, float y2, float length, float radius, Color color){
|
||||||
float angle = Angles.angle(x, y, x2, y2);
|
float angle = Angles.angle(x, y, x2, y2);
|
||||||
float space = 2f;
|
float space = 2f;
|
||||||
Tmp.v1.set(x2, y2).sub(x, y).limit(length);
|
Tmp.v1.set(x2, y2).sub(x, y).limit(length);
|
||||||
@@ -50,7 +54,7 @@ public class Drawf{
|
|||||||
|
|
||||||
Draw.color(Pal.gray);
|
Draw.color(Pal.gray);
|
||||||
Fill.poly(vx, vy, 3, radius + space, angle);
|
Fill.poly(vx, vy, 3, radius + space, angle);
|
||||||
Draw.color(Pal.accent);
|
Draw.color(color);
|
||||||
Fill.poly(vx, vy, 3, radius, angle);
|
Fill.poly(vx, vy, 3, radius, angle);
|
||||||
Draw.color();
|
Draw.color();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,6 +192,11 @@ public class MassDriver extends Block{
|
|||||||
|
|
||||||
MassDriverEntity entity = tile.ent();
|
MassDriverEntity entity = tile.ent();
|
||||||
|
|
||||||
|
for(Tile shooter : entity.waitingShooters){
|
||||||
|
Drawf.circles(shooter.drawx(), shooter.drawy(), (tile.block().size / 2f + 1) * tilesize + sin - 2f, Pal.place);
|
||||||
|
Drawf.arrow(shooter.drawx(), shooter.drawy(), tile.drawx(), tile.drawy(), size * tilesize + sin, 4f + sin, Pal.place);
|
||||||
|
}
|
||||||
|
|
||||||
if(linkValid(tile)){
|
if(linkValid(tile)){
|
||||||
Tile target = world.tile(entity.link);
|
Tile target = world.tile(entity.link);
|
||||||
Drawf.circles(target.drawx(), target.drawy(), (target.block().size / 2f + 1) * tilesize + sin - 2f, Pal.place);
|
Drawf.circles(target.drawx(), target.drawy(), (target.block().size / 2f + 1) * tilesize + sin - 2f, Pal.place);
|
||||||
|
|||||||
Reference in New Issue
Block a user