Commit 313a18ae authored by limingzhe's avatar limingzhe

fix: 陪跑营 退出提示 加载提示

parent fe51cefa
...@@ -314,16 +314,16 @@ ...@@ -314,16 +314,16 @@
"__id__": 38 "__id__": 38
}, },
{ {
"__id__": 45 "__id__": 73
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 77
}, },
{ {
"__id__": 50 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1499,12 +1499,18 @@ ...@@ -1499,12 +1499,18 @@
"_children": [ "_children": [
{ {
"__id__": 39 "__id__": 39
},
{
"__id__": 44
},
{
"__id__": 64
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 44 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1764,21 +1770,190 @@ ...@@ -1764,21 +1770,190 @@
"handler": "onBackBtnClick", "handler": "onBackBtnClick",
"customEventData": "" "customEventData": ""
}, },
{
"__type__": "cc.Node",
"_name": "exit_panel",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [
{
"__id__": 45
},
{
"__id__": 49
}
],
"_active": false,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 10,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "84wuzfn5xDZJK+FSXav0/e"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
},
{
"__id__": 47
},
{
"__id__": 48
}
],
"_prefab": null,
"_opacity": 160,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "25GYSawA5B969L0gEQKqQC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1c01289b-2f21-401f-b317-b2909b9d4442"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "62URKpE+xDw7ks6J0qxzJ0"
},
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 45, "_alignFlags": 45,
"_left": 0, "_left": -955,
"_right": 0, "_right": -955,
"_top": 0, "_top": -535,
"_bottom": 0, "_bottom": -535,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
...@@ -1787,24 +1962,47 @@ ...@@ -1787,24 +1962,47 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 0, "_originalWidth": 10,
"_originalHeight": 0, "_originalHeight": 10,
"_id": "a6x1SL2i5LOIC5FsQBrvYh" "_id": "6dmFtMFD1J3bVHfy1iN9II"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_id": "d65J/RDKdG7YvscIiHew2P"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 44
}, },
"_children": [ "_children": [
{ {
"__id__": 46 "__id__": 50
},
{
"__id__": 52
},
{
"__id__": 54
},
{
"__id__": 58
}
],
"_active": true,
"_components": [
{
"__id__": 62
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1816,8 +2014,8 @@ ...@@ -1816,8 +2014,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 680,
"height": 0 "height": 372
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1851,22 +2049,22 @@ ...@@ -1851,22 +2049,22 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "f1l/e61rhHXYrOIq8Ck33P" "_id": "9fD/RpyuRIq7TE8OSo2lRe"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "txt_title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 45 "__id__": 49
}, },
"_children": [ "_children": [],
"_active": true,
"_components": [
{ {
"__id__": 47 "__id__": 51
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1878,8 +2076,8 @@ ...@@ -1878,8 +2076,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 539,
"height": 0 "height": 39
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1891,7 +2089,7 @@ ...@@ -1891,7 +2089,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 98.368,
0, 0,
0, 0,
0, 0,
...@@ -1913,20 +2111,1067 @@ ...@@ -1913,20 +2111,1067 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "ef6o+IugdDF4BZrrUyF2s8" "_id": "3bs31B1L1DaaGmyegGI0bp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "96e1088f-571a-4992-8f9d-ae34dea803f2"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "30B4du/FdAmJx28ZDab2LO"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn", "_name": "txt_tip",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 46 "__id__": 49
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 53
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 313,
"height": 31
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
25.223,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "12I7WZ97lJ0o5bvNB3v7Fl"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "122e6ed5-e311-4340-b3c5-6afa972b473e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f11CLB1XNLYbrwcBYEADXe"
},
{
"__type__": "cc.Node",
"_name": "btn_cancel",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [
{
"__id__": 55
}
],
"_active": true,
"_components": [
{
"__id__": 57
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-170,
-95,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d2pz5bwVdM26zOi75p98u8"
},
{
"__type__": "cc.Node",
"_name": "txt_cancel",
"_objFlags": 0,
"_parent": {
"__id__": 54
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 69,
"height": 35
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aal1dHmRNNP5g+Ib7YIkNt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3ba61ddc-dfa0-4889-94b2-249fa136d6e8"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b0Z2EagMFJ159aaMh/yg9S"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e82134cd-0507-4231-88ff-2f689e47b7d2"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d0ajENs2RHoL6geXhCzrml"
},
{
"__type__": "cc.Node",
"_name": "btn_exit",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [
{
"__id__": 59
}
],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 244,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
170,
-95,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6cn4b1bqFGK7QgEVCGmOWn"
},
{
"__type__": "cc.Node",
"_name": "txt_exit",
"_objFlags": 0,
"_parent": {
"__id__": 58
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 70,
"height": 34
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "31NYCH2yhIj6l8Tk+RKPVD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "44f9d8b0-dc56-4a8f-baed-6ab4d0d3020d"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "13AbEUNTpCq5BaEZT+iV/D"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ea12cde9-b60e-4e61-b0ac-0cae49816317"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "adE37SUkdHzpogZKHyV8XK"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bce536e3-fafb-45a0-9f06-b76b5d8af485"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "469InAOH9CDLPkoPs7hWWh"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 955,
"_right": 955,
"_top": 535,
"_bottom": 535,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "fdMLAVnhRPmJndR9ozk6nF"
},
{
"__type__": "cc.Node",
"_name": "network_loading",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [
{
"__id__": 65
},
{
"__id__": 69
}
],
"_active": false,
"_components": [
{
"__id__": 71
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8bGLJ6B91Ng4bfPo2Q5/YK"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
},
{
"__id__": 67
},
{
"__id__": 68
}
],
"_prefab": null,
"_opacity": 160,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 1080
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "00hQzEpHBCLIpmych5pE0X"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1c01289b-2f21-401f-b317-b2909b9d4442"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c8HpkD0/hEj5XRYtAo1uLv"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 10,
"_originalHeight": 10,
"_id": "5axUNRZbZDZIH0M1x3FeeB"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_id": "18vNtfm61FO6weKO9fbrbV"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 178,
"height": 178
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "49rVK+cN9MdpQ5AKGpGCN8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6e74838e-6177-4adf-8a37-def1f71ed598"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e3MnLiit1P5Kz1eXoM17YJ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "49Fe6xHfNFIL8F+fWwtRDd"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "a6x1SL2i5LOIC5FsQBrvYh"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 74
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f1l/e61rhHXYrOIq8Ck33P"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 73
},
"_children": [
{
"__id__": 75
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ef6o+IugdDF4BZrrUyF2s8"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 74
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1982,7 +3227,7 @@ ...@@ -1982,7 +3227,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 47 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -59,8 +59,11 @@ export default class NewClass extends middleLayerBase { ...@@ -59,8 +59,11 @@ export default class NewClass extends middleLayerBase {
this.course_id = bundleInfo.course_id; this.course_id = bundleInfo.course_id;
this.courseware_id = bundleInfo.courseware_id; this.courseware_id = bundleInfo.courseware_id;
if (bundleInfo.homework_id != null && bundleInfo.syllabus_id != null && bundleInfo.user_id != null) { if (bundleInfo.homework_id != null && bundleInfo.syllabus_id != null && bundleInfo.user_id != null) {
this.setCurHomeworkData( bundleInfo.homework_id, bundleInfo.syllabus_id, bundleInfo.user_id); this.setCurHomeworkData( bundleInfo.homework_id, bundleInfo.syllabus_id, bundleInfo.user_id);
this.initExitPanel();
this.initNetworkLoading();
} }
cc.sys.localStorage.setItem('student_token', bundleInfo.token); cc.sys.localStorage.setItem('student_token', bundleInfo.token);
console.log("student_token 1: ", bundleInfo.token); console.log("student_token 1: ", bundleInfo.token);
...@@ -115,6 +118,53 @@ export default class NewClass extends middleLayerBase { ...@@ -115,6 +118,53 @@ export default class NewClass extends middleLayerBase {
this.showBackBtn(); this.showBackBtn();
} }
initExitPanel() {
const exitPanel = cc.find('middleLayer/UI/exit_panel');
exitPanel.active = false;
const exitBtn = cc.find('middleLayer/UI/exit_panel/bg/btn_exit');
exitBtn.on(cc.Node.EventType.TOUCH_END, () => {
exitPanel.active = false;
this.curHomeworkId = null;
this.curSyllabusId = null;
this.curUserId = null;
this.exitGame();
});
const cancelBtn = cc.find('middleLayer/UI/exit_panel/bg/btn_cancel');
cancelBtn.on(cc.Node.EventType.TOUCH_END, () => {
exitPanel.active = false;
});
}
initNetworkLoading() {
const networkLoading = cc.find('middleLayer/UI/network_loading');
networkLoading.active = false;
const icon = cc.find('middleLayer/UI/network_loading/icon');
icon.active = true;
// 创建一个永久旋转的动画
cc.tween(icon)
.by(2, { angle: -360 }) // 逆时针旋转360度
.repeatForever() // 无限重复
.start();
}
showNetworkLoading() {
const networkLoading = cc.find('middleLayer/UI/network_loading');
networkLoading.active = true;
}
hideNetworkLoading() {
const networkLoading = cc.find('middleLayer/UI/network_loading');
setTimeout(() => {
networkLoading.active = false;
}, 2000);
}
showBackBtn() { showBackBtn() {
const backBtn = cc.find("middleLayer/UI/back_btn"); const backBtn = cc.find("middleLayer/UI/back_btn");
backBtn.active = true; backBtn.active = true;
...@@ -153,10 +203,23 @@ export default class NewClass extends middleLayerBase { ...@@ -153,10 +203,23 @@ export default class NewClass extends middleLayerBase {
}); });
} }
showExitPanel() {
const exitPanel = cc.find('middleLayer/UI/exit_panel');
exitPanel.active = true;
}
exitGame(data = null) { exitGame(data = null) {
console.log(' in exitGame data: ', data); console.log(' in exitGame data: ', data);
console.log(' this.token: ', this.token); console.log(' this.token: ', this.token);
if (this.curHomeworkId != null) {
this.showExitPanel();
return;
}
// if (this.node) { // if (this.node) {
// cc.game.removePersistRootNode(this.node); // cc.game.removePersistRootNode(this.node);
...@@ -368,6 +431,8 @@ export default class NewClass extends middleLayerBase { ...@@ -368,6 +431,8 @@ export default class NewClass extends middleLayerBase {
console.log(' curHomeworkId : ' + this.curHomeworkId); console.log(' curHomeworkId : ' + this.curHomeworkId);
console.log(' curSyllabusId : ' + this.curSyllabusId); console.log(' curSyllabusId : ' + this.curSyllabusId);
this.showNetworkLoading();
this.callNetworkApiPostNew(`v1/learning-camp/finish/${this.curUserId}/${this.curHomeworkId}`, { this.callNetworkApiPostNew(`v1/learning-camp/finish/${this.curUserId}/${this.curHomeworkId}`, {
"id": this.curHomeworkId, "id": this.curHomeworkId,
"useTime": 10, "useTime": 10,
...@@ -375,6 +440,8 @@ export default class NewClass extends middleLayerBase { ...@@ -375,6 +440,8 @@ export default class NewClass extends middleLayerBase {
"accuracy": 1 "accuracy": 1
}, res => { }, res => {
this.hideNetworkLoading();
this.curSyllabusId = null; this.curSyllabusId = null;
this.curHomeworkId = null; this.curHomeworkId = null;
callback && callback(res); callback && callback(res);
......
{
"ver": "1.1.2",
"uuid": "01e90c71-7152-4175-906b-bbff2cb9df7f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0c44d4a7-a9f1-4046-96d2-b8d64c2133c1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 680,
"height": 372,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "bce536e3-fafb-45a0-9f06-b76b5d8af485",
"rawTextureUuid": "0c44d4a7-a9f1-4046-96d2-b8d64c2133c1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 680,
"height": 372,
"rawWidth": 680,
"rawHeight": 372,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "650a2302-c250-47ad-bf3f-ef3373dd863f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 10,
"height": 10,
"platformSettings": {},
"subMetas": {
"black": {
"ver": "1.0.4",
"uuid": "1c01289b-2f21-401f-b317-b2909b9d4442",
"rawTextureUuid": "650a2302-c250-47ad-bf3f-ef3373dd863f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 10,
"height": 10,
"rawWidth": 10,
"rawHeight": 10,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a473e0ff-27f3-4009-bf58-237a7eb223ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 244,
"height": 96,
"platformSettings": {},
"subMetas": {
"btn_blue": {
"ver": "1.0.4",
"uuid": "e82134cd-0507-4231-88ff-2f689e47b7d2",
"rawTextureUuid": "a473e0ff-27f3-4009-bf58-237a7eb223ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 244,
"height": 96,
"rawWidth": 244,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d882e28c-d9ff-48dc-aca3-60f2de2e308e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 244,
"height": 96,
"platformSettings": {},
"subMetas": {
"btn_red": {
"ver": "1.0.4",
"uuid": "ea12cde9-b60e-4e61-b0ac-0cae49816317",
"rawTextureUuid": "d882e28c-d9ff-48dc-aca3-60f2de2e308e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 244,
"height": 96,
"rawWidth": 244,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "873e0fd9-1e00-4dab-a3fb-7fa2982a1e25",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 182,
"height": 182,
"platformSettings": {},
"subMetas": {
"loading": {
"ver": "1.0.4",
"uuid": "6e74838e-6177-4adf-8a37-def1f71ed598",
"rawTextureUuid": "873e0fd9-1e00-4dab-a3fb-7fa2982a1e25",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 2,
"trimY": 2,
"width": 178,
"height": 178,
"rawWidth": 182,
"rawHeight": 182,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8b893da8-bd2f-46e8-aea3-a57676d98f3f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 69,
"height": 35,
"platformSettings": {},
"subMetas": {
"txt_cancel": {
"ver": "1.0.4",
"uuid": "3ba61ddc-dfa0-4889-94b2-249fa136d6e8",
"rawTextureUuid": "8b893da8-bd2f-46e8-aea3-a57676d98f3f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 69,
"height": 35,
"rawWidth": 69,
"rawHeight": 35,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "168085f0-7b9c-4aae-8c38-eb5b7a9c8424",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 70,
"height": 34,
"platformSettings": {},
"subMetas": {
"txt_exit": {
"ver": "1.0.4",
"uuid": "44f9d8b0-dc56-4a8f-baed-6ab4d0d3020d",
"rawTextureUuid": "168085f0-7b9c-4aae-8c38-eb5b7a9c8424",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 70,
"height": 34,
"rawWidth": 70,
"rawHeight": 34,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6474d046-7d75-4220-a9fd-61aa1d9b9af2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 313,
"height": 31,
"platformSettings": {},
"subMetas": {
"txt_tip": {
"ver": "1.0.4",
"uuid": "122e6ed5-e311-4340-b3c5-6afa972b473e",
"rawTextureUuid": "6474d046-7d75-4220-a9fd-61aa1d9b9af2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 313,
"height": 31,
"rawWidth": 313,
"rawHeight": 31,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3d705e25-b74d-4096-a189-8dce3644ca72",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 539,
"height": 39,
"platformSettings": {},
"subMetas": {
"txt_title": {
"ver": "1.0.4",
"uuid": "96e1088f-571a-4992-8f9d-ae34dea803f2",
"rawTextureUuid": "3d705e25-b74d-4096-a189-8dce3644ca72",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 539,
"height": 39,
"rawWidth": 539,
"rawHeight": 39,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment