Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 10, 2025
1 parent 0ab25b2 commit f542e0b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
import com.cleanroommc.modularui.widgets.PagedWidget;
import com.cleanroommc.modularui.widgets.SlotGroupWidget;
import com.cleanroommc.modularui.widgets.layout.Column;
import com.cleanroommc.modularui.widgets.layout.Flow;
import com.cleanroommc.modularui.widgets.layout.Grid;
import com.cleanroommc.modularui.widgets.layout.Row;
import com.cleanroommc.modularui.widgets.slot.SlotGroup;
import com.google.common.base.Preconditions;
import org.apache.commons.lang3.ArrayUtils;
Expand Down Expand Up @@ -209,7 +209,7 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
var controller = new PagedWidget.Controller();

return GTGuis.createPanel(this, 176, 224)
.child(new Row()
.child(Flow.row()
.debugName("tab row")
.widthRel(1f)
.leftRel(0.5f)
Expand All @@ -232,10 +232,10 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
.controller(controller)
.coverChildrenHeight()
// workstation page
.addPage(new Column()
.addPage(Flow.column()
.debugName("crafting page")
.coverChildrenWidth()
.child(new Row()
.child(Flow.row()
// todo add clear crafting grid button
.debugName("crafting row")
.coverChildrenHeight()
Expand Down Expand Up @@ -301,7 +301,7 @@ public IWidget createCraftingOutput(PosGuiData guiData, PanelSyncManager syncMan
syncManager.syncValue("amount_crafted", amountCrafted);
amountCrafted.updateCacheFromSource(true);

return new Column()
return Flow.column()
.size(54)
.child(new CraftingOutputSlot(amountCrafted, this)
.marginTop(18)
Expand Down Expand Up @@ -347,10 +347,10 @@ public IWidget createInventoryPage(PanelSyncManager syncManager) {
.setEnabledIf(checkSlotValid)
.slot(SyncHandlers.itemSlot(this.connectedInventory, i)
.slotGroup(connected));
widget.setEnabled(checkSlotValid.test(widget));
// widget.setEnabled(checkSlotValid.test(widget));
list.add(widget);
}
return new Column()
return Flow.column()
.debugName("inventory page")
.padding(2)
.leftRel(0.5f)
Expand Down

0 comments on commit f542e0b

Please sign in to comment.