调整布局
This commit is contained in:
parent
d3a47ea3d3
commit
fa57542f3c
|
|
@ -261,7 +261,7 @@ public abstract class InterfaceScreenMixin<T extends AEBaseMenu> {
|
|||
int imageWidth = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getImageWidth();
|
||||
// 按照样板供应器界面一致的布局:界面右缘外侧竖排
|
||||
int bx = leftPos + imageWidth + 1;
|
||||
int by = topPos + 20;
|
||||
int by = topPos + 70; // 向下偏移25px (从20改为45)
|
||||
int spacing = 22;
|
||||
if (eap$divideBy2Button != null) { eap$divideBy2Button.setX(bx); eap$divideBy2Button.setY(by); }
|
||||
if (eap$x2Button != null) { eap$x2Button.setX(bx); eap$x2Button.setY(by + spacing); }
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ public abstract class GuiExPatternProviderMixin extends PatternProviderScreen<Co
|
|||
|
||||
// 定位到 GUI 右缘外侧一点(使用绝对屏幕坐标)
|
||||
int bx = this.leftPos + this.imageWidth + 1; // 向右平移 1px 到面板外侧
|
||||
int by = this.topPos + 20;
|
||||
int by = this.topPos + 50; // 向下偏移25px (从20改为45)
|
||||
int spacing = 22;
|
||||
// 翻页按钮交由左侧工具栏布局,无需手动定位
|
||||
if (this.divideBy2Button != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user