Skip to content
Merged
Show file tree
Hide file tree
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 @@ -241,8 +241,8 @@ public void drawForeground(ModularGuiContext context) {

@Override
public Result onMousePressed(int button) {
double localX = getContext().getMouseX() - getArea().x;
double localY = getContext().getMouseY() - getArea().y;
double localX = getContext().getMouseX();
double localY = getContext().getMouseY();

int slotIndex = getSlotAtLocal(localX, localY);
if (slotIndex < 0) return Result.IGNORE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void buildMainUI(ParentWidget<?> mainWidget, PosGuiData guiData, PanelSyn
Component.translatable("gtceu.gui.me_network.online") :
Component.translatable("gtceu.gui.me_network.offline"))
.asWidget().marginTop(2).marginBottom(4));
flow.child(new AEConfigWidget(aeFluidHandler, CONFIG_SIZE, false)
flow.child(new AEConfigWidget(aeFluidHandler, CONFIG_SIZE, true)
.syncManager(syncManager)
.size(8 * 18, 2 * (18 * 2 + 2)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import brachy.modularui.factory.PosGuiData;
import brachy.modularui.screen.RichTooltip;
import brachy.modularui.screen.UISettings;
import brachy.modularui.value.BoolValue;
import brachy.modularui.value.sync.BooleanSyncValue;
import brachy.modularui.value.sync.PanelSyncManager;
import brachy.modularui.value.sync.SyncHandlers;
import brachy.modularui.widgets.ButtonWidget;
Expand Down Expand Up @@ -97,7 +97,7 @@ default MachineUIPanelBuilder getPanelBuilder(PosGuiData data, PanelSyncManager
return MachineUIPanelBuilder.panelBuilder(this.self())
.rightConfigurators(f -> {
f.child(new ToggleButton()
.value(new BoolValue.Dynamic(this::isAutoPull, this::setAutoPull))
Comment thread
jurrejelle marked this conversation as resolved.
.value(new BooleanSyncValue(this::isAutoPull, this::setAutoPull).allowC2S())
.stateOverlay(GTGuiTextures.BUTTON_AUTO_PULL)
.tooltipAutoUpdate(true)
.tooltipBuilder(r -> r
Expand Down
Loading