fix(ui): 调整任务卡英雄信息面板的间距和对齐

调整英雄信息面板项间距从130px到135px,并同步更新相关预制体的尺寸和布局参数,以解决显示对齐问题。同时更新ui3.plist中多个精灵的边框设置,优化渲染效果。
This commit is contained in:
panw
2026-04-08 17:07:02 +08:00
parent 18d8d20056
commit 0c21916756
3 changed files with 53 additions and 53 deletions

View File

@@ -294,8 +294,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 55, "x": 67.5,
"y": 37.492, "y": 23.987,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -502,14 +502,14 @@
"__prefab": { "__prefab": {
"__id__": 21 "__id__": 21
}, },
"_alignFlags": 8, "_alignFlags": 18,
"_target": null, "_target": null,
"_left": -10, "_left": 1.105000000000004,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 23.987,
"_isAbsLeft": true, "_isAbsLeft": true,
"_isAbsRight": true, "_isAbsRight": true,
"_isAbsTop": true, "_isAbsTop": true,
@@ -578,8 +578,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 65, "x": 67.5,
"y": 12.894000000000005, "y": 4.769999999999996,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -672,7 +672,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 130, "width": 135,
"height": 165 "height": 165
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -1509,7 +1509,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 130, "width": 135,
"height": 165 "height": 165
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -1539,8 +1539,8 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": -20.394000000000005, "_top": -12.269999999999989,
"_bottom": 5.394000000000005, "_bottom": -2.7300000000000058,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -1611,8 +1611,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 65, "x": 67.5,
"y": 12.894000000000005, "y": 4.769999999999996,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1705,7 +1705,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 130, "width": 135,
"height": 165 "height": 165
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -2542,7 +2542,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 130, "width": 135,
"height": 165 "height": 165
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -2572,8 +2572,8 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": -20.394000000000005, "_top": -12.269999999999989,
"_bottom": 5.394000000000005, "_bottom": -2.7300000000000058,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -2641,7 +2641,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 55, "x": 67.5,
"y": -30, "y": -30,
"z": 0 "z": 0
}, },
@@ -2735,7 +2735,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 125,
"height": 25 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -3155,7 +3155,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 125,
"height": 25 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -3226,10 +3226,10 @@
"__prefab": { "__prefab": {
"__id__": 141 "__id__": 141
}, },
"_alignFlags": 12, "_alignFlags": 44,
"_target": null, "_target": null,
"_left": 5, "_left": 5,
"_right": 10, "_right": 5,
"_top": 0, "_top": 0,
"_bottom": 32.5, "_bottom": 32.5,
"_horizontalCenter": 0, "_horizontalCenter": 0,
@@ -3240,7 +3240,7 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 90, "_originalWidth": 100,
"_originalHeight": 0, "_originalHeight": 0,
"_alignMode": 2, "_alignMode": 2,
"_lockFlags": 0, "_lockFlags": 0,
@@ -3299,7 +3299,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 55, "x": 67.5,
"y": -52.12100000000001, "y": -52.12100000000001,
"z": 0 "z": 0
}, },
@@ -3393,7 +3393,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 125,
"height": 25 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -3813,7 +3813,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 125,
"height": 25 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -3884,10 +3884,10 @@
"__prefab": { "__prefab": {
"__id__": 169 "__id__": 169
}, },
"_alignFlags": 12, "_alignFlags": 44,
"_target": null, "_target": null,
"_left": 5, "_left": 5,
"_right": 10, "_right": 5,
"_top": 0, "_top": 0,
"_bottom": 10.37899999999999, "_bottom": 10.37899999999999,
"_horizontalCenter": 0, "_horizontalCenter": 0,
@@ -3898,7 +3898,7 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 90, "_originalWidth": 100,
"_originalHeight": 0, "_originalHeight": 0,
"_alignMode": 2, "_alignMode": 2,
"_lockFlags": 0, "_lockFlags": 0,
@@ -4549,7 +4549,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 65, "x": 67.5,
"y": -90, "y": -90,
"z": 0 "z": 0
}, },
@@ -4749,7 +4749,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 124, "width": 129,
"height": 40 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
@@ -4946,7 +4946,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 130, "width": 135,
"height": 150 "height": 150
}, },
"_anchorPoint": { "_anchorPoint": {

View File

@@ -1266,8 +1266,8 @@
"height": 253, "height": 253,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 253, "rawHeight": 253,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1312,8 +1312,8 @@
"height": 258, "height": 258,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 258, "rawHeight": 258,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1404,8 +1404,8 @@
"height": 253, "height": 253,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 253, "rawHeight": 253,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1450,8 +1450,8 @@
"height": 258, "height": 258,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 258, "rawHeight": 258,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1542,8 +1542,8 @@
"height": 253, "height": 253,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 253, "rawHeight": 253,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1588,8 +1588,8 @@
"height": 258, "height": 258,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 258, "rawHeight": 258,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1680,8 +1680,8 @@
"height": 253, "height": 253,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 253, "rawHeight": 253,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1726,8 +1726,8 @@
"height": 258, "height": 258,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 258, "rawHeight": 258,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1818,8 +1818,8 @@
"height": 253, "height": 253,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 253, "rawHeight": 253,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,
@@ -1864,8 +1864,8 @@
"height": 258, "height": 258,
"rawWidth": 204, "rawWidth": 204,
"rawHeight": 258, "rawHeight": 258,
"borderTop": 0, "borderTop": 50,
"borderBottom": 0, "borderBottom": 50,
"borderLeft": 0, "borderLeft": 0,
"borderRight": 0, "borderRight": 0,
"packable": true, "packable": true,

View File

@@ -124,7 +124,7 @@ export class MissionCardComp extends CCComp {
/** 当前卡池等级(仅影响抽卡来源,不直接改卡槽现有内容) */ /** 当前卡池等级(仅影响抽卡来源,不直接改卡槽现有内容) */
private poolLv: number = CARD_POOL_INIT_LEVEL; private poolLv: number = CARD_POOL_INIT_LEVEL;
/** 英雄信息面板项间距(像素) */ /** 英雄信息面板项间距(像素) */
private readonly heroInfoItemGap: number = 130; private readonly heroInfoItemGap: number = 135;
/** 英雄信息面板项间额外间距(像素) */ /** 英雄信息面板项间额外间距(像素) */
private readonly heroInfoItemSpacing: number = 5; private readonly heroInfoItemSpacing: number = 5;
/** 英雄信息面板同步计时器(降频刷新用) */ /** 英雄信息面板同步计时器(降频刷新用) */