Commit 6ef4d05d authored by yu's avatar yu

1

parent 9f5f5457
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 14
}
],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
}
],
"_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": [
640,
360,
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": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_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,
362.85545494732423,
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": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_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": "32MJMZ2HRGF4BOf533Avyi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb"
},
{
"__type__": "cc.Node",
"_name": "bottomPart",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
},
{
"__id__": 11
}
],
"_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": [
635.132,
-356.326,
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": "8c7k8ep/ZFNpO263+1QHz9"
},
{
"__type__": "cc.Node",
"_name": "btn_left",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 67
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-148.464,
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": "5ad2wLQLxIN5Eg7OHecSH6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "84mqOgJ3JNqZrYVTEU8CjE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_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
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "bcYN/4EKBJhbIAfovo9Ah1"
},
{
"__type__": "cc.Node",
"_name": "btn_right",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-47.164,
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": "46i3stdzpHX6zQHTGnRsNE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_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
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 16
}
],
"_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": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_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": "cfMLGsq0BMhJARv+ySMAxS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 19
}
],
"_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": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_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": 138,
"height": 141
},
"_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": "1blU2OArJIfoC9XfupGxJG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 22
}
],
"_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": "d9f+b0lmZGSJJae6zrADhp"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_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": "e87DSaFCVJfb2PAUkf4/o7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "dey05oKrBIspvsDa6pOIQz"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "408a6f4ZfpM8Yzyg+IOGg/V",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "eaTVUpqahPfZeO9+sUI7RP"
}
]
\ No newline at end of file
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initListener();
}
_cantouch = null;
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
}
initView() {
this.initBg();
this.initPic();
this.initBtn();
this.initIcon();
}
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
}
pic1 = null;
pic2 = null;
initPic() {
const canvas = cc.find('Canvas');
const maxW = canvas.width * 0.7;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => {
const picNode1 = sprNode;
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x;
canvas.addChild(picNode1);
this.pic1 = picNode1;
const labelNode = new cc.Node();
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label);
label.string = this.data.text;
label.fontSize = 60;
label.lineHeight = 60;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font;
picNode1.addChild(labelNode);
});
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => {
const picNode2 = sprNode;
picNode2.scale = maxW / picNode2.width;
canvas.addChild(picNode2);
picNode2.x = canvas.width;
picNode2.baseX = picNode2.x;
this.pic2 = picNode2;
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.RichText);
const size = 60
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent(cc.Label).font;
label.string = `<outline color=#751e00 width=4><size=${size}><color=#ffffff>${this.data.text}</color></size></outline>`
label.lineHeight = size;
picNode2.addChild(labelNode);
});
}
initIcon() {
const iconNode = this.getSprNode('icon');
iconNode.zIndex = 5;
iconNode.anchorX = 1;
iconNode.anchorY = 1;
iconNode.parent = cc.find('Canvas');
iconNode.x = iconNode.parent.width / 2 - 10;
iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url);
})
}
curPage = null;
initBtn() {
this.curPage = 0;
const bottomPart = cc.find('Canvas/bottomPart');
bottomPart.zIndex = 5; // 提高层级
bottomPart.x = bottomPart.parent.width / 2;
bottomPart.y = -bottomPart.parent.height / 2;
const leftBtnNode = bottomPart.getChildByName('btn_left');
//节点中添加了button组件 则可以添加click事件监听
leftBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 0) {
return;
}
this.curPage = 0
this.leftMove();
this.playLocalAudio('btn');
})
const rightBtnNode = bottomPart.getChildByName('btn_right');
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 1) {
return;
}
this.curPage = 1
this.rightMove();
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish();
this.playLocalAudio('btn');
})
}
leftMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
rightMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX - len }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX - len }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
// update (dt) {},
initListener() {
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
}
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"uuid": "155aceeb-a442-4f9e-9846-2f474325f280",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32",
"uuid": "12e6fb2c-9078-4092-a388-123fe7de7d64",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"uuid": "6aac7f12-2d92-4435-9aff-4b7e1b0476fc",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
......
{
"ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b",
"uuid": "175b749a-e575-4ba4-8932-a26dae39ff32",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{"name":"录音动画","version":"5.5","armature":[{"name":"Armature","slot":[{"name":"椭圆_11","color":{},"parent":"big"},{"name":"椭圆_11_拷贝","color":{},"z":1,"parent":"small"},{"name":"组_1","color":{},"z":2,"parent":"root"}],"bone":[{"name":"root","transform":{"x":0.4842,"skY":-0.0188,"y":0.4842,"skX":-0.0188}},{"name":"big","transform":{"x":-0.5,"skY":89.9812,"y":-1,"skX":89.9812},"parent":"root"},{"name":"small","transform":{"x":1.9369,"skY":179.9812,"y":0.0006,"skX":179.9812},"parent":"root"}],"aabb":{"x":-101.5312185134179,"height":208,"y":-103.03171071912247,"width":205},"defaultActions":[{"gotoAndPlay":"newAnimation"}],"animation":[{"name":"newAnimation","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"big","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":18},{"x":1.5,"y":1.5,"duration":0}]},{"name":"small","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":18},{"x":1.4,"y":1.4,"duration":0}]}],"playTimes":0,"ffd":[],"ik":[],"slot":[{"name":"椭圆_11","displayFrame":[],"colorFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"color":{"aM":0}}]},{"name":"椭圆_11_拷贝","displayFrame":[],"colorFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"color":{"aM":12}}]},{"name":"组_1","displayFrame":[],"colorFrame":[]}],"duration":18}],"ik":[],"skin":[{"name":"","slot":[{"name":"椭圆_11","display":[{"name":"提示/椭圆_11","transform":{"x":1.4845,"skY":-90,"y":-0.9839,"skX":-90},"type":"image","path":"提示/椭圆_11"}]},{"name":"椭圆_11_拷贝","display":[{"name":"提示/椭圆_11_拷贝","transform":{"x":-0.0038,"skY":-179.9215,"y":5.8107,"skX":-179.9215},"type":"image","path":"提示/椭圆_11_拷贝"}]},{"name":"组_1","display":[{"name":"提示/组_1","transform":{"x":1.0034,"y":-5.0077},"type":"image","path":"提示/组_1"}]}]}],"frameRate":24,"type":"Armature"}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "6891a5a4-b997-453d-b0e7-727f461ccf43",
"subMetas": {}
}
\ No newline at end of file
{"name":"录音动画","SubTexture":[{"name":"提示/椭圆_11","x":1,"height":208,"y":1,"width":205},{"name":"提示/椭圆_11_拷贝","x":208,"height":156,"y":1,"width":156},{"name":"提示/组_1","x":366,"height":130,"y":1,"width":90}],"height":256,"imagePath":"录音动画_tex.png","width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d822931c-8455-4fa5-8d4c-89142c798cd1",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "793468a0-6b16-4d66-8f62-a32eac270996",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"录音动画_tex": {
"ver": "1.0.4",
"uuid": "d820098f-39ec-4e1e-ba32-e139a4d47202",
"rawTextureUuid": "793468a0-6b16-4d66-8f62-a32eac270996",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -27.5,
"offsetY": 23,
"trimX": 1,
"trimY": 1,
"width": 455,
"height": 208,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "20185448-a1ca-4de2-8b37-7bf6cdfccbae",
"uuid": "26823f59-1f99-4c7b-b61e-5853f72bcffe",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1",
"uuid": "33fab194-fec2-47ed-896c-442e9036771c",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "b8c8ab36-f250-4636-a99a-106d57aad97d",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "6a98d911-2cf7-470a-9bc2-cd7bfe3a0b63",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e8bd16b0-3804-45a9-a8ca-f52c02224f55",
"uuid": "19e2d2dc-7339-4fdd-ae26-3a2908062f09",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
/*
* @Author: ls
* @Date: 2022-05-21 21:59:51
* @LastEditTime: 2022-06-13 10:34:48
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\Item.ts
*/
import simpleLabel from './simpleLabel';
const { ccclass, property } = cc._decorator;
@ccclass
export default class Item extends cc.Component {
@property(simpleLabel)
label: simpleLabel = null;
@property(cc.Node)
tip: cc.Node = null;
@property(cc.Node)
record: cc.Node = null;
@property(cc.Node)
record_click: cc.Node = null;
@property(cc.Node)
myrecord: cc.Node = null;
@property(cc.Node)
myrecord_play: cc.Node = null;
@property(cc.Node)
low: cc.Node = null;
// 录制中
_recording = false;
// 已录音
_recorded = false;
protected start(): void {
// this.init('One day,her grandma got sick!');
}
/**
* 初始化
* @param str 字符串
*/
init(str: string, content) {
this.label.setString(str, 580);//this.node.width 632
this.reset();
this.scheduleOnce(() => {
this.node.height = this.label.getRows() * 48; // 更新节点高度
let c = this.node.width - this.label.getLastStringLenght();
console.log(str);
// console.log("c: " + c);
if (this.node.width - this.label.getLastStringLenght() >= 118) {//170-48
this.record.getComponent(cc.Widget).enabled = false;
this.record_click.getComponent(cc.Widget).enabled = false;
this.myrecord.getComponent(cc.Widget).enabled = false;
this.myrecord_play.getComponent(cc.Widget).enabled = false;
this.record.y = 18;
this.record_click.y = 18;
this.myrecord.y = 18;
this.myrecord_play.y = 18;
this.record.x = this.label.getLastStringLenght() + 32;
this.record_click.x = this.label.getLastStringLenght() + 32;
this.myrecord.x = this.label.getLastStringLenght() + 32 + 86;
this.myrecord_play.x = this.label.getLastStringLenght() + 32 + 86;
}
this.stop();
content && content.getComponent(cc.Layout).updateLayout();
});
}
/**
* 重置所有按钮
*/
reset() {
this.tip.active = false;
this.record.active = true;
this.record_click.active = false;
this.myrecord.active = false;
this.myrecord_play.active = false;
}
/**
* 正在录制声音
*/
recording() {
this._recording = true;
this.record.active = false;
this.record_click.active = true;
}
/**
* 结束录制
*/
recorded() {
this._recording = false;
this.record.active = true;
this.record_click.active = false;
}
getRecording() {
return this._recording;
}
/**
* 未录制音频
*/
hideRecord() {
this._recorded = false;
this.myrecord.active = false;
this.myrecord_play.active = false;
}
/**
* 播放已录制声音
*/
playRecord() {
this._recorded = true;
this.myrecord.active = false;
this.myrecord_play.active = true;
}
/**
* 停止已录制声音
*/
stopRecord() {
this._recorded = true;
this.myrecord.active = true;
this.myrecord_play.active = false;
}
getRecorded() {
return this._recorded;
}
/**
* 正在播放中
*/
playing() {
this.tip.active = true;
// this.label.node.color = cc.color(255, 96, 0);
this.label.node.color = cc.color(251, 255, 177);
this.hideLow();
}
/**
* 播放完成
*/
stop() {
this.tip.active = false;
this.label.node.color = cc.color(255, 255, 255);
this.showLow();
}
hideLow() {
this.label.node.children.forEach((e) => {
e.active = false;
});
}
showLow() {
this.label.node.children.forEach((e) => {
e.active = true;
});
}
clearLow() {
this.label.node.removeAllChildren();
}
setLow(str: string, index: number = 1) {
let ps = this.label.getTargetStringPos(str);
if (index > ps.length) {
return;
}
let p = ps[index - 1];
let low = cc.instantiate(this.low);
low.parent = this.label.node;
low.active = true;
low.width = p.z;
low.name = "low";
low.getComponentInChildren(cc.Label).string = str;
low.setPosition(p.y, (p.x - 1) * 48);
}
cleanLow() {
this.label.node.children.forEach(ch => {
if (ch.name == "low") {
ch.parent = null;
ch.destroy();
}
});
}
}
{
"ver": "1.0.8",
"uuid": "408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5",
"uuid": "83e78328-6683-49c1-831d-1848d87e856f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.2.9",
"uuid": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3",
"uuid": "44caeca0-1257-4610-a742-274f264654d6",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
/*
* @Author: ls
* @Date: 2022-05-15 18:22:18
* @LastEditTime: 2022-06-14 18:59:07
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\scene\ls_gramophone.ts
*/
// import { threadId } from 'worker_threads';
import Item from './Item';
import { MyCocosSceneComponent } from '../script/MyCocosSceneComponent';
import { onHomeworkFinish } from '../script/util';
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
item: cc.Node = null;
@property(cc.Node)
content: cc.Node = null;
@property(cc.Node)
tip: cc.Node = null;
// @property(cc.Node)
// pagContent: cc.Node = null;
@property(cc.Node)
btn_arrow: cc.Node = null;
@property(cc.Node)
btn_last: cc.Node = null;
@property(cc.Node)
mask: cc.Node = null;
@property(cc.Node)
record_start: cc.Node = null;
@property(cc.Node)
record_stop: cc.Node = null;
// 录音中
_recording = false;
// 录音音频
_records = [];
// 倒计时
_countdown = 30;
// 当前
_curIndex = -1;
_results = [];
private guide = true;
private _curData = null;
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pageImage });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.questionTextAudio });
this._audioResList.push({ url: this.data.pageAudio });
for (let index = 0; index < this.data.questions.length; index++) {
this._audioResList.push({ url: this.data.questions[index].audio });
}
}
addPreloadAnima() { }
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.showTip();
}
initData() {
this._recording = false;
this._curData = null;
this.roundIdx = 0;
this.clickIdx = 0;
this.guide = true;
this._records.length = 0;
this._results.length = 0;
this.data.questions.forEach((element, idx) => {
this._records.push([]);
this._results.push([]);
element.options.forEach(op => {
this._records[idx].push(null);
this._results[idx].push(null);
});
});
}
private initDown() {
let g_down = cc.find("g_down", this.node);
let content = cc.find("sc_down/view/content", g_down);
let bg_tip1 = cc.find("bg_tip1", g_down);
let bg_tip2 = cc.find("bg_tip2", g_down);
bg_tip1.active = this.guide && this.roundIdx == 0;
bg_tip2.active = this.guide && this.roundIdx == 0;
g_down.active = true;
this.initScrollView(content);
}
private initMiddle() {
let g_middle = cc.find("g_middle", this.node);
let content = cc.find("sc_down/view/content", g_middle);
g_middle.opacity = 1;
g_middle.active = true;
this.initScrollView(content);
setTimeout(() => {
content.getComponent(cc.Layout).updateLayout();
g_middle.active = false;
g_middle.opacity = 255;
}, 60);
}
private initScrollView(content) {
content.removeAllChildren();
let data = this.data.questions[this.roundIdx];
for (let i = 0; i < data.options.length; i++) {
let quest = data.options[i];
let item = cc.instantiate(this.item);
item.active = true;
item.name = '' + i;
item.parent = content;
// const element = this.content.children[index];
item.getComponent(Item).init(quest.text, content);
// 播放当前句子
item.off('click');
item.on('click', () => {
this.onItem(item, quest, i);
});
item.getComponent(Item).recorded();
let record = cc.find('btn_record', item);
record.off('click');
record.on('click', () => {
if (this._recording) return;
this.onItemRecord(item, quest, i);
});
item.getComponent(Item).hideRecord();
let myrecord = cc.find('btn_myrecord', item);
let myrecord_play = cc.find('btn_myrecord_play', item);
myrecord.off('click');
myrecord_play.off('click');
myrecord.on('click', () => {
this.onMyRecord(item, i);
});
myrecord_play.on('click', () => {
this.onMyRecordPlay(item);
});
}
content.getComponent(cc.Layout).updateLayout();
}
private clickIdx;
private onItem(item, quest, idx) {
this.clickIdx = idx;
this.cleanLaba();
this.resetText();
this.resetRecord();
cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
item.getComponent(Item).playing();
this.playAudioByUrl(quest.audio, () => {
item.getComponent(Item).stop();
});
}
private onItemRecord(item, quest, idx) {
this.clickIdx = idx;
this.cleanLaba();
this.resetText();
this.resetRecord();
cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
let g_down = cc.find("g_down", this.node);
let bg_tip1 = cc.find("bg_tip1", g_down);
let bg_tip2 = cc.find("bg_tip2", g_down);
bg_tip1.active = false;
bg_tip2.active = false;
this.playLocalAudio('btn');
item.getComponent(Item).recording();
// 显示录音界面
this.mask.active = true;
this.record_start.active = true;
this.record_stop.active = false;
this._curData = quest;
this._curIndex = idx;
}
private onMyRecordPlay(item) {
this.cleanLaba();
cc.audioEngine.stopAll();
item.getComponent(Item).stopRecord();
}
private onMyRecord(item, idx) {
this.cleanLaba();
this.resetText();
this.resetRecord();
cc.audioEngine.stopAll();
item.getComponent(Item).playRecord();
//
if (this._records[this.roundIdx][idx] != null) {
this.playAudioByUrl(this._records[this.roundIdx][idx], () => {
item.getComponent(Item).stopRecord();
}); // 播放音效
}
}
private onUp() {
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
this.guide = false;
g_down.active = false;
g_middle.active = true;
let bg_tip1 = cc.find("bg_tip1", g_down);
let bg_tip2 = cc.find("bg_tip2", g_down);
bg_tip1.active = this.guide;
bg_tip2.active = this.guide;
}
private onDown() {
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
this.guide = false;
g_down.active = true;
g_down.opacity = 1;
g_middle.active = false;
setTimeout(() => {
g_down.opacity = 255;
this.scroolTo();
}, 30);
}
private getRecordIdx() {
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let idx = -1;
if (g_down.active) {
let content = cc.find("sc_down/view/content", g_down);
content.children.forEach((item, index) => {
if (item.getComponent(Item).getRecording()) {
idx = index;
}
})
} else if (g_middle.active) {
let content = cc.find("sc_down/view/content", g_middle);
content.children.forEach((item, index) => {
if (item.getComponent(Item).getRecording()) {
idx = index;
}
})
}
return idx;
}
private intervalId;
private playLaba() {
this.cleanLaba();
this.resetText();
let btn_play = cc.find("btn_play", this.node);
let btn_laba1 = btn_play.getChildByName("btn_laba1");
let btn_laba2 = btn_play.getChildByName("btn_laba2");
btn_laba1.active = true;
btn_laba2.active = true;
cc.audioEngine.stopAllEffects();
let count = 0;
if (this.intervalId) clearInterval(this.intervalId);
let stop = false;
this.intervalId = setInterval(() => {
count++;
btn_laba1.active = count % 2 == 0;
btn_laba2.active = count % 2 == 1;
if (stop && count % 2 == 0) {
btn_laba1.active = false;
clearInterval(this.intervalId);
}
}, 150)
this.playAudioByUrl(this.data.questions[this.roundIdx].audio, () => {
btn_laba1.active = false;
btn_laba2.active = false;
});
}
private cleanLaba() {
if (this.intervalId) clearInterval(this.intervalId);
let btn_play = cc.find("btn_play", this.node);
let btn_laba1 = btn_play.getChildByName("btn_laba1");
let btn_laba2 = btn_play.getChildByName("btn_laba2");
btn_laba1.active = false;
btn_laba2.active = false;
}
private scroolTo() {
let g_down = cc.find("g_down", this.node);
let sc_down = cc.find("sc_down", g_down);
let content = cc.find("sc_down/view/content", g_down);
let ch = content.children[this.clickIdx];
let pos = cc.v2(0, -ch.y - (ch.height / 2));
if (ch.height > 48) pos = cc.v2(0, -ch.y - 15);
sc_down.getComponent(cc.ScrollView).setContentPosition(pos);
}
initView() {
this.initDown();
this.initMiddle();
let self = this;
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
cc.find('Canvas/bg_title/label').getComponent(cc.Label).string = this.data.title;
let play = cc.find('Canvas/btn_play');
let stop = cc.find('Canvas/btn_stop');
// play.active = false;
// stop.active = true;
play.off('click');
stop.off('click');
play.on('click', () => {
this.playLaba();
});
// stop.on('click', () => {
// this.resetText();
// this.resetRecord();
// cc.audioEngine.stopAll();
// play.active = true;
// stop.active = false;
// this.playAudioByUrl(this.data.questions[this.roundIdx].audio, () => {
// play.active = false;
// stop.active = true;
// });
// });
// for (let i = 0; i < this.data.questions.length; i++) {
// let ScrollView = cc.instantiate(cc.find("ScrollView", this.node));
// // this.pagContent.addChild(ScrollView);
// pag.getComponent(cc.PageView).addPage(ScrollView);
// let option = this.data.questions[i];
// let content = cc.find("view/content", ScrollView);
// for (let index = 0; index < option.options.length; index++) {
// let quest = option.options[index];
// let element = cc.instantiate(this.item);
// element.active = true;
// element.name = '' + index;
// element.parent = content;
// // const element = this.content.children[index];
// element.getComponent(Item).init(quest.text);
// // 播放当前句子
// element.off('click');
// element.on('click', () => {
// this.resetText();
// this.resetRecord();
// cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
// element.getComponent(Item).playing();
// this.playAudioByUrl(quest.audio, () => {
// element.getComponent(Item).stop();
// });
// });
// element.getComponent(Item).recorded();
// let record = cc.find('btn_record', element);
// record.off('click');
// record.on('click', () => {
// if (this._recording) return;
// this.resetText();
// this.resetRecord();
// cc.audioEngine.stopAll();
// play.active = false;
// stop.active = true;
// this.playLocalAudio('btn');
// element.getComponent(Item).recording();
// // 显示录音界面
// mask.active = true;
// record_start.active = true;
// record_stop.active = false;
// this._curData = quest;
// this._curIndex = index;
// });
// element.getComponent(Item).hideRecord();
// let myrecord = cc.find('btn_myrecord', element);
// let myrecord_play = cc.find('btn_myrecord_play', element);
// myrecord.off('click');
// myrecord_play.off('click');
// myrecord.on('click', () => {
// this.resetText();
// this.resetRecord();
// cc.audioEngine.stopAll();
// element.getComponent(Item).playRecord();
// //
// if (this._records[this.roundIdx][index] != null) {
// this.playAudioByUrl(this._records[this.roundIdx][index], () => {
// element.getComponent(Item).stopRecord();
// }); // 播放音效
// }
// });
// myrecord_play.on('click', () => {
// cc.audioEngine.stopAll();
// element.getComponent(Item).stopRecord();
// });
// }
// }
// 录音界面
let mask = cc.find('Canvas/mask');
mask.active = false;
let icon_record = cc.find('Canvas/mask/icon_record');
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 0;
let record_start = cc.find('Canvas/btn_record_start');
let record_stop = cc.find('Canvas/btn_record_stop');
let countdown = cc.find('Canvas/bg_countdown');
record_start.active = false;
record_stop.active = false;
countdown.active = false;
record_start.off('click');
record_stop.off('click');
record_start.on('click', () => {
this.playLocalAudio('btn');
mask.active = true;
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 1;
record_start.active = false;
record_stop.active = true;
countdown.active = true;
let cd = 10;
if (this._curData) {
cd = this._curData.duration || 10;
}
this.unschedule(this.onCountdown);
this._countdown = Number(cd) + 1;
this.onCountdown();
this.schedule(this.onCountdown, 1);
this._recording = true;
let idx = this.getRecordIdx(); // 获取当前录制下标
// for (let index = 0; index < this.content.childrenCount; index++) {
// const element = this.content.children[index];
// // 正在录制中
// if (element.getComponent(Item).getRecording()) {
// idx = index;
// break;
// }
// }
this.log('idx:' + idx);
let text = self.data.questions[this.roundIdx].options[idx].text;
this.log("text: " + text);
if (window['courseware']) {
if (idx !== -1) {
this.log("1");
window['courseware'].startTest(text);
}
}
});
record_stop.on('click', () => {
this.playLocalAudio('btn');
mask.active = false;
// icon_record.getComponent(dragonBones.ArmatureDisplay).timeScale = 0;
record_start.active = false;
record_stop.active = false;
countdown.active = false;
this.unschedule(this.onCountdown);
this._curIndex = -1;
this._curData = null
this._recording = false;
let idx = this.getRecordIdx(); // 获取当前录制下标
// for (let index = 0; index < this.content.childrenCount; index++) {
// const element = this.content.children[index];
// // 正在录制中
// if (element.getComponent(Item).getRecording()) {
// idx = index;
// break;
// }
// }
this.log('idx:' + idx);
if (window['courseware']) {
window['courseware'].stopTest((res) => {
this.log('--------录音返回结果 stopTest ------------');
this.log('res' + res);
res = JSON.parse(res);
this.log('json res.result' + JSON.stringify(res.result));
this.log('json res.result.sentences' + JSON.stringify(res.result.sentences));
if (idx !== -1) {
// let it = this.content.children[idx].getComponent(Item);
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let donw_content = cc.find("sc_down/view/content", g_down);
let middle_content = cc.find("sc_down/view/content", g_middle);
this.recordEnd(donw_content, res, idx);
this.recordEnd(middle_content, res, idx);
}
if (res && res.audioUrl) {
if (idx !== -1) {
this._records[this.roundIdx][idx] = res.audioUrl;
// this._records[idx] = res.audioUrl;
this.log(`${idx} ===> ${res.audioUrl}`);
this.resetRecord();
// this.scheduleOnce(() => {});
}
}
this._results[this.roundIdx][idx] = res;
for (const iterator of this._results) {
for (const op of iterator) {
if (op === null) {
return;
}
}
}
let send: any = {};
send.stone = 10;
send.details = this._results;
onHomeworkFinish(send);
});
} else {
if (idx !== -1) {
let content = null;
let g_down = cc.find("g_down", this.node);
let g_middle = cc.find("g_middle", this.node);
let res = { "audioUrl": "https://staging-teach.cdn.ireadabc.com/bea0ba87bcf8bc09815f34b4790ffac9.mp3", "eof": 1, "file": "/storage/emulated/0/Android/data/com.example.oxford/cache/shengtong/gradeVoice.mp3", "result": { "duration": "2.670", "fluency": 86, "integrity": 50, "kernel_version": "3.7.1", "overall": 28, "pronunciation": 28, "resource_version": "2.3.11", "rhythm": 28, "sentences": [{ "beginIndex": 0, "details": [{ "charType": 0, "end": 0, "overall": 56, "prominence": 0, "start": 0, "word": "Good" }, { "charType": 0, "end": 0, "overall": 0, "prominence": 0, "start": 0, "word": "morning" }], "end": 0, "endIndex": 0, "overall": 28, "sentence": "Good morning", "start": 0 }], "speed": 28 }, "tokenId": "62d7a2343327934258000009" }
let donw_content = cc.find("sc_down/view/content", g_down);
let middle_content = cc.find("sc_down/view/content", g_middle);
this.recordEnd(donw_content, res, idx);
this.recordEnd(middle_content, res, idx);
content.children[idx].getComponent(Item).recorded();
}
// 模拟测试
this._records[this.roundIdx][idx] = 'http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3';
}
this.resetRecord();
});
this.btn_arrow.on(cc.Node.EventType.TOUCH_END, this.onArrow, this);
// this.btn_last.on(cc.Node.EventType.TOUCH_END, this.onLast, this);
this.setPagBg();
this.refreshArrow();
}
private recordEnd(content, res, idx) {
let it = content.children[idx].getComponent(Item);
it.recorded();
let arr = [];
for (let index = 0; index < res.result.sentences.length; index++) {
let e = res.result.sentences[index];
arr = arr.concat(e.details);
}
it.cleanLow();
let arrOne = [];
for (let index = 0; index < arr.length; index++) {
let e = arr[index];
arrOne.push({ key: e.word, value: 1 });
let result = {};
arrOne.forEach((item) => {
if (result[item.key]) {
result[item.key] += item.value;
} else {
result[item.key] = item.value;
}
});
for (let k in result) {
if (k === e.word) {
if (e.overall < 40) {
it.setLow(e.word, result[k]);
}
}
}
}
}
private roundIdx;
private setPagBg() {
let play = cc.find('Canvas/btn_play');
// let stop = cc.find('Canvas/btn_stop');
play.active = true;
// stop.active = true;
cc.audioEngine.stopAll();
this.resetText();
this.resetRecord();
let data = this.data.questions[this.roundIdx].pageImage;
this.getSpriteFrimeByUrl(data, (sp) => {//+ '?x-oss-process=image/resize,m_fill,h_520,w_560'
// this.getSpriteFrimeByUrl(this.data.pageImage, (sp) => {
cc.find('Canvas/bg_img/img').getComponent(cc.Sprite).spriteFrame = sp;
cc.find('Canvas/bg_img/img').width = 1218;
cc.find('Canvas/bg_img/img').height = 656;
cc.find('Canvas/bg_img/img').scale = 1;// Math.max(520 / cc.find('Canvas/bg_img/img').width, 560 / cc.find('Canvas/bg_img/img').height);
});
}
private refreshArrow() {
// this.btn_last.active = this.roundIdx > 0;
this.btn_arrow.active = this.roundIdx < this.data.questions.length - 1;
}
private arrowTouch = false;
private onArrow() {
if (this.arrowTouch) return;
this.arrowTouch = true;
this.roundIdx++;
this.clickIdx = 0;
// let pag = cc.find("PageView", this.node);
// pag.getComponent(cc.PageView).enabled = true;
// pag.getComponent(cc.PageView).scrollToPage(this.roundIdx, 0.1);
this.setPagBg();
this.initDown();
this.initMiddle();
this.refreshArrow();
}
private onLast() {
if (this.arrowTouch) return;
this.arrowTouch = true;
this.roundIdx--;
// let pag = cc.find("PageView", this.node);
// let len = pag.getComponent(cc.PageView).getPages().length;
// if (len <= 1) return;
// pag.getComponent(cc.PageView).enabled = true;
// pag.getComponent(cc.PageView).scrollToPage(this.roundIdx, 0.1);
this.setPagBg();
this.refreshArrow();
}
/**
* 重置文字
*/
resetText() {
let down = cc.find("g_down/sc_down/view/content", this.node);
down.children.forEach((item) => {
item.getComponent(Item).stop();
})
let middle = cc.find("g_middle/sc_down/view/content", this.node);
middle.children.forEach((item) => {
item.getComponent(Item).stop();
})
}
/**
* 重置录制音频
*/
resetRecord() {
// let content = cc.find("view/content", this.pagContent.children[this.roundIdx]);
// for (let index = 0; index < content.childrenCount; index++) {
// const element = content.children[index];
// if (this._records[this.roundIdx][index] === null) {
// element.getComponent(Item).hideRecord();
// } else {
// console.log(`===> ${index}`);
// element.getComponent(Item).stopRecord();
// }
// }
let down = cc.find("g_down/sc_down/view/content", this.node);
for (let index = 0; index < down.childrenCount; index++) {
const element = down.children[index];
if (this._records[this.roundIdx][index] === null) {
element.getComponent(Item).hideRecord();
} else {
console.log(`===> ${index}`);
element.getComponent(Item).stopRecord();
}
}
let middle = cc.find("g_middle/sc_down/view/content", this.node);
for (let index = 0; index < middle.childrenCount; index++) {
const element = middle.children[index];
if (this._records[this.roundIdx][index] === null) {
element.getComponent(Item).hideRecord();
} else {
console.log(`===> ${index}`);
element.getComponent(Item).stopRecord();
}
}
}
/**
* 显示提示
* @param first
*/
showTip(first: boolean = true) {
this.tip.active = true;
cc.find('start', this.tip).active = first;
cc.find('restart', this.tip).active = !first;
// 提示
let tip = cc.find('bg', this.tip);
tip.off('click');
tip.on('click', () => {
cc.audioEngine.stopAll();
this.playAudioByUrl(this.data.questionTextAudio, () => { }); // 播放提示音效
});
// 提示内容
let tip_label = cc.find('label', this.tip).getComponent(cc.Label);
tip_label.string = this.data.questionText;
this.playAudioByUrl(this.data.questionTextAudio, () => { }); // 播放提示音效
}
/**
* 隐藏提示
*/
hideTip() {
this.tip.active = false;
}
/**
* 倒计时回调
*/
onCountdown() {
this._countdown--;
if (this._countdown <= 0) {
let record_stop = cc.find('Canvas/btn_record_stop');
record_stop.emit('click');
this.unschedule(this.onCountdown);
} else {
let bg_countdown_label = cc.find('Canvas/bg_countdown/label');
bg_countdown_label.getComponent(cc.Label).string = this._countdown + '';
if (this._countdown > 5) {
bg_countdown_label.color = cc.color(83, 102, 138);
bg_countdown_label.getComponent(cc.Label).fontSize = 50;
bg_countdown_label.getComponent(cc.LabelOutline).enabled = false;
} else {
bg_countdown_label.color = cc.color(255, 132, 132);
bg_countdown_label.getComponent(cc.Label).fontSize = 64;
bg_countdown_label.getComponent(cc.LabelOutline).enabled = true;
}
}
}
onCallBack(event: cc.Event.EventTouch, str: string) {
if (str === 'start' || str === 'restart') {
cc.audioEngine.stopAll();
this.playLocalAudio('btn');
this.hideTip();
} else if (str === 'record_start') {
} else if (str === 'record_stop') {
}
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
});
}
}
{
"ver": "1.0.8",
"uuid": "12291789-8ecc-49b9-a411-ea209785e97d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
class Emitter {
static instance;
static getInstance() {
if (!Emitter.instance) {
Emitter.instance = new Emitter();
}
return Emitter.instance;
}
_name: any;
_callbacks: any;
constructor(name = "") {
this._name = name;
this._callbacks = {};
return this;
}
on(event, fn) {
this.off(event);
if (!this._callbacks[event]) this._callbacks[event] = [];
this._callbacks[event].push(fn);
};
once(event, fn) {
function on() {
this.off(event, on);
fn.apply(this, arguments);
}
on.fn = fn;
this.on(event, on);
};
off(event, fn?: any) {
// all
if (0 == arguments.length) {
this._callbacks = {};
return;
}
// specific event
let callbacks = this._callbacks[event];
if (!callbacks) return;
// remove all handlers
if (1 == arguments.length) {
delete this._callbacks[event];
return;
}
// remove specific handler
let cb;
for (let i = 0; i < callbacks.length; i++) {
cb = callbacks[i];
if (cb === fn || cb.fn === fn) {
callbacks.splice(i, 1);
break;
}
}
return;
}
emit(event, ...args) {
this._callbacks = this._callbacks || {};
// let args = [].slice.call(arguments, 1);
let callbacks = this._callbacks[event];
if (callbacks) {
callbacks = callbacks.slice(0);
for (let i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
}
}
}
listeners(event) {
this._callbacks = this._callbacks || {};
return this._callbacks[event] || [];
};
hasListeners(event) {
return !!this.listeners(event).length;
};
}
let pg = {
logger: {
d: function (str) {
cc.log(str);
return null;
},
i: function (str) {
cc.log(str);
return null;
},
w: function (str) {
cc.warn(str);
return null;
}
},
view: {
//---------------------节点管理------------------------------
//创建节点
createNode() {
let node = new cc.Node();
return node;
},
//添加节点
addChild(item, child, zIndex) {
if (!child) return console.log("addChild error ->请传入子节点");
if (!item) return console.log("addChild error ->请传入父节点");
let node = item.node ? item.node : item;
if (!node) return console.log("addChild error ->请传入父节点");
if (child.parent)
return pg.logger.w("此节点已经有父节点->" + child.name);
if (zIndex >= 0) {
node.addChild(child, zIndex)
} else {
node.addChild(child);
}
return true;
},
//删除子节点
removeChild(item, child) {
if (!item) return pg.logger.w("节点remove失败,传入了错误的item");
let node = item.node ? item.node : item;
if (child.parent && child.parent == node) {
node.removeChild(child);
child.destroy();
}
return true;
},
removeSelf(item) {
if (!item) return pg.logger.w("节点移除失败,传入了错误的item");
let node = item.node ? item.node : item;
node.removeFromParent();
node.destroy();
},
//删除所有子节点
removChildren(item) {
if (!item) return pg.logger.w("节点remove失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node.parent) return pg.logger.w("节点remove失败,传入了错误的item");
node.removeAllChildren();
return true;
},
//查找节点
find(item, childPath): cc.Node {
if (typeof item == "string") {
childPath = item;
item = null;
}
if (!childPath || childPath == '' || typeof childPath != 'string') return pg.logger.w("findChildByPath error->" + "请传入路径");
let child = null;
if (item) {
let node = item.node ? item.node : item;
if (!node.children || node.children.length == 0) return pg.logger.w("findChild error->" + "找不到此节点,请检查层级路径:" + childPath);
child = cc.find(childPath, node);
} else {
child = cc.find(childPath);
}
if (!child) return pg.logger.w("findChildByPath error->" + "找不到此节点,请检查层级路径:" + childPath);
return child;
},
//--------------------触控事件--------------------------------
//添加监听
touchOn(item, callback, target) {
if (!item) return pg.logger.w("添加按钮响应失败,传入了错误的item");
if (!callback || !target) return pg.logger.w("添加按钮响应失败,传入了空回调");
let node = item.node ? item.node : item;
node.on(cc.Node.EventType.TOUCH_END, callback, target);
return true;
},
//移除监听
touchOff(item, callback, target) {
if (!item) return pg.logger.w("移除按钮响应失败,传入了错误的item");
if (!callback || !target) return pg.logger.w("移除按钮响应失败,传入了空回调");
let node = item.node ? item.node : item;
if (!node || !node.parent) return pg.logger.w("节点已移除");
node.off(cc.Node.EventType.TOUCH_END, callback, target);
return true;
},
//是否允许点击
touchEnable(item, isEnable) {
if (!item) return pg.logger.w("设置按钮响应失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node) return pg.logger.w("设置按钮响应失败,传入了错误的item");
let btn = node.getComponent(cc.Button);
if (!btn) return pg.logger.w("当前节点没有添加button->" + node.name);
btn.interactable = isEnable;
return true;
},
//-------------------渲染相关---------------------------------
//显示隐藏
visible(item, isVisible) {
if (!item) return pg.logger.w("节点显示失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!node || !node.parent) return pg.logger.w("节点已移除");
node.active = isVisible;
return true;
},
//更换图片
setImg(item, res) {
return new Promise((resolve, reject) => {
if (!item) return pg.logger.w("图片更换失败,传入了错误的item");
if (!res) return pg.logger.w("图片更换失败,传入了错误的res");
pg.load.loadImg(res).then((spriteFrame: cc.SpriteFrame) => {
if (!cc.isValid(item)) return pg.logger.i("节点已销毁");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
let component = node.getComponent(cc.Sprite);
let { width, height } = spriteFrame.getRect();
component.spriteFrame = spriteFrame;
resolve({ width, height });
})
})
},
setNetImg(item, res, { w, h }) {
return new Promise((resolve, reject) => {
if (!item) return pg.logger.w("图片更换失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!res) {
if (node) node.active = false;
return pg.logger.w("图片更换失败,传入了错误的res");
}
if (!node) return pg.logger.w("图片更换失败,传入了错误的item");
if (node.net_url == res) return;
node.active = false;//
pg.load.loadNetImg(res).then((texture: cc.Texture2D) => {
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
let nw = node.width = texture.width;
let nh = node.height = texture.height;
let component = node.getComponent(cc.Sprite);
let spriteFrame = new cc.SpriteFrame(texture);
component.spriteFrame = spriteFrame;
node.net_url = res;
if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
if (!node) return pg.logger.w("节点已销毁");
if (w && h) {
let scaleX = w / nw;
let scaleY = h / nh;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale;
node.height = nh * scale;
}
node.active = true;
resolve({ w: nw, h: nh });
})
})
},
switchMaterial(item, id0 = 0, id1 = 1) {
let material0 = item.getMaterial(id0);
let material1 = item.getMaterial(id1);
item.setMaterial(id0, material1);
item.setMaterial(id1, material0);
},
//更改文字
setString(item, text, count = 0) {
if (!item) return pg.logger.w("节点text失败,传入了错误的item");
if (count > 0) {
let parse_str = function (str, count) {
if (!str) return "";
var segmants = str.split('+');
str = segmants.join('');
var len = 0;
var idx = 0;
for (var i = 0; i < str.length; i++) {
var p = /[^x00-xff]/g;
var a = str.charAt(i);
if (p.test(a)) {
len += 2;
idx++;
}
else {
len += 1;
idx++;
}
if (len >= count * 2)
break;
}
return str.substr(0, idx);
}
text = parse_str(text, count);
}
let node = item.node ? item.node : item;
if (!node) return;
let component = node.getComponent(cc.Label);//组件功能 非node的功能
component.string = text;
return true;
},
//更变颜色
setColor(item, color, outlineWidth = -1) {
if (!item) return pg.logger.w("setColor warn->传入了错误的item");
let RGB = this.colorRgb(color);
if (!RGB || RGB.length == 0) return pg.logger.w("color ->传入了错误的color");
item.color = new cc.Color(RGB[0], RGB[1], RGB[2]);
if (outlineWidth < 0) return;
let LabelOutline = item.getComponent(cc.LabelOutline);
if (!LabelOutline) return pg.logger.w("LabelOutline warn->未添加描边");
LabelOutline.width = outlineWidth;
},
colorRgb(color) {
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
var sColor = color;
if (sColor && reg.test(sColor)) {
if (sColor.length === 4) {
var sColorNew = "#";
for (var i = 1; i < 4; i += 1) {
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
}
sColor = sColorNew;
}
//处理六位的颜色值
var sColorChange = [];
for (var i = 1; i < 7; i += 2) {
sColorChange.push(parseInt("0x" + sColor.slice(i, i + 2)));
}
return sColorChange;
} else {
return sColor;
}
},
//-------------------动画播放--------------------------------
playSpineAnimation(item, aniName, loop) {
if (!item || !cc.isValid(item)) return pg.logger.w("动画播放失败,传入了错误的item");
if (!aniName) return pg.logger.w("动画播放失败,传入了错误的aniName");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl = node.getComponent(sp.Skeleton);
skl.setAnimation(0, aniName, loop);
return skl;
},
playDBAnimation(item, aniName, loop = -1) {
if (!item || !cc.isValid(item)) return pg.logger.w("动画播放失败,传入了错误的item");
if (!aniName) return pg.logger.w("动画播放失败,传入了错误的aniName");
let node = item.node ? item.node : item;
if (!cc.isValid(node)) return pg.logger.w("节点已销毁");
let skl: dragonBones.ArmatureDisplay = node.getComponent(dragonBones.ArmatureDisplay);
skl.playAnimation(aniName, loop);
return skl;
},
clone(node: cc.Node) {
return cc.instantiate(node)
}
},
load: {
//资源加载
// loadBundle: function (bundleName) {
// return new Promise((resolve, reject) => {
// // let hallBundle = cc.assetManager.getBundle(`hall`);
// // hallBundle.releaseAll();
// // cc.assetManager.removeBundle(hallBundle);
// let bundle = cc.assetManager.getBundle(bundleName);
// if (bundle) return resolve('');
// cc.assetManager.loadBundle(bundleName, (err, bundle) => {
// if (err) return cc.error(err);
// resolve(bundle);
// });
// });
// },
loadRes: function (res, type, bundleName) {
//此处需要二次封装,新的存在assetbundle
return new Promise((resolve, reject) => {
cc.loader.loadRes(res, type, (err, data) => {
if (err && !data) return resolve(pg.logger.d('loading loadRes error-> ' + res));
resolve(data);
});
})
},
loadImg: function (url) {
return new Promise((resolve, reject) => {
this.loadRes(url, cc.SpriteFrame).then((data) => {
if (!data || data.length == 0) return;
resolve(data);
})
})
},
loadPrefab: function (path = "") {
return new Promise((resolve, reject) => {
let url = "/prefabs/" + path;
this.loadRes(url, cc.Prefab).then((data) => {
if (!data || data.length == 0) return reject();
return resolve(cc.instantiate(data));
})
})
},
loadNetImg: function (url) {
return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, texture) => {
if (err && !texture) return resolve(pg.logger.w('loading loadRes warn-> ' + texture));
resolve(texture);
});
})
},
loadDB(item, config) {
return new Promise((resolve, reject) => {
if (!config.png || !config.ske || !config.tex) {
return resolve('');
}
pg.load.loadNetRes(config.png).then((png: any) => {
pg.load.loadNetRes(config.ske).then((ske: any) => {
pg.load.loadNetRes(config.tex).then((tex: any) => {
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(tex.json);
atlas.texture = png;
var asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(ske.json);
let dragonDisplay = item.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
//设置
let defaultArmature = ske.json.armature[0];//aramture 所有的骨骼名称
dragonDisplay.armatureName = defaultArmature.name;
resolve(defaultArmature.animation[0].name);
})
})
})
});
},
loadNetRes: function (url) {
return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, info) => {
if (err) return resolve(pg.logger.w('loading loadRes warn-> ' + err));
resolve(info);
});
})
},
},
localStorage: {
//本地存储
setItem: function (key, val) {
cc.sys.localStorage.setItem(key, val);
},
getItem: function (key, defVal) {
return cc.sys.localStorage.getItem(key) || defVal;
}
},
http: {
//http访问
send: function (type, url, data, callback) {
return new Promise((resolve) => {
return setTimeout(() => {
return resolve({ status: 200 });
}, 100 + Math.random() * 300);
let xhr = cc.loader.getXMLHttpRequest();
xhr.timeout = 5000;
xhr.responseType = "text";
xhr.open(type, url, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = () => {
if (xhr.readyState !== 4) return;
if (xhr.status >= 200 && xhr.status < 300) {
try {
let resp = xhr.responseText;
pg.logger.d("resp->" + JSON.stringify(resp));
callback(resp);
resolve(resp);
} catch (e) {
}
}
else {
}
};
xhr.onerror = (e) => {
pg.logger.w("onerror->" + url);
};
xhr.ontimeout = (e) => {
pg.logger.w("ontimeout->" + url);
};
xhr.send(data);
})
}
},
audio: {
playAudioByUrl(audio_url, cb = null, loadCb = null) {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(null);
cc.assetManager.loadRemote(audio_url, (err, audioClip: any) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
cb && cb();
});
loadCb && loadCb(audioId);
resolve(audioId);
});
});
},
stopAudio(audioId) {
if (!audioId) return;
cc.audioEngine.stopEffect(audioId);
},
playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
return audioId;
}
}
},
hw: {
playLocalAudio(audioName, loop = false) {
console.log("play audio->" + audioName);
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, loop);
resolve(id);
})
}
},
event: Emitter.getInstance()
};
export default pg;
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "8fd86b00-25d1-4ee2-a910-3d0ce5b59874",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/*
* @Author: ls
* @Date: 2022-05-21 18:06:20
* @LastEditTime: 2022-06-14 17:52:50
* @LastEditors: ls
* @Description:
* @FilePath: \ls_gramophone\assets\ls_gramophone\script\simpleLabel.ts
*/
const { ccclass, property } = cc._decorator;
@ccclass
export default class simpleLabel extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
// 源字符串
private _sourceString = '';
// 源字符串数组
private _sourceArray = [];
// 目标字符串
private _targetString = '';
// 目标字符串的最后一行字符串
private _lastString = '';
// 目标字符串行数
private _rows = 0;
// 目标宽度
private _targetWidget = 0;
// TODO 字符数组(后期处理标点符号)
private _characters = [',', '.'];
protected start(): void {
// 测试代码
// this.setString('One day,her grandma got sick.', 562);
}
/**
* 设置字符串
* @param sourceString 源字符串
* @param targetWidget 目标宽度
* @param splitter 分割器(默认使用空格)
*/
public setString(sourceString: string, targetWidget: number, splitter: string = ' ') {
if (!this.label) {
this.label = this.node.getComponent(cc.Label);
if (!this.label) {
return;
}
}
this._targetWidget = targetWidget;
// 保存源字符串
this._sourceString = sourceString;
// 保存源字符串数组(根据空格分割)
this._sourceArray = sourceString.split(splitter);
// 重置目标字符串
this._targetString = '';
// 重置目标字符串的最后一行
this._lastString = '';
for (let index = 0; index < this._sourceArray.length; index++) {
const element = this._sourceArray[index]; // 分割后每个字符串
// 临时字符串
const tempString = this._lastString;
if (this._lastString === '') {
this._lastString = element; // 设置字符串
} else {
this._lastString = this._lastString + ' ' + element; // 添加字符串
}
// 如果字符串长度 >= 设计字符串长度
if (this.getLetterWidth(this.label, this._lastString) >= targetWidget) {
// 给字符串添加换行符
this._targetString = this._targetString + '\n' + tempString;
// 增加行数
this._rows++;
// 重置临时字符串
this._lastString = element;
}
}
// 给字符串添加换行符
this._targetString = this._targetString + '\n' + this._lastString;
// 增加行数
this._rows++;
// 设置目标字符串
this.label.string = this._targetString;
}
/**
* 获取目标字符串的最后一行字符串的长度
*/
public getLastStringLenght() {
if (!this.label) {
this.label = this.node.getComponent(cc.Label);
if (!this.label) {
return 0;
}
}
if (this._lastString === '') {
return 0;
}
return this.getLetterWidth(this.label, this._lastString);
}
/**
* 获取目标字符串的行数
*/
public getRows() {
if (!this.label) {
this.label = this.node.getComponent(cc.Label);
if (!this.label) {
return 0;
}
}
return this._rows;
}
/**
* 获取字符串的宽度
* @param letter 字符串
* @returns
*/
private getLetterWidth(label: cc.Label, letter: string) {
let comp = label;
if (!comp['_assemblerData']) {
console.log("322");
}
let assemblerData = comp['_assemblerData'];
let ctx = assemblerData.context;
let metric = ctx.measureText(letter);
let width = (metric && metric.width) || 0;
return width;
}
/**
* 获取所有字符串的位置
* @param str
* @returns
*/
getTargetStringPos(str: string) {
let poss = [];
let rows = this._rows;
let lastString = '';
if (this._sourceArray && this._sourceArray.length) {
for (let index = 0; index < this._sourceArray.length; index++) {
let element = this._sourceArray[index];
// 临时字符串
let tempString = lastString;
if (lastString === '') {
lastString = element; // 设置字符串
} else {
lastString = lastString + ' ' + element; // 添加字符串
}
// 如果字符串长度 >= 设计字符串长度
if (this.getLetterWidth(this.label, lastString) >= this._targetWidget) {
// 增加行数
lastString = element;
tempString = '';
rows--;
}
let temp = element;
// TODO 处理标点符号
// if (element.indexOf(',') !== -1 || element.indexOf('.') !== -1 || element.indexOf('!') !== -1 || element.indexOf('?') !== -1) {
// temp = temp.substring(0, temp.length - 1);
// }
if (temp === str) {
let x = this.getLetterWidth(this.label, tempString);
if (x !== 0) {
x += this.getLetterWidth(this.label, ' ');
}
poss.push(cc.v3(rows, x, this.getLetterWidth(this.label, str)));
}
}
}
return poss;
}
}
{
"ver": "1.0.8",
"uuid": "dd1a96df-21a6-4f3c-8e6d-5855575f876a",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b0c008bc-cf92-463b-8360-0984e13c2e4d",
"uuid": "dc0d7299-1373-426b-a762-7cf81b49cbdf",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.0.8",
"uuid": "f8b451ff-857c-4ca8-9870-866bc5154a29",
"uuid": "4241d6f1-fe19-4b2d-9a1a-2eef80cb4b1b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
export const defaultData = {
"title": "故事留声机",
"questionText": "欢乐的故事时间到了,亲爱的小玩家,请点击故事台词,仔细听,然后大声的模仿,全部完成后,根据模仿情况,你将获得相应的能量石奖励!快去试试吧!",
"questionTextAudio": "http://staging-teach.cdn.ireadabc.com/92ddbc65e9af775f7a8450a5bef1a732.mp3",
"questionTextAudioName": "热气球大战 游戏说明.mp3",
"pageAudio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3', // 整体音频
"questions": [{
"options": [{
"duration": 7,
"text": 'Good morning',
"audio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3',
}, {
"duration": 8,
"text": 'what can i do for you',
"audio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3',
}, {
"duration": 9,
"text": 'Hello, how are you',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 10,
"text": 'Hello, how old are you yo yo you yo yo',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 11,
"text": 'Hello, how dare you, Hello, how dare you how dare you how dare you how dare you h',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}
],
"type": "",
"audio": "http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3",
"audioName": "热气球大战 游戏说明.mp3",
"pageImage": "http://staging-teach.cdn.ireadabc.com/2e3b759b961266f3a37559ef759293d7.png"
}, {
"options": [{
"duration": 7,
"text": 'Good morning 1',
"audio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3',
}, {
"duration": 8,
"text": 'what can i do for you 1',
"audio": 'http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3',
}, {
"duration": 9,
"text": 'Hello, how are you',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 10,
"text": 'Hello, how old are you you',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}, {
"duration": 11,
"text": 'Hello, how dare you, Hello, how dare you how dare you how dare you how dare you h',
"audio": 'http://staging-teach.cdn.ireadabc.com/17edcaecd09a72a64a77480673cdc232.mp3',
}
],
"type": "",
"audio": "https://teach.cdn.ireadabc.com/5b720d91d319a52655ffe39fb14c2948.mp3",
"audioName": "热气球大战 游戏说明.mp3",
"pageImage": "http://staging-teach.cdn.ireadabc.com/7780195055731416480edbc97072fe5b.png"
}
]
}
{
"ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5",
"uuid": "3b09c3c9-5df0-4aae-a69b-05089110f435",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598",
"uuid": "de75b888-a220-403b-b84a-2539168e93ae",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353",
"uuid": "b20aad85-94aa-41e2-99d8-b1e4dd4bc411",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "8ba21262-178f-4fa5-afc9-2c1dd50ba3ab",
"uuid": "567db09e-371a-48ff-96ef-d32ac637a4ac",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "5c9e7fb3-ce64-4c2d-8b01-512fba7baaca",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"1orange": {
"ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "2daa8a3e-5463-40d5-9cd2-13d496b900fe",
"rawTextureUuid": "5c9e7fb3-ce64-4c2d-8b01-512fba7baaca",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "32ff207f-dc5e-4516-ab2a-231829e47fd7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "fa9a1724-a8fc-480f-94de-693fd7f2c54a",
"rawTextureUuid": "32ff207f-dc5e-4516-ab2a-231829e47fd7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "98644435-37f3-419a-a023-d1bb1c4476de",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "84cc030b-a691-44c7-8769-a3902731564f",
"rawTextureUuid": "98644435-37f3-419a-a023-d1bb1c4476de",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"uuid": "343a381a-ff67-4bf1-9aad-b2b9ec20cc19",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"uuid": "58b021ab-33dd-4cb6-a4a9-d7be0a5fc7de",
"rawTextureUuid": "343a381a-ff67-4bf1-9aad-b2b9ec20cc19",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "649b40ee-8623-41f1-be39-f7df55eb6305",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "3c430c3f-6360-420d-b158-6c32a562b86f",
"rawTextureUuid": "649b40ee-8623-41f1-be39-f7df55eb6305",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.1.2",
"uuid": "3fb1dbd0-d4d3-49fb-954d-24104fff566a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ccbbca93-763e-499f-a5ee-6962abe3d733",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 862,
"height": 370,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "6dfb81c1-9789-4321-a604-78781697c0f6",
"rawTextureUuid": "ccbbca93-763e-499f-a5ee-6962abe3d733",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 862,
"height": 370,
"rawWidth": 862,
"rawHeight": 370,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ab572ca8-e85c-4fa6-bf26-6e893b3de089",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 750,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "f6c70899-9a27-4782-b3e0-452c7c066415",
"rawTextureUuid": "ab572ca8-e85c-4fa6-bf26-6e893b3de089",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 750,
"rawWidth": 1334,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d7307d6d-46e8-40cf-ac3d-32d097a21fab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 88,
"platformSettings": {},
"subMetas": {
"bg_countdown": {
"ver": "1.0.4",
"uuid": "032f7e4d-e478-4700-9cbd-e6e7ac5d4b58",
"rawTextureUuid": "d7307d6d-46e8-40cf-ac3d-32d097a21fab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 106,
"height": 88,
"rawWidth": 106,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4bd4f6af-a82d-4ab2-bc91-6bc31aa64941",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 862,
"height": 370,
"platformSettings": {},
"subMetas": {
"bg_di": {
"ver": "1.0.4",
"uuid": "15a6a14c-e154-4289-a87e-1108dd9a0694",
"rawTextureUuid": "4bd4f6af-a82d-4ab2-bc91-6bc31aa64941",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 862,
"height": 370,
"rawWidth": 862,
"rawHeight": 370,
"borderTop": 30,
"borderBottom": 30,
"borderLeft": 30,
"borderRight": 30,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dcbec851-8f00-47bc-a4ec-dbd0ed8e2bbc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 572,
"platformSettings": {},
"subMetas": {
"bg_heitou": {
"ver": "1.0.4",
"uuid": "784bba3c-61b5-4317-93df-467d434f4be5",
"rawTextureUuid": "dcbec851-8f00-47bc-a4ec-dbd0ed8e2bbc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 572,
"rawWidth": 720,
"rawHeight": 572,
"borderTop": 30,
"borderBottom": 30,
"borderLeft": 30,
"borderRight": 30,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8234103a-9481-4904-9072-2dcb71b92300",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 18,
"height": 24,
"platformSettings": {},
"subMetas": {
"bg_tip": {
"ver": "1.0.4",
"uuid": "5be2975e-7352-4fd7-b25b-8abbc5be4749",
"rawTextureUuid": "8234103a-9481-4904-9072-2dcb71b92300",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 18,
"height": 24,
"rawWidth": 18,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "cf892f9b-a86b-439a-bf9f-8980449c69ea",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 195,
"height": 70,
"platformSettings": {},
"subMetas": {
"bg_tip1": {
"ver": "1.0.4",
"uuid": "22b20553-3952-44fd-94bc-c033f2015646",
"rawTextureUuid": "cf892f9b-a86b-439a-bf9f-8980449c69ea",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 195,
"height": 70,
"rawWidth": 195,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "157a2f41-9dc6-4cbc-8e29-ba58ab2f47d6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 244,
"height": 70,
"platformSettings": {},
"subMetas": {
"bg_tip2": {
"ver": "1.0.4",
"uuid": "6592c4b1-4922-4629-84b2-ff2fd0bbaeb1",
"rawTextureUuid": "157a2f41-9dc6-4cbc-8e29-ba58ab2f47d6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 244,
"height": 70,
"rawWidth": 244,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6b64a1cc-5460-4c41-a44e-3342c09f23cd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 355,
"height": 111,
"platformSettings": {},
"subMetas": {
"bg_title": {
"ver": "1.0.4",
"uuid": "f4e5685e-f9c6-4053-b2d1-e469bc1a66a6",
"rawTextureUuid": "6b64a1cc-5460-4c41-a44e-3342c09f23cd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 355,
"height": 111,
"rawWidth": 355,
"rawHeight": 111,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "af4ffde1-20c7-4691-8252-32ee524ce9fc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 79,
"height": 54,
"platformSettings": {},
"subMetas": {
"btn_arrow": {
"ver": "1.0.4",
"uuid": "7ac4b74a-833e-46c9-8e90-1815364fd09f",
"rawTextureUuid": "af4ffde1-20c7-4691-8252-32ee524ce9fc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 79,
"height": 54,
"rawWidth": 79,
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "2cc4c00e-9ff0-4ed9-9dd2-5b764b1e9bbb",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "50e042fb-9acb-4a7a-bd8b-ffb1ac84d443",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 34,
"platformSettings": {},
"subMetas": {
"btn_down": {
"ver": "1.0.4",
"uuid": "716bdb9e-7831-457b-9ec2-269242ad2d0a",
"rawTextureUuid": "50e042fb-9acb-4a7a-bd8b-ffb1ac84d443",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 34,
"rawWidth": 90,
"rawHeight": 34,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "114794ff-7d9e-4fb5-a357-4d17464a6eec",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"btn_laba": {
"ver": "1.0.4",
"uuid": "e8075f5c-af60-422c-b2b8-3035d24f7041",
"rawTextureUuid": "114794ff-7d9e-4fb5-a357-4d17464a6eec",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a5d71f01-0109-4af2-8723-0df855af2315",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"btn_laba1": {
"ver": "1.0.4",
"uuid": "e3802a39-4c58-4447-945b-651d5713b46b",
"rawTextureUuid": "a5d71f01-0109-4af2-8723-0df855af2315",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "573bc19c-4762-4624-8775-6cf89c8660d8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"btn_laba2": {
"ver": "1.0.4",
"uuid": "3e9bc6f3-1fcf-4bca-93ae-b31203b630a7",
"rawTextureUuid": "573bc19c-4762-4624-8775-6cf89c8660d8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3e5d0fda-e2cf-41a8-8671-a7b93e421cd9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 79,
"height": 54,
"platformSettings": {},
"subMetas": {
"btn_last": {
"ver": "1.0.4",
"uuid": "b3ccbb31-12f0-421e-ac8b-e2c43d4613b6",
"rawTextureUuid": "3e5d0fda-e2cf-41a8-8671-a7b93e421cd9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 79,
"height": 54,
"rawWidth": 79,
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c4d6b589-6766-4bae-b2ce-31a4469799e7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"btn_myrecord-play": {
"ver": "1.0.4",
"uuid": "2b33e029-1a56-49a6-aed8-85faa3303164",
"rawTextureUuid": "c4d6b589-6766-4bae-b2ce-31a4469799e7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 101,
"height": 47,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1a218c15-e424-4163-8bf0-eb1eee3645cd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"btn_myrecord": {
"ver": "1.0.4",
"uuid": "dafa31bd-d7db-4ea4-85d3-aa0767412bd4",
"rawTextureUuid": "1a218c15-e424-4163-8bf0-eb1eee3645cd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 101,
"height": 47,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "eed64364-761e-406b-a9d5-3d285044aeec",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"btn_myrecord_play": {
"ver": "1.0.4",
"uuid": "0d55a581-d90f-46ca-aeed-7bfee7ffdf64",
"rawTextureUuid": "eed64364-761e-406b-a9d5-3d285044aeec",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 101,
"height": 47,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "751a707e-2623-406d-806b-c077b31b7df5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"btn_play": {
"ver": "1.0.4",
"uuid": "93b1d1f4-c6bb-4f1d-b810-fdb50eef0c1c",
"rawTextureUuid": "751a707e-2623-406d-806b-c077b31b7df5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8eef0b85-f6e2-4d88-8324-1b5b47af56a7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 53,
"height": 51,
"platformSettings": {},
"subMetas": {
"btn_record-click": {
"ver": "1.0.4",
"uuid": "22006342-0eda-4ebe-a788-5fc4eae3c41b",
"rawTextureUuid": "8eef0b85-f6e2-4d88-8324-1b5b47af56a7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 53,
"height": 51,
"rawWidth": 53,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "05f2fd3f-061c-4ced-b08c-2a9ffe151cbe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 279,
"height": 101,
"platformSettings": {},
"subMetas": {
"btn_record-start": {
"ver": "1.0.4",
"uuid": "db3e5b8d-9c12-457b-9539-8a91a82cee01",
"rawTextureUuid": "05f2fd3f-061c-4ced-b08c-2a9ffe151cbe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 279,
"height": 101,
"rawWidth": 279,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "21557701-c9ad-4839-959f-c2f4f8b99dc5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 279,
"height": 101,
"platformSettings": {},
"subMetas": {
"btn_record-stop": {
"ver": "1.0.4",
"uuid": "952f9e47-8b80-450b-b4fd-938022116b01",
"rawTextureUuid": "21557701-c9ad-4839-959f-c2f4f8b99dc5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 279,
"height": 101,
"rawWidth": 279,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0db729fd-0ed6-4998-b4a0-88e2a205c0bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 53,
"height": 51,
"platformSettings": {},
"subMetas": {
"btn_record": {
"ver": "1.0.4",
"uuid": "2d832852-c0e9-45ee-9c9e-aa0a7ac52aad",
"rawTextureUuid": "0db729fd-0ed6-4998-b4a0-88e2a205c0bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 3,
"trimY": 3,
"width": 47,
"height": 47,
"rawWidth": 53,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "cfd6d9ef-5154-4d2f-a610-93df4cb55bbf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 53,
"height": 51,
"platformSettings": {},
"subMetas": {
"btn_record_click": {
"ver": "1.0.4",
"uuid": "b2ca29b0-880d-41f8-ae07-bdc97af69475",
"rawTextureUuid": "cfd6d9ef-5154-4d2f-a610-93df4cb55bbf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 53,
"height": 51,
"rawWidth": 53,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "49594abc-bb77-4773-bc5f-2b4c3f18253f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 279,
"height": 101,
"platformSettings": {},
"subMetas": {
"btn_record_start": {
"ver": "1.0.4",
"uuid": "185bdbbd-dd1f-4b9e-bf91-b4fca95254a6",
"rawTextureUuid": "49594abc-bb77-4773-bc5f-2b4c3f18253f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 279,
"height": 101,
"rawWidth": 279,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3a6932c6-561f-4823-8729-fe6ddb5a2bbd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 279,
"height": 101,
"platformSettings": {},
"subMetas": {
"btn_record_stop": {
"ver": "1.0.4",
"uuid": "9a25336d-0187-4fe8-8a58-1717003e7a26",
"rawTextureUuid": "3a6932c6-561f-4823-8729-fe6ddb5a2bbd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 279,
"height": 101,
"rawWidth": 279,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c1a040c2-9323-4492-aac3-3701f65ff7c5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 355,
"height": 112,
"platformSettings": {},
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "08062a3d-4e61-40f2-9c12-65096c1d20fc",
"rawTextureUuid": "c1a040c2-9323-4492-aac3-3701f65ff7c5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 355,
"height": 112,
"rawWidth": 355,
"rawHeight": 112,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "71c4b2b7-fd71-4470-898a-c040c004806e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 355,
"height": 112,
"platformSettings": {},
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "3ec61158-6c6f-4c8f-82b7-aaa35dfd3d87",
"rawTextureUuid": "71c4b2b7-fd71-4470-898a-c040c004806e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 355,
"height": 112,
"rawWidth": 355,
"rawHeight": 112,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b3bf52c2-ed8d-4b19-a814-ebeebdf41cfb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 83,
"platformSettings": {},
"subMetas": {
"btn_stop": {
"ver": "1.0.4",
"uuid": "1e5717c3-f216-494d-80f6-7ef28f40d0cd",
"rawTextureUuid": "b3bf52c2-ed8d-4b19-a814-ebeebdf41cfb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 83,
"rawWidth": 90,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2fa2414b-6059-4fcd-8acb-3074cb4e2a21",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 90,
"height": 34,
"platformSettings": {},
"subMetas": {
"btn_up": {
"ver": "1.0.4",
"uuid": "8b2630e2-3a3d-4981-b150-18d62f0902f3",
"rawTextureUuid": "2fa2414b-6059-4fcd-8acb-3074cb4e2a21",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 90,
"height": 34,
"rawWidth": 90,
"rawHeight": 34,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5a0fddd6-a21c-443d-8715-ad8aac79a445",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"icon_myrecord1": {
"ver": "1.0.4",
"uuid": "32fdbccc-88f3-4ccf-ac65-1d7181ad1c38",
"rawTextureUuid": "5a0fddd6-a21c-443d-8715-ad8aac79a445",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 14,
"offsetY": 0,
"trimX": 61,
"trimY": 16,
"width": 7,
"height": 15,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "faaa0dbe-97f3-487f-be83-de354cbf2b6f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"icon_myrecord2": {
"ver": "1.0.4",
"uuid": "cb1f2003-9617-4499-b76e-b01727a1f579",
"rawTextureUuid": "faaa0dbe-97f3-487f-be83-de354cbf2b6f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 25.5,
"offsetY": 0.5,
"trimX": 72,
"trimY": 13,
"width": 8,
"height": 20,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e55288fb-41e6-4903-811a-f4bcd0e6eddd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 101,
"height": 47,
"platformSettings": {},
"subMetas": {
"icon_myrecord3": {
"ver": "1.0.4",
"uuid": "a998f368-cd6d-44cb-85ed-cda0d95f4eb8",
"rawTextureUuid": "e55288fb-41e6-4903-811a-f4bcd0e6eddd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 37,
"offsetY": 0,
"trimX": 83,
"trimY": 12,
"width": 9,
"height": 23,
"rawWidth": 101,
"rawHeight": 47,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d2eff8b8-1093-4208-8516-4b29a3f13ba8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 18,
"height": 24,
"platformSettings": {},
"subMetas": {
"icon_tip": {
"ver": "1.0.4",
"uuid": "a3504f7c-d514-47fd-b8b4-24141b424369",
"rawTextureUuid": "d2eff8b8-1093-4208-8516-4b29a3f13ba8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 18,
"height": 24,
"rawWidth": 18,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) {
}
let creatorBasePath = 'CocosCreator';
let creatorBasePath = 'D:/CocosDashboard_1.1.1/resources/.editors/Creator/2.4.5/CocosCreator.exe';
if (process.platform !== 'win32') {
creatorBasePath = "/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator";
}
......
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