Misc cleanup & fixes
This commit is contained in:
@@ -17,6 +17,22 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class Drawf{
|
||||
|
||||
public static void target(float x, float y, float rad, Color color){
|
||||
target(x, y, rad, 1, color);
|
||||
}
|
||||
|
||||
public static void target(float x, float y, float rad, float alpha, Color color){
|
||||
Lines.stroke(3f);
|
||||
Draw.color(Pal.gray, alpha);
|
||||
Lines.poly(x, y, 4, rad, Time.time * 1.5f);
|
||||
Lines.spikes(x, y, 3f/7f * rad, 6f/7f * rad, 4, Time.time * 1.5f);
|
||||
Lines.stroke(1f);
|
||||
Draw.color(color, alpha);
|
||||
Lines.poly(x, y, 4, rad, Time.time * 1.5f);
|
||||
Lines.spikes(x, y, 3f/7f * rad, 6f/7f * rad, 4, Time.time * 1.5f);
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
public static float text(){
|
||||
float z = Draw.z();
|
||||
if(renderer.pixelator.enabled()){
|
||||
|
||||
Reference in New Issue
Block a user