From b392ebe272c0df9733c42902b86b76d54baf882a Mon Sep 17 00:00:00 2001 From: walkpan Date: Mon, 19 Jan 2026 07:52:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B8=B8=E6=88=8F=E9=80=BB=E8=BE=91):=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=BB=E5=8A=A1=E6=80=AA=E7=89=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=97=B6=E9=87=8D=E7=BD=AE=E8=AE=A1=E6=97=B6?= =?UTF-8?q?=E5=99=A8=E5=92=8C=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(UI): 调整top.prefab中元素的尺寸和对齐方式 --- assets/resources/game/heros/top.prefab | 32 ++++++++++++------------ assets/script/game/map/MissionMonComp.ts | 3 +++ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/assets/resources/game/heros/top.prefab b/assets/resources/game/heros/top.prefab index 0ad93ee6..cf3b05c1 100644 --- a/assets/resources/game/heros/top.prefab +++ b/assets/resources/game/heros/top.prefab @@ -1220,7 +1220,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -49, + "x": -50, "y": 0, "z": 0 }, @@ -1261,8 +1261,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 98, - "height": 9 + "width": 100, + "height": 10 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1386,8 +1386,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 98, - "height": 9 + "width": 100, + "height": 10 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1461,7 +1461,7 @@ "__id__": 53 }, "_mode": 0, - "_totalLength": 97, + "_totalLength": 100, "_progress": 1, "_reverse": false, "_id": "" @@ -1509,7 +1509,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -49, + "x": -50, "y": 0, "z": 0 }, @@ -1550,8 +1550,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 98, - "height": 9 + "width": 100, + "height": 10 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1626,10 +1626,10 @@ }, "_alignFlags": 45, "_target": null, - "_left": 1, - "_right": 1, - "_top": 0.5, - "_bottom": 0.5, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -2385,7 +2385,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -49, + "x": -50, "y": 0, "z": 0 }, @@ -2426,8 +2426,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 98, - "height": 9 + "width": 100, + "height": 10 }, "_anchorPoint": { "__type__": "cc.Vec2", diff --git a/assets/script/game/map/MissionMonComp.ts b/assets/script/game/map/MissionMonComp.ts index 390c89ad..afb93a84 100644 --- a/assets/script/game/map/MissionMonComp.ts +++ b/assets/script/game/map/MissionMonComp.ts @@ -56,6 +56,9 @@ export class MissionMonCompComp extends CCComp { smc.vmdata.mission_data.mon_num=0 // 重置生成顺序计数器 this.globalSpawnOrder = 0 + this.gameTime = 0 + this.spawnLogicTimer = 0 + this.MonQueue = [] this.do_mon_wave() }