feat(map): 新增任务技能面板并优化技能触发逻辑

- 新增 mskills.prefab 作为任务技能容器
- 将 MissSkillsComp 挂载到场景实体层,移除 MissionCardComp 中的引用
- 优化 SkillBoxComp 触发坐标计算,改为基于父节点位置
- 调整技能盒尺寸并添加等级标签显示
- 修复战斗开始时技能触发计时器重置逻辑
This commit is contained in:
walkpan
2026-04-06 22:09:43 +08:00
parent 2010e2adc5
commit 62b7b9783a
8 changed files with 1716 additions and 1310 deletions

View File

@@ -28,17 +28,17 @@
"_active": true,
"_components": [
{
"__id__": 120
"__id__": 136
},
{
"__id__": 122
"__id__": 138
},
{
"__id__": 124
"__id__": 140
}
],
"_prefab": {
"__id__": 126
"__id__": 142
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -197,17 +197,17 @@
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 129
},
{
"__id__": 115
"__id__": 131
},
{
"__id__": 117
"__id__": 133
}
],
"_prefab": {
"__id__": 119
"__id__": 135
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -257,17 +257,17 @@
"__id__": 70
},
{
"__id__": 104
"__id__": 120
}
],
"_active": true,
"_components": [
{
"__id__": 110
"__id__": 126
}
],
"_prefab": {
"__id__": 112
"__id__": 128
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1100,6 +1100,8 @@
"__id__": 0
},
"fileId": "afC1QRFbdIJrdpKczcbi3p",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -1719,19 +1721,22 @@
},
{
"__id__": 95
},
{
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 115
},
{
"__id__": 101
"__id__": 117
}
],
"_prefab": {
"__id__": 103
"__id__": 119
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2378,6 +2383,212 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 70
},
"_prefab": {
"__id__": 100
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 99
},
"asset": {
"__uuid__": "0f2aeee0-d590-4c36-9f20-a93b058d5b91",
"__expectedType__": "cc.Prefab"
},
"fileId": "5622mxbS1PNqMFP0FH5Mir",
"instance": {
"__id__": 101
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f99PWIj1JPJqRhcUsVZf3M",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 102
},
{
"__id__": 104
},
{
"__id__": 105
},
{
"__id__": 106
},
{
"__id__": 107
},
{
"__id__": 109
},
{
"__id__": 110
},
{
"__id__": 111
},
{
"__id__": 112
},
{
"__id__": 114
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 103
},
"propertyPath": [
"_name"
],
"value": "mskills"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5622mxbS1PNqMFP0FH5Mir"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 103
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": -180,
"y": 314.571,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 103
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 103
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 108
},
"propertyPath": [
"_alignFlags"
],
"value": 10
},
{
"__type__": "cc.TargetInfo",
"localID": [
"baKsIzXktAyqqNBZKVQXO+"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 108
},
"propertyPath": [
"_left"
],
"value": -360
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 108
},
"propertyPath": [
"_right"
],
"value": -130
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 108
},
"propertyPath": [
"_originalWidth"
],
"value": 360
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 113
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 360,
"height": 100
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"4dNsDtN3ZGiZ+om9xELLFQ"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 108
},
"propertyPath": [
"_verticalCenter"
],
"value": 264.571
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -2388,7 +2599,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 100
"__id__": 116
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2416,7 +2627,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 102
"__id__": 118
},
"_id": ""
},
@@ -2449,14 +2660,14 @@
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 121
},
{
"__id__": 107
"__id__": 123
}
],
"_prefab": {
"__id__": 109
"__id__": 125
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2493,11 +2704,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 104
"__id__": 120
},
"_enabled": true,
"__prefab": {
"__id__": 106
"__id__": 122
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2521,11 +2732,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 104
"__id__": 120
},
"_enabled": true,
"__prefab": {
"__id__": 108
"__id__": 124
},
"light": null,
"_id": ""
@@ -2557,7 +2768,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 111
"__id__": 127
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2598,7 +2809,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 114
"__id__": 130
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2626,7 +2837,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 116
"__id__": 132
},
"camera": {
"__id__": 3
@@ -2641,10 +2852,10 @@
"__id__": 66
},
"entityLayer": {
"__id__": 101
"__id__": 117
},
"SkillLayer": {
"__id__": 107
"__id__": 123
},
"isFollowPlayer": true,
"_id": ""
@@ -2663,7 +2874,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 118
"__id__": 134
},
"_id": ""
},
@@ -2694,7 +2905,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 121
"__id__": 137
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2722,7 +2933,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 123
"__id__": 139
},
"_cameraComponent": {
"__id__": 3
@@ -2744,7 +2955,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 125
"__id__": 141
},
"_alignFlags": 45,
"_target": null,
@@ -2780,6 +2991,11 @@
},
"fileId": "32qENLKwZHV5S2IyZfpNx2",
"instance": null,
"targetOverrides": null
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 99
}
]
}
]