fixed bar,added item update rate setting

This commit is contained in:
sharlotte
2021-08-08 18:03:08 +09:00
parent c210347528
commit d71a04880f
5 changed files with 7 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import mindustry.ui.*;
import mindustry.world.blocks.storage.*;
import static UnitInfo.SVars.modUiScale;
import static arc.Core.settings;
import static mindustry.Vars.*;
public class CoresItemsDisplay {
@@ -74,7 +75,7 @@ public class CoresItemsDisplay {
core = team.core();
heat += Time.delta;
if(heat >= 60f) {
if(heat >= settings.getInt("coreItemCheckRate")) {
heat = 0;
updateItem(team);
}

View File

@@ -151,6 +151,7 @@ public class SBar extends Element{
}
}
Draw.color();
Fonts.outline.draw(name, x + width / 2f, y + height / 2f, Color.white, Scl.scl(modUiScale < 1 ? modUiScale : 1), false, Align.center);
Fonts.outline.draw(name, x + width / 2f, y + height * 0.75f, Color.white, Scl.scl(modUiScale < 1 ? modUiScale : 1), false, Align.center);
}
}