mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
fixed bar,added item update rate setting
This commit is contained in:
@@ -290,6 +290,7 @@ public class SettingS {
|
||||
*/
|
||||
|
||||
addGraphicSlideSetting("infoUiScale", 100, 25, 300, 25, s -> s + "%");
|
||||
addGraphicSlideSetting("coreItemCheckRate", 60, 6, 180, 6, s -> Strings.fixed(s/60f,1) + "sec");
|
||||
addGraphicCheckSetting("pastwave", false);
|
||||
addGraphicCheckSetting("emptywave", true);
|
||||
addGraphicSlideSetting("wavemax", 50, 0, 200, 1, s -> s + "waves");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user