- 实现 ViewManager 单例页面管理器,支持页面注册、打开、关闭、缓存 - 实现 BaseView 页面基类,提供统一的页面生命周期 - 添加 PageHome 首页,包含开始游戏按钮跳转功能 - 添加 PageLevel 关卡页面,继承 BaseView - 更新 PageLoading 支持进度条显示和页面预加载 - 添加相关图片资源和预制体 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
630 lines
11 KiB
Plaintext
630 lines
11 KiB
Plaintext
[
|
|
{
|
|
"__type__": "cc.Prefab",
|
|
"_name": "PageLoading",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_native": "",
|
|
"data": {
|
|
"__id__": 1
|
|
},
|
|
"optimizationPolicy": 0,
|
|
"persistent": false
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "PageLoading",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": null,
|
|
"_children": [
|
|
{
|
|
"__id__": 2
|
|
},
|
|
{
|
|
"__id__": 10
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 24
|
|
},
|
|
{
|
|
"__id__": 26
|
|
},
|
|
{
|
|
"__id__": 28
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 30
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "Bg",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 3
|
|
},
|
|
{
|
|
"__id__": 5
|
|
},
|
|
{
|
|
"__id__": 7
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 9
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 4
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 1080,
|
|
"height": 2160
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "39zhkEvWdIiKJmPD4o9HUI"
|
|
},
|
|
{
|
|
"__type__": "cc.Sprite",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 6
|
|
},
|
|
"_customMaterial": null,
|
|
"_srcBlendFactor": 2,
|
|
"_dstBlendFactor": 4,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 255,
|
|
"g": 255,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_spriteFrame": {
|
|
"__uuid__": "d532045e-55f8-47c2-9493-b918e18364b0@f9941",
|
|
"__expectedType__": "cc.SpriteFrame"
|
|
},
|
|
"_type": 0,
|
|
"_fillType": 0,
|
|
"_sizeMode": 0,
|
|
"_fillCenter": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_fillStart": 0,
|
|
"_fillRange": 0,
|
|
"_isTrimmedMode": true,
|
|
"_useGrayscale": false,
|
|
"_atlas": null,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "39MgsdBl5NMJdL+0VA8hoQ"
|
|
},
|
|
{
|
|
"__type__": "d33b0ZrKQJEaKZYN2Peg+C/",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 8
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "9fkgRU0NVB7YhzB4E43YTa"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "4f7RmQZNpIjIpFWyB0b6WE",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "ProgressBar",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [
|
|
{
|
|
"__id__": 11
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 17
|
|
},
|
|
{
|
|
"__id__": 19
|
|
},
|
|
{
|
|
"__id__": 21
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 23
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": -545.761,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "Bar",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 10
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 12
|
|
},
|
|
{
|
|
"__id__": 14
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 16
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": -300,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 11
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 13
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 360,
|
|
"height": 50
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "90RRnQzdpBVbI4jsA6CXZA"
|
|
},
|
|
{
|
|
"__type__": "cc.Sprite",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 11
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 15
|
|
},
|
|
"_customMaterial": null,
|
|
"_srcBlendFactor": 2,
|
|
"_dstBlendFactor": 4,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 255,
|
|
"g": 255,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_spriteFrame": {
|
|
"__uuid__": "8c2fa3ce-7612-40c3-9319-498ecb6a18ae@f9941",
|
|
"__expectedType__": "cc.SpriteFrame"
|
|
},
|
|
"_type": 1,
|
|
"_fillType": 0,
|
|
"_sizeMode": 0,
|
|
"_fillCenter": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_fillStart": 0,
|
|
"_fillRange": 0,
|
|
"_isTrimmedMode": true,
|
|
"_useGrayscale": false,
|
|
"_atlas": null,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "31SM7N0uFEe7DXnyWk6WON"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "3drJUdtd9DfaRPRNgf8en8",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 10
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 18
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 600,
|
|
"height": 50
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "46vKE8VGpDPImcB6FtBqju"
|
|
},
|
|
{
|
|
"__type__": "cc.Sprite",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 10
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 20
|
|
},
|
|
"_customMaterial": null,
|
|
"_srcBlendFactor": 2,
|
|
"_dstBlendFactor": 4,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 255,
|
|
"g": 255,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_spriteFrame": {
|
|
"__uuid__": "d2394eb1-7ae7-4a72-8d38-ca3cebd7956f@f9941",
|
|
"__expectedType__": "cc.SpriteFrame"
|
|
},
|
|
"_type": 1,
|
|
"_fillType": 0,
|
|
"_sizeMode": 0,
|
|
"_fillCenter": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_fillStart": 0,
|
|
"_fillRange": 0,
|
|
"_isTrimmedMode": true,
|
|
"_useGrayscale": false,
|
|
"_atlas": null,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "c5TKMK+dxJIaddEOORHmpw"
|
|
},
|
|
{
|
|
"__type__": "cc.ProgressBar",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 10
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 22
|
|
},
|
|
"_barSprite": {
|
|
"__id__": 14
|
|
},
|
|
"_mode": 0,
|
|
"_totalLength": 300,
|
|
"_progress": 0.5,
|
|
"_reverse": false,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "b1DULyOXREp6uKkF/c+7LJ"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "07bygm1KJAcYI/U0oD2qhK",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 25
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 1080,
|
|
"height": 2160
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "04jqKn7FlHGaYUF2pxZZNl"
|
|
},
|
|
{
|
|
"__type__": "1ceeenEk4xE47mN4QUNVcN2",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 27
|
|
},
|
|
"progressBar": {
|
|
"__id__": 21
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "035jtIcBFAXpr+rMnkwU6G"
|
|
},
|
|
{
|
|
"__type__": "cc.Widget",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 29
|
|
},
|
|
"_alignFlags": 45,
|
|
"_target": null,
|
|
"_left": 0,
|
|
"_right": 0,
|
|
"_top": 0,
|
|
"_bottom": 0,
|
|
"_horizontalCenter": 0,
|
|
"_verticalCenter": 0,
|
|
"_isAbsLeft": true,
|
|
"_isAbsRight": true,
|
|
"_isAbsTop": true,
|
|
"_isAbsBottom": true,
|
|
"_isAbsHorizontalCenter": true,
|
|
"_isAbsVerticalCenter": true,
|
|
"_originalWidth": 1080,
|
|
"_originalHeight": 2160,
|
|
"_alignMode": 2,
|
|
"_lockFlags": 0,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "08Ke4fRRVPz6x9lHDiuWL/"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
|
|
"instance": null,
|
|
"targetOverrides": null
|
|
}
|
|
] |