Skip to content

Commit f1846e9

Browse files
committed
increase height to give energy/steam indicator more room
1 parent 7f156f4 commit f1846e9

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/gregtech/api/metatileentity/SimpleMachineMetaTileEntity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,15 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager panelSyncManage
512512
ModularPanel panel = workableRecipeMap.getRecipeMapUI()
513513
.constructPanel(this, builder -> builder
514514
.calculateOffset()
515-
.setMaxSize(176 + 20, 166)
515+
.setMaxSize(176 + 20, 170)
516516
.setInputs(importItems, importFluids)
517517
.setOutputs(exportItems, exportFluids)
518518
.inventorySlotGroups()
519519
.progressWidget(workable::getProgressPercent, widget -> widget
520520
// todo add tooltip for no energy?
521521
.overlay(new DynamicDrawable(() -> hasNoEnergy.getBoolValue() ?
522-
GTGuiTextures.INDICATOR_NO_ENERGY : IDrawable.NONE).asIcon().size(18)
523-
.marginTop(46))))
522+
GTGuiTextures.INDICATOR_NO_ENERGY : IDrawable.NONE)
523+
.asIcon().size(18).marginTop(50))))
524524
.child(IKey.lang(getMetaFullName()).asWidget().pos(5, 5))
525525
.child(col)
526526
.child(SlotGroupWidget.playerInventory(true).left(7));

src/main/java/gregtech/api/metatileentity/SteamMetaTileEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager panelSyncManage
160160

161161
ModularPanel panel = map.getRecipeMapUI()
162162
.constructPanel(this, builder -> builder
163+
.setMaxSize(176, 170)
163164
.setInputs(importItems, EMPTY)
164165
.setOutputs(exportItems, exportFluids)
165166
.inventorySlotGroups()
166167
.progressWidget(workableHandler::getProgressPercent, widget -> {
167168
// todo add tooltip for no steam?
168169
widget.overlay(new DynamicDrawable(() -> hasNoSteam.getBoolValue() ?
169-
getIndicator() : IDrawable.NONE).asIcon().size(18).marginTop(46));
170+
getIndicator() : IDrawable.NONE)
171+
.asIcon().size(18).marginTop(50));
170172
}));
171173
return panel.child(IKey.lang(getMetaFullName()).asWidget().pos(5, 5))
172174
.child(getUITheme().getLogo().asWidget()

0 commit comments

Comments
 (0)