Skip to content

Commit

Permalink
Use EU/t for digital interface (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
josiah-roberts authored and serenibyss committed Jan 21, 2024
1 parent fb88041 commit 230fc80
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import gregtech.api.metatileentity.multiblock.MultiblockControllerBase;
import gregtech.api.util.GTLog;
import gregtech.api.util.Position;
import gregtech.api.util.TextFormattingUtil;
import gregtech.client.renderer.texture.Textures;
import gregtech.client.utils.RenderUtil;
import gregtech.common.terminal.app.prospector.widget.WidgetOreList;
Expand Down Expand Up @@ -1046,9 +1047,11 @@ private void renderEnergyMode() {
}
RenderUtil.renderLineChart(inputEnergyList, max, -5.5f / 16, 5.5f / 16, 12f / 16, 6f / 16, 0.005f, 0XFF03FF00);
RenderUtil.renderLineChart(outputEnergyList, max, -5.5f / 16, 5.5f / 16, 12f / 16, 6f / 16, 0.005f, 0XFFFF2F39);
RenderUtil.renderText(-5.7f / 16, -2.3f / 16, 0, 1.0f / 270, 0XFF03FF00, "EU I: " + energyInputPerDur + "EU/s",
RenderUtil.renderText(-5.7f / 16, -2.3f / 16, 0, 1.0f / 270, 0XFF03FF00,
"EU I: " + TextFormattingUtil.formatNumbers(energyInputPerDur / 20) + "EU/t",
false);
RenderUtil.renderText(-5.7f / 16, -1.6f / 16, 0, 1.0f / 270, 0XFFFF0000, "EU O: " + energyOutputPerDur + "EU/s",
RenderUtil.renderText(-5.7f / 16, -1.6f / 16, 0, 1.0f / 270, 0XFFFF0000,
"EU O: " + TextFormattingUtil.formatNumbers(energyOutputPerDur / 20) + "EU/t",
false);
// Bandaid fix to prevent overflowing renders when dealing with items that cause long overflow, ie Ultimate
// Battery
Expand Down

0 comments on commit 230fc80

Please sign in to comment.