@@ -73,24 +73,14 @@ protected ModularUI.Builder createGuiTemplate(EntityPlayer player) {
7373 .setButtonTexture (GuiTextures .BUTTON_OVERCLOCK ));
7474
7575 if (exportItems .getSlots () + exportFluids .getTanks () <= 9 ) {
76- ImageWidget logo = new ImageWidget (152 , 62 + yOffset , 17 , 17 ,
76+ ImageWidget logo = new ImageWidget (152 , 63 + yOffset , 17 , 17 ,
7777 GTValues .XMAS .get () ? GTFOGuiTextures .GTFO_LOGO_XMAS : GTFOGuiTextures .GTFO_LOGO )
7878 .setIgnoreColor (true );
7979
8080 if (this .circuitInventory != null ) {
81- SlotWidget circuitSlot = new GhostCircuitSlotWidget (circuitInventory , 0 , 124 , 62 + yOffset )
82- .setBackgroundTexture (GuiTextures .SLOT , getCircuitSlotOverlay ());
83- builder .widget (getCircuitSlotTooltip (circuitSlot )).widget (logo )
84- .widget (new ClickButtonWidget (115 , 62 + yOffset , 9 , 9 , "" ,
85- click -> circuitInventory .addCircuitValue (click .isShiftClick ? 5 : 1 ))
86- .setShouldClientCallback (true )
87- .setButtonTexture (GuiTextures .BUTTON_INT_CIRCUIT_PLUS )
88- .setDisplayFunction (() -> circuitInventory .hasCircuitValue () && circuitInventory .getCircuitValue () < IntCircuitIngredient .CIRCUIT_MAX ))
89- .widget (new ClickButtonWidget (115 , 71 + yOffset , 9 , 9 , "" ,
90- click -> circuitInventory .addCircuitValue (click .isShiftClick ? -5 : -1 ))
91- .setShouldClientCallback (true )
92- .setButtonTexture (GuiTextures .BUTTON_INT_CIRCUIT_MINUS )
93- .setDisplayFunction (() -> circuitInventory .hasCircuitValue () && circuitInventory .getCircuitValue () > IntCircuitIngredient .CIRCUIT_MIN ));
81+ SlotWidget circuitSlot = new GhostCircuitSlotWidget (this .circuitInventory , 0 , 124 , 62 + yOffset )
82+ .setBackgroundTexture (GuiTextures .SLOT , this .getCircuitSlotOverlay ());
83+ builder .widget (circuitSlot .setConsumer (this ::getCircuitSlotTooltip )).widget (logo );
9484 }
9585 }
9686 return builder ;
0 commit comments