feat(hero): 为boss单位调整头顶UI位置并添加标识图标

调整HeroViewComp中boss单位的top_node位置,从y=80提升至y=105以更好显示
为mo6、mud4、mud5三个boss预制体添加ItemIcon_Skull_Boss_Red标识图标
更新预制体结构,包括组件引用、材质和颜色属性覆盖
This commit is contained in:
panw
2026-04-07 16:23:08 +08:00
parent 165287d088
commit c7e46fc591
4 changed files with 798 additions and 780 deletions

View File

@@ -37,23 +37,23 @@
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 66
},
{
"__id__": 56
"__id__": 68
},
{
"__id__": 58
"__id__": 70
},
{
"__id__": 60
"__id__": 72
},
{
"__id__": 62
"__id__": 74
}
],
"_prefab": {
"__id__": 64
"__id__": 76
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -337,7 +337,10 @@
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_customMaterial": {
"__uuid__": "2fcd55a9-38ca-45aa-9164-68e48aaf51ce",
"__expectedType__": "cc.Material"
},
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
@@ -830,32 +833,202 @@
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedChildren": [
{
"__id__": 48
}
],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 48
"__id__": 56
},
{
"__id__": 50
"__id__": 58
},
{
"__id__": 51
"__id__": 59
},
{
"__id__": 52
"__id__": 60
},
{
"__id__": 53
"__id__": 61
},
{
"__id__": 62
},
{
"__id__": 64
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"__type__": "cc.MountedChildrenInfo",
"targetInfo": {
"__id__": 49
},
"nodes": [
{
"__id__": 50
}
]
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5fqU0L3/FOhKaco5UkHuWT"
]
},
{
"__type__": "cc.Node",
"_name": "ItemIcon_Skull_Boss_Red",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": {
"__id__": 45
}
},
"_parent": {
"__id__": 45
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
},
{
"__id__": 53
}
],
"_prefab": {
"__id__": 55
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0.9007692307691286,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.09999999999999999,
"y": 0.09999999999999999,
"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__": 50
},
"_enabled": true,
"__prefab": {
"__id__": 52
},
"_contentSize": {
"__type__": "cc.Size",
"width": 126,
"height": 112
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c9TsqhE4hLzZrjpuZNqOno"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 50
},
"_enabled": true,
"__prefab": {
"__id__": 54
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@eb1e3",
"__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__": "cb93c900-b440-4571-91d1-7da1636e3d73",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "955O5G/ZpDzZMIefIeLnat"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "51mbNeFzBNjL08MItkj3IX",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 57
},
"propertyPath": [
"_name"
],
@@ -870,7 +1043,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 57
},
"propertyPath": [
"_lpos"
@@ -885,7 +1058,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 57
},
"propertyPath": [
"_lrot"
@@ -901,7 +1074,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 57
},
"propertyPath": [
"_euler"
@@ -916,18 +1089,61 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 49
"__id__": 57
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 1.4,
"y": 1.4,
"x": 1.3,
"y": 1.3,
"z": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 63
},
"propertyPath": [
"_color"
],
"value": {
"__type__": "cc.Color",
"r": 255,
"g": 204,
"b": 0,
"a": 255
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"42Iqibz0VOArXYqoFJhNMf"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 65
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"4bGUhFXlZF/Jdkcq0HY9ai"
]
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -938,7 +1154,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 55
"__id__": 67
},
"_contentSize": {
"__type__": "cc.Size",
@@ -966,7 +1182,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 57
"__id__": 69
},
"anm": {
"__id__": 11
@@ -987,7 +1203,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 59
"__id__": 71
},
"debugMode": false,
"_id": ""
@@ -1006,7 +1222,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 61
"__id__": 73
},
"enabledContactListener": true,
"bullet": false,
@@ -1040,7 +1256,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 63
"__id__": 75
},
"tag": 0,
"_group": 4,