11package gregtech .api .metatileentity ;
22
3- import com .cleanroommc .modularui .widgets .SlotGroupWidget ;
4-
5- import com .cleanroommc .modularui .widgets .layout .Flow ;
6-
73import gregtech .api .GTValues ;
84import gregtech .api .capability .GregtechTileCapabilities ;
95import gregtech .api .capability .IActiveOutputSide ;
6460import com .cleanroommc .modularui .value .sync .SyncHandlers ;
6561import com .cleanroommc .modularui .widget .Widget ;
6662import com .cleanroommc .modularui .widgets .ItemSlot ;
63+ import com .cleanroommc .modularui .widgets .SlotGroupWidget ;
6764import com .cleanroommc .modularui .widgets .ToggleButton ;
65+ import com .cleanroommc .modularui .widgets .layout .Flow ;
6866import org .jetbrains .annotations .NotNull ;
6967import org .jetbrains .annotations .Nullable ;
7068
@@ -530,28 +528,20 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
530528 col .child (new ItemSlot ()
531529 .debugName ("charger.slot" )
532530 .slot (SyncHandlers .itemSlot (chargerInventory , 0 ))
533- // .pos(79, 62 + yOffset)
534531 .background (GTGuiTextures .SLOT , GTGuiTextures .CHARGER_OVERLAY )
535532 .addTooltipLine (IKey .lang ("gregtech.gui.charger_slot.tooltip" ,
536533 GTValues .VNF [getTier ()], GTValues .VNF [getTier ()])));
537534
538- int leftButtonStartX = 7 ;
539-
540535 if (exportItems .getSlots () > 0 ) {
541536 col .child (new ToggleButton ()
542- // .pos(leftButtonStartX, 62 + yOffset)
543537 .overlay (GTGuiTextures .BUTTON_ITEM_OUTPUT )
544538 .value (new BooleanSyncValue (() -> autoOutputItems , val -> autoOutputItems = val ))
545539 .addTooltip (true , IKey .lang ("gregtech.gui.item_auto_output.tooltip.enabled" ))
546540 .addTooltip (false , IKey .lang ("gregtech.gui.item_auto_output.tooltip.disabled" )));
547-
548- leftButtonStartX += 18 ;
549541 }
550542
551543 if (exportFluids .getTanks () > 0 ) {
552-
553544 col .child (new ToggleButton ()
554- // .pos(leftButtonStartX, 62 + yOffset)
555545 .overlay (GTGuiTextures .BUTTON_FLUID_OUTPUT )
556546 .value (new BooleanSyncValue (() -> autoOutputFluids , val -> autoOutputFluids = val ))
557547 .addTooltip (true , IKey .lang ("gregtech.gui.fluid_auto_output.tooltip.enabled" ))
@@ -561,14 +551,13 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
561551 if (exportItems .getSlots () + exportFluids .getTanks () <= 9 ) {
562552 col .child (new Widget <>()
563553 .size (17 )
564- .marginTop (1 ).marginRight (1 )
554+ .marginTop (1 )
555+ .marginRight (1 )
565556 .bottom (0 )
566- // .pos(152, 63 + yOffset)
567557 .background (GTGuiTextures .getLogo (getUITheme ())));
568558
569559 if (hasGhostCircuitInventory () && circuitInventory != null ) {
570560 col .child (new GhostCircuitSlotWidget ()
571- // .pos(124, 62 + yOffset)
572561 .slot (SyncHandlers .itemSlot (circuitInventory , 0 ))
573562 .background (GTGuiTextures .SLOT , GTGuiTextures .INT_CIRCUIT_OVERLAY ));
574563 }
0 commit comments