mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 20:48:33 +07:00
Removed extra trace info (for now)
This commit is contained in:
parent
02286b0c4e
commit
64ccdab90c
@ -9,7 +9,6 @@ import io.anuke.ucore.core.Graphics;
|
||||
import io.anuke.ucore.graphics.Draw;
|
||||
import io.anuke.ucore.graphics.Lines;
|
||||
import io.anuke.ucore.scene.Element;
|
||||
import io.anuke.ucore.scene.event.ClickListener;
|
||||
import io.anuke.ucore.scene.event.InputEvent;
|
||||
import io.anuke.ucore.scene.event.InputListener;
|
||||
import io.anuke.ucore.scene.ui.layout.Unit;
|
||||
@ -18,7 +17,8 @@ import io.anuke.ucore.scene.utils.ScissorStack;
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
import io.anuke.ucore.util.Mathf;
|
||||
|
||||
import static io.anuke.mindustry.Vars.*;
|
||||
import static io.anuke.mindustry.Vars.ui;
|
||||
import static io.anuke.mindustry.Vars.world;
|
||||
|
||||
public class SectorsDialog extends FloatingDialog{
|
||||
private Rectangle clip = new Rectangle();
|
||||
@ -59,10 +59,6 @@ public class SectorsDialog extends FloatingDialog{
|
||||
ui.loadLogic(() -> world.sectors.playSector(selected));
|
||||
}).disabled(b -> selected == null)
|
||||
.fillX().height(64f).colspan(2).update(t -> t.setText(selected != null && selected.hasSave() ? "$text.sector.resume" : "$text.sector.deploy"));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void selectSector(Sector sector){
|
||||
@ -108,12 +104,7 @@ public class SectorsDialog extends FloatingDialog{
|
||||
}
|
||||
});
|
||||
|
||||
addListener(new ClickListener(){
|
||||
@Override
|
||||
public void clicked(InputEvent event, float x, float y){
|
||||
clicked = true;
|
||||
}
|
||||
});
|
||||
clicked(() -> clicked = true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -16,7 +16,7 @@ public class TraceDialog extends FloatingDialog{
|
||||
public void show(Player player, TraceInfo info){
|
||||
content().clear();
|
||||
|
||||
Table table = new Table("button");
|
||||
Table table = new Table("clear");
|
||||
table.margin(14);
|
||||
table.defaults().pad(1);
|
||||
|
||||
@ -35,6 +35,8 @@ public class TraceDialog extends FloatingDialog{
|
||||
table.add().pad(5);
|
||||
table.row();
|
||||
|
||||
//disabled until further notice
|
||||
/*
|
||||
table.add(Bundles.format("text.trace.totalblocksbroken", info.totalBlocksBroken));
|
||||
table.row();
|
||||
table.add(Bundles.format("text.trace.structureblocksbroken", info.structureBlocksBroken));
|
||||
@ -48,7 +50,7 @@ public class TraceDialog extends FloatingDialog{
|
||||
table.add(Bundles.format("text.trace.totalblocksplaced", info.totalBlocksPlaced));
|
||||
table.row();
|
||||
table.add(Bundles.format("text.trace.lastblockplaced", info.lastBlockPlaced.formalName));
|
||||
table.row();
|
||||
table.row();*/
|
||||
|
||||
content().add(table);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user