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 Dec 31, 2023
1 parent dec3f76 commit 6c2259a
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 6c2259a

Please sign in to comment.