Draw to-be affected blocks when placing projectors (#4818)
This commit is contained in:
committed by
GitHub
parent
d025ba63e1
commit
526157a514
@@ -54,7 +54,9 @@ public class MendProjector extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawPlace(int x, int y, int rotation, boolean valid){
|
public void drawPlace(int x, int y, int rotation, boolean valid){
|
||||||
Drawf.dashCircle(x * tilesize + offset, y * tilesize + offset, range, Pal.accent);
|
Drawf.dashCircle(x * tilesize + offset, y * tilesize + offset, range, baseColor);
|
||||||
|
|
||||||
|
indexer.eachBlock(player.team(), x * tilesize + offset, y * tilesize + offset, range, other -> true, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MendBuild extends Building implements Ranged{
|
public class MendBuild extends Building implements Ranged{
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ public class OverdriveProjector extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawPlace(int x, int y, int rotation, boolean valid){
|
public void drawPlace(int x, int y, int rotation, boolean valid){
|
||||||
Drawf.dashCircle(x * tilesize + offset, y * tilesize + offset, range, Pal.accent);
|
Drawf.dashCircle(x * tilesize + offset, y * tilesize + offset, range, baseColor);
|
||||||
|
|
||||||
|
indexer.eachBlock(player.team(), x * tilesize + offset, y * tilesize + offset, range, other -> other.block.canOverdrive, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user