From 6608cedb08a5cd49e95aab59d92e1b4a3ed91315 Mon Sep 17 00:00:00 2001 From: pan Date: Tue, 1 Sep 2026 10:46:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=80=AA=E7=89=A9?= =?UTF-8?q?=E5=92=8C=E8=8B=B1=E9=9B=84=E5=88=9D=E5=A7=8B=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E8=83=9C=E5=88=A9UI=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将怪物和英雄的默认尺寸从1.15改为1,同时调整胜利UI的位置、大小、字体和精灵配置,统一界面显示效果 --- assets/resources/gui/element/victory.prefab | 29 ++++++++++++--------- assets/script/game/hero/Hero.ts | 2 +- assets/script/game/hero/Mon.ts | 2 +- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/assets/resources/gui/element/victory.prefab b/assets/resources/gui/element/victory.prefab index 33570e5d..379e30ca 100644 --- a/assets/resources/gui/element/victory.prefab +++ b/assets/resources/gui/element/victory.prefab @@ -287,7 +287,7 @@ "__id__": 11 } ], - "_active": false, + "_active": true, "_components": [ { "__id__": 19 @@ -302,7 +302,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 470.965, + "y": 460.432, "z": 0 }, "_lrot": { @@ -355,7 +355,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -4.457999999999995, + "y": 5.418000000000003, "z": 0 }, "_lrot": { @@ -395,7 +395,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 144, + "width": 124, "height": 54.4 }, "_anchorPoint": { @@ -434,8 +434,8 @@ "_string": "战斗结束", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 35, - "_fontSize": 35, + "_actualFontSize": 30, + "_fontSize": 30, "_fontFamily": "Arial", "_lineHeight": 40, "_overflow": 0, @@ -493,7 +493,7 @@ "_target": null, "_left": 0, "_right": 0, - "_top": 77.758, + "_top": -3.6180000000000008, "_bottom": 0, "_horizontalCenter": 0, "_verticalCenter": 0, @@ -540,8 +540,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 377, - "height": 201 + "width": 300, + "height": 58 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -577,12 +577,12 @@ "a": 255 }, "_spriteFrame": { - "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@bc18e", + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@9a244", "__expectedType__": "cc.SpriteFrame" }, - "_type": 0, + "_type": 1, "_fillType": 0, - "_sizeMode": 1, + "_sizeMode": 0, "_fillCenter": { "__type__": "cc.Vec2", "x": 0, @@ -592,7 +592,10 @@ "_fillRange": 0, "_isTrimmedMode": true, "_useGrayscale": false, - "_atlas": null, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, "_id": "" }, { diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index 16fd5faa..92c40b9b 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -80,7 +80,7 @@ export class Hero extends ecs.Entity { // 英雄等级上限以配置为准,合成可升到 HERO_MAX_LV if (hero_lv > FightSet.HERO_MAX_LV) hero_lv = FightSet.HERO_MAX_LV // 英雄尺寸随等级做轻量放大,强化成长反馈 - let size = 1.15 + let size = 1 // 根据配置路径加载英雄预制体 var path = "game/heros/" + HeroInfo[uuid].path; var prefab: Prefab = oops.res.get(path, Prefab)!; diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index 8eef87be..4d124489 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -134,7 +134,7 @@ export class Monster extends ecs.Entity { // 怪物默认朝左,表现缩放固定为负向 scale = -1 // 当前怪物尺寸固定,保留变量便于后续扩展 - let size = 1.15 + let size = 1 var scene = smc.map.MapView.scene; // 根据配置读取怪物预制体路径 var path = "game/heros/" + HeroInfo[uuid].path;