mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-26 15:47:53 +07:00
Cleanup
This commit is contained in:
@ -75,6 +75,9 @@ public class ForceProjector extends Block{
|
|||||||
public void drawPlace(int x, int y, int rotation, boolean valid){
|
public void drawPlace(int x, int y, int rotation, boolean valid){
|
||||||
super.drawPlace(x, y, rotation, valid);
|
super.drawPlace(x, y, rotation, valid);
|
||||||
|
|
||||||
|
Draw.color(Pal.gray);
|
||||||
|
Lines.stroke(3f);
|
||||||
|
Lines.poly(x * tilesize, y * tilesize, 6, radius);
|
||||||
Draw.color(Pal.accent);
|
Draw.color(Pal.accent);
|
||||||
Lines.stroke(1f);
|
Lines.stroke(1f);
|
||||||
Lines.poly(x * tilesize, y * tilesize, 6, radius);
|
Lines.poly(x * tilesize, y * tilesize, 6, radius);
|
||||||
|
@ -99,7 +99,7 @@ public class OverdriveProjector extends Block{
|
|||||||
public void drawSelect(){
|
public void drawSelect(){
|
||||||
float realRange = range + phaseHeat * phaseRangeBoost;
|
float realRange = range + phaseHeat * phaseRangeBoost;
|
||||||
|
|
||||||
indexer.eachBlock(this, realRange, other -> true, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
indexer.eachBlock(this, realRange, other -> other.block().canOverdrive, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
||||||
|
|
||||||
Drawf.dashCircle(x, y, realRange, baseColor);
|
Drawf.dashCircle(x, y, realRange, baseColor);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user