From 149cdba83ab7fb2e458bd599eb9a63ac6d1de266 Mon Sep 17 00:00:00 2001 From: sharlottes Date: Tue, 12 Apr 2022 00:38:53 +0900 Subject: [PATCH] to the left --- assets/sprites/ui/bars/sidebar.9.png | Bin 286 -> 252 bytes src/UnitInfo/core/HudUi.java | 59 +-------------------------- src/UnitInfo/core/Main.java | 1 - src/UnitInfo/ui/HUDFragment.java | 12 +++--- src/UnitInfo/ui/TaskbarTable.java | 10 ++--- 5 files changed, 12 insertions(+), 70 deletions(-) diff --git a/assets/sprites/ui/bars/sidebar.9.png b/assets/sprites/ui/bars/sidebar.9.png index 06a1885742b10d3100bd831b947f01b1d43699cb..2589331ed846d2a6878c584b05dfd0d7a7b2c982 100644 GIT binary patch delta 224 zcmV<603ZLJ0{j7xB!9z6L_t(|UhS4K3d1lE1pPTZGOu;GKvK-!*|PB-Dl#yTLMu(@ zY}-Bdi{4|5v3JS058>D?-!I{?LpG#v)FnGIUTzsR8z&bzWYkQYT;h^ZXK`|YQ$`)d z$=EHUsyG>T$fzt%MqM&$nXs@5iyv~h(j-48dvd9UWLQWJq=9;4+e{+?TZse z|L^Z;#jH`d$qMEHRl&TVPB2d>fq6p-3@2r*`t_Cb=61FC(R*Qyf&s8)??6mA8nj}g zgEjM9!-ls$niVRqO)GZ%eZ0!V)ols`!W#F5VaLcSVu_QAdBX_|74w8U!93wAm=_#f z^uQrnyN+M4-VsZRRxD51T64Ky^Ro-X#8$XVm?cj0iQK;S2PyYT(J@QNO#lD@07*qo IM6N<$f|`tXQvd(} diff --git a/src/UnitInfo/core/HudUi.java b/src/UnitInfo/core/HudUi.java index 1befa49..afbd883 100644 --- a/src/UnitInfo/core/HudUi.java +++ b/src/UnitInfo/core/HudUi.java @@ -17,21 +17,17 @@ import mindustry.*; import mindustry.entities.Units; import mindustry.game.*; import mindustry.gen.*; -import mindustry.graphics.*; import mindustry.logic.Ranged; import mindustry.ui.*; import mindustry.world.*; import mindustry.world.blocks.*; import mindustry.world.blocks.defense.turrets.*; -import mindustry.world.blocks.storage.*; import static UnitInfo.SVars.*; import static arc.Core.*; import static mindustry.Vars.*; public class HudUi { - public Table mainTable = new Table(); - public Table baseTable = new Table(); public Table waveInfoTable = new Table(); public SchemDisplay schemTable; @@ -42,7 +38,6 @@ public class HudUi { public boolean waveShown; public float a; - public int uiIndex = 3; @SuppressWarnings("unchecked") public T getTarget(){ @@ -89,8 +84,6 @@ public class HudUi { Log.warn("ui scaling reached zero"); modUiScale = 0.25f; } - mainTable.clearChildren(); - addTable(); } if(settings.getBool("autoShooting")) { @@ -208,9 +201,8 @@ public class HudUi { } public void addSchemTable() { - Table table = (Table) scene.find("minimap/position"); - table.row(); - schemTable=new SchemDisplay(); + Table table = ((Table) scene.find("minimap/position")).row(); + schemTable = new SchemDisplay(); table.add(schemTable); } @@ -266,51 +258,4 @@ public class HudUi { return waveShown; })).left().top()).fillX(); } - - public void reset(int index, Seq