增加loading界面
No files matched your search
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"cocos.engine.type": "official",
|
||||
"cocos.engine.version": "4.0.0-beta.2",
|
||||
"cocos.engine.dirName": ""
|
||||
}
|
||||
@@ -52,7 +52,7 @@
|
||||
},
|
||||
"autoReleaseAssets": false,
|
||||
"_globals": {
|
||||
"__id__": 43
|
||||
"__id__": 61
|
||||
},
|
||||
"_id": "478fdf39-37fe-4d07-9770-f088728b9215"
|
||||
},
|
||||
@@ -73,24 +73,30 @@
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 38
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 38
|
||||
"__id__": 55
|
||||
},
|
||||
{
|
||||
"__id__": 39
|
||||
"__id__": 56
|
||||
},
|
||||
{
|
||||
"__id__": 40
|
||||
"__id__": 57
|
||||
},
|
||||
{
|
||||
"__id__": 41
|
||||
"__id__": 58
|
||||
},
|
||||
{
|
||||
"__id__": 42
|
||||
"__id__": 59
|
||||
},
|
||||
{
|
||||
"__id__": 60
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@@ -182,7 +188,7 @@
|
||||
"_priority": 0,
|
||||
"_fov": 45,
|
||||
"_fovAxis": 0,
|
||||
"_orthoHeight": 185.35714285714286,
|
||||
"_orthoHeight": 740,
|
||||
"_near": 0,
|
||||
"_far": 2000,
|
||||
"_color": {
|
||||
@@ -1001,7 +1007,7 @@
|
||||
"_string": "No account needed",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 79,
|
||||
"_actualFontSize": 57,
|
||||
"_fontSize": 56,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 64,
|
||||
@@ -1136,7 +1142,7 @@
|
||||
"_string": "Privacy Policy",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 54,
|
||||
"_actualFontSize": 39,
|
||||
"_fontSize": 38,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 46,
|
||||
@@ -1321,7 +1327,7 @@
|
||||
"_string": "Terms of Service",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 54,
|
||||
"_actualFontSize": 39,
|
||||
"_fontSize": 38,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 46,
|
||||
@@ -1503,7 +1509,7 @@
|
||||
"_string": "|",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 79,
|
||||
"_actualFontSize": 57,
|
||||
"_fontSize": 56,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 64,
|
||||
@@ -1583,6 +1589,703 @@
|
||||
"termsUrl": "",
|
||||
"_id": "c3ujDR7IRHVpX7n0QWR5qv"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationPanel",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 39
|
||||
},
|
||||
{
|
||||
"__id__": 42
|
||||
},
|
||||
{
|
||||
"__id__": 45
|
||||
},
|
||||
{
|
||||
"__id__": 48
|
||||
},
|
||||
{
|
||||
"__id__": 51
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 54
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "f6fcJfVRVIdob5LZwVXz2I"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationTitle",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 40
|
||||
},
|
||||
{
|
||||
"__id__": 41
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -45,
|
||||
"y": -454,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "06NamHi6VNCrS2wjSFbRbr"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 39
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 640,
|
||||
"height": 90
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "3fuQmDlSNBbaiz+jj2fv3x"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 39
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 250,
|
||||
"g": 250,
|
||||
"b": 250,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "LOADING...",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 69,
|
||||
"_fontSize": 68,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 76,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": true,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_enableOutline": false,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_outlineWidth": 2,
|
||||
"_enableShadow": false,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_shadowOffset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": 2
|
||||
},
|
||||
"_shadowBlur": 2,
|
||||
"_id": "122LWgArJHX7Z5ADZfbKwz"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationPercent",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 43
|
||||
},
|
||||
{
|
||||
"__id__": 44
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 368,
|
||||
"y": -454,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "57BxKcw2RCpLV+bV0eXMSb"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 42
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 220,
|
||||
"height": 90
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "67fSB+iR1Hob7gOGlI5DaH"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 42
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 250,
|
||||
"g": 250,
|
||||
"b": 250,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "70%",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 69,
|
||||
"_fontSize": 68,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 76,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": true,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_enableOutline": false,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_outlineWidth": 2,
|
||||
"_enableShadow": false,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_shadowOffset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": 2
|
||||
},
|
||||
"_shadowBlur": 2,
|
||||
"_id": "37r4LjWkxLNrwX0UVQD+mY"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationCaption",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 46
|
||||
},
|
||||
{
|
||||
"__id__": 47
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": -699,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "9c2DFouQlEe4ifxZT5GWcc"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 45
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 920,
|
||||
"height": 76
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "ceuxIXavNC2qIw7N74XiLm"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 45
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 250,
|
||||
"g": 250,
|
||||
"b": 250,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "Getting things ready",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 52,
|
||||
"_fontSize": 51,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 59,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": true,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_enableOutline": false,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_outlineWidth": 2,
|
||||
"_enableShadow": false,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_shadowOffset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 2,
|
||||
"y": 2
|
||||
},
|
||||
"_shadowBlur": 2,
|
||||
"_id": "074RDiJAVImJ7NwfyCGiKj"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationFrame",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 49
|
||||
},
|
||||
{
|
||||
"__id__": 50
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -2.5,
|
||||
"y": -576,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "34RvgI2ftGHoP1nOOjf5vS"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 973,
|
||||
"height": 168
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "faJ8fiwkJL9Zt5QHLjZ0U4"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "7a1db310-5d4f-4897-986f-3a1e216406d3@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
"_fillType": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": false,
|
||||
"_useGrayscale": false,
|
||||
"_atlas": null,
|
||||
"_id": "d4TrQJ/IFP4bBBPxBXR9Dk"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "PreparationFill",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 52
|
||||
},
|
||||
{
|
||||
"__id__": 53
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -454,
|
||||
"y": -576,
|
||||
"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": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "4fT/8YfnxFA6TJCjGZWhbF"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 634.1999999999999,
|
||||
"height": 102
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "44MiJOyMBLWaGHZg2gd421"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 1,
|
||||
"_fillType": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": false,
|
||||
"_useGrayscale": false,
|
||||
"_atlas": null,
|
||||
"_id": "1aAyPZoB5DZLDyRYuUxIox"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "edgXzQKD1MerbnTNef+Ys5"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
@@ -1676,30 +2379,85 @@
|
||||
"_id": "02VbCZGqVK94/vLEHGBckY"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SceneGlobals",
|
||||
"ambient": {
|
||||
"__type__": "e4defACO69APKCPd/E0D5i8",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"login": {
|
||||
"__id__": 36
|
||||
},
|
||||
"panel": {
|
||||
"__id__": 38
|
||||
},
|
||||
"loginControls": [
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 22
|
||||
},
|
||||
{
|
||||
"__id__": 25
|
||||
},
|
||||
{
|
||||
"__id__": 29
|
||||
},
|
||||
{
|
||||
"__id__": 33
|
||||
},
|
||||
{
|
||||
"__id__": 19
|
||||
}
|
||||
],
|
||||
"meter": {
|
||||
"__id__": 53
|
||||
},
|
||||
"percentage": {
|
||||
"__id__": 44
|
||||
},
|
||||
"shadows": {
|
||||
"__id__": 45
|
||||
},
|
||||
"_skybox": {
|
||||
"__id__": 46
|
||||
},
|
||||
"fog": {
|
||||
"caption": {
|
||||
"__id__": 47
|
||||
},
|
||||
"frameArtwork": {
|
||||
"__uuid__": "7a1db310-5d4f-4897-986f-3a1e216406d3@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"fillArtwork": {
|
||||
"__uuid__": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_id": "fe/7Iw3rRMYb/Rpy/tzluK"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SceneGlobals",
|
||||
"ambient": {
|
||||
"__id__": 62
|
||||
},
|
||||
"shadows": {
|
||||
"__id__": 63
|
||||
},
|
||||
"_skybox": {
|
||||
"__id__": 64
|
||||
},
|
||||
"fog": {
|
||||
"__id__": 65
|
||||
},
|
||||
"octree": {
|
||||
"__id__": 48
|
||||
"__id__": 66
|
||||
},
|
||||
"skin": {
|
||||
"__id__": 49
|
||||
"__id__": 67
|
||||
},
|
||||
"lightProbeInfo": {
|
||||
"__id__": 50
|
||||
"__id__": 68
|
||||
},
|
||||
"postSettings": {
|
||||
"__id__": 51
|
||||
"__id__": 69
|
||||
},
|
||||
"bakedWithStationaryMainLight": false,
|
||||
"bakedWithHighpLightmap": false
|
||||
|
||||
@@ -8,6 +8,7 @@ const { ccclass, property } = _decorator;
|
||||
@ccclass('GuestLoginView')
|
||||
export class GuestLoginView extends Component implements LoginViewPort {
|
||||
static readonly AUTHENTICATED = 'guest-authenticated';
|
||||
static readonly STATE_CHANGED = 'guest-login-state-changed';
|
||||
@property({ type: Button }) guestButton: Button | null = null;
|
||||
@property({ type: Label }) statusLabel: Label | null = null;
|
||||
private presenter: GuestLoginPresenter | null = null;
|
||||
@@ -30,6 +31,7 @@ export class GuestLoginView extends Component implements LoginViewPort {
|
||||
this.statusLabel.string = state.message;
|
||||
this.statusLabel.node.active = state.message.length > 0;
|
||||
}
|
||||
this.node.emit(GuestLoginView.STATE_CHANGED, state);
|
||||
}
|
||||
onDisable(): void { this.presenter?.cancel(); }
|
||||
onDestroy(): void {
|
||||
|
||||
@@ -1,11 +1,50 @@
|
||||
import { _decorator, Button, Canvas, Color, Component, Label, Node, Sprite, UITransform, Widget } from 'cc';
|
||||
import { EDITOR } from 'cc/env';
|
||||
import { GuestLoginView } from './GuestLoginView';
|
||||
import { StartupLoadingView } from '../../startup/scripts/StartupLoadingView';
|
||||
const { ccclass, executeInEditMode, property } = _decorator;
|
||||
|
||||
/** 仅按显式开关校准已存在节点,不在运行时重建界面。 / Explicit editor-only calibration of existing nodes; never rebuild UI at runtime. */
|
||||
@ccclass('WelcomeLayoutAuthoring')
|
||||
@executeInEditMode
|
||||
export class WelcomeLayoutAuthoring extends Component {
|
||||
@property
|
||||
get applyPreparationLayout(): boolean { return false; }
|
||||
set applyPreparationLayout(value: boolean) {
|
||||
if (!EDITOR || !value) return;
|
||||
const panel = this.child(this.node, 'PreparationPanel');
|
||||
const group = this.child(this.node, 'WelcomeComposition');
|
||||
const loading = this.node.getComponent(StartupLoadingView);
|
||||
if (!loading || !loading.frameArtwork || !loading.fillArtwork) throw new Error('Preparation artwork is not bound.');
|
||||
this.box(panel, 0, 0, 1080, 1920);
|
||||
this.text(this.child(panel, 'PreparationTitle'), 'LOADING...', -45, -454, 640, 90, 68);
|
||||
this.text(this.child(panel, 'PreparationPercent'), '70%', 368, -454, 220, 90, 68);
|
||||
this.text(this.child(panel, 'PreparationCaption'), 'Getting things ready', 0, -699, 920, 76, 51);
|
||||
for (const name of ['PreparationTitle', 'PreparationPercent', 'PreparationCaption']) {
|
||||
this.child(panel, name).getComponent(Label)!.isBold = true;
|
||||
}
|
||||
const frame = this.child(panel, 'PreparationFrame');
|
||||
this.box(frame, -2.5, -576, 973, 168);
|
||||
frame.getComponent(Sprite)!.spriteFrame = loading.frameArtwork;
|
||||
this.sprite(frame);
|
||||
const fill = this.child(panel, 'PreparationFill');
|
||||
this.box(fill, -458, -582, 906, 102);
|
||||
fill.getComponent(UITransform)!.setAnchorPoint(0, .5);
|
||||
const meter = fill.getComponent(Sprite)!;
|
||||
meter.spriteFrame = loading.fillArtwork;
|
||||
this.sprite(fill);
|
||||
meter.type = Sprite.Type.SLICED;
|
||||
// 左右圆头保持固定宽度,中段伸缩,不拉伸整条高光。 / Keep rounded caps fixed and stretch only the center highlight.
|
||||
// 九宫格边距由重命名资源的导入设置持久化。 / Slice borders are persisted in the renamed resource import settings.
|
||||
loading.login = group.getComponent(GuestLoginView);
|
||||
loading.panel = panel;
|
||||
loading.meter = meter;
|
||||
loading.percentage = this.child(panel, 'PreparationPercent').getComponent(Label);
|
||||
loading.caption = this.child(panel, 'PreparationCaption').getComponent(Label);
|
||||
loading.loginControls = ['GuestAccess', 'GuestReassurance', 'PrivacyLink', 'TermsLink', 'LegalDivider', 'AuthenticationStatus'].map(name => this.child(group, name));
|
||||
fill.getComponent(UITransform)!.setContentSize(906 * .7, 102);
|
||||
panel.active = false;
|
||||
}
|
||||
@property
|
||||
get applyReferenceLayout(): boolean { return false; }
|
||||
set applyReferenceLayout(value: boolean) {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "cc824225-4727-4ceb-a8f0-4c8e5fa2968b",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "59d8d637-a831-4d49-b6f2-52a04f638720",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { _decorator, Component, Label, Node, Sprite, SpriteFrame, UITransform } from 'cc';
|
||||
import { GuestLoginView } from '../../login/scripts/GuestLoginView';
|
||||
import type { LoginState } from '../../login/scripts/GuestLoginPresenter';
|
||||
import { StartupProgress } from './StartupProgress';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/** 加载展示与认证解耦;仅显隐控件,不禁用拥有请求生命周期的节点。 / Display controls without disabling the node that owns authentication. */
|
||||
@ccclass('StartupLoadingView')
|
||||
export class StartupLoadingView extends Component {
|
||||
static readonly READY = 'startup-preparation-ready';
|
||||
@property({ type: GuestLoginView }) login: GuestLoginView | null = null;
|
||||
@property({ type: Node }) panel: Node | null = null;
|
||||
@property({ type: [Node] }) loginControls: Node[] = [];
|
||||
@property({ type: Sprite }) meter: Sprite | null = null;
|
||||
@property({ type: Label }) percentage: Label | null = null;
|
||||
@property({ type: Label }) caption: Label | null = null;
|
||||
@property({ type: SpriteFrame }) frameArtwork: SpriteFrame | null = null;
|
||||
@property({ type: SpriteFrame }) fillArtwork: SpriteFrame | null = null;
|
||||
private readonly progress = new StartupProgress();
|
||||
private notified = false;
|
||||
private completedFor = 0;
|
||||
private visible = false;
|
||||
private readonly previousVisibility = new Map<Node, boolean>();
|
||||
onLoad(): void {
|
||||
if (!this.login || !this.panel || !this.meter || !this.percentage || !this.caption) {
|
||||
throw new Error('Startup loading controls are not fully bound.');
|
||||
}
|
||||
this.login.node.on(GuestLoginView.STATE_CHANGED, this.onLoginState, this);
|
||||
this.show(false);
|
||||
}
|
||||
onEnable(): void {
|
||||
this.show(this.progress.phase !== 'idle' && !this.notified);
|
||||
if (this.visible) this.draw();
|
||||
}
|
||||
private onLoginState(state: LoginState): void {
|
||||
if (state.phase === 'signing-in') {
|
||||
this.notified = false;
|
||||
this.completedFor = 0;
|
||||
this.progress.begin();
|
||||
this.show(this.enabledInHierarchy);
|
||||
this.draw();
|
||||
} else if (state.phase === 'authenticated') {
|
||||
this.progress.finish();
|
||||
this.draw();
|
||||
} else {
|
||||
this.progress.reset();
|
||||
this.show(false);
|
||||
}
|
||||
}
|
||||
update(dt: number): void {
|
||||
if (this.progress.phase === 'idle') return;
|
||||
this.progress.tick(dt);
|
||||
this.draw();
|
||||
if (this.progress.phase === 'complete') this.completedFor += Math.max(0, Math.min(.1, dt));
|
||||
if (this.progress.phase === 'complete' && this.completedFor >= .12 && !this.notified) {
|
||||
this.notified = true;
|
||||
// 当前无主场景,收尾后返回既有认证成功落点;后续由就绪接口承接。 / Until a game scene exists, retain the existing authenticated landing state.
|
||||
this.show(false);
|
||||
this.node.emit(StartupLoadingView.READY);
|
||||
}
|
||||
}
|
||||
private draw(): void {
|
||||
// 认证状态可更新文字,但加载层收尾前不显示到同一位置。 / Keep the latest auth message hidden until the loading overlay finishes.
|
||||
if (this.visible && this.login?.statusLabel) this.login.statusLabel.node.active = false;
|
||||
if (this.meter) {
|
||||
this.meter.node.active = this.progress.value > 0;
|
||||
this.meter.getComponent(UITransform)?.setContentSize(906 * this.progress.value, 102);
|
||||
}
|
||||
if (this.percentage) this.percentage.string = `${Math.floor(this.progress.value * 100)}%`;
|
||||
if (this.caption) this.caption.string = 'Getting things ready';
|
||||
}
|
||||
private show(visible: boolean): void {
|
||||
if (this.panel) this.panel.active = visible;
|
||||
if (visible === this.visible) return;
|
||||
this.visible = visible;
|
||||
for (const control of this.loginControls) {
|
||||
if (!control.isValid) continue;
|
||||
if (visible) {
|
||||
this.previousVisibility.set(control, control.active);
|
||||
control.active = false;
|
||||
} else {
|
||||
control.active = control === this.login?.statusLabel?.node
|
||||
? this.login.statusLabel.string.length > 0
|
||||
: (this.previousVisibility.get(control) ?? control.active);
|
||||
}
|
||||
}
|
||||
if (!visible) this.previousVisibility.clear();
|
||||
}
|
||||
onDisable(): void { this.show(false); }
|
||||
onDestroy(): void {
|
||||
if (this.login?.isValid) this.login.node.off(GuestLoginView.STATE_CHANGED, this.onLoginState, this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "e4def002-3baf-403c-a08f-77f1340f98bc",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
export type PreparationPhase = 'idle' | 'loading' | 'finishing' | 'complete';
|
||||
|
||||
/** 未知耗时只估算到上限,真实完成才允许满格。 / Estimated waiting progress is capped until actual completion. */
|
||||
export class StartupProgress {
|
||||
phase: PreparationPhase = 'idle';
|
||||
value = 0;
|
||||
private elapsed = 0;
|
||||
private finishElapsed = 0;
|
||||
private finishFrom = 0;
|
||||
begin(): void { this.reset(); this.phase = 'loading'; this.value = .03; }
|
||||
reset(): void { this.phase = 'idle'; this.value = 0; this.elapsed = 0; this.finishElapsed = 0; this.finishFrom = 0; }
|
||||
finish(): void {
|
||||
if (this.phase !== 'loading') return;
|
||||
this.phase = 'finishing'; this.finishFrom = this.value;
|
||||
}
|
||||
tick(seconds: number): number {
|
||||
const dt = Number.isFinite(seconds) ? Math.min(.1, Math.max(0, seconds)) : 0;
|
||||
if (this.phase === 'loading') {
|
||||
this.elapsed += dt;
|
||||
const target = .08 + .82 * (1 - Math.exp(-this.elapsed / 8));
|
||||
this.value = Math.min(.9, this.value + Math.max(0, target - this.value) * (1 - Math.exp(-dt * 7)));
|
||||
} else if (this.phase === 'finishing') {
|
||||
this.finishElapsed += dt;
|
||||
const t = Math.min(1, this.finishElapsed / .24);
|
||||
this.value = this.finishFrom + (1 - this.finishFrom) * (1 - (1 - t) ** 3);
|
||||
if (t === 1) { this.value = 1; this.phase = 'complete'; }
|
||||
}
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "bd350eaf-d6b7-4516-9d17-78534f4862a6",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "6d3c346b-a6f3-4b4f-922e-7a4ea7eff1f4",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@6c48a",
|
||||
"displayName": "prep-meter-fill",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@f9941",
|
||||
"displayName": "prep-meter-fill",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 2,
|
||||
"trimY": 5,
|
||||
"width": 653,
|
||||
"height": 90,
|
||||
"rawWidth": 657,
|
||||
"rawHeight": 100,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 48,
|
||||
"borderRight": 48,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-326.5,
|
||||
-45,
|
||||
0,
|
||||
326.5,
|
||||
-45,
|
||||
0,
|
||||
-326.5,
|
||||
45,
|
||||
0,
|
||||
326.5,
|
||||
45,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
2,
|
||||
95,
|
||||
655,
|
||||
95,
|
||||
2,
|
||||
5,
|
||||
655,
|
||||
5
|
||||
],
|
||||
"nuv": [
|
||||
0.0030441400304414,
|
||||
0.05,
|
||||
0.9969558599695586,
|
||||
0.05,
|
||||
0.0030441400304414,
|
||||
0.95,
|
||||
0.9969558599695586,
|
||||
0.95
|
||||
],
|
||||
"minPos": [
|
||||
-326.5,
|
||||
-45,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
326.5,
|
||||
45,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@6c48a",
|
||||
"atlasUuid": "",
|
||||
"trimType": "auto"
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"hasAlpha": true,
|
||||
"redirect": "6cc8cbd1-ca56-4bf5-9bd0-48a6a05f8de3@6c48a"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "7a1db310-5d4f-4897-986f-3a1e216406d3",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "7a1db310-5d4f-4897-986f-3a1e216406d3@6c48a",
|
||||
"displayName": "prep-meter-frame",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "7a1db310-5d4f-4897-986f-3a1e216406d3",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "7a1db310-5d4f-4897-986f-3a1e216406d3@f9941",
|
||||
"displayName": "prep-meter-frame",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 13,
|
||||
"trimY": 2,
|
||||
"width": 930,
|
||||
"height": 161,
|
||||
"rawWidth": 956,
|
||||
"rawHeight": 165,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-465,
|
||||
-80.5,
|
||||
0,
|
||||
465,
|
||||
-80.5,
|
||||
0,
|
||||
-465,
|
||||
80.5,
|
||||
0,
|
||||
465,
|
||||
80.5,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
13,
|
||||
163,
|
||||
943,
|
||||
163,
|
||||
13,
|
||||
2,
|
||||
943,
|
||||
2
|
||||
],
|
||||
"nuv": [
|
||||
0.013598326359832637,
|
||||
0.012121212121212121,
|
||||
0.9864016736401674,
|
||||
0.012121212121212121,
|
||||
0.013598326359832637,
|
||||
0.9878787878787879,
|
||||
0.9864016736401674,
|
||||
0.9878787878787879
|
||||
],
|
||||
"minPos": [
|
||||
-465,
|
||||
-80.5,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
465,
|
||||
80.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "7a1db310-5d4f-4897-986f-3a1e216406d3@6c48a",
|
||||
"atlasUuid": "",
|
||||
"trimType": "auto"
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"hasAlpha": true,
|
||||
"redirect": "7a1db310-5d4f-4897-986f-3a1e216406d3@6c48a"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# Fruit Pop 游客登录
|
||||
|
||||
本阶段仅实现登录场景、两步游客认证及本地会话保存,不包含加载页或游戏主界面。
|
||||
当前实现登录场景、两步游客认证、本地会话保存及认证期间的 loading 界面层,尚不包含游戏主界面。
|
||||
|
||||
## 场景与美术
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
本地存储前缀为 fruit-pop.auth,按服务地址与产品隔离。重登失败不覆盖旧成功会话。
|
||||
首次调用者拥有同一服务实例的合并请求及其取消信号;界面层禁止并发提交。
|
||||
|
||||
认证成功后显示 Signed in successfully. 并发出不含 token 的 guest-authenticated 事件,供后续加载功能衔接。
|
||||
当前不添加加载场景,也不自动跳转。
|
||||
点击游客按钮后由独立 StartupLoadingView 展示同场景 loading 层。认证成功时发出不含 token 的 guest-authenticated 事件;进度收满并短暂停留后恢复 Signed in successfully. 落点,发出 startup-preparation-ready 事件。
|
||||
当前没有游戏主场景,不自动跳转;后续游戏场景加载与首屏就绪必须显式接入完成条件,不能把认证成功等同于游戏就绪。详见 startup-loading.md。
|
||||
|
||||
## 验证记录
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# Fruit Pop 加载界面
|
||||
|
||||
## 范围
|
||||
|
||||
- 在 Welcome 场景 Canvas 下添加独立 PreparationPanel,复用已有背景、Logo、水果节点。
|
||||
- 按 1080×1920 loading 参考图安排标题、百分比、进度槽及 Getting things ready;所有节点在编辑器中独立可修改,运行时不创建 UI。
|
||||
- 新切图通过资源工具导入到 assets/startup/visuals,命名 prep-meter-frame.png、prep-meter-fill.png。原始美术未修改,参考整图未作为运行背景导入。
|
||||
- 进度填充采用左锚点与九宫格,左右边距各 48 像素,满格宽度按槽内边界限制为 906,保留圆头和高光;原图上的 70% 只是编辑器展示样例。
|
||||
|
||||
## 职责与流程
|
||||
|
||||
- GuestLoginView 继续管理按钮绑定和认证生命周期,通过 guest-login-state-changed 发布无会话内容的展示状态。
|
||||
- StartupProgress 是独立于引擎的进度状态机。等待期间只估算到 90%,不会自行完成;认证成功后用 0.24 秒平滑收满,并显示 100% 至少约 0.12 秒。
|
||||
- StartupLoadingView 绑定已保存的场景节点,隐藏按钮和页脚,不禁用拥有认证请求的 WelcomeComposition。失败恢复原控件并展示最新错误,可再次点击登录。
|
||||
- 成功提示在 loading 收尾期间保持隐藏,结束后恢复。组件临时禁用保留待收尾状态,再启用后继续,不重复发送完成通知。
|
||||
- 当前没有主场景,完成后返回现有认证成功落点,并发送不含 token 的 startup-preparation-ready。后续接游戏场景时,需要让完成条件等待场景加载及首屏实际就绪;当前没有假装预加载不存在的资源。
|
||||
- 只参考 crimson-lantern 的职责分离、加载上限和真实完成原则,未复制其实现,也未引入原生更新工作流。
|
||||
|
||||
## 验证
|
||||
|
||||
- pnpm@11.17.0 安装锁定依赖,pnpm typecheck、pnpm test(19 项)通过。验收过程中出现过编辑器调整按钮缩放导致旧布局契约失败,后续保存值已恢复为 1;未放宽原登录布局测试。
|
||||
- 测试覆盖进度单调与上限、无效时间、真实完成和重置、场景布局、资源命名及九宫格边距、认证组件绑定。
|
||||
- PinK 场景预览核对 loading 展示、失败恢复、收尾文字互斥、禁用再启用及完成事件单次发送。
|
||||
- 编辑器允许打开 PreparationPanel 预览美术;初始隐藏由 StartupLoadingView.onLoad 执行,并在发布页验证,不强制覆盖编辑器可见状态。
|
||||
- web-mobile 构建成功。发布页注入验签失败后恢复可重试;随后真实两步认证成功,100% 后撤层并发送一次完成事件。
|
||||
- 540×960、390×844、390×640、844×390 核对主体与 loading 控件边界均在可见区域内,切图尺寸比例保持一致。
|
||||
- 最终产物 build/web-mobile-startup-release,构建成功;最终 pnpm typecheck 和 19 项测试全部通过。发布页启动隐藏覆盖层、满格宽度 906、左右圆头及恢复后的控件状态已复核。
|
||||
|
||||
未进行原生构建和真机验证;当前没有原生子工程,本轮范围为场景 UI 与 Web 认证流程。
|
||||
@@ -2,6 +2,10 @@
|
||||
"name": "fruit-pop-googleplay",
|
||||
"type": "3d",
|
||||
"version": "1.0.0",
|
||||
"uuid": "",
|
||||
"creator": {
|
||||
"version": "unknow"
|
||||
},
|
||||
"private": true,
|
||||
"packageManager": "pnpm@11.17.0",
|
||||
"scripts": {
|
||||
@@ -16,10 +20,6 @@
|
||||
"tsx": "4.20.3",
|
||||
"typescript": "5.8.3"
|
||||
},
|
||||
"uuid": "",
|
||||
"creator": {
|
||||
"version": "unknow"
|
||||
},
|
||||
"pink": {
|
||||
"uuid": "39d627e8-7de7-41b7-80d7-bf7a0a58b628",
|
||||
"version": "1.127.0",
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
import { test } from 'node:test';
|
||||
import { strict as assert } from 'node:assert';
|
||||
import { readFileSync, readdirSync } from 'node:fs';
|
||||
import { StartupProgress } from '../assets/startup/scripts/StartupProgress';
|
||||
|
||||
test('waiting progress stays monotonic and below completion, even after long waits', () => {
|
||||
const progress = new StartupProgress();
|
||||
progress.begin();
|
||||
let previous = progress.value;
|
||||
for (let i = 0; i < 6000; i++) {
|
||||
const value = progress.tick(.1);
|
||||
assert.ok(value >= previous && value <= .9);
|
||||
previous = value;
|
||||
}
|
||||
assert.equal(progress.phase, 'loading');
|
||||
const before = progress.value;
|
||||
progress.tick(NaN); progress.tick(-1); progress.tick(Infinity);
|
||||
assert.equal(progress.value, before);
|
||||
});
|
||||
|
||||
test('only real completion reaches 100%; retry resets progress and stale finish is ignored', () => {
|
||||
const progress = new StartupProgress();
|
||||
progress.finish(); assert.equal(progress.phase, 'idle');
|
||||
progress.begin(); progress.tick(.1); progress.finish();
|
||||
const first = progress.tick(.1);
|
||||
progress.finish();
|
||||
assert.ok(first < 1);
|
||||
progress.tick(.1); progress.tick(.1);
|
||||
assert.equal(progress.phase, 'complete'); assert.equal(progress.value, 1);
|
||||
progress.begin(); assert.equal(progress.phase, 'loading'); assert.equal(progress.value, .03);
|
||||
progress.reset(); progress.finish(); progress.tick(.1);
|
||||
assert.equal(progress.phase, 'idle'); assert.equal(progress.value, 0);
|
||||
});
|
||||
|
||||
// 场景必须由领域工具保存;测试只读取布局和资源引用。 / Domain tools author the scene; tests only inspect its saved layout and references.
|
||||
type Entry = Record<string, any>;
|
||||
const scene: Entry[] = JSON.parse(readFileSync('assets/Welcome.scene', 'utf8'));
|
||||
const node = (name: string): Entry => scene.find(item => item.__type__ === 'cc.Node' && item._name === name)!;
|
||||
const components = (name: string): Entry[] => node(name)._components.map((ref: Entry) => scene[ref.__id__]);
|
||||
const component = (name: string, type: string): Entry => components(name).find(item => item.__type__ === type)!;
|
||||
|
||||
test('loading has independent editable labels and renamed frame/fill resources with preserved caps', () => {
|
||||
assert.ok(node('PreparationPanel')._children.length >= 5);
|
||||
for (const [name, text] of [['PreparationTitle', 'LOADING...'], ['PreparationPercent', '70%'], ['PreparationCaption', 'Getting things ready']]) {
|
||||
assert.equal(component(name, 'cc.Label')._string, text);
|
||||
}
|
||||
assert.equal(component('PreparationFrame', 'cc.UITransform')._contentSize.width, 973);
|
||||
assert.equal(component('PreparationFrame', 'cc.UITransform')._contentSize.height, 168);
|
||||
assert.equal(node('PreparationFrame')._lpos.y, -576);
|
||||
assert.equal(component('PreparationFill', 'cc.UITransform')._anchorPoint.x, 0);
|
||||
assert.equal(component('PreparationFill', 'cc.UITransform')._contentSize.width, 906 * .7);
|
||||
assert.equal(component('PreparationFill', 'cc.Sprite')._type, 1);
|
||||
for (const [name, file] of [['PreparationFrame', 'prep-meter-frame'], ['PreparationFill', 'prep-meter-fill']]) {
|
||||
const meta = JSON.parse(readFileSync(`assets/startup/visuals/${file}.png.meta`, 'utf8'));
|
||||
assert.equal(component(name, 'cc.Sprite')._spriteFrame.__uuid__, meta.uuid + '@f9941');
|
||||
if (name === 'PreparationFill') {
|
||||
assert.equal(meta.subMetas.f9941.userData.borderLeft, 48);
|
||||
assert.equal(meta.subMetas.f9941.userData.borderRight, 48);
|
||||
}
|
||||
}
|
||||
assert.deepEqual(readdirSync('assets/startup/visuals').filter(file => !file.endsWith('.meta')).sort(), ['prep-meter-fill.png', 'prep-meter-frame.png']);
|
||||
});
|
||||
|
||||
test('loading binds the existing login without hiding its request-owning node', () => {
|
||||
const loading = components('Canvas').find(item => item.panel && item.meter)!;
|
||||
assert.ok(loading);
|
||||
assert.equal(scene[loading.panel.__id__]._name, 'PreparationPanel');
|
||||
assert.equal(scene[loading.login.__id__].node.__id__, scene.indexOf(node('WelcomeComposition')));
|
||||
assert.equal(scene[loading.meter.__id__].node.__id__, scene.indexOf(node('PreparationFill')));
|
||||
const hidden = loading.loginControls.map((ref: Entry) => scene[ref.__id__]._name);
|
||||
assert.ok(hidden.includes('GuestAccess')); assert.ok(hidden.includes('PrivacyLink'));
|
||||
assert.ok(!hidden.includes('WelcomeComposition')); assert.ok(!hidden.includes('BrandMark'));
|
||||
});
|
||||
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 187 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 22 KiB |
@@ -0,0 +1,21 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<font>
|
||||
<info face="FruitPopGoldDigits" size="325" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="0,0" />
|
||||
<common lineHeight="325" base="325" scaleW="2048" scaleH="1024" pages="1" packed="0" alphaChnl="0" redChnl="0" greenChnl="0" blueChnl="0" />
|
||||
<pages>
|
||||
<page id="0" file="digits.png" />
|
||||
</pages>
|
||||
<chars count="10">
|
||||
<char id="48" x="8" y="8" width="275" height="317" xoffset="0" yoffset="8" xadvance="278" page="0" chnl="15" />
|
||||
<char id="49" x="338" y="8" width="236" height="312" xoffset="0" yoffset="13" xadvance="239" page="0" chnl="15" />
|
||||
<char id="50" x="668" y="8" width="261" height="313" xoffset="0" yoffset="12" xadvance="264" page="0" chnl="15" />
|
||||
<char id="51" x="998" y="8" width="253" height="317" xoffset="0" yoffset="8" xadvance="256" page="0" chnl="15" />
|
||||
<char id="52" x="1328" y="8" width="284" height="314" xoffset="0" yoffset="11" xadvance="287" page="0" chnl="15" />
|
||||
<char id="53" x="8" y="358" width="270" height="320" xoffset="0" yoffset="5" xadvance="273" page="0" chnl="15" />
|
||||
<char id="54" x="338" y="358" width="270" height="321" xoffset="0" yoffset="4" xadvance="273" page="0" chnl="15" />
|
||||
<char id="55" x="668" y="358" width="269" height="320" xoffset="0" yoffset="5" xadvance="272" page="0" chnl="15" />
|
||||
<char id="56" x="998" y="358" width="269" height="325" xoffset="0" yoffset="0" xadvance="272" page="0" chnl="15" />
|
||||
<char id="57" x="1328" y="358" width="273" height="324" xoffset="0" yoffset="1" xadvance="276" page="0" chnl="15" />
|
||||
</chars>
|
||||
<kernings count="0" />
|
||||
</font>
|
||||
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 137 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 195 KiB |
|
After Width: | Height: | Size: 12 KiB |