Commit ec2478ab authored by 唐鑫's avatar 唐鑫

xiugai

parent 1a8fe252
...@@ -31,16 +31,28 @@ ...@@ -31,16 +31,28 @@
}, },
{ {
"__id__": 20 "__id__": 20
},
{
"__id__": 23
},
{
"__id__": 26
},
{
"__id__": 29
},
{
"__id__": 32
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 45
} }
], ],
"_prefab": { "_prefab": {
"__id__": 31 "__id__": 46
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -97,7 +109,7 @@ ...@@ -97,7 +109,7 @@
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 3 "__id__": 3
...@@ -250,13 +262,13 @@ ...@@ -250,13 +262,13 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg_quan", "_name": "bg_quan_old",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 8 "__id__": 8
...@@ -393,7 +405,7 @@ ...@@ -393,7 +405,7 @@
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 12
...@@ -500,7 +512,7 @@ ...@@ -500,7 +512,7 @@
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 15
...@@ -716,30 +728,20 @@ ...@@ -716,30 +728,20 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "hand", "_name": "icon_play",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
}, },
"_children": [ "_children": [],
{ "_active": false,
"__id__": 21
},
{
"__id__": 24
}
],
"_active": true,
"_components": [ "_components": [
{ {
"__id__": 27 "__id__": 21
},
{
"__id__": 28
} }
], ],
"_prefab": { "_prefab": {
"__id__": 29 "__id__": 22
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -751,8 +753,8 @@ ...@@ -751,8 +753,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 78, "width": 42,
"height": 78 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -763,8 +765,8 @@ ...@@ -763,8 +765,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
35.1, -29.336,
-35, 73.964,
0, 0,
0, 0,
0, 0,
...@@ -788,22 +790,65 @@ ...@@ -788,22 +790,65 @@
"groupIndex": 0, "groupIndex": 0,
"_id": "" "_id": ""
}, },
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5a28d645-d8aa-42a0-8119-62a72e96f854"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
},
"fileId": "a3Ou7g0PRAKpk6eoBoqYHr",
"sync": false
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_dian", "_name": "icon_stop",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 20 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 24
} }
], ],
"_prefab": { "_prefab": {
"__id__": 23 "__id__": 25
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -815,8 +860,8 @@ ...@@ -815,8 +860,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 49, "width": 42,
"height": 49 "height": 25
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -827,8 +872,8 @@ ...@@ -827,8 +872,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-22.199, -29.648,
34, 74.275,
0, 0,
0, 0,
0, 0,
...@@ -857,7 +902,7 @@ ...@@ -857,7 +902,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 23
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -868,7 +913,7 @@ ...@@ -868,7 +913,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "5daba96f-eff5-4bee-9ba9-d67c0134212a" "__uuid__": "a6e37a08-80d7-4efa-8256-8c925ad9063d"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -892,25 +937,25 @@ ...@@ -892,25 +937,25 @@
"asset": { "asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803" "__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
}, },
"fileId": "85Cu0e6IdO7rehoMCnMUPa", "fileId": "bdj7Z5C1hG9ZUpslIq23db",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon_hand", "_name": "bg_quan_huang",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 20 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 27
} }
], ],
"_prefab": { "_prefab": {
"__id__": 26 "__id__": 28
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -922,8 +967,8 @@ ...@@ -922,8 +967,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 69, "width": 130,
"height": 78 "height": 130
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -934,8 +979,8 @@ ...@@ -934,8 +979,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 14.364,
0, -2.917,
0, 0,
0, 0,
0, 0,
...@@ -964,7 +1009,7 @@ ...@@ -964,7 +1009,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -975,10 +1020,10 @@ ...@@ -975,10 +1020,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "562deefd-c9fd-42f0-97d7-d6f5893ef3f3" "__uuid__": "4b7d087b-846b-42be-a0fd-0680a9428b88"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -999,53 +1044,103 @@ ...@@ -999,53 +1044,103 @@
"asset": { "asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803" "__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
}, },
"fileId": "b6EBayLo9DCrkpa2CYD+lG", "fileId": "f94BWi8LJI7LZb1nnh8wI/",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Animation", "__type__": "cc.Node",
"_name": "", "_name": "bg_quan",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 20 "__id__": 1
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "110d5a6d-4d4e-4a04-bed2-4bb56c56d03d"
}, },
"_clips": [ "_children": [],
"_active": false,
"_components": [
{ {
"__uuid__": "110d5a6d-4d4e-4a04-bed2-4bb56c56d03d" "__id__": 30
} }
], ],
"playOnLoad": false, "_prefab": {
"__id__": 31
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 130,
"height": 130
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
14.364,
-3.482,
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": "" "_id": ""
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 20 "__id__": 29
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "_materials": [
"_target": null, {
"_alignFlags": 18, "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_left": 0, }
"_right": 0, ],
"_top": 0, "_srcBlendFactor": 770,
"_bottom": 0, "_dstBlendFactor": 771,
"_verticalCenter": -35, "_spriteFrame": {
"_horizontalCenter": 0.1, "__uuid__": "7651dd7c-f921-4f71-8006-4f25714d24b9"
"_isAbsLeft": true, },
"_isAbsRight": true, "_type": 0,
"_isAbsTop": true, "_sizeMode": 0,
"_isAbsBottom": true, "_fillType": 0,
"_isAbsHorizontalCenter": false, "_fillCenter": {
"_isAbsVerticalCenter": true, "__type__": "cc.Vec2",
"_originalWidth": 0, "x": 0,
"_originalHeight": 0, "y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "" "_id": ""
}, },
{ {
...@@ -1056,35 +1151,496 @@ ...@@ -1056,35 +1151,496 @@
"asset": { "asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803" "__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
}, },
"fileId": "9aI5le42RBv5GR0xkx1QW1", "fileId": "f7H0+H+qJGh5CiCBaESrqN",
"sync": false "sync": false
}, },
{ {
"__type__": "57f79KAb0tNU7HjHMpUOk2e", "__type__": "cc.Node",
"_name": "", "_name": "hand",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 1 "__id__": 1
}, },
"_enabled": true, "_children": [
"quan": { {
"__id__": 7 "__id__": 33
},
{
"__id__": 36
},
{
"__id__": 39
}
],
"_active": true,
"_components": [
{
"__id__": 42
},
{
"__id__": 43
}
],
"_prefab": {
"__id__": 44
}, },
"tipsAnim": { "_opacity": 255,
"__id__": 4 "_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"handAnim": { "_contentSize": {
"__id__": 27 "__type__": "cc.Size",
"width": 78,
"height": 78
}, },
"sprite": { "_anchorPoint": {
"__id__": 12 "__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
}, },
"tipClip": { "_trs": {
"__uuid__": "e0bcf4cc-35a7-4d61-b202-8dd49299c2c0" "__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
35.1,
-35,
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": ""
},
{
"__type__": "cc.Node",
"_name": "icon_dian",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 34
}
],
"_prefab": {
"__id__": 35
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 49,
"height": 49
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-22.199,
34,
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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5daba96f-eff5-4bee-9ba9-d67c0134212a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
},
"fileId": "85Cu0e6IdO7rehoMCnMUPa",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "icon_hand",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
}
],
"_prefab": {
"__id__": 38
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0.435,
-1.306,
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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "243e71ab-eb67-4dd0-8abd-5ca1104903df"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
},
"fileId": "60grmEaEVCx7SsKEadDwBA",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "icon_hand_old",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 40
}
],
"_prefab": {
"__id__": 41
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 69,
"height": 78
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "562deefd-c9fd-42f0-97d7-d6f5893ef3f3"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
},
"fileId": "b6EBayLo9DCrkpa2CYD+lG",
"sync": false
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "110d5a6d-4d4e-4a04-bed2-4bb56c56d03d"
},
"_clips": [
{
"__uuid__": "110d5a6d-4d4e-4a04-bed2-4bb56c56d03d"
}
],
"playOnLoad": false,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": -35,
"_horizontalCenter": 0.1,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": false,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2ce7d58d-b6fe-4ef7-a128-de76f672a803"
},
"fileId": "9aI5le42RBv5GR0xkx1QW1",
"sync": false
},
{
"__type__": "57f79KAb0tNU7HjHMpUOk2e",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"quan": {
"__id__": 29
},
"tipsAnim": {
"__id__": 4
},
"handAnim": {
"__id__": 42
},
"sprite": {
"__id__": 12
},
"tipClip": {
"__uuid__": "e0bcf4cc-35a7-4d61-b202-8dd49299c2c0"
}, },
"btnX": { "btnX": {
"__id__": 14 "__id__": 14
}, },
"icon_play": {
"__id__": 20
},
"icon_stop": {
"__id__": 23
},
"_id": "" "_id": ""
}, },
{ {
......
...@@ -9,7 +9,9 @@ cc.Class({ ...@@ -9,7 +9,9 @@ cc.Class({
handAnim: cc.Animation, handAnim: cc.Animation,
sprite: cc.Sprite, sprite: cc.Sprite,
tipClip: cc.AudioClip, tipClip: cc.AudioClip,
btnX: cc.Node btnX: cc.Node,
icon_play: cc.Node,
icon_stop: cc.Node,
}, },
data: null, data: null,
......
...@@ -21,7 +21,7 @@ cc.Class({ ...@@ -21,7 +21,7 @@ cc.Class({
tools.getSpriteFrimeByUrl(data.bgItem.url, (sp) => { tools.getSpriteFrimeByUrl(data.bgItem.url, (sp) => {
let rect = sp.getRect() let rect = sp.getRect()
let scale = rect.width / rect.height let scale = rect.width / rect.height
let originRect = cc.size(1280, 720) let originRect = cc.size(1084, 630)
let originScale = originRect.width / originRect.height let originScale = originRect.width / originRect.height
if (scale < originScale) { if (scale < originScale) {
scale = rect.height / originRect.height scale = rect.height / originRect.height
...@@ -38,17 +38,18 @@ cc.Class({ ...@@ -38,17 +38,18 @@ cc.Class({
this.node.width = originRect.width this.node.width = originRect.width
this.node.height = originRect.height this.node.height = originRect.height
} }
this.borders[0].active = true // this.borders[0].active = true
this.borders[1].active = true // this.borders[1].active = true
this.borders[0].x = -this.node.width / 2 // this.borders[0].x = -this.node.width / 2
this.borders[1].x = this.node.width / 2 // this.borders[1].x = this.node.width / 2
this._sprite.spriteFrame = sp this._sprite.spriteFrame = sp
this._sprite.node.width = this.node.width this._sprite.node.width = this.node.width
this._sprite.node.height = this.node.height this._sprite.node.height = this.node.height
this._items.width = this.node.width this._items.width = this.node.width
this._items.height = this.node.height this._items.height = this.node.height
this._items.x = -this.node.width / 2 this._items.x = -this.node.width / 2
this._items.y = this.node.height / 2 this._sprite.node.y = 30;
this._items.y = this.node.height / 2 + this._sprite.node.y;
scale = data.bgItem.rect.width / this.node.width scale = data.bgItem.rect.width / this.node.width
//初始化点击区域 //初始化点击区域
let node, comp let node, comp
......
...@@ -78,22 +78,34 @@ ...@@ -78,22 +78,34 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 17 "__id__": 14
},
{
"__id__": 16
}, },
{ {
"__id__": 26 "__id__": 26
},
{
"__id__": 36
},
{
"__id__": 45
},
{
"__id__": 57
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 38 "__id__": 59
}, },
{ {
"__id__": 39 "__id__": 60
}, },
{ {
"__id__": 40 "__id__": 61
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -275,66 +287,970 @@ ...@@ -275,66 +287,970 @@
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 0,
0, 0,
0, 0,
0, 0,
0, 0,
1, 1,
1, 1,
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": "aeaOM8xiFHsZWw7c1ruylq"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c31f81f3-83db-4b46-a5c3-a33572c12e7f"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "eaS1JEsKZJk5kn9K13PwO5"
},
{
"__type__": "cc.Node",
"_name": "bg0",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_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": "2cLPHZ55pGB4S7biD1cfpU"
},
{
"__type__": "cc.Node",
"_name": "bg_bg",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "8b30Wn/n9NPbyRWnSZYf2e"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c31f81f3-83db-4b46-a5c3-a33572c12e7f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6cYAV35kZANZCCuig8cqPO"
},
{
"__type__": "cc.Node",
"_name": "bg_background0",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 132
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
336.467,
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": "aaJfdkYpdLwo5kEw10111o"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "606a9bca-a472-422e-a8d7-a57fe4a2e057"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bbEpp1vc1EWJg6BB8jOW1N"
},
{
"__type__": "cc.Node",
"_name": "bg_book0",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1160,
"height": 700
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
4.06,
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": "85Diq8YVxLoY98E9LAlYI9"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "98663708-7ead-4cfb-bc2c-d15c44652c61"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "60rP5bWpBIr6qW6FAsMJaR"
},
{
"__type__": "cc.Node",
"_name": "btn_return0",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-601.187,
330.472,
0,
0,
0,
0,
1,
0.8,
0.8,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b8uxNjv6FGr5MisynQTwG/"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e54faa95-6e77-48f7-8c37-b1dbff667c1b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d2podFg/xK0L8sn0S7+ngq"
},
{
"__type__": "cc.Node",
"_name": "btn_audio",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 17
},
{
"__id__": 19
},
{
"__id__": 21
}
],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-325.423,
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": "120gaUr6hJPo2eX27IP6WY"
},
{
"__type__": "cc.Node",
"_name": "0",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0.107,
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": "d83asQV+NAB5LARx02U+ME"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "95405bae-c056-4368-93dc-809e1b3ed61c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e7HsEzZQZL4pT4/dR26Axl"
},
{
"__type__": "cc.Node",
"_name": "1",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0.083,
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": "4ftiqTLpFPyYYu7wNiNH1z"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "988da25a-9911-46e1-849e-e233aa555827"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "639eF/JpZPSre+PB2S/2T2"
},
{
"__type__": "cc.Node",
"_name": "2",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 82,
"height": 65
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0.107,
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": "2dodwI8cFOHKu4Y25Y8yyG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1116d523-c1d0-4fb3-a8ac-73b80db6c10c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5azWm5XetPQpm3iNcnlEj5"
},
{
"__type__": "5bb7aCdT2RLSYYLIb2z0J6C",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"btn0": {
"__id__": 17
},
"btn1": {
"__id__": 19
},
"btn2": {
"__id__": 21
},
"_id": "e8TJXgO+9BVaJxqHj7bagF"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 25
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
}, },
"_eulerAngles": { "_N$normalSprite": null,
"__type__": "cc.Vec3", "_N$pressedSprite": null,
"x": 0, "pressedSprite": null,
"y": 0, "_N$hoverSprite": null,
"z": 0 "hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 16
}, },
"_skewX": 0, "_id": "ede/L01tZPn5z0KzF82UmH"
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aeaOM8xiFHsZWw7c1ruylq"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.ClickEvent",
"_name": "", "target": {
"_objFlags": 0, "__id__": 2
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c31f81f3-83db-4b46-a5c3-a33572c12e7f"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
}, },
"_fillStart": 0, "component": "",
"_fillRange": 0, "_componentId": "c238bwNxXtAHqIXQECY4nQz",
"_isTrimmedMode": true, "handler": "onClickAudio",
"_atlas": null, "customEventData": ""
"_id": "eaS1JEsKZJk5kn9K13PwO5"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -345,22 +1261,22 @@ ...@@ -345,22 +1261,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 8 "__id__": 27
}, },
{ {
"__id__": 11 "__id__": 30
}, },
{ {
"__id__": 12 "__id__": 31
}, },
{ {
"__id__": 14 "__id__": 33
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 35
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -416,16 +1332,16 @@ ...@@ -416,16 +1332,16 @@
"_name": "icon", "_name": "icon",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 28
}, },
{ {
"__id__": 10 "__id__": 29
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -481,7 +1397,7 @@ ...@@ -481,7 +1397,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -511,7 +1427,7 @@ ...@@ -511,7 +1427,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -538,7 +1454,7 @@ ...@@ -538,7 +1454,7 @@
"_name": "items", "_name": "items",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -596,13 +1512,13 @@ ...@@ -596,13 +1512,13 @@
"_name": "bg_move", "_name": "bg_move",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 13 "__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -658,7 +1574,7 @@ ...@@ -658,7 +1574,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 12 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -690,13 +1606,13 @@ ...@@ -690,13 +1606,13 @@
"_name": "bg_move", "_name": "bg_move",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 26
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 34
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -752,7 +1668,7 @@ ...@@ -752,7 +1668,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 14 "__id__": 33
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -784,7 +1700,7 @@ ...@@ -784,7 +1700,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 26
}, },
"_enabled": true, "_enabled": true,
"hitPre": { "hitPre": {
...@@ -792,10 +1708,10 @@ ...@@ -792,10 +1708,10 @@
}, },
"borders": [ "borders": [
{ {
"__id__": 12 "__id__": 31
}, },
{ {
"__id__": 14 "__id__": 33
} }
], ],
"_id": "25htXxEOZC+47ROkvoLV/U" "_id": "25htXxEOZC+47ROkvoLV/U"
...@@ -809,22 +1725,22 @@ ...@@ -809,22 +1725,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 18 "__id__": 37
}, },
{ {
"__id__": 20 "__id__": 39
}, },
{ {
"__id__": 21 "__id__": 40
}, },
{ {
"__id__": 23 "__id__": 42
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 25 "__id__": 44
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -880,13 +1796,13 @@ ...@@ -880,13 +1796,13 @@
"_name": "icon", "_name": "icon",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 17 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 19 "__id__": 38
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -942,7 +1858,7 @@ ...@@ -942,7 +1858,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 18 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -972,7 +1888,7 @@ ...@@ -972,7 +1888,7 @@
"_name": "items", "_name": "items",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 17 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
...@@ -1030,13 +1946,13 @@ ...@@ -1030,13 +1946,13 @@
"_name": "bg_move", "_name": "bg_move",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 17 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 41
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1092,7 +2008,7 @@ ...@@ -1092,7 +2008,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 21 "__id__": 40
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1124,13 +2040,13 @@ ...@@ -1124,13 +2040,13 @@
"_name": "bg_move", "_name": "bg_move",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 17 "__id__": 36
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 43
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1186,7 +2102,7 @@ ...@@ -1186,7 +2102,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 42
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1218,7 +2134,7 @@ ...@@ -1218,7 +2134,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 17 "__id__": 36
}, },
"_enabled": true, "_enabled": true,
"hitPre": { "hitPre": {
...@@ -1226,10 +2142,10 @@ ...@@ -1226,10 +2142,10 @@
}, },
"borders": [ "borders": [
{ {
"__id__": 21 "__id__": 40
}, },
{ {
"__id__": 23 "__id__": 42
} }
], ],
"_id": "89aCQ7yHtOn4s8onn5MbAu" "_id": "89aCQ7yHtOn4s8onn5MbAu"
...@@ -1243,19 +2159,19 @@ ...@@ -1243,19 +2159,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 27 "__id__": 46
}, },
{ {
"__id__": 29 "__id__": 48
}, },
{ {
"__id__": 33 "__id__": 52
} }
], ],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1311,13 +2227,13 @@ ...@@ -1311,13 +2227,13 @@
"_name": "bg_bottom", "_name": "bg_bottom",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 47
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1373,7 +2289,7 @@ ...@@ -1373,7 +2289,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1405,16 +2321,16 @@ ...@@ -1405,16 +2321,16 @@
"_name": "btn_left", "_name": "btn_left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 49
}, },
{ {
"__id__": 32 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1470,7 +2386,7 @@ ...@@ -1470,7 +2386,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -1479,7 +2395,7 @@ ...@@ -1479,7 +2395,7 @@
"zoomScale": 1.1, "zoomScale": 1.1,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 31 "__id__": 50
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -1552,7 +2468,7 @@ ...@@ -1552,7 +2468,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1584,16 +2500,16 @@ ...@@ -1584,16 +2500,16 @@
"_name": "btn_right", "_name": "btn_right",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 26 "__id__": 45
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 53
}, },
{ {
"__id__": 36 "__id__": 55
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1649,7 +2565,7 @@ ...@@ -1649,7 +2565,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -1658,7 +2574,7 @@ ...@@ -1658,7 +2574,7 @@
"zoomScale": 1.1, "zoomScale": 1.1,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 35 "__id__": 54
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -1731,7 +2647,7 @@ ...@@ -1731,7 +2647,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 52
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1763,7 +2679,7 @@ ...@@ -1763,7 +2679,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 26 "__id__": 45
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -1785,6 +2701,100 @@ ...@@ -1785,6 +2701,100 @@
"_originalHeight": 0, "_originalHeight": 0,
"_id": "14yYhIw95BeZx56bjhZzfB" "_id": "14yYhIw95BeZx56bjhZzfB"
}, },
{
"__type__": "cc.Node",
"_name": "bg_number0",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 48
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
569.189,
327.063,
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": "eagih76nJLMIM22wP2xG+F"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2424ba66-21df-4845-b4a8-ea1441eb9193"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a8EmADfV9Mz5J5TBPEtt49"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
...@@ -1838,16 +2848,16 @@ ...@@ -1838,16 +2848,16 @@
}, },
"_enabled": true, "_enabled": true,
"picNode": { "picNode": {
"__id__": 7 "__id__": 26
}, },
"picTempNode": { "picTempNode": {
"__id__": 17 "__id__": 36
}, },
"leftNode": { "leftNode": {
"__id__": 29 "__id__": 48
}, },
"rightNode": { "rightNode": {
"__id__": 33 "__id__": 52
}, },
"btnClip": { "btnClip": {
"__uuid__": "39ef1939-3bf9-4d21-a67a-bc1dede521a9" "__uuid__": "39ef1939-3bf9-4d21-a67a-bc1dede521a9"
......
const tools = require("./tools"); // const tools = require("./tools");
cc.Class({ cc.Class({
extends: cc.Component, extends: cc.Component,
...@@ -220,9 +220,18 @@ cc.Class({ ...@@ -220,9 +220,18 @@ cc.Class({
cc.audioEngine.play(this.btnClip, false, 0.8) cc.audioEngine.play(this.btnClip, false, 0.8)
}, },
//绑定音频按钮,点击按钮播放,再次点击按钮暂停
onClickAudio(e) {
let target = e.target;
let btn_loop = target.getComponent("btn_loop");//找到btn_loop
if (this.isPlaying) {
this.isPlaying = false;
btn_loop.stopPlay();//执行暂停的方法
} else {
this.isPlaying = true;
btn_loop.startPlay();//执行播放的方法
}
},
/** 左移动 */ /** 左移动 */
leftMove() { leftMove() {
this.stopAudio() this.stopAudio()
......
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// function test() {
// let arr = [];
// let count = -1;
// for (let i = 0; i < 100; i++) {
// if(count>1){
// count=-1
// }
// count = count + 1;
// console.log(i%3);
// }
// }
// test();
cc.Class({
extends: cc.Component,
properties: {
btn0: cc.Node,
btn1: cc.Node,
btn2: cc.Node,
// foo: {
// // ATTRIBUTES:
// default: null, // The default value will be used only when the component attaching
// // to a node for the first time
// type: cc.SpriteFrame, // optional, default is typeof default
// serializable: true, // optional, default is true
// },
// bar: {
// get () {
// return this._bar;
// },
// set (value) {
// this._bar = value;
// }
// },
},
// LIFE-CYCLE CALLBACKS:
//初始播放动画状态为关闭
onLoad() {
this.isPlaying = false;
this.count = -1;
},
startPlay() {
this.isPlaying = true;
},
stopPlay() {
this.isPlaying = false;
},
start() {
},
update(dt) {//循环播放0 1 2 三种状态
if (this.isPlaying) {
if (this.count / 20 % 3 == 0) {//播放20次0
this.btn0.active = true;
this.btn1.active = false;
this.btn2.active = false;
} else if (this.count / 20 % 3 == 1) {
this.btn0.active = false;
this.btn1.active = true;
this.btn2.active = false;
} else if (this.count / 20 % 3 == 2) {
this.btn0.active = false;
this.btn1.active = false;
this.btn2.active = true;
}
this.count = this.count + 1;
} else {
this.btn0.active = false;
this.btn1.active = false;
this.btn2.active = true;
}
},
});
{
"ver": "1.0.8",
"uuid": "5bb7a09d-4f64-4b49-860b-21bdb3d09e82",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dc1af8ba-e6cf-4bbe-bd79-540d98b20e68",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 132,
"platformSettings": {},
"subMetas": {
"bg_background0": {
"ver": "1.0.4",
"uuid": "606a9bca-a472-422e-a8d7-a57fe4a2e057",
"rawTextureUuid": "dc1af8ba-e6cf-4bbe-bd79-540d98b20e68",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 132,
"rawWidth": 1334,
"rawHeight": 132,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c6da2114-acd6-4f8b-87fe-5b2b7d5a02db",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1160,
"height": 700,
"platformSettings": {},
"subMetas": {
"bg_book0": {
"ver": "1.0.4",
"uuid": "98663708-7ead-4cfb-bc2c-d15c44652c61",
"rawTextureUuid": "c6da2114-acd6-4f8b-87fe-5b2b7d5a02db",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1160,
"height": 700,
"rawWidth": 1160,
"rawHeight": 700,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9c68c485-b823-4392-8f2d-dee9b2c825b3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 663,
"platformSettings": {},
"subMetas": {
"bg_desk0": {
"ver": "1.0.4",
"uuid": "d150fd14-dc63-4157-bdda-456f1b3588ed",
"rawTextureUuid": "9c68c485-b823-4392-8f2d-dee9b2c825b3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 663,
"rawWidth": 1334,
"rawHeight": 663,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "88ec0572-2ab8-4f4c-af0d-0f5df7a968a5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 138,
"height": 48,
"platformSettings": {},
"subMetas": {
"bg_number0": {
"ver": "1.0.4",
"uuid": "2424ba66-21df-4845-b4a8-ea1441eb9193",
"rawTextureUuid": "88ec0572-2ab8-4f4c-af0d-0f5df7a968a5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 138,
"height": 48,
"rawWidth": 138,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "09ebb784-8fac-4f56-9d65-6b12ab67ae51",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 170,
"height": 170,
"platformSettings": {},
"subMetas": {
"bg_quan_huang": {
"ver": "1.0.4",
"uuid": "4b7d087b-846b-42be-a0fd-0680a9428b88",
"rawTextureUuid": "09ebb784-8fac-4f56-9d65-6b12ab67ae51",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 35,
"trimY": 35,
"width": 100,
"height": 100,
"rawWidth": 170,
"rawHeight": 170,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fc6bcab9-f306-4af9-b3d7-851ad3863338",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 170,
"height": 170,
"platformSettings": {},
"subMetas": {
"bg_quan_lan": {
"ver": "1.0.4",
"uuid": "7651dd7c-f921-4f71-8006-4f25714d24b9",
"rawTextureUuid": "fc6bcab9-f306-4af9-b3d7-851ad3863338",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 0,
"trimX": 34,
"trimY": 35,
"width": 100,
"height": 100,
"rawWidth": 170,
"rawHeight": 170,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bbea58e0-92b7-4c14-808b-c3eb31e6b7ed",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 82,
"height": 65,
"platformSettings": {},
"subMetas": {
"btn_audio-play1": {
"ver": "1.0.4",
"uuid": "95405bae-c056-4368-93dc-809e1b3ed61c",
"rawTextureUuid": "bbea58e0-92b7-4c14-808b-c3eb31e6b7ed",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 82,
"height": 65,
"rawWidth": 82,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "360bebb8-8b1d-4481-ac96-bd5d7bf47abe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 82,
"height": 65,
"platformSettings": {},
"subMetas": {
"btn_audio-play2": {
"ver": "1.0.4",
"uuid": "988da25a-9911-46e1-849e-e233aa555827",
"rawTextureUuid": "360bebb8-8b1d-4481-ac96-bd5d7bf47abe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 82,
"height": 65,
"rawWidth": 82,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b93de2a3-ead5-4a4b-b274-21e1a0d63c58",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 82,
"height": 65,
"platformSettings": {},
"subMetas": {
"btn_audio-play3": {
"ver": "1.0.4",
"uuid": "1116d523-c1d0-4fb3-a8ac-73b80db6c10c",
"rawTextureUuid": "b93de2a3-ead5-4a4b-b274-21e1a0d63c58",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 82,
"height": 65,
"rawWidth": 82,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d5e34f59-e0ec-45f7-80b7-6793a7022dfd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 82,
"height": 65,
"platformSettings": {},
"subMetas": {
"btn_return0": {
"ver": "1.0.4",
"uuid": "e54faa95-6e77-48f7-8c37-b1dbff667c1b",
"rawTextureUuid": "d5e34f59-e0ec-45f7-80b7-6793a7022dfd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 82,
"height": 65,
"rawWidth": 82,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8093d7cd-7644-4cc6-80c7-b8b45907e2e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 52,
"height": 50,
"platformSettings": {},
"subMetas": {
"icon_hand0": {
"ver": "1.0.4",
"uuid": "243e71ab-eb67-4dd0-8abd-5ca1104903df",
"rawTextureUuid": "8093d7cd-7644-4cc6-80c7-b8b45907e2e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 52,
"height": 50,
"rawWidth": 52,
"rawHeight": 50,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "82b719db-f613-486c-8b09-27a0807665ee",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 42,
"height": 25,
"platformSettings": {},
"subMetas": {
"icon_play": {
"ver": "1.0.4",
"uuid": "5a28d645-d8aa-42a0-8119-62a72e96f854",
"rawTextureUuid": "82b719db-f613-486c-8b09-27a0807665ee",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 42,
"height": 25,
"rawWidth": 42,
"rawHeight": 25,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "974c57fd-70f1-44a7-ade0-4c6f50db8ed0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 42,
"height": 25,
"platformSettings": {},
"subMetas": {
"icon_stop": {
"ver": "1.0.4",
"uuid": "a6e37a08-80d7-4efa-8256-8c925ad9063d",
"rawTextureUuid": "974c57fd-70f1-44a7-ade0-4c6f50db8ed0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 42,
"height": 25,
"rawWidth": 42,
"rawHeight": 25,
"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