update gradle, fixed overflow in wave display

This commit is contained in:
Sharlotte
2022-08-18 16:27:17 +09:00
parent 7b8479c16e
commit 1d33c26e93
5 changed files with 47 additions and 48 deletions

View File

@@ -15,7 +15,7 @@ import static arc.Core.*;
import static mindustry.Vars.*;
public class WaveInfoDisplay {
public boolean waveShown;
private boolean waveShown;
public void addWaveInfoTable() {
Table waveInfoTable = new Table(Tex.buttonEdge4, table -> {

View File

@@ -155,7 +155,7 @@ public class WaveWindow extends Window implements Updatable {
ObjectIntMap<SpawnGroup> groups = getWaveGroup(index-1);
int row = 0;
int max = Math.max(1, Math.round(window.getWidth()/2/8));
int max = Math.max(1, Math.round(window.getWidth()/64)-5);
for (SpawnGroup group : groups.keys()) {
int spawners = state.rules.waveTeam.cores().size + (group.type.flying ? spawner.countFlyerSpawns() : spawner.countGroundSpawns());
int amount = groups.get(group);