건강진단

This commit is contained in:
sharlottes
2022-11-20 00:04:55 +09:00
parent 77a2ffa7df
commit 6b2defde56
11 changed files with 137 additions and 300 deletions

View File

@@ -15,7 +15,6 @@ import mindustry.graphics.*;
import mindustry.ui.*;
import static informatis.SUtils.getTarget;
import static informatis.SVars.*;
import static arc.Core.*;
import static mindustry.Vars.*;
@@ -38,7 +37,12 @@ public class OverDrawer {
WindowManager.windows.get(UnitWindow.class).each(w -> {
UnitWindow window = (UnitWindow) w;
Draw.color(Tmp.c1.set(window.locked ? Color.orange : Color.darkGray).lerp(window.locked ? Color.scarlet : Color.gray, Mathf.absin(Time.time, 3f, 1f)).a(settings.getInt("selectopacity") / 100f));
float length = (window.target instanceof Unit u ? u.hitSize : window.target instanceof Building b ? b.block.size * tilesize : 0) * 1.5f + 2.5f;
float length = (window.target instanceof Unit u
? u.hitSize
: window.target instanceof Building b
? b.block.size * tilesize
: 0
) * 1.5f + 2.5f;
for(int i = 0; i < 4; i++){
float rot = i * 90f + 45f + (-Time.time) % 360f;
Draw.rect("select-arrow", window.target.x() + Angles.trnsx(rot, length), window.target.y() + Angles.trnsy(rot, length), length / 1.9f, length / 1.9f, rot - 135f);