fix(英雄): 调整英雄模型缩放、血条位置和颜色,优化顶部UI布局

- 调整多个英雄模型(mo1、mo2、ha1、hc1、hh1、hm1、hz1、hm2、mo3、hk1、mo4)的缩放比例(x轴从1改为0.7-0.8)和血条位置(y轴坐标)
- 为英雄阵营单位设置绿色血条(#2ECC71)以区分阵营
- 禁用物理调试绘制以提升性能
- 优化顶部UI(top.prefab)的布局:调整位置、缩放、尺寸,使血条和能量条更紧凑
- 调整hm2英雄的碰撞框尺寸和位置
- 移除mo3和hk1英雄中不必要的UI元素覆盖
- 为mo4英雄添加骷髅图标并调整顶部UI位置和缩放
This commit is contained in:
walkpan
2026-03-18 22:53:49 +08:00
parent b2595cd1b4
commit 8a55f7433b
14 changed files with 379 additions and 566 deletions

View File

@@ -26,10 +26,16 @@
},
{
"__id__": 26
},
{
"__id__": 43
}
],
"_active": true,
"_components": [
{
"__id__": 52
},
{
"__id__": 54
},
@@ -41,13 +47,10 @@
},
{
"__id__": 60
},
{
"__id__": 62
}
],
"_prefab": {
"__id__": 64
"__id__": 62
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -525,69 +528,200 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "69IAw7dThHvIlVtTfXOVMZ",
"fileId": "f4ModMncVDMrUHuqBiagGP",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
"mountedChildren": [
{
"__id__": 29
},
{
"__id__": 31
},
{
"__id__": 32
},
{
"__id__": 33
},
{
"__id__": 34
},
{
"__id__": 36
},
}
],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 40
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 52
},
{
"__id__": 53
"__id__": 42
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"__type__": "cc.MountedChildrenInfo",
"targetInfo": {
"__id__": 30
},
"nodes": [
{
"__id__": 31
}
]
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5fqU0L3/FOhKaco5UkHuWT"
]
},
{
"__type__": "cc.Node",
"_name": "ItemIcon_Skull_Boss_Red",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": {
"__id__": 26
}
},
"_parent": {
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 34
}
],
"_prefab": {
"__id__": 36
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5.735,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.3,
"y": 0.3,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 33
},
"_contentSize": {
"__type__": "cc.Size",
"width": 126,
"height": 98
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0cUIDHRMpO+I/pJNcH8snV"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 35
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@c31a4",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AqRrtoFFO7TtXORONOsR"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8b9AqR/NNJ34v2wVDvcXCR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
},
"propertyPath": [
"_name"
],
@@ -602,7 +736,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
"__id__": 38
},
"propertyPath": [
"_lpos"
@@ -610,14 +744,14 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 193.99,
"y": 221.493,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
"__id__": 38
},
"propertyPath": [
"_lrot"
@@ -633,7 +767,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
"__id__": 38
},
"propertyPath": [
"_euler"
@@ -648,7 +782,91 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 35
"__id__": 38
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 1.3,
"y": 1.3,
"z": 1
}
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 44
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 43
},
"asset": {
"__uuid__": "b02b7a49-ba72-4956-8b7e-31dc476377f1",
"__expectedType__": "cc.Prefab"
},
"fileId": "54R/aYBglLI4Jn5pm++Jx8",
"instance": {
"__id__": 45
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "ed6VStPDNN5L9seHpMcpLs",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 49
},
{
"__id__": 50
},
{
"__id__": 51
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 47
},
"propertyPath": [
"_name"
],
"value": "maxr"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"54R/aYBglLI4Jn5pm++Jx8"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 47
},
"propertyPath": [
"_lpos"
@@ -656,214 +874,56 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 10.531,
"y": -14.295,
"z": 0
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"16MuhUBUpB2ZdBTYflEf1n"
]
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 47
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
"__id__": 47
},
"propertyPath": [
"_lscale"
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 200,
"height": 20
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"cdvV5hAkdEaY6AT6urHKuf"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 40
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 100,
"height": 10
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"73XD/xCtdN56MXQv4d3Zpr"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 42
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 100,
"height": 10
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"6eLgGcjghBaJCJdqSzqDJp"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 44
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 100,
"height": 10
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"7f9LGtOY9DM6ZTL5+fc4gA"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 46
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -50,
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"61x78YGExIH5sbDV+PvuuK"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 48
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 3.342,
"z": 0
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"32HF124+5LVqGOnUmyAZ0q"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 50
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 3.342,
"z": 0
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"4bGUhFXlZF/Jdkcq0HY9ai"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 48
"__id__": 47
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.9,
"y": 1.5,
"x": 2,
"y": 2.5,
"z": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 50
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.9,
"y": 1.5,
"z": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
},
"propertyPath": [
"_active"
],
"value": true
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -874,7 +934,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 55
"__id__": 53
},
"_contentSize": {
"__type__": "cc.Size",
@@ -902,7 +962,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 57
"__id__": 55
},
"anm": {
"__id__": 5
@@ -923,7 +983,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 59
"__id__": 57
},
"debugMode": false,
"_id": ""
@@ -942,7 +1002,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 61
"__id__": 59
},
"enabledContactListener": true,
"bullet": false,
@@ -976,7 +1036,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 63
"__id__": 61
},
"tag": 0,
"_group": 4,
@@ -1012,6 +1072,9 @@
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 43
},
{
"__id__": 26
},