Commit da91fda0 authored by Tt's avatar Tt

滑动翻页增加

parent a4583969
......@@ -78,22 +78,22 @@
"__id__": 7
},
{
"__id__": 9
"__id__": 15
},
{
"__id__": 11
"__id__": 18
},
{
"__id__": 19
"__id__": 73
},
{
"__id__": 22
"__id__": 76
},
{
"__id__": 77
"__id__": 110
},
{
"__id__": 80
"__id__": 112
},
{
"__id__": 114
......@@ -363,194 +363,6 @@
"_atlas": null,
"_id": "21FfYOJDxGWKFPs7q98BhO"
},
{
"__type__": "cc.Node",
"_name": "bg_nopageturns",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 472,
"height": 164
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1671.288,
595.381,
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": "4eaXpv56dMxrFhXQ3JZNjP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cf89180e-7962-4c2b-aed3-50f1e98c7570"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c2JLiXkDBKPIkZuS7pZ48C"
},
{
"__type__": "cc.Node",
"_name": "bg_nopic",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 435,
"height": 163
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1673.2,
361.069,
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": "a5S3xxLC5PApkaoKaOU2D5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47009890-9e95-44c9-84c5-6f1bc41b544e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bchjXSabNCQZlDXvj6rFgY"
},
{
"__type__": "cc.Node",
"_name": "bg",
......@@ -560,16 +372,16 @@
},
"_children": [
{
"__id__": 12
"__id__": 8
},
{
"__id__": 15
"__id__": 11
}
],
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 14
}
],
"_prefab": null,
......@@ -625,16 +437,16 @@
"_name": "bg_wall",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 9
},
{
"__id__": 14
"__id__": 10
}
],
"_prefab": null,
......@@ -690,7 +502,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -722,7 +534,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
......@@ -749,16 +561,16 @@
"_name": "bg_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 11
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 12
},
{
"__id__": 17
"__id__": 13
}
],
"_prefab": null,
......@@ -814,7 +626,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 11
},
"_enabled": true,
"_materials": [
......@@ -846,7 +658,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
......@@ -873,7 +685,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
......@@ -903,13 +715,13 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 16
},
{
"__id__": 21
"__id__": 17
}
],
"_prefab": null,
......@@ -965,7 +777,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
......@@ -992,7 +804,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 15
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1053,7 +865,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 19
"__id__": 15
},
"_id": "49gKv9YnNGGb71uG9nSzID"
},
......@@ -1066,37 +878,37 @@
},
"_children": [
{
"__id__": 23
"__id__": 19
},
{
"__id__": 24
"__id__": 20
},
{
"__id__": 26
"__id__": 22
},
{
"__id__": 40
"__id__": 36
},
{
"__id__": 44
"__id__": 40
},
{
"__id__": 46
"__id__": 42
},
{
"__id__": 48
"__id__": 44
},
{
"__id__": 68
"__id__": 64
},
{
"__id__": 72
"__id__": 68
}
],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 72
}
],
"_prefab": null,
......@@ -1152,7 +964,7 @@
"_name": "img_board",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
......@@ -1210,13 +1022,13 @@
"_name": "layout_item",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 21
}
],
"_prefab": null,
......@@ -1272,7 +1084,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 20
},
"_enabled": false,
"_materials": [
......@@ -1292,23 +1104,23 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [
{
"__id__": 27
"__id__": 23
},
{
"__id__": 31
"__id__": 27
},
{
"__id__": 35
"__id__": 31
}
],
"_active": true,
"_components": [
{
"__id__": 39
"__id__": 35
}
],
"_prefab": null,
......@@ -1364,17 +1176,17 @@
"_name": "bg_1",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 22
},
"_children": [
{
"__id__": 28
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 26
}
],
"_prefab": null,
......@@ -1430,13 +1242,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 25
}
],
"_prefab": null,
......@@ -1492,7 +1304,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 24
},
"_enabled": true,
"_materials": [
......@@ -1524,7 +1336,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 23
},
"_enabled": true,
"_materials": [
......@@ -1556,17 +1368,17 @@
"_name": "bg_2",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 22
},
"_children": [
{
"__id__": 32
"__id__": 28
}
],
"_active": false,
"_components": [
{
"__id__": 34
"__id__": 30
}
],
"_prefab": null,
......@@ -1622,13 +1434,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 31
"__id__": 27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 29
}
],
"_prefab": null,
......@@ -1684,7 +1496,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 28
},
"_enabled": true,
"_materials": [
......@@ -1716,7 +1528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 27
},
"_enabled": true,
"_materials": [
......@@ -1748,17 +1560,17 @@
"_name": "bg_3",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 22
},
"_children": [
{
"__id__": 36
"__id__": 32
}
],
"_active": false,
"_components": [
{
"__id__": 38
"__id__": 34
}
],
"_prefab": null,
......@@ -1814,13 +1626,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 31
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 33
}
],
"_prefab": null,
......@@ -1876,7 +1688,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 32
},
"_enabled": true,
"_materials": [
......@@ -1908,7 +1720,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 31
},
"_enabled": true,
"_materials": [
......@@ -1940,7 +1752,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 22
},
"_enabled": false,
"_materials": [
......@@ -1972,17 +1784,17 @@
"_name": "item_little",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [
{
"__id__": 41
"__id__": 37
}
],
"_active": false,
"_components": [
{
"__id__": 43
"__id__": 39
}
],
"_prefab": null,
......@@ -2038,13 +1850,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 36
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 38
}
],
"_prefab": null,
......@@ -2100,7 +1912,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 37
},
"_enabled": true,
"_materials": [
......@@ -2132,7 +1944,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 36
},
"_enabled": true,
"_materials": [
......@@ -2164,13 +1976,13 @@
"_name": "bg_number",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 41
}
],
"_prefab": null,
......@@ -2226,7 +2038,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 40
},
"_enabled": true,
"_materials": [
......@@ -2258,13 +2070,13 @@
"_name": "label_round",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 43
}
],
"_prefab": null,
......@@ -2320,7 +2132,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
"__id__": 42
},
"_enabled": true,
"_materials": [
......@@ -2353,11 +2165,11 @@
"_name": "label_title",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [
{
"__id__": 49
"__id__": 45
}
],
"_active": true,
......@@ -2415,26 +2227,26 @@
"_name": "btn_voice",
"_objFlags": 0,
"_parent": {
"__id__": 48
"__id__": 44
},
"_children": [
{
"__id__": 50
"__id__": 46
},
{
"__id__": 54
"__id__": 50
},
{
"__id__": 60
"__id__": 56
}
],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 62
},
{
"__id__": 67
"__id__": 63
}
],
"_prefab": null,
......@@ -2490,17 +2302,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 45
},
"_children": [
{
"__id__": 51
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 49
}
],
"_prefab": null,
......@@ -2556,13 +2368,13 @@
"_name": "icon_laba",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 46
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 48
}
],
"_prefab": null,
......@@ -2618,7 +2430,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -2650,7 +2462,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 46
},
"_enabled": true,
"_materials": [
......@@ -2682,20 +2494,20 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 45
},
"_children": [
{
"__id__": 55
"__id__": 51
},
{
"__id__": 57
"__id__": 53
}
],
"_active": false,
"_components": [
{
"__id__": 59
"__id__": 55
}
],
"_prefab": null,
......@@ -2751,13 +2563,13 @@
"_name": "icon_laba",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 50
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 52
}
],
"_prefab": null,
......@@ -2813,7 +2625,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 51
},
"_enabled": true,
"_materials": [
......@@ -2845,13 +2657,13 @@
"_name": "icon_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 50
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 54
}
],
"_prefab": null,
......@@ -2907,7 +2719,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 53
},
"_enabled": true,
"_materials": [
......@@ -2939,7 +2751,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 50
},
"_enabled": true,
"_materials": [
......@@ -2971,20 +2783,20 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 45
},
"_children": [
{
"__id__": 61
"__id__": 57
},
{
"__id__": 63
"__id__": 59
}
],
"_active": false,
"_components": [
{
"__id__": 65
"__id__": 61
}
],
"_prefab": null,
......@@ -3040,13 +2852,13 @@
"_name": "icon_laba",
"_objFlags": 0,
"_parent": {
"__id__": 60
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 58
}
],
"_prefab": null,
......@@ -3102,7 +2914,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 57
},
"_enabled": true,
"_materials": [
......@@ -3134,13 +2946,13 @@
"_name": "icon_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 60
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 60
}
],
"_prefab": null,
......@@ -3196,7 +3008,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 59
},
"_enabled": true,
"_materials": [
......@@ -3228,7 +3040,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -3260,7 +3072,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 45
},
"_enabled": true,
"alignMode": 2,
......@@ -3287,7 +3099,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 45
},
"_enabled": true,
"_id": "a0WvSneXdFbryZmBtbSwAu"
......@@ -3297,19 +3109,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 65
},
{
"__id__": 70
"__id__": 66
},
{
"__id__": 71
"__id__": 67
}
],
"_prefab": null,
......@@ -3365,7 +3177,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 64
},
"_enabled": true,
"_materials": [
......@@ -3397,7 +3209,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 64
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3465,7 +3277,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 64
},
"_enabled": true,
"alignMode": 1,
......@@ -3492,19 +3304,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 69
},
{
"__id__": 74
"__id__": 70
},
{
"__id__": 75
"__id__": 71
}
],
"_prefab": null,
......@@ -3560,7 +3372,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 68
},
"_enabled": true,
"_materials": [
......@@ -3592,7 +3404,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 68
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3660,7 +3472,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 68
},
"_enabled": true,
"alignMode": 1,
......@@ -3687,7 +3499,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
......@@ -3720,10 +3532,10 @@
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 74
},
{
"__id__": 79
"__id__": 75
}
],
"_prefab": null,
......@@ -3779,7 +3591,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -3819,7 +3631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 73
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3891,19 +3703,19 @@
},
"_children": [
{
"__id__": 81
"__id__": 77
},
{
"__id__": 109
"__id__": 105
},
{
"__id__": 111
"__id__": 107
}
],
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 109
}
],
"_prefab": null,
......@@ -3959,17 +3771,17 @@
"_name": "layout_cover",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 76
},
"_children": [
{
"__id__": 82
"__id__": 78
}
],
"_active": true,
"_components": [
{
"__id__": 108
"__id__": 104
}
],
"_prefab": null,
......@@ -4025,23 +3837,23 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 81
"__id__": 77
},
"_children": [
{
"__id__": 83
"__id__": 79
},
{
"__id__": 96
"__id__": 92
},
{
"__id__": 100
"__id__": 96
}
],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 103
}
],
"_prefab": null,
......@@ -4097,17 +3909,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 78
},
"_children": [
{
"__id__": 84
"__id__": 80
}
],
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 91
}
],
"_prefab": null,
......@@ -4163,23 +3975,23 @@
"_name": "layout_btns",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 79
},
"_children": [
{
"__id__": 85
"__id__": 81
},
{
"__id__": 88
"__id__": 84
},
{
"__id__": 91
"__id__": 87
}
],
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 90
}
],
"_prefab": null,
......@@ -4235,16 +4047,16 @@
"_name": "btn_right",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 80
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 82
},
{
"__id__": 87
"__id__": 83
}
],
"_prefab": null,
......@@ -4300,7 +4112,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 81
},
"_enabled": true,
"_materials": [
......@@ -4332,7 +4144,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 81
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4400,16 +4212,16 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 80
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 89
"__id__": 85
},
{
"__id__": 90
"__id__": 86
}
],
"_prefab": null,
......@@ -4465,7 +4277,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -4497,7 +4309,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
"__id__": 84
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4565,16 +4377,16 @@
"_name": "btn_stop",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 80
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 92
"__id__": 88
},
{
"__id__": 93
"__id__": 89
}
],
"_prefab": null,
......@@ -4630,7 +4442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 87
},
"_enabled": true,
"_materials": [
......@@ -4662,7 +4474,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 87
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4730,7 +4542,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 80
},
"_enabled": true,
"_materials": [
......@@ -4762,7 +4574,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -4782,17 +4594,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 78
},
"_children": [
{
"__id__": 97
"__id__": 93
}
],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 95
}
],
"_prefab": null,
......@@ -4848,13 +4660,13 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 96
"__id__": 92
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 98
"__id__": 94
}
],
"_prefab": null,
......@@ -4910,7 +4722,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4950,7 +4762,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -4982,23 +4794,23 @@
"_name": "img_voice",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 78
},
"_children": [
{
"__id__": 101
"__id__": 97
},
{
"__id__": 102
"__id__": 98
},
{
"__id__": 104
"__id__": 100
}
],
"_active": false,
"_components": [
{
"__id__": 106
"__id__": 102
}
],
"_prefab": null,
......@@ -5054,7 +4866,7 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 96
},
"_children": [],
"_active": true,
......@@ -5112,13 +4924,13 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 96
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 99
}
],
"_prefab": null,
......@@ -5174,7 +4986,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -5206,13 +5018,13 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 96
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 101
}
],
"_prefab": null,
......@@ -5268,7 +5080,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 100
},
"_enabled": true,
"_materials": [
......@@ -5300,7 +5112,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
"__id__": 96
},
"_enabled": true,
"_id": "1b37Xp6IVLg6RciXLxM7OU"
......@@ -5310,7 +5122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 78
},
"_enabled": true,
"alignMode": 2,
......@@ -5337,7 +5149,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 77
},
"_enabled": true,
"alignMode": 1,
......@@ -5364,13 +5176,13 @@
"_name": "label_word",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 76
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 110
"__id__": 106
}
],
"_prefab": null,
......@@ -5426,7 +5238,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 105
},
"_enabled": true,
"_materials": [
......@@ -5461,13 +5273,13 @@
"_name": "ani_good",
"_objFlags": 0,
"_parent": {
"__id__": 80
"__id__": 76
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 112
"__id__": 108
}
],
"_prefab": null,
......@@ -5523,7 +5335,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 107
},
"_enabled": true,
"_materials": [
......@@ -5563,7 +5375,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 76
},
"_enabled": true,
"alignMode": 1,
......@@ -5585,6 +5397,194 @@
"_originalHeight": 0,
"_id": "71EDoIA31JzJta1ImrKFKx"
},
{
"__type__": "cc.Node",
"_name": "tip_record",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 472,
"height": 164
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-0.642,
65.899,
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": "4eaXpv56dMxrFhXQ3JZNjP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cf89180e-7962-4c2b-aed3-50f1e98c7570"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c2JLiXkDBKPIkZuS7pZ48C"
},
{
"__type__": "cc.Node",
"_name": "tip_nopic",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 435,
"height": 163
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
8.578,
74.171,
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": "a5S3xxLC5PApkaoKaOU2D5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "47009890-9e95-44c9-84c5-6f1bc41b544e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bchjXSabNCQZlDXvj6rFgY"
},
{
"__type__": "cc.Node",
"_name": "layout_top",
......@@ -9356,13 +9356,13 @@
},
"_enabled": true,
"layout_item": {
"__id__": 24
"__id__": 20
},
"layer_item": {
"__id__": 26
"__id__": 22
},
"layer_item_little": {
"__id__": 40
"__id__": 36
},
"layer_tip": {
"__id__": 136
......@@ -9377,16 +9377,19 @@
"__id__": 128
},
"btn_record": {
"__id__": 82
"__id__": 78
},
"layer_touch": {
"__id__": 15
},
"label_word": {
"__id__": 109
"__id__": 105
},
"ani_good": {
"__id__": 111
"__id__": 107
},
"ani_npc": {
"__id__": 77
"__id__": 73
},
"item_ani": {
"__id__": 165
......@@ -9398,16 +9401,16 @@
"__id__": 133
},
"label_round": {
"__id__": 46
"__id__": 42
},
"btn_last": {
"__id__": 68
"__id__": 64
},
"btn_next": {
"__id__": 72
"__id__": 68
},
"btn_voice": {
"__id__": 49
"__id__": 45
},
"_id": "eaTVUpqahPfZeO9+sUI7RP"
}
......
......@@ -89,6 +89,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
private layers: Array<cc.Node>;
initView() {
pg.view.touchOn(this.btn_auto, this.onTouchAuto, this);
pg.view.visible(pg.view.find(this, 'tip_record'), false);
pg.view.visible(pg.view.find(this, 'tip_nopic'), false);
}
resetView() {
......@@ -108,6 +110,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(btn_right, this.onTouchRecordRight, this);
pg.view.touchOn(btn_play, this.onTouchRecordPlay, this);
pg.view.touchOn(btn_stop, this.onTouchRecordStop, this);
pg.view.touchMoveOn(this.layer_touch, this.onTouchPanelMove, this);
}
private get LastData() {
......@@ -199,6 +203,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
public btn_record: cc.Node = null;
@property(cc.Node)
public layer_touch: cc.Node = null;
log(str) {
const node = cc.find('middleLayer');
if (node) {
......@@ -452,10 +459,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
preLayer() {
// 积分需要计算,未获取的内容
if (!this.LastData) {
this.touchForbid = false;
return;
}
pg.hw.playLocalAudio('pagenext')
this.tempCount = 0;
cc.audioEngine.stopEffect(this.currentAudioId);
......@@ -623,20 +626,59 @@ export default class SceneComponent extends MyCocosSceneComponent {
let move = touchPoint.clone().subtract(startPoint);
console.log(move.toString());
if (move.x < -10) {
this.touchForbid = true;
console.log("lastPage")
this.lastPage();
} else if (move.x > 10) {
this.touchForbid = true;
console.log("nextPage")
this.nextPage();
} else if (move.x > 10) {
this.touchForbid = true;
console.log("lastPage")
this.lastPage();
}
}
lastPage() {
if (!this.LastData) {
this.touchForbid = false;
let tip = pg.view.find(this, 'tip_nopic');
pg.view.visible(tip, true);
tip.opacity = 255;
cc.Tween.stopAllByTarget(tip)
cc.tween(tip).delay(0.8).to(0.5, { opacity: 0 }).start();
return;
}
if (this.recording) {
this.touchForbid = false;
// 显示提示
let tip = pg.view.find(this, 'tip_record');
pg.view.visible(tip, true);
tip.opacity = 255;
cc.Tween.stopAllByTarget(tip)
cc.tween(tip).delay(0.8).to(0.5, { opacity: 0 }).start();
return;
}
// 停止当前所有动作
this.preLayer();
}
nextPage() {
if (!this.NextData) {
this.touchForbid = false;
let tip = pg.view.find(this, 'tip_nopic');
pg.view.visible(tip, true);
tip.opacity = 255;
cc.Tween.stopAllByTarget(tip)
cc.tween(tip).delay(0.8).to(0.5, { opacity: 0 }).start();
return;
}
if (this.recording) {
this.touchForbid = false;
// 显示提示
let tip = pg.view.find(this, 'tip_record');
pg.view.visible(tip, true);
tip.opacity = 255;
cc.Tween.stopAllByTarget(tip)
cc.tween(tip).delay(0.8).to(0.5, { opacity: 0 }).start();
return;
}
if (this.recordFlag) {
if (this.count + 1 <= this.maxCurrent) {
this.nextLayer();
......
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