mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "unitinfo",
|
"name": "unitinfo",
|
||||||
"displayName": "Unit Infomation",
|
"displayName": "Unit Information",
|
||||||
"author": "Sharlotte",
|
"author": "Sharlotte",
|
||||||
"description": "The mod displays more information in-game, such as unit/building, wave, core, tile, item/unit total info etc",
|
"description": "The mod displays more information in-game, such as unit/building, wave, core, tile, item/unit total info etc",
|
||||||
"version": "1.3.4.2",
|
"version": "1.3.4.2",
|
||||||
|
|||||||
@@ -236,8 +236,7 @@ public class HudUi {
|
|||||||
Table statusTable = (Table)waveTable.getChildren().get(1); // TODO: Use scene.find("statustable") when https://github.com/Anuken/Mindustry/pull/5904 is merged
|
Table statusTable = (Table)waveTable.getChildren().get(1); // TODO: Use scene.find("statustable") when https://github.com/Anuken/Mindustry/pull/5904 is merged
|
||||||
waveTable.removeChild(statusTable);
|
waveTable.removeChild(statusTable);
|
||||||
table.row();
|
table.row();
|
||||||
|
table.stack(waveInfoTable, statusTable.top(), pathlineTable).fillX().colspan(table.getColumns());
|
||||||
table.stack(waveInfoTable, statusTable.top(), pathlineTable);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reset(int index, Seq<Button> buttons, Label label, Table table, Table labelTable, String hud){
|
public void reset(int index, Seq<Button> buttons, Label label, Table table, Table labelTable, String hud){
|
||||||
|
|||||||
@@ -1,34 +1,12 @@
|
|||||||
package UnitInfo.core;
|
package UnitInfo.core;
|
||||||
|
|
||||||
import UnitInfo.ui.*;
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.graphics.*;
|
|
||||||
import arc.graphics.g2d.*;
|
|
||||||
import arc.math.*;
|
|
||||||
import arc.scene.ui.layout.*;
|
|
||||||
import arc.util.*;
|
|
||||||
import mindustry.*;
|
import mindustry.*;
|
||||||
import mindustry.ai.Pathfinder;
|
|
||||||
import mindustry.ai.types.*;
|
|
||||||
import mindustry.content.*;
|
|
||||||
import mindustry.entities.units.*;
|
|
||||||
import mindustry.game.EventType.*;
|
import mindustry.game.EventType.*;
|
||||||
import mindustry.game.*;
|
|
||||||
import mindustry.gen.*;
|
|
||||||
import mindustry.graphics.*;
|
|
||||||
import mindustry.logic.LUnitControl;
|
|
||||||
import mindustry.mod.*;
|
import mindustry.mod.*;
|
||||||
import mindustry.ui.*;
|
|
||||||
import mindustry.world.*;
|
|
||||||
import mindustry.world.blocks.defense.turrets.*;
|
|
||||||
import mindustry.world.blocks.storage.CoreBlock;
|
|
||||||
import mindustry.world.blocks.units.CommandCenter;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import static UnitInfo.SVars.*;
|
import static UnitInfo.SVars.*;
|
||||||
import static arc.Core.*;
|
import static arc.Core.*;
|
||||||
import static mindustry.Vars.*;
|
|
||||||
|
|
||||||
public class Main extends Mod {
|
public class Main extends Mod {
|
||||||
|
|
||||||
@@ -36,7 +14,7 @@ public class Main extends Mod {
|
|||||||
public void init(){
|
public void init(){
|
||||||
Core.app.post(() -> {
|
Core.app.post(() -> {
|
||||||
Mods.ModMeta meta = Vars.mods.locateMod("unitinfo").meta;
|
Mods.ModMeta meta = Vars.mods.locateMod("unitinfo").meta;
|
||||||
meta.displayName = "[#B5FFD9]Unit Infomation[]";
|
meta.displayName = "[#B5FFD9]Unit Information[]";
|
||||||
meta.author = "[#B5FFD9]Sharlotte[lightgray]#0018[][]";
|
meta.author = "[#B5FFD9]Sharlotte[lightgray]#0018[][]";
|
||||||
meta.description = bundle.get("shar-description");
|
meta.description = bundle.get("shar-description");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user