can somebody help me AHHHHHHHHHHH

This commit is contained in:
sharlottes
2021-05-30 20:45:48 +09:00
parent 39c2f17033
commit 14f83fd23e
4 changed files with 274 additions and 108 deletions

View File

@@ -7,15 +7,12 @@ import arc.graphics.Color;
import arc.graphics.g2d.Draw;
import arc.graphics.g2d.Lines;
import arc.math.Mathf;
import arc.struct.Seq;
import arc.util.Time;
import arc.util.Tmp;
import mindustry.Vars;
import mindustry.content.Fx;
import mindustry.content.UnitTypes;
import mindustry.game.EventType.*;
import mindustry.game.Team;
import mindustry.gen.Building;
import mindustry.gen.Groups;
import mindustry.graphics.Pal;
import mindustry.mod.Mod;
@@ -36,13 +33,15 @@ public class Main extends Mod {
hud.addCoreTable();
hud.addWaveTable();
hud.addUnitTable();
hud.addTileTable();
hud.addTable();
hud.setDraw();
hud.setEvent();
});
Events.on(WorldLoadEvent.class, e -> {
hud = new HudUi();
hud.addWaveTable();
hud.addTileTable();
});
Events.on(WaveEvent.class, e -> {
@@ -51,6 +50,8 @@ public class Main extends Mod {
hud.addWaveTable();
});
Events.run(Trigger.draw, () -> {
if(Core.settings.getBool("unithealthui"))
Groups.unit.each(unit -> new FreeBar().draw(unit));