Align panels from center to edges (#856)

This commit is contained in:
slprime authored and GitHub committed 2026-02-09 21:11:10 +00:00
1 parent c125b71ae0
commit 9326ac48ad
3 files changed
+42 -40

No files matched your search

@@ -84,6 +84,10 @@ public abstract class PanelWidget<T extends ItemsGrid<? extends ItemsGridSlot, ?
public abstract Rectangle4i calculateBounds();
protected static int snapDownToMultiple(int value, int multiple) {
return (value / multiple) * multiple;
}
public void resize(GuiContainer gui) {
final Rectangle4i bounds = calculateBounds();