Skip to content

Commit

Permalink
Compiles again!
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Jan 22, 2025
1 parent cd2fd3c commit 16df071
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gregtech.api.mui.widget;

import com.cleanroommc.modularui.drawable.GuiDraw;
import com.cleanroommc.modularui.screen.viewport.GuiContext;
import com.cleanroommc.modularui.screen.viewport.ModularGuiContext;
import com.cleanroommc.modularui.theme.WidgetTheme;
import com.cleanroommc.modularui.widgets.ItemSlot;

Expand Down Expand Up @@ -32,15 +32,15 @@ public boolean isHovering() {
}

@Override
public void draw(GuiContext context, WidgetTheme widgetTheme) {
public void draw(ModularGuiContext context, WidgetTheme widgetTheme) {
super.draw(context, widgetTheme);
if (isBlocked.getAsBoolean()) {
GuiDraw.drawRect(1, 1, 16, 16, OVERLAY_COLOR);
}
}

@Override
public void drawForeground(GuiContext context) {
public void drawForeground(ModularGuiContext context) {
if (isBlocked.getAsBoolean()) return;
super.drawForeground(context);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)

// TODO: Use controlsAmount(false) in the sync handler when #2622 is done
GTFluidSyncHandler tankSyncHandler = new GTFluidSyncHandler(this.exportFluids.getTankAt(0))
.canDrainSlot(true).canFillSlot(false);
.accessibility(true, false);

// TODO: Change the position of the name when it's standardized.
return GTGuis.createPanel(this, 176, 166)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ public boolean usesMui2() {
public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager) {
guiSyncManager.registerSlotGroup("item_inv", 2);

// TODO: Use controlsAmount(false) in the sync handler when #2622 is done
GTFluidSyncHandler tankSyncHandler = new GTFluidSyncHandler(this.fluidTank)
.canDrainSlot(true).canFillSlot(false);
.accessibility(true, false);

// TODO: Change the position of the name when it's standardized.
return GTGuis.createPanel(this, 176, 166)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public boolean usesMui2() {
public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager) {
guiSyncManager.registerSlotGroup("item_inv", 1);

GTFluidSyncHandler tankSyncHandler = new GTFluidSyncHandler(this.importFluids.getTankAt(0))
.canFillSlot(false).canDrainSlot(true);
GTFluidSyncHandler tankSyncHandler = new GTFluidSyncHandler(this.importFluids.getTankAt(0));

return GTGuis.createPanel(this, 176, 166)
.background(IS_STEEL ? GTGuiTextures.BACKGROUND_STEEL : GTGuiTextures.BACKGROUND_BRONZE)
Expand Down

0 comments on commit 16df071

Please sign in to comment.