mirror of
https://github.com/yawaflua/Informatis.git
synced 2026-02-04 10:24:21 +02:00
건강진단
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user