调整接口的按钮位置避免与网络工具ui冲突

This commit is contained in:
C-H716 2025-10-28 08:44:47 +08:00
parent ac308242e2
commit eaed56fada

View File

@ -247,8 +247,8 @@ public abstract class InterfaceScreenMixin<T extends AEBaseMenu> {
int topPos = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getTopPos();
int imageWidth = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getImageWidth();
// 按照样板供应器界面一致的布局界面右缘外侧竖排
int bx = leftPos + imageWidth + 1;
int by = topPos + 70; // 向下偏移25px (从20改为45)
int bx = leftPos - eap$divideBy2Button.getWidth() -1;
int by = topPos + 30;
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); }