Skip to content

Commit

Permalink
fixup! ARC merged
Browse files Browse the repository at this point in the history
移除多余小地图按钮
  • Loading branch information
way-zer committed Jul 10, 2024
1 parent 3049d3b commit 2fd2aa3
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions core/src/mindustry/ui/fragments/HudFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public class HudFragment{
public NewCoreItemsDisplay coreItems = new NewCoreItemsDisplay();
private AuxiliaryTools auxiliaryTools;

private Slider minimapSlider;
private boolean hideObjectives = true;

private String hudText = "";
Expand Down Expand Up @@ -102,9 +101,6 @@ public void build(Group parent){
Events.on(WorldLoadEvent.class,e->{
hideObjectives = false;
rebuildArcStatus();
if(minimapSlider != null){
minimapSlider.setRange(0.1f, Math.min(world.width(), world.height()) / 16f / 2f);
}
});

//paused table
Expand All @@ -130,18 +126,6 @@ public void build(Group parent){
//minimap
t.add(new Minimap()).name("minimap");
t.row();
if(mobile){
t.table(tt -> {
tt.button(Icon.play, cleari, () -> {
ui.minimapfrag.toggle();
}).left();

minimapSlider = tt.slider(1, 1, 0.1f, (n) -> {
renderer.minimap.setZoom(n);
}).fillX().get();
}).fillX().row();
}

//position
t.table(tt-> {
tt.label(() -> player.unit().type.emoji() +
Expand Down

0 comments on commit 2fd2aa3

Please sign in to comment.