From 0c21916756d827a6b37c0a0d7dfe68dee26d44ef Mon Sep 17 00:00:00 2001 From: panw Date: Wed, 8 Apr 2026 17:07:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=B0=83=E6=95=B4=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=8D=A1=E8=8B=B1=E9=9B=84=E4=BF=A1=E6=81=AF=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E7=9A=84=E9=97=B4=E8=B7=9D=E5=92=8C=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整英雄信息面板项间距从130px到135px,并同步更新相关预制体的尺寸和布局参数,以解决显示对齐问题。同时更新ui3.plist中多个精灵的边框设置,优化渲染效果。 --- assets/resources/gui/element/hnode.prefab | 64 +++++++++++------------ assets/resources/gui/ui3.plist.meta | 40 +++++++------- assets/script/game/map/MissionCardComp.ts | 2 +- 3 files changed, 53 insertions(+), 53 deletions(-) diff --git a/assets/resources/gui/element/hnode.prefab b/assets/resources/gui/element/hnode.prefab index 8080a0bd..2e4856c4 100644 --- a/assets/resources/gui/element/hnode.prefab +++ b/assets/resources/gui/element/hnode.prefab @@ -294,8 +294,8 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 55, - "y": 37.492, + "x": 67.5, + "y": 23.987, "z": 0 }, "_lrot": { @@ -502,14 +502,14 @@ "__prefab": { "__id__": 21 }, - "_alignFlags": 8, + "_alignFlags": 18, "_target": null, - "_left": -10, + "_left": 1.105000000000004, "_right": 0, "_top": 0, "_bottom": 0, "_horizontalCenter": 0, - "_verticalCenter": 0, + "_verticalCenter": 23.987, "_isAbsLeft": true, "_isAbsRight": true, "_isAbsTop": true, @@ -578,8 +578,8 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 65, - "y": 12.894000000000005, + "x": 67.5, + "y": 4.769999999999996, "z": 0 }, "_lrot": { @@ -672,7 +672,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 130, + "width": 135, "height": 165 }, "_anchorPoint": { @@ -1509,7 +1509,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 130, + "width": 135, "height": 165 }, "_anchorPoint": { @@ -1539,8 +1539,8 @@ "_target": null, "_left": 0, "_right": 0, - "_top": -20.394000000000005, - "_bottom": 5.394000000000005, + "_top": -12.269999999999989, + "_bottom": -2.7300000000000058, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -1611,8 +1611,8 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 65, - "y": 12.894000000000005, + "x": 67.5, + "y": 4.769999999999996, "z": 0 }, "_lrot": { @@ -1705,7 +1705,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 130, + "width": 135, "height": 165 }, "_anchorPoint": { @@ -2542,7 +2542,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 130, + "width": 135, "height": 165 }, "_anchorPoint": { @@ -2572,8 +2572,8 @@ "_target": null, "_left": 0, "_right": 0, - "_top": -20.394000000000005, - "_bottom": 5.394000000000005, + "_top": -12.269999999999989, + "_bottom": -2.7300000000000058, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -2641,7 +2641,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 55, + "x": 67.5, "y": -30, "z": 0 }, @@ -2735,7 +2735,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, + "width": 125, "height": 25 }, "_anchorPoint": { @@ -3155,7 +3155,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, + "width": 125, "height": 25 }, "_anchorPoint": { @@ -3226,10 +3226,10 @@ "__prefab": { "__id__": 141 }, - "_alignFlags": 12, + "_alignFlags": 44, "_target": null, "_left": 5, - "_right": 10, + "_right": 5, "_top": 0, "_bottom": 32.5, "_horizontalCenter": 0, @@ -3240,7 +3240,7 @@ "_isAbsBottom": true, "_isAbsHorizontalCenter": true, "_isAbsVerticalCenter": true, - "_originalWidth": 90, + "_originalWidth": 100, "_originalHeight": 0, "_alignMode": 2, "_lockFlags": 0, @@ -3299,7 +3299,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 55, + "x": 67.5, "y": -52.12100000000001, "z": 0 }, @@ -3393,7 +3393,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, + "width": 125, "height": 25 }, "_anchorPoint": { @@ -3813,7 +3813,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, + "width": 125, "height": 25 }, "_anchorPoint": { @@ -3884,10 +3884,10 @@ "__prefab": { "__id__": 169 }, - "_alignFlags": 12, + "_alignFlags": 44, "_target": null, "_left": 5, - "_right": 10, + "_right": 5, "_top": 0, "_bottom": 10.37899999999999, "_horizontalCenter": 0, @@ -3898,7 +3898,7 @@ "_isAbsBottom": true, "_isAbsHorizontalCenter": true, "_isAbsVerticalCenter": true, - "_originalWidth": 90, + "_originalWidth": 100, "_originalHeight": 0, "_alignMode": 2, "_lockFlags": 0, @@ -4549,7 +4549,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": 65, + "x": 67.5, "y": -90, "z": 0 }, @@ -4749,7 +4749,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 124, + "width": 129, "height": 40 }, "_anchorPoint": { @@ -4946,7 +4946,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 130, + "width": 135, "height": 150 }, "_anchorPoint": { diff --git a/assets/resources/gui/ui3.plist.meta b/assets/resources/gui/ui3.plist.meta index 91375df0..7e3bdb53 100644 --- a/assets/resources/gui/ui3.plist.meta +++ b/assets/resources/gui/ui3.plist.meta @@ -1266,8 +1266,8 @@ "height": 253, "rawWidth": 204, "rawHeight": 253, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1312,8 +1312,8 @@ "height": 258, "rawWidth": 204, "rawHeight": 258, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1404,8 +1404,8 @@ "height": 253, "rawWidth": 204, "rawHeight": 253, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1450,8 +1450,8 @@ "height": 258, "rawWidth": 204, "rawHeight": 258, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1542,8 +1542,8 @@ "height": 253, "rawWidth": 204, "rawHeight": 253, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1588,8 +1588,8 @@ "height": 258, "rawWidth": 204, "rawHeight": 258, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1680,8 +1680,8 @@ "height": 253, "rawWidth": 204, "rawHeight": 253, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1726,8 +1726,8 @@ "height": 258, "rawWidth": 204, "rawHeight": 258, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1818,8 +1818,8 @@ "height": 253, "rawWidth": 204, "rawHeight": 253, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, @@ -1864,8 +1864,8 @@ "height": 258, "rawWidth": 204, "rawHeight": 258, - "borderTop": 0, - "borderBottom": 0, + "borderTop": 50, + "borderBottom": 50, "borderLeft": 0, "borderRight": 0, "packable": true, diff --git a/assets/script/game/map/MissionCardComp.ts b/assets/script/game/map/MissionCardComp.ts index 24a0f58b..b67b0556 100644 --- a/assets/script/game/map/MissionCardComp.ts +++ b/assets/script/game/map/MissionCardComp.ts @@ -124,7 +124,7 @@ export class MissionCardComp extends CCComp { /** 当前卡池等级(仅影响抽卡来源,不直接改卡槽现有内容) */ private poolLv: number = CARD_POOL_INIT_LEVEL; /** 英雄信息面板项间距(像素) */ - private readonly heroInfoItemGap: number = 130; + private readonly heroInfoItemGap: number = 135; /** 英雄信息面板项间额外间距(像素) */ private readonly heroInfoItemSpacing: number = 5; /** 英雄信息面板同步计时器(降频刷新用) */