feat(ui): 添加加载界面并集成到胜利场景中

在胜利场景中添加新的加载界面元素,包括:
1. 创建loading.prefab资源文件
2. 在MissionHomeComp中处理MissionStart事件
3. 在VictoryComp中控制loading节点的显示逻辑
4. 更新victory.prefab结构以包含loading节点
This commit is contained in:
walkpan
2026-01-03 20:21:00 +08:00
parent 2d79e9d064
commit 1c36718876
5 changed files with 766 additions and 12 deletions

View File

@@ -26,28 +26,31 @@
},
{
"__id__": 36
},
{
"__id__": 89
}
],
"_active": true,
"_components": [
{
"__id__": 89
"__id__": 106
},
{
"__id__": 91
"__id__": 108
},
{
"__id__": 93
"__id__": 110
},
{
"__id__": 95
"__id__": 112
},
{
"__id__": 97
"__id__": 114
}
],
"_prefab": {
"__id__": 99
"__id__": 116
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2172,6 +2175,225 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 90
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 89
},
"asset": {
"__uuid__": "26bff847-cd29-48a5-bbfa-c3e2dbda688d",
"__expectedType__": "cc.Prefab"
},
"fileId": "5a9CMsVQhKP5Y+UJfTKPbx",
"instance": {
"__id__": 91
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "baAcuO8pBEOJtTY5r2CdgQ",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 92
},
{
"__id__": 94
},
{
"__id__": 95
},
{
"__id__": 96
},
{
"__id__": 97
},
{
"__id__": 98
},
{
"__id__": 100
},
{
"__id__": 102
},
{
"__id__": 104
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 93
},
"propertyPath": [
"_name"
],
"value": "loading"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5a9CMsVQhKP5Y+UJfTKPbx"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 93
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 93
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 93
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 93
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 99
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 740.0000000000006,
"height": 1300
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5f/wlde7xDGqRmc4TaTJHZ"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 101
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 740.0000000000006,
"height": 1300
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"9d1lAxVeZJsI6hfgmn16l0"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 103
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 740.0000000000006,
"height": 1300
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"7eQv5ppk1Hpr0USxE6y7Ww",
"77N2cid5pKDpXplRH/AWEU"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 105
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 740.0000000000006,
"height": 1300
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"7eQv5ppk1Hpr0USxE6y7Ww",
"fbb9ezFuVDaKU7Tqqncexy"
]
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -2182,7 +2404,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 90
"__id__": 107
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2210,7 +2432,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 92
"__id__": 109
},
"_id": ""
},
@@ -2228,7 +2450,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 94
"__id__": 111
},
"_alignFlags": 45,
"_target": null,
@@ -2264,7 +2486,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 96
"__id__": 113
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2306,7 +2528,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 98
"__id__": 115
},
"_id": ""
},
@@ -2324,6 +2546,11 @@
},
"fileId": "d0FqR3MNdHHKbJYj7BXmc4",
"instance": null,
"targetOverrides": null
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 89
}
]
}
]