Commit d63c7707 authored by Tt's avatar Tt

左右完成

parent dad70bdf
...@@ -90,43 +90,43 @@ ...@@ -90,43 +90,43 @@
"__id__": 34 "__id__": 34
}, },
{ {
"__id__": 49 "__id__": 45
}, },
{ {
"__id__": 66 "__id__": 60
}, },
{ {
"__id__": 84 "__id__": 79
}, },
{ {
"__id__": 85 "__id__": 80
}, },
{ {
"__id__": 86 "__id__": 81
}, },
{ {
"__id__": 87 "__id__": 82
}, },
{ {
"__id__": 88 "__id__": 83
}, },
{ {
"__id__": 97 "__id__": 92
}, },
{ {
"__id__": 106 "__id__": 101
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 114 "__id__": 109
}, },
{ {
"__id__": 115 "__id__": 110
}, },
{ {
"__id__": 116 "__id__": 111
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1664,7 +1664,7 @@ ...@@ -1664,7 +1664,7 @@
"__id__": 37 "__id__": 37
}, },
{ {
"__id__": 47 "__id__": 43
} }
], ],
"_active": true, "_active": true,
...@@ -1824,18 +1824,12 @@ ...@@ -1824,18 +1824,12 @@
}, },
{ {
"__id__": 40 "__id__": 40
},
{
"__id__": 42
},
{
"__id__": 44
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 46 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1849,8 +1843,8 @@ ...@@ -1849,8 +1843,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 480, "width": 520,
"height": 122.03999999999999 "height": 60.480000000000004
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1862,7 +1856,7 @@ ...@@ -1862,7 +1856,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
8.852, 8.852,
-20.128, -28.734,
0, 0,
0, 0,
0, 0,
...@@ -1911,8 +1905,8 @@ ...@@ -1911,8 +1905,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 373.57, "width": 332.06,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1923,8 +1917,8 @@ ...@@ -1923,8 +1917,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-240, -204.725,
-7.019999999999996, -30.240000000000002,
0, 0,
0, 0,
0, 0,
...@@ -1947,7 +1941,7 @@ ...@@ -1947,7 +1941,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "4022wtqg1NxoZKAZrxwQj1" "_id": "01B50V6MlFwpm66MJrGabq"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -1966,8 +1960,8 @@ ...@@ -1966,8 +1960,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "have one's own", "_string": "have one's own",
"_N$string": "have one's own", "_N$string": "have one's own",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -1980,7 +1974,7 @@ ...@@ -1980,7 +1974,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "86+aK97YVLUK28xlixiRSP" "_id": "86sS+04GpN5712QMjoqFOa"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
...@@ -2007,8 +2001,8 @@ ...@@ -2007,8 +2001,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 87.06, "width": 77.39,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2019,8 +2013,8 @@ ...@@ -2019,8 +2013,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
133.57, 127.33500000000001,
-7.019999999999996, -30.240000000000002,
0, 0,
0, 0,
0, 0,
...@@ -2043,7 +2037,7 @@ ...@@ -2043,7 +2037,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "e4hAaOrQhIIbDQtQ6eHN8k" "_id": "b8iKdSW/1D6YdbAdrra8ly"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -2062,200 +2056,8 @@ ...@@ -2062,200 +2056,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "flag", "_string": "flag",
"_N$string": "flag", "_N$string": "flag",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "3dg5gjU0hDzbpb2f7nxakd"
},
{
"__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 373.57,
"height": 68.04
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-240,
-61.019999999999996,
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,
"showInEditor": false,
"_id": "b2ffgz8QlDKrFp0hCHleNG"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "have one's own",
"_N$string": "have one's own",
"_fontSize": 54,
"_lineHeight": 54,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "39X28eTaVCAbJ/ocBNDhxr"
},
{
"__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 15,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 87.06,
"height": 68.04
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
133.57,
-61.019999999999996,
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,
"showInEditor": false,
"_id": "13ZTJlg0pHvoIJkiFifx4X"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "flag",
"_N$string": "flag",
"_fontSize": 54,
"_lineHeight": 54,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -2268,7 +2070,7 @@ ...@@ -2268,7 +2070,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "55VjrW2xdDKLQGgznYXCXU" "_id": "2aDfhzv/VERrMhxbaLTjCV"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -2280,13 +2082,13 @@ ...@@ -2280,13 +2082,13 @@
"_enabled": true, "_enabled": true,
"_fontFamily": "Arial", "_fontFamily": "Arial",
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
"_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color><color=#00ff00>have one's own</c><color=#0fffff>flag</color>", "_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color>",
"_N$horizontalAlign": 0, "_N$horizontalAlign": 1,
"_N$fontSize": 54, "_N$fontSize": 48,
"_N$font": null, "_N$font": null,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_N$maxWidth": 480, "_N$maxWidth": 520,
"_N$lineHeight": 54, "_N$lineHeight": 48,
"_N$imageAtlas": null, "_N$imageAtlas": null,
"_N$handleTouchEvent": true, "_N$handleTouchEvent": true,
"_id": "abgdYVeftMHaKgIAt6F/Rk" "_id": "abgdYVeftMHaKgIAt6F/Rk"
...@@ -2302,7 +2104,7 @@ ...@@ -2302,7 +2104,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2358,7 +2160,7 @@ ...@@ -2358,7 +2160,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 47 "__id__": 43
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2394,13 +2196,13 @@ ...@@ -2394,13 +2196,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 50 "__id__": 46
}, },
{ {
"__id__": 52 "__id__": 48
}, },
{ {
"__id__": 54 "__id__": 50
} }
], ],
"_active": true, "_active": true,
...@@ -2458,13 +2260,13 @@ ...@@ -2458,13 +2260,13 @@
"_name": "img_meat", "_name": "img_meat",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 51 "__id__": 47
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2520,7 +2322,7 @@ ...@@ -2520,7 +2322,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2552,13 +2354,13 @@ ...@@ -2552,13 +2354,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 53 "__id__": 49
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2614,7 +2416,7 @@ ...@@ -2614,7 +2416,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 52 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2646,29 +2448,26 @@ ...@@ -2646,29 +2448,26 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 49 "__id__": 45
}, },
"_children": [ "_children": [
{ {
"__id__": 55 "__id__": 51
}, },
{ {
"__id__": 57 "__id__": 53
}, },
{ {
"__id__": 59 "__id__": 55
}, },
{ {
"__id__": 61 "__id__": 57
},
{
"__id__": 63
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 59
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2683,7 +2482,7 @@ ...@@ -2683,7 +2482,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 420, "width": 420,
"height": 176.04 "height": 108.47999999999999
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2724,13 +2523,13 @@ ...@@ -2724,13 +2523,13 @@
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 54 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 56 "__id__": 52
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2744,8 +2543,8 @@ ...@@ -2744,8 +2543,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 373.57, "width": 332.06,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2756,8 +2555,8 @@ ...@@ -2756,8 +2555,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-210, -204.725,
19.980000000000004, -6.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -2780,14 +2579,14 @@ ...@@ -2780,14 +2579,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "0a3IKrcVRLDJURBAKmJdLR" "_id": "07ghmy0wVFDre7Jz6EXPnG"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 55 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2799,8 +2598,8 @@ ...@@ -2799,8 +2598,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "have one's own", "_string": "have one's own",
"_N$string": "have one's own", "_N$string": "have one's own",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -2813,20 +2612,20 @@ ...@@ -2813,20 +2612,20 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "57HjW6dBdP9I/+WDSAFKl/" "_id": "a6NPUHpChANb+hEgNFs4Yr"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 54 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2840,8 +2639,8 @@ ...@@ -2840,8 +2639,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 87.06, "width": 77.39,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -2852,8 +2651,8 @@ ...@@ -2852,8 +2651,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-210, 127.33500000000001,
-34.019999999999996, -6.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -2876,14 +2675,14 @@ ...@@ -2876,14 +2675,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "2dgSlFsK5NxpNmhUjNs+GZ" "_id": "08KESWyHtJBq6DnltGafbG"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 57 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2895,104 +2694,8 @@ ...@@ -2895,104 +2694,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "flag", "_string": "flag",
"_N$string": "flag", "_N$string": "flag",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "a0E6D0Pd5F+LjFgM3ZnRK6"
},
{
"__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 54
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 274.51,
"height": 68.04
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-122.94,
-34.019999999999996,
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,
"showInEditor": false,
"_id": "fcvkIeC+tGnoL3HRbI3Blw"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "have one's ",
"_N$string": "have one's ",
"_fontSize": 54,
"_lineHeight": 54,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3005,20 +2708,20 @@ ...@@ -3005,20 +2708,20 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "016UQrpnJLObTgPFQxxizx" "_id": "4dNJpFg55CNrN6ZYbYrUud"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 54 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3032,8 +2735,8 @@ ...@@ -3032,8 +2735,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 99.06, "width": 332.06,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3044,8 +2747,8 @@ ...@@ -3044,8 +2747,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-210, -204.725,
-88.02, -54.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3068,14 +2771,14 @@ ...@@ -3068,14 +2771,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "4a46FH8MRCaLPTRiiKzIyJ" "_id": "41/KsgMiJJDrIoGWuL2Gga"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3085,10 +2788,10 @@ ...@@ -3085,10 +2788,10 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "own", "_string": "have one's own",
"_N$string": "own", "_N$string": "have one's own",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3101,20 +2804,20 @@ ...@@ -3101,20 +2804,20 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "318Wzl5HtJ7qh0IVwpouRq" "_id": "c9svdq8AhDhJQdDeT8NyYA"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 54 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 64 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3128,8 +2831,8 @@ ...@@ -3128,8 +2831,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 87.06, "width": 77.39,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3140,8 +2843,8 @@ ...@@ -3140,8 +2843,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-110.94, 127.33500000000001,
-88.02, -54.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3164,14 +2867,14 @@ ...@@ -3164,14 +2867,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "0bs1l6jHVDzpI0nwp97XgT" "_id": "8eissyzgxOQ4Fl5i4s6iZT"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 63 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3183,8 +2886,8 @@ ...@@ -3183,8 +2886,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "flag", "_string": "flag",
"_N$string": "flag", "_N$string": "flag",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3197,25 +2900,25 @@ ...@@ -3197,25 +2900,25 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "fbZvztgsRHy5ylKmIpO+t+" "_id": "42pLFn86BEYrJC9D00wQbn"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_fontFamily": "Arial", "_fontFamily": "Arial",
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
"_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color><color=#00ff00>have one's own</c><color=#0fffff>flag</color>", "_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color><color=#00ff00>have one's own</c><color=#0fffff>flag</color>",
"_N$horizontalAlign": 0, "_N$horizontalAlign": 1,
"_N$fontSize": 54, "_N$fontSize": 48,
"_N$font": null, "_N$font": null,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_N$maxWidth": 420, "_N$maxWidth": 420,
"_N$lineHeight": 54, "_N$lineHeight": 48,
"_N$imageAtlas": null, "_N$imageAtlas": null,
"_N$handleTouchEvent": true, "_N$handleTouchEvent": true,
"_id": "29x2HlEMFOE7akpqe0LE7o" "_id": "29x2HlEMFOE7akpqe0LE7o"
...@@ -3229,24 +2932,20 @@ ...@@ -3229,24 +2932,20 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 67 "__id__": 61
}, },
{ {
"__id__": 69 "__id__": 63
}, },
{ {
"__id__": 79 "__id__": 75
}, },
{ {
"__id__": 81 "__id__": 77
}
],
"_active": true,
"_components": [
{
"__id__": 83
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -3271,7 +2970,7 @@ ...@@ -3271,7 +2970,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
48.822, 48.822,
-93.308, 58.632,
0, 0,
0, 0,
0, 0,
...@@ -3300,13 +2999,13 @@ ...@@ -3300,13 +2999,13 @@
"_name": "bg_pie", "_name": "bg_pie",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3320,8 +3019,8 @@ ...@@ -3320,8 +3019,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 827, "width": 968,
"height": 719 "height": 734
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3362,7 +3061,7 @@ ...@@ -3362,7 +3061,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3373,7 +3072,7 @@ ...@@ -3373,7 +3072,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c7c275d7-232e-432e-8db0-33b1d46170d9" "__uuid__": "fea10748-ae2f-4d2b-be2e-7eef56fc3aaf"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -3394,26 +3093,29 @@ ...@@ -3394,26 +3093,29 @@
"_name": "text", "_name": "text",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 60
}, },
"_children": [ "_children": [
{ {
"__id__": 70 "__id__": 64
}, },
{ {
"__id__": 72 "__id__": 66
}, },
{ {
"__id__": 74 "__id__": 68
}, },
{ {
"__id__": 76 "__id__": 70
},
{
"__id__": 72
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 78 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3427,8 +3129,8 @@ ...@@ -3427,8 +3129,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 480, "width": 550,
"height": 122.03999999999999 "height": 108.47999999999999
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3439,8 +3141,8 @@ ...@@ -3439,8 +3141,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-113.926, 3.024,
-23.515, -74.578,
0, 0,
0, 0,
0, 0,
...@@ -3469,13 +3171,13 @@ ...@@ -3469,13 +3171,13 @@
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 69 "__id__": 63
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 71 "__id__": 65
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3489,8 +3191,8 @@ ...@@ -3489,8 +3191,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 373.57, "width": 332.06,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3501,8 +3203,8 @@ ...@@ -3501,8 +3203,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-240, -263.44,
-7.019999999999996, -6.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3525,14 +3227,14 @@ ...@@ -3525,14 +3227,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "b8V+p/2L9GTID/Q6fiqZFW" "_id": "29WlYPwRVPppB3VVMv7auW"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 70 "__id__": 64
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3544,8 +3246,8 @@ ...@@ -3544,8 +3246,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "have one's own", "_string": "have one's own",
"_N$string": "have one's own", "_N$string": "have one's own",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3558,20 +3260,20 @@ ...@@ -3558,20 +3260,20 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "74j4/ccaBC7Lc1gx9X/QY+" "_id": "c1TxAYANBPcKHwYn+G4leQ"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 69 "__id__": 63
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 73 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3585,8 +3287,8 @@ ...@@ -3585,8 +3287,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 87.06, "width": 77.39,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3597,8 +3299,8 @@ ...@@ -3597,8 +3299,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
133.57, 68.62,
-7.019999999999996, -6.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3621,14 +3323,14 @@ ...@@ -3621,14 +3323,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "07zmUbrgJLo70TEJZwxWFs" "_id": "ddl8mZ9dZGDL9V3+OZyuQQ"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 72 "__id__": 66
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3640,8 +3342,8 @@ ...@@ -3640,8 +3342,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "flag", "_string": "flag",
"_N$string": "flag", "_N$string": "flag",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3654,20 +3356,20 @@ ...@@ -3654,20 +3356,20 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "c574VPrBNCEr97f2VZ34Ot" "_id": "daSyfg5SRFsaCQh++cKlRm"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 69 "__id__": 63
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3681,8 +3383,8 @@ ...@@ -3681,8 +3383,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 373.57, "width": 117.42,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3693,8 +3395,8 @@ ...@@ -3693,8 +3395,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-240, 146.01,
-61.019999999999996, -6.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3717,14 +3419,14 @@ ...@@ -3717,14 +3419,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "6dlAV9ylpDgZi2gdNsptGC" "_id": "1ezICw1iNDj7asTwceHkQs"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3734,10 +3436,10 @@ ...@@ -3734,10 +3436,10 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "have one's own", "_string": "have ",
"_N$string": "have one's own", "_N$string": "have ",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3750,20 +3452,116 @@ ...@@ -3750,20 +3452,116 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "5aH+HHGmpAOoBXmJQgV6a6" "_id": "22ziNdbQdM5bBpzq662GrS"
}, },
{ {
"__type__": "cc.PrivateNode", "__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD", "_name": "RICHTEXT_CHILD",
"_objFlags": 1024, "_objFlags": 1024,
"_parent": { "_parent": {
"__id__": 69 "__id__": 63
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 71
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 214.64,
"height": 60.48
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-146.015,
-54.239999999999995,
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,
"showInEditor": false,
"_id": "d444u0iBtKlLd70wV/oax8"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "one's own",
"_N$string": "one's own",
"_fontSize": 48,
"_lineHeight": 48,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "56wuEVw7NEepCj2LNl3PIY"
},
{
"__type__": "cc.PrivateNode",
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 63
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 73
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3777,8 +3575,8 @@ ...@@ -3777,8 +3575,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 87.06, "width": 77.39,
"height": 68.04 "height": 60.48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3789,8 +3587,8 @@ ...@@ -3789,8 +3587,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
133.57, 68.625,
-61.019999999999996, -54.239999999999995,
0, 0,
0, 0,
0, 0,
...@@ -3813,14 +3611,14 @@ ...@@ -3813,14 +3611,14 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "5cEPfSKURHnKYr/4BhO3aE" "_id": "d3M6i1WuxLq4cjYX8Lg8zy"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 72
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3832,8 +3630,8 @@ ...@@ -3832,8 +3630,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "flag", "_string": "flag",
"_N$string": "flag", "_N$string": "flag",
"_fontSize": 54, "_fontSize": 48,
"_lineHeight": 54, "_lineHeight": 48,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
...@@ -3846,25 +3644,25 @@ ...@@ -3846,25 +3644,25 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "bfNIDXDdxJG60g+6r6PIdq" "_id": "1aj+BhjkxOfpTPwjidR/Ll"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 69 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_fontFamily": "Arial", "_fontFamily": "Arial",
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
"_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color><color=#00ff00>have one's own</c><color=#0fffff>flag</color>", "_N$string": "<color=#00ff00>have one's own</c><color=#0fffff>flag</color><color=#00ff00>have one's own</c><color=#0fffff>flag</color>",
"_N$horizontalAlign": 0, "_N$horizontalAlign": 1,
"_N$fontSize": 54, "_N$fontSize": 48,
"_N$font": null, "_N$font": null,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_N$maxWidth": 480, "_N$maxWidth": 550,
"_N$lineHeight": 54, "_N$lineHeight": 48,
"_N$imageAtlas": null, "_N$imageAtlas": null,
"_N$handleTouchEvent": true, "_N$handleTouchEvent": true,
"_id": "ebD1OkzERNn7G8/UOR/+xC" "_id": "ebD1OkzERNn7G8/UOR/+xC"
...@@ -3874,13 +3672,13 @@ ...@@ -3874,13 +3672,13 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 80 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3894,8 +3692,8 @@ ...@@ -3894,8 +3692,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 300, "width": 350,
"height": 200 "height": 250
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3906,8 +3704,8 @@ ...@@ -3906,8 +3704,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
2.854, -8.676,
153.49, 105.721,
0, 0,
0, 0,
0, 0,
...@@ -3936,7 +3734,7 @@ ...@@ -3936,7 +3734,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 79 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3968,13 +3766,13 @@ ...@@ -3968,13 +3766,13 @@
"_name": "ani", "_name": "ani",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 82 "__id__": 78
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4030,7 +3828,7 @@ ...@@ -4030,7 +3828,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4065,38 +3863,6 @@ ...@@ -4065,38 +3863,6 @@
"_N$enableBatch": false, "_N$enableBatch": false,
"_id": "c1/2hENIBCRI9oHGx5dmk9" "_id": "c1/2hENIBCRI9oHGx5dmk9"
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c7c275d7-232e-432e-8db0-33b1d46170d9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "57FVsJxppFCaBNbKnbiIuA"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "layout_main", "_name": "layout_main",
...@@ -4338,10 +4104,10 @@ ...@@ -4338,10 +4104,10 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 89 "__id__": 84
}, },
{ {
"__id__": 93 "__id__": 88
} }
], ],
"_active": true, "_active": true,
...@@ -4399,17 +4165,17 @@ ...@@ -4399,17 +4165,17 @@
"_name": "line_left", "_name": "line_left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 88 "__id__": 83
}, },
"_children": [ "_children": [
{ {
"__id__": 90 "__id__": 85
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 87
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4465,13 +4231,13 @@ ...@@ -4465,13 +4231,13 @@
"_name": "finger", "_name": "finger",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 89 "__id__": 84
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 91 "__id__": 86
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4527,7 +4293,7 @@ ...@@ -4527,7 +4293,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4559,7 +4325,7 @@ ...@@ -4559,7 +4325,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 84
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4591,17 +4357,17 @@ ...@@ -4591,17 +4357,17 @@
"_name": "line_right", "_name": "line_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 88 "__id__": 83
}, },
"_children": [ "_children": [
{ {
"__id__": 94 "__id__": 89
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 91
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4657,13 +4423,13 @@ ...@@ -4657,13 +4423,13 @@
"_name": "finger", "_name": "finger",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 93 "__id__": 88
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4719,7 +4485,7 @@ ...@@ -4719,7 +4485,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 89
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4751,7 +4517,7 @@ ...@@ -4751,7 +4517,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 93 "__id__": 88
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4787,16 +4553,16 @@ ...@@ -4787,16 +4553,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 98 "__id__": 93
}, },
{ {
"__id__": 100 "__id__": 95
}, },
{ {
"__id__": 102 "__id__": 97
}, },
{ {
"__id__": 104 "__id__": 99
} }
], ],
"_active": true, "_active": true,
...@@ -4854,13 +4620,13 @@ ...@@ -4854,13 +4620,13 @@
"_name": "img_left", "_name": "img_left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 92
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 99 "__id__": 94
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4916,7 +4682,7 @@ ...@@ -4916,7 +4682,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 98 "__id__": 93
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4948,13 +4714,13 @@ ...@@ -4948,13 +4714,13 @@
"_name": "btn_left", "_name": "btn_left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 92
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 101 "__id__": 96
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5010,7 +4776,7 @@ ...@@ -5010,7 +4776,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 95
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5042,13 +4808,13 @@ ...@@ -5042,13 +4808,13 @@
"_name": "btn_right", "_name": "btn_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 92
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 103 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5104,7 +4870,7 @@ ...@@ -5104,7 +4870,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 102 "__id__": 97
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5136,13 +4902,13 @@ ...@@ -5136,13 +4902,13 @@
"_name": "img_right", "_name": "img_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 97 "__id__": 92
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 105 "__id__": 100
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5198,7 +4964,7 @@ ...@@ -5198,7 +4964,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 104 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5234,13 +5000,13 @@ ...@@ -5234,13 +5000,13 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 107 "__id__": 102
}, },
{ {
"__id__": 110 "__id__": 105
}, },
{ {
"__id__": 111 "__id__": 106
} }
], ],
"_active": true, "_active": true,
...@@ -5298,11 +5064,11 @@ ...@@ -5298,11 +5064,11 @@
"_name": "font", "_name": "font",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 106 "__id__": 101
}, },
"_children": [ "_children": [
{ {
"__id__": 108 "__id__": 103
} }
], ],
"_active": true, "_active": true,
...@@ -5360,13 +5126,13 @@ ...@@ -5360,13 +5126,13 @@
"_name": "BRLNSDB", "_name": "BRLNSDB",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 107 "__id__": 102
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 109 "__id__": 104
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5422,7 +5188,7 @@ ...@@ -5422,7 +5188,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 108 "__id__": 103
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5457,7 +5223,7 @@ ...@@ -5457,7 +5223,7 @@
"_name": "img", "_name": "img",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 106 "__id__": 101
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -5515,11 +5281,11 @@ ...@@ -5515,11 +5281,11 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 106 "__id__": 101
}, },
"_children": [ "_children": [
{ {
"__id__": 112 "__id__": 107
} }
], ],
"_active": true, "_active": true,
...@@ -5577,13 +5343,13 @@ ...@@ -5577,13 +5343,13 @@
"_name": "btn", "_name": "btn",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 111 "__id__": 106
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 113 "__id__": 108
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5639,7 +5405,7 @@ ...@@ -5639,7 +5405,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 112 "__id__": 107
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -5712,22 +5478,22 @@ ...@@ -5712,22 +5478,22 @@
"__id__": 34 "__id__": 34
}, },
"item_meat": { "item_meat": {
"__id__": 49 "__id__": 45
}, },
"item_pie": { "item_pie": {
"__id__": 66 "__id__": 60
}, },
"layout_main": { "layout_main": {
"__id__": 84 "__id__": 79
}, },
"layout_vegetables": { "layout_vegetables": {
"__id__": 85 "__id__": 80
}, },
"layout_meat": { "layout_meat": {
"__id__": 86 "__id__": 81
}, },
"layout_pie": { "layout_pie": {
"__id__": 87 "__id__": 82
}, },
"_id": "eaTVUpqahPfZeO9+sUI7RP" "_id": "eaTVUpqahPfZeO9+sUI7RP"
} }
......
...@@ -37,7 +37,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -37,7 +37,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this._cantouch = true; this._cantouch = true;
this.current = 0; this.current = 0;
this.questions = this.data.questions; this.successArr = [];
this.questions = this.data.questions.map((question, id) => {
question.id = id;
return question;
});
} }
// 当前数据 // 当前数据
get currentQuestion() { return this.questions[this.current] } get currentQuestion() { return this.questions[this.current] }
...@@ -90,24 +94,28 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -90,24 +94,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
initGame() { initGame() {
this.meetNodes = []; this.meetNodes = [];
// 初始化场景所有内容物 this.vegetableNodes = [];
// 肉饼区域初始化 // 肉饼区域初始化
this.initLayoutMeet(); this.initLayoutMeet();
// 蔬菜部分初始化 // 蔬菜部分初始化
this.initLayoutVegetable();
// 开始第一题(中间初始化) // 开始第一题(中间初始化)
this.initLayoutMain(); this.initLayoutMain();
// 更新派
// this.initLayoutPie();
}
static successPosArray: Array<cc.Vec2> = [cc.v2(50, -30), cc.v2(0, 0)];
private successArr: Array<cc.Node>;
get successPos() {
return SceneComponent.successPosArray[this.successArr.length]
} }
//-------------------------------肉饼区域--------------------------------- //-------------------------------肉饼区域---------------------------------
static meetDefaultPos: cc.Vec2 = cc.v2(-655, 172); static meetDefaultPos: cc.Vec2 = cc.v2(-655, 172);
static meetSpace: cc.Vec2 = cc.v2(0, 30); static meetSpace: cc.Vec2 = cc.v2(0, 30);
private meetNodes: Array<cc.Node>; private meetNodes: Array<cc.Node>;
initLayoutMeet() { initLayoutMeet() {
// 计算肉饼总数量 // 计算肉饼总数量
this.questions.forEach((question, i) => { this.questions.concat([]).reverse().forEach((question, i) => {
// 创建节点 // 创建节点
let node = pg.view.clone(this.item_meat); let node = pg.view.clone(this.item_meat);
this.layout_meat.addChild(node) this.layout_meat.addChild(node)
...@@ -120,7 +128,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -120,7 +128,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 放入数组中便于引用 // 放入数组中便于引用
this.meetNodes.push(node); this.meetNodes.push(node);
}) })
} }
// 左侧图片/文字 文字有多色高亮 文字默认颜色和高亮颜色都是不同的。 // 左侧图片/文字 文字有多色高亮 文字默认颜色和高亮颜色都是不同的。
updateItemMeet(item, data) { updateItemMeet(item, data) {
...@@ -129,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -129,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let img = pg.view.find(item, 'img'); let img = pg.view.find(item, 'img');
if (data.meetType.indexOf('img') > -1) { if (data.meetType.indexOf('img') > -1) {
img.active = true; img.active = true;
pg.view.setNetImg(img, data.meetImage, { w: 350, h: 220 }) pg.view.setNetImg(img, data.meetImage, { w: 330, h: 200 })
} else { } else {
img.active = false; img.active = false;
} }
...@@ -143,8 +150,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -143,8 +150,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
text.active = false; text.active = false;
} }
item.on(cc.Node.EventType.TOUCH_START, this.onTouchMeetStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMeetMove, this); item.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMeetMove, this);
item.on(cc.Node.EventType.TOUCH_END, this.onTouchMeetEnd, this); item.on(cc.Node.EventType.TOUCH_END, this.onTouchMeetEnd, this);
item.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchMeetEnd, this);
} }
getMeetPosByI(i) { getMeetPosByI(i) {
...@@ -152,21 +161,221 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -152,21 +161,221 @@ export default class SceneComponent extends MyCocosSceneComponent {
pos.y += i * SceneComponent.meetSpace.y; pos.y += i * SceneComponent.meetSpace.y;
return pos; return pos;
} }
onTouchMeetMove() { meetCurrentNode: cc.Node;
onTouchMeetStart(event) {
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
this.meetCurrentNode = node;
node.cPos = cc.v2(node);
}
onTouchMeetMove(event) {
// 移动
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.meetCurrentNode) return;
node.opacity = 255;
let delta = event.touch.getDelta();
let pos = cc.v2(delta);
node.x += pos.x;
node.y += pos.y;
}
onTouchMeetEnd(event) {
let node = event.target;
if (node != this.meetCurrentNode) return;
let x = node.x;
let y = node.y;
// 碰撞 成功落地
if (x < 200 && x > -200 && y < 200 && y > -200) {
// 成功
this.onMeetSuccess(node);
} else {
// 失败
this.onMeetFail(node);
}
}
onMeetSuccess(node) {
node.scale = 1.4;
node.x = this.successPos.x;
node.y = this.successPos.y;
this.meetCurrentNode = null;
node.off(cc.Node.EventType.TOUCH_START, this.onTouchMeetStart, this);
node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchMeetMove, this);
node.off(cc.Node.EventType.TOUCH_END, this.onTouchMeetEnd, this);
node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchMeetEnd, this);
node.parent = this.layout_main;
this.successArr.push(node);
if (this.successArr.length == 2) {
this.showPie();
}
}
onMeetFail(node) {
node.x = node.cPos.x;
node.y = node.cPos.y;
this.meetCurrentNode = null;
}
//-------------------------------蔬菜区域---------------------------------
static vegetableDefaultPos: cc.Vec2 = cc.v2(660, 294);
static vegetableAngle: number = 30;
private vegetableNodes: Array<cc.Node>;
initLayoutVegetable() {
// 计算肉饼总数量
this.questions.concat([]).reverse().forEach((question, i) => {
// 创建节点
let node = pg.view.clone(this.item_vegetables);
this.layout_vegetables.addChild(node)
// 刷新节点
this.updateItemVegetable(node, question);
// 设定坐标
node.x = SceneComponent.vegetableDefaultPos.x
node.y = SceneComponent.vegetableDefaultPos.y
// 设定旋转
node.angle = this.getVegetableAngleByI(i)
// 放入数组中便于引用
this.vegetableNodes.push(node);
})
} }
onTouchMeetEnd() { // 右侧文字高亮 右上角菜叶子我给了一个,但是你展示在右上角时,每一片都需要有5-10度的转动。
updateItemVegetable(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'img');
if (data.vegetableType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.vegetableImage, { w: 350, h: 220 })
} else {
img.active = false;
}
let text = pg.view.find(item, 'text');
if (data.vegetableType.indexOf('text') > -1) {
text.active = true;
let str = this.getText(data.vegetableTextArr, `#00580A`, `#3E8E2C`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
item.on(cc.Node.EventType.TOUCH_START, this.onTouchVegetableStart, this);
item.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchVegetableMove, this);
item.on(cc.Node.EventType.TOUCH_END, this.onTouchVegetableEnd, this);
item.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchVegetableEnd, this);
} }
getVegetableAngleByI(i) {
let angle = SceneComponent.vegetableAngle * i
return angle;
}
vegetableCurrentNode: cc.Node;
onTouchVegetableStart(event) {
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
this.vegetableCurrentNode = node;
node.cPos = cc.v2(node);
}
onTouchVegetableMove(event) {
// 移动
let node = event.target;
if (!node.data) node = node.parent;
if (!node || !node.data) return;
if (node.data.id != this.currentQuestion.id) return;
if (node != this.vegetableCurrentNode) return;
node.opacity = 255;
let delta = event.touch.getDelta();
let pos = cc.v2(delta);
node.x += pos.x;
node.y += pos.y;
}
onTouchVegetableEnd(event) {
let node = event.target;
if (node != this.vegetableCurrentNode) return;
let x = node.x;
let y = node.y;
// 碰撞 成功落地
if (x < 200 && x > -200 && y < 200 && y > -200) {
// 成功
this.onVegetableSuccess(node);
} else {
// 失败
this.onVegetableFail(node);
}
}
onVegetableSuccess(node) {
node.scale = 1.4;
node.x = this.successPos.x;
node.y = this.successPos.y;
this.vegetableCurrentNode = null;
node.off(cc.Node.EventType.TOUCH_START, this.onTouchVegetableStart, this);
node.off(cc.Node.EventType.TOUCH_MOVE, this.onTouchVegetableMove, this);
node.off(cc.Node.EventType.TOUCH_END, this.onTouchVegetableEnd, this);
node.off(cc.Node.EventType.TOUCH_CANCEL, this.onTouchVegetableEnd, this);
node.parent = this.layout_main;
this.successArr.push(node);
if (this.successArr.length == 2) {
this.showPie();
}
}
onVegetableFail(node) {
node.x = node.cPos.x;
node.y = node.cPos.y;
this.vegetableCurrentNode = null;
}
//-------------------------------派区域---------------------------------
// 5.上面掉下来一个面包片 炸星星 上面那个面包片掉下来之后,需要弹起一下再落下。
//面包片有图片+文字 或 文字
static pieDefaultPos: cc.Vec2 = cc.v2(48.822, 58.632);
static pieStartPos: cc.Vec2 = cc.v2(48.822, 693.308);
showPie() {
if (1) return;
let node = pg.view.clone(this.item_pie);
this.layout_pie.addChild(node)
node.x = SceneComponent.pieDefaultPos.x;
node.y = SceneComponent.pieDefaultPos.y;
this.updateItemPie(node, this.currentQuestion);
}
//标题刷新 标题如果不配置,就不显示那个黄色标题小标签。 三种情况 题干无、题干有、题干图片+文字 文字默认颜色和高亮颜色都是不同的。超框体缩字。
updateItemPie(item, data) {
item.data = data;
item.active = true;
let img = pg.view.find(item, 'img');
if (data.pieType.indexOf('img') > -1) {
img.active = true;
pg.view.setNetImg(img, data.pieImage, { w: 300, h: 200 })
} else {
img.active = false;
}
let text = pg.view.find(item, 'text');
if (data.pieType.indexOf('text') > -1) {
text.active = true;
let str = this.getText(data.pieTextArr, `#AF5725`, `#00580A`);
text.getComponent(cc.RichText).string = str;
} else {
text.active = false;
}
let bg_title = pg.view.find(item, 'bg_title');
bg_title.active = !!data.title
pg.view.setString(pg.view.find(bg_title, 'label'), data.title);
}
//-------------------------------中间区域--------------------------------- //-------------------------------中间区域---------------------------------
static mainDefaultPos: cc.Vec2 = cc.v2(-48.822, -93.308); static mainDefaultPos: cc.Vec2 = cc.v2(48.822, -93.308);
static mainStartPos: cc.Vec2 = cc.v2(-48.822, 693.308); static mainStartPos: cc.Vec2 = cc.v2(48.822, 693.308);
initLayoutMain() { initLayoutMain() {
// init必定是第一个 // init必定是第一个
let node = pg.view.clone(this.item_main); let node = pg.view.clone(this.item_main);
this.layout_meat.addChild(node) this.layout_main.addChild(node)
node.x = SceneComponent.mainDefaultPos.x; node.x = SceneComponent.mainDefaultPos.x;
node.y = SceneComponent.mainDefaultPos.y; node.y = SceneComponent.mainDefaultPos.y;
this.updateItemMain(node, this.currentQuestion); this.updateItemMain(node, this.currentQuestion);
...@@ -197,16 +406,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -197,16 +406,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.setString(pg.view.find(bg_title, 'label'), data.title); pg.view.setString(pg.view.find(bg_title, 'label'), data.title);
} }
// 右侧文字高亮 右上角菜叶子我给了一个,但是你展示在右上角时,每一片都需要有5-10度的转动。
updateItemVegetable() {
}
// 5.上面掉下来一个面包片 炸星星 上面那个面包片掉下来之后,需要弹起一下再落下。
updateItemPie() {
//面包片有图片+文字 或 文字
}
//----------------------------------通用部分----------------------------------- //----------------------------------通用部分-----------------------------------
getText(list, colorNormal, colorLight) { getText(list, colorNormal, colorLight) {
......
...@@ -2,10 +2,52 @@ export const defaultData = ...@@ -2,10 +2,52 @@ export const defaultData =
{ {
"questions": [ "questions": [
{ {
"options": "type": "img", "mainType": "empty", "mainText": "this is info",
[{ "type": "img", "image": "", "audio": "", "text": "", "time": "", "right": false }, { "type": "img", "image": "", "audio": "", "text": "", "time": "", "right": false }, { "type": "img", "image": "", "audio": "", "text": "", "time": "", "right": false }], "type": "img", "mainType": "empty", "mainText": "this is info", "mainTextArr": [{ "text": "this", "block": true, "check": 1 }, { "text": "is", "block": false, "check": 1 }, { "text": "info", "block": false, "check": 1 }], "meetType": "img", "meetText": "test info", "meetTextArr": [{ "text": "test", "block": true, "check": 1 }, { "text": "info", "block": false, "check": 1 }], "vegetableType": "text", "pieType": "img_text", "pieText": "Countries have their own flag.", "pieTextArr": [{ "text": "Countries", "block": false, "check": 1 }, { "text": "have", "block": true, "check": 1 }, { "text": "their", "block": true, "check": 1 }, { "text": "own", "block": true, "check": 1 }, { "text": "flag.", "block": false, "check": 1 }], "title": "Countries", "meetImage": "http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg", "vegetableText": "have one's own flag", "vegetableTextArr": [{ "text": "have", "block": false, "check": 1 }, { "text": "one's", "block": false, "check": 1 }, { "text": "own", "block": false, "check": 1 }, { "text": "flag", "block": true, "check": 1 }], "pieImage": "http://staging-teach.cdn.ireadabc.com/0205b2ff3fc18a109419aec0c84d5bfe.png" "mainTextArr": [{ "text": "this", "block": true, "check": 1 }, { "text": "is", "block": false, "check": 1 },
{ "text": "info", "block": false, "check": 1 }],
"meetType": "img",
"meetText": "test info",
"meetTextArr": [{ "text": "test", "block": true, "check": 1 },
{ "text": "info", "block": false, "check": 1 }],
"pieType": "img_text",
"pieText": "Countries have their own flag.",
"pieTextArr": [{ "text": "Countries", "block": false, "check": 1 },
{ "text": "have", "block": true, "check": 1 }, { "text": "their", "block": true, "check": 1 },
{ "text": "own", "block": true, "check": 1 }, { "text": "flag.", "block": false, "check": 1 }
],
"title": "Countries",
"meetImage": "http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg",
"vegetableType": "text",
"vegetableText": "have one's own flag",
"vegetableTextArr": [{ "text": "have", "block": false, "check": 1 },
{ "text": "one's", "block": false, "check": 1 }, { "text": "own", "block": false, "check": 1 },
{ "text": "flag", "block": true, "check": 1 }],
"pieImage": "http://staging-teach.cdn.ireadabc.com/0205b2ff3fc18a109419aec0c84d5bfe.png"
}, { }, {
"title": "Test", "mainType": "img_text", "mainText": "I have an apple.", "mainTextArr": [{ "text": "I", "block": false, "check": 1 }, { "text": "have", "block": false, "check": 1 }, { "text": "an", "block": true, "check": 1 }, { "text": "apple.", "block": false, "check": 1 }], "mainImage": "http://staging-teach.cdn.ireadabc.com/45f92811e6830d6c3b554b415afab7f7.png", "meetType": "text", "meetText": "I have a meet", "meetTextArr": [{ "text": "I", "block": false, "check": 1 }, { "text": "have", "block": false, "check": 1 }, { "text": "a", "block": false, "check": 1 }, { "text": "meet", "block": true, "check": 1 }], "meetImage": "", "vegetableType": "img", "vegetableText": "", "vegetableTextArr": [], "vegetableImage": "http://staging-teach.cdn.ireadabc.com/2a7c0b6ad9df5b42871ddd76d3654f04.png", "pieType": "text", "pieText": "I have a pie", "pieTextArr": [{ "text": "I", "block": false, "check": 1 }, { "text": "have", "block": false, "check": 1 }, { "text": "a", "block": false, "check": 1 }, { "text": "pie", "block": true, "check": 1 }], "pieImage": "" "title": "Test",
"mainType": "img_text", "mainText": "I have an apple.",
"mainTextArr": [
{ "text": "I", "block": false, "check": 1 },
{ "text": "have", "block": false, "check": 1 },
{ "text": "an", "block": true, "check": 1 },
{ "text": "apple.", "block": false, "check": 1 }
],
"mainImage": "http://staging-teach.cdn.ireadabc.com/45f92811e6830d6c3b554b415afab7f7.png",
"meetType": "text",
"meetText": "I have a meet",
"meetTextArr": [
{ "text": "I", "block": false, "check": 1 },
{ "text": "have", "block": false, "check": 1 },
{ "text": "a", "block": false, "check": 1 },
{ "text": "meet", "block": true, "check": 1 }],
"meetImage": "",
"vegetableType": "img",
"vegetableText": "",
"vegetableTextArr": [],
"vegetableImage": "http://staging-teach.cdn.ireadabc.com/2a7c0b6ad9df5b42871ddd76d3654f04.png",
"pieType": "text",
"pieText": "I have a pie",
"pieTextArr": [{ "text": "I", "block": false, "check": 1 }, { "text": "have", "block": false, "check": 1 }, { "text": "a", "block": false, "check": 1 }, { "text": "pie", "block": true, "check": 1 }], "pieImage": ""
}], }],
"questionText": "", "questionText": "",
"auidoStart": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3", "auidoStart": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
......
assets/dg28_drag/textures/img_pie.png

69.3 KB | W: | H:

assets/dg28_drag/textures/img_pie.png

70.1 KB | W: | H:

assets/dg28_drag/textures/img_pie.png
assets/dg28_drag/textures/img_pie.png
assets/dg28_drag/textures/img_pie.png
assets/dg28_drag/textures/img_pie.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 986, "width": 972,
"height": 916, "height": 734,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"img_pie": { "img_pie": {
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": -1.5, "offsetX": 0,
"offsetY": 6.5, "offsetY": 0,
"trimX": 78, "trimX": 2,
"trimY": 92, "trimY": 0,
"width": 827, "width": 968,
"height": 719, "height": 734,
"rawWidth": 986, "rawWidth": 972,
"rawHeight": 916, "rawHeight": 734,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
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