Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,18 @@ public ModularPanel buildUI(PosGuiData data, PanelSyncManager syncManager, UISet
.child(GTMuiWidgets.createTitleBar(getDefinition(), 172))
.child(Flow.row()
.height(90)
.padding(5)
.margin(6)
.marginLeft(7)
.marginTop(2)
.height(80)
.child(new ProgressWidget()
.texture(GTGuiTextures.PROGRESS_BAR_BOILER_EMPTY_STEEL,
GTGuiTextures.PROGRESS_BAR_BOILER_HEAT, 60)
.direction(ProgressWidget.Direction.UP)
.progress(this::getEnergyPercentage)
.marginRight(50)
.size(18, 60)
.verticalCenter()
.addTooltipLine(IKey.dynamic(() -> Component.literal(
"%s/%s EU".formatted(
GTStringUtils.formatInt(energyContainer.getEnergyStored()),
Expand All @@ -138,7 +142,8 @@ public ModularPanel buildUI(PosGuiData data, PanelSyncManager syncManager, UISet
inventorySize, 'B',
slot -> slot.background(GTGuiTextures.SLOT, GTGuiTextures.CHARGER_OVERLAY),
syncManager,
matrix)))
matrix)
.center()))
.child(new Column()
.coverChildren()
.leftRel(1.0f)
Expand Down