fix schem quickslot

This commit is contained in:
sharlottes
2022-04-09 00:48:59 +09:00
parent 697c06f3be
commit 5d02dd1a9a
2 changed files with 7 additions and 4 deletions

View File

@@ -88,7 +88,10 @@ public class HudUi {
locked = false;
}
heat+=Time.delta;
if(heat>60) schemTable.setSchemTable();
if(heat>60) {
heat=0;
schemTable.setSchemTable();
}
if(Scl.scl(modUiScale) != settings.getInt("infoUiScale") / 100f){
modUiScale = settings.getInt("infoUiScale") / 100f;
@@ -224,7 +227,8 @@ public class HudUi {
public void addSchemTable() {
Table table = (Table) scene.find("minimap/position");
table.row();
table.add(schemTable=new SchemDisplay());
schemTable=new SchemDisplay();
table.add(schemTable);
}
public void addWaveInfoTable() {

View File

@@ -55,7 +55,7 @@ public class UnitDisplay extends WindowTable implements Updatable {
top();
topBar();
//new UnitInfoDisplay().marginBottom(80f);
//TODO: add new UnitInfoDisplay(), new WeaponDisplay();
table(Styles.black8, t -> {
t.table(Tex.underline2, tt -> {
tt.stack(
@@ -155,7 +155,6 @@ public class UnitDisplay extends WindowTable implements Updatable {
pane.setOverscroll(false, false);
pane.setScrollingDisabled(true, false);
pane.setScrollYForce(scrollPos);
//tt.add(new WeaponDisplay());
}).top().right().grow().get().parent = null;
resizeButton();
}