调整接口的按钮位置避免与网络工具ui冲突
This commit is contained in:
parent
ac308242e2
commit
eaed56fada
|
|
@ -247,8 +247,8 @@ public abstract class InterfaceScreenMixin<T extends AEBaseMenu> {
|
||||||
int topPos = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getTopPos();
|
int topPos = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getTopPos();
|
||||||
int imageWidth = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getImageWidth();
|
int imageWidth = ((AbstractContainerScreenAccessor<?>) (Object) this).eap$getImageWidth();
|
||||||
// 按照样板供应器界面一致的布局:界面右缘外侧竖排
|
// 按照样板供应器界面一致的布局:界面右缘外侧竖排
|
||||||
int bx = leftPos + imageWidth + 1;
|
int bx = leftPos - eap$divideBy2Button.getWidth() -1;
|
||||||
int by = topPos + 70; // 向下偏移25px (从20改为45)
|
int by = topPos + 30;
|
||||||
int spacing = 22;
|
int spacing = 22;
|
||||||
if (eap$divideBy2Button != null) { eap$divideBy2Button.setX(bx); eap$divideBy2Button.setY(by); }
|
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); }
|
if (eap$x2Button != null) { eap$x2Button.setX(bx); eap$x2Button.setY(by + spacing); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user