mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-10-04 23:18:11 +08:00
遥杆Demo2
This commit is contained in:
6
RockerDemo2/assets/Scene.meta
Normal file
6
RockerDemo2/assets/Scene.meta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
743
RockerDemo2/assets/Scene/helloworld.fire
Normal file
743
RockerDemo2/assets/Scene/helloworld.fire
Normal file
@@ -0,0 +1,743 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
"_id": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0,
|
||||
"autoReleaseAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 20
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "a286bbGknJLZpRpxROV6M94",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 252,
|
||||
"g": 252,
|
||||
"b": 252,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 480,
|
||||
"y": 320
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "background",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 27,
|
||||
"g": 38,
|
||||
"b": 46,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"isAlignOnce": true,
|
||||
"_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": 200,
|
||||
"_originalHeight": 150
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e05GDlplhDIr5P35+m28XF",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -342,
|
||||
"y": -182
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "ceIHdk509F1pr7X5kiSCS8",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 6
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Node",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 12
|
||||
},
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "91phVGUddM0pFMZE4wByrG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 700,
|
||||
"height": 620
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 129,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 13
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "24bbcSMItJmIEY5092RAFy",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "832XRst7hJTJpB15PE8LIG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 15
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hua",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "4eXgKylflG9auz6KUjabUn",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Graphics",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 17
|
||||
},
|
||||
"_enabled": true,
|
||||
"_lineWidth": 1,
|
||||
"_strokeColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_lineJoin": 2,
|
||||
"_lineCap": 0,
|
||||
"_fillColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_miterLimit": 10
|
||||
},
|
||||
{
|
||||
"__type__": "280c3rsZJJKnZ9RqbALVwtK",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_fitWidth": false,
|
||||
"_fitHeight": true
|
||||
}
|
||||
]
|
||||
7
RockerDemo2/assets/Scene/helloworld.fire.meta
Normal file
7
RockerDemo2/assets/Scene/helloworld.fire.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.0",
|
||||
"uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
6
RockerDemo2/assets/Script.meta
Normal file
6
RockerDemo2/assets/Script.meta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
60
RockerDemo2/assets/Script/rocker.js
Normal file
60
RockerDemo2/assets/Script/rocker.js
Normal file
@@ -0,0 +1,60 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function () {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("touchstart", this.mouseDown, this);
|
||||
this.node.on("touchmove", this.mouseMove, this);
|
||||
this.node.on('touchcancel', this.mouseEnd, this);
|
||||
this.node.on('touchend', this.mouseEnd, this);
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function (dt) {
|
||||
|
||||
},
|
||||
|
||||
mouseEnd() {
|
||||
this.rocker.setPosition(cc.v2(0, 0));
|
||||
},
|
||||
|
||||
mouseDown: function (event) {
|
||||
// this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
},
|
||||
|
||||
mouseMove: function (event) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = Math.sin(radian) * 50;
|
||||
pos.x = Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
}
|
||||
},
|
||||
|
||||
getDistance: function (pos1, pos2) {
|
||||
var x = (pos1.x - pos2.x);
|
||||
var y = (pos1.y - pos2.y);
|
||||
return Math.sqrt((x * x + y * y));
|
||||
},
|
||||
|
||||
getRadian: function (point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
return this.radian;
|
||||
},
|
||||
|
||||
getAngle: function (point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
9
RockerDemo2/assets/Script/rocker.js.meta
Normal file
9
RockerDemo2/assets/Script/rocker.js.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "0582a5b1-3202-46db-b0ce-b0a0ff5d21ab",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
71
RockerDemo2/assets/Script/rocker1.js
Normal file
71
RockerDemo2/assets/Script/rocker1.js
Normal file
@@ -0,0 +1,71 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function () {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("mousedown", this.mouseDown, this);
|
||||
this.node.on("mousemove", this.mouseMove, this);
|
||||
this.hua = this.node.getChildByName("hua");
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function (dt) {
|
||||
|
||||
},
|
||||
mouseDown: function (event) {
|
||||
this.start = true;
|
||||
this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
this.bg.setPosition(this.startPos);
|
||||
|
||||
|
||||
},
|
||||
mouseMove: function (event) {
|
||||
|
||||
if (this.start) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
pos.x += this.startPos.x;
|
||||
pos.y += this.startPos.y;
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = this.startPos.y + Math.sin(radian) * 50;
|
||||
pos.x = this.startPos.x + Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
var graphics = this.hua.getComponent(cc.Graphics);
|
||||
graphics.circle(pos.x, pos.y, 3);
|
||||
//添加颜色及透明度
|
||||
let fillColor = cc.Color.RED;//声明一个颜色变量
|
||||
fillColor.a = 200;//添加透明度
|
||||
graphics.fillColor = fillColor;//填充
|
||||
|
||||
graphics.stroke();
|
||||
graphics.fill();
|
||||
}
|
||||
}
|
||||
},
|
||||
getDistance: function (pos1, pos2) {
|
||||
var x = (pos1.x - pos2.x);
|
||||
var y = (pos1.y - pos2.y);
|
||||
return Math.sqrt((x * x + y * y));
|
||||
},
|
||||
getRadian: function (point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
// console.log('this', this.radian);
|
||||
this.getAngle(point);
|
||||
return this.radian;
|
||||
},
|
||||
getAngle: function (point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
console.log('this', this.angle);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
9
RockerDemo2/assets/Script/rocker1.js.meta
Normal file
9
RockerDemo2/assets/Script/rocker1.js.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
6
RockerDemo2/assets/Texture.meta
Normal file
6
RockerDemo2/assets/Texture.meta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
|
||||
"isGroup": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
BIN
RockerDemo2/assets/Texture/HelloWorld.png
Normal file
BIN
RockerDemo2/assets/Texture/HelloWorld.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
30
RockerDemo2/assets/Texture/HelloWorld.png.meta
Normal file
30
RockerDemo2/assets/Texture/HelloWorld.png.meta
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"ver": "1.0.0",
|
||||
"uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"subMetas": {
|
||||
"HelloWorld": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc",
|
||||
"rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 195,
|
||||
"height": 270,
|
||||
"rawWidth": 195,
|
||||
"rawHeight": 270,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
RockerDemo2/assets/Texture/bg.png
Normal file
BIN
RockerDemo2/assets/Texture/bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 767 B |
30
RockerDemo2/assets/Texture/bg.png.meta
Normal file
30
RockerDemo2/assets/Texture/bg.png.meta
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"ver": "1.0.0",
|
||||
"uuid": "00b45c8e-3d73-44a2-810a-ebebdacb33a3",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"subMetas": {
|
||||
"bg": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a",
|
||||
"rawTextureUuid": "00b45c8e-3d73-44a2-810a-ebebdacb33a3",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 94,
|
||||
"height": 94,
|
||||
"rawWidth": 94,
|
||||
"rawHeight": 94,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
RockerDemo2/assets/Texture/kong.png
Normal file
BIN
RockerDemo2/assets/Texture/kong.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 344 B |
30
RockerDemo2/assets/Texture/kong.png.meta
Normal file
30
RockerDemo2/assets/Texture/kong.png.meta
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"ver": "1.0.0",
|
||||
"uuid": "65e0767e-1417-4be1-9d34-0961fbdac519",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"subMetas": {
|
||||
"kong": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "1cb1e052-a9a8-479b-95f8-d483b97fd443",
|
||||
"rawTextureUuid": "65e0767e-1417-4be1-9d34-0961fbdac519",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 43,
|
||||
"height": 41,
|
||||
"rawWidth": 43,
|
||||
"rawHeight": 41,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
RockerDemo2/assets/Texture/singleColor.png
Normal file
BIN
RockerDemo2/assets/Texture/singleColor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
30
RockerDemo2/assets/Texture/singleColor.png.meta
Normal file
30
RockerDemo2/assets/Texture/singleColor.png.meta
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"ver": "1.0.0",
|
||||
"uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"subMetas": {
|
||||
"singleColor": {
|
||||
"ver": "1.0.3",
|
||||
"uuid": "410fb916-8721-4663-bab8-34397391ace7",
|
||||
"rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"rawWidth": 2,
|
||||
"rawHeight": 2,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,343 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "slider",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "slider",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 300,
|
||||
"height": 20
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -219,
|
||||
"y": 2
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 10
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Background",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 300,
|
||||
"height": 20
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "f43c4gNvOtBE41OTztiOT6T",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Handle",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 20,
|
||||
"height": 40
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"transition": 2,
|
||||
"pressedColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"hoverColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"duration": 0.1,
|
||||
"zoomScale": 0.1,
|
||||
"pressedSprite": {
|
||||
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
|
||||
},
|
||||
"hoverSprite": {
|
||||
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
|
||||
},
|
||||
"clickEvents": [],
|
||||
"_N$interactable": true,
|
||||
"_N$enableAutoGrayEffect": true,
|
||||
"_N$normalColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_N$disabledColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_N$normalSprite": {
|
||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
||||
},
|
||||
"_N$disabledSprite": {
|
||||
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
|
||||
},
|
||||
"_N$target": {
|
||||
"__id__": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "93f4b6UTvtD0Iy5hi3tLIn2",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Slider",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"direction": 0,
|
||||
"slideEvents": [],
|
||||
"_N$background": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_N$handle": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_N$progress": 0.5
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "8ac42iRpDlK6pemd22ZO6x/",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
cc._RF.push(module, '0582aWxMgJG27DOsKD/XSGr', 'rocker');
|
||||
// Script/rocker.js
|
||||
|
||||
"use strict";
|
||||
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function onLoad() {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("touchstart", this.mouseDown, this);
|
||||
this.node.on("touchmove", this.mouseMove, this);
|
||||
this.node.on('touchcancel', this.mouseEnd, this);
|
||||
this.node.on('touchend', this.mouseEnd, this);
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function update(dt) {},
|
||||
|
||||
mouseEnd: function mouseEnd() {
|
||||
this.rocker.setPosition(cc.v2(0, 0));
|
||||
},
|
||||
|
||||
|
||||
mouseDown: function mouseDown(event) {
|
||||
// this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
},
|
||||
|
||||
mouseMove: function mouseMove(event) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = Math.sin(radian) * 50;
|
||||
pos.x = Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
}
|
||||
},
|
||||
|
||||
getDistance: function getDistance(pos1, pos2) {
|
||||
var x = pos1.x - pos2.x;
|
||||
var y = pos1.y - pos2.y;
|
||||
return Math.sqrt(x * x + y * y);
|
||||
},
|
||||
|
||||
getRadian: function getRadian(point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
return this.radian;
|
||||
},
|
||||
|
||||
getAngle: function getAngle(point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
|
||||
cc._RF.pop();
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["..\\..\\..\\..\\assets\\Script/assets\\Script\\rocker.js"],"names":["cc","Class","extends","Component","properties","bg","Node","rocker","onLoad","start","angle","radian","node","on","mouseDown","mouseMove","mouseEnd","update","dt","setPosition","v2","event","pos","convertToNodeSpaceAR","getLocation","getDistance","p","getRadian","y","Math","sin","x","cos","pos1","pos2","sqrt","point","atan2","getAngle","PI"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGLC,gBAAY;AACRC,YAAIL,GAAGM,IADC;AAERC,gBAAQP,GAAGM;AAFH,KAHP;;AAQL;AACAE,YAAQ,kBAAY;AAChB,aAAKC,KAAL,GAAa,KAAb;AACA,aAAKC,KAAL,GAAa,CAAC,CAAd;AACA,aAAKC,MAAL,GAAc,CAAC,CAAf;AACA,aAAKC,IAAL,CAAUC,EAAV,CAAa,YAAb,EAA2B,KAAKC,SAAhC,EAA2C,IAA3C;AACA,aAAKF,IAAL,CAAUC,EAAV,CAAa,WAAb,EAA0B,KAAKE,SAA/B,EAA0C,IAA1C;AACA,aAAKH,IAAL,CAAUC,EAAV,CAAa,aAAb,EAA4B,KAAKG,QAAjC,EAA2C,IAA3C;AACA,aAAKJ,IAAL,CAAUC,EAAV,CAAa,UAAb,EAAyB,KAAKG,QAA9B,EAAwC,IAAxC;AACH,KAjBI;;AAmBL;AACAC,YAAQ,gBAAUC,EAAV,EAAc,CAErB,CAtBI;;AAwBLF,YAxBK,sBAwBM;AACP,aAAKT,MAAL,CAAYY,WAAZ,CAAwBnB,GAAGoB,EAAH,CAAM,CAAN,EAAS,CAAT,CAAxB;AACH,KA1BI;;;AA4BLN,eAAW,mBAAUO,KAAV,EAAiB;AACxB;AACH,KA9BI;;AAgCLN,eAAW,mBAAUM,KAAV,EAAiB;AACxB,YAAIC,MAAM,KAAKjB,EAAL,CAAQkB,oBAAR,CAA6BF,MAAMG,WAAN,EAA7B,CAAV;AACA,YAAI,KAAKC,WAAL,CAAiBzB,GAAG0B,CAAH,CAAK,CAAL,EAAQ,CAAR,CAAjB,EAA6BJ,GAA7B,KAAqC,EAAzC,EAA6C;AACzC,iBAAKf,MAAL,CAAYY,WAAZ,CAAwBG,GAAxB;AACH,SAFD,MAEO;AACH,gBAAIX,SAAS,KAAKgB,SAAL,CAAeL,GAAf,CAAb;AACAA,gBAAIM,CAAJ,GAAQC,KAAKC,GAAL,CAASnB,MAAT,IAAmB,EAA3B;AACAW,gBAAIS,CAAJ,GAAQF,KAAKG,GAAL,CAASrB,MAAT,IAAmB,EAA3B;AACA,iBAAKJ,MAAL,CAAYY,WAAZ,CAAwBG,GAAxB;AACH;AACJ,KA1CI;;AA4CLG,iBAAa,qBAAUQ,IAAV,EAAgBC,IAAhB,EAAsB;AAC/B,YAAIH,IAAKE,KAAKF,CAAL,GAASG,KAAKH,CAAvB;AACA,YAAIH,IAAKK,KAAKL,CAAL,GAASM,KAAKN,CAAvB;AACA,eAAOC,KAAKM,IAAL,CAAWJ,IAAIA,CAAJ,GAAQH,IAAIA,CAAvB,CAAP;AACH,KAhDI;;AAkDLD,eAAW,mBAAUS,KAAV,EAAiB;AACxB,aAAKzB,MAAL,GAAckB,KAAKQ,KAAL,CAAWD,MAAMR,CAAjB,EAAoBQ,MAAML,CAA1B,CAAd;AACA,eAAO,KAAKpB,MAAZ;AACH,KArDI;;AAuDL2B,cAAU,kBAAUF,KAAV,EAAiB;AACvB,aAAK1B,KAAL,GAAamB,KAAKQ,KAAL,CAAWD,MAAMR,CAAjB,EAAoBQ,MAAML,CAA1B,KAAgC,MAAMF,KAAKU,EAA3C,CAAb;AACA,eAAO,KAAK7B,KAAZ;AACH;AA1DI,CAAT","file":"rocker.js","sourceRoot":"..\\..\\..\\..\\assets\\Script","sourcesContent":["cc.Class({\n extends: cc.Component,\n\n properties: {\n bg: cc.Node,\n rocker: cc.Node\n },\n\n // use this for initialization\n onLoad: function () {\n this.start = false;\n this.angle = -1;\n this.radian = -1;\n this.node.on(\"touchstart\", this.mouseDown, this);\n this.node.on(\"touchmove\", this.mouseMove, this);\n this.node.on('touchcancel', this.mouseEnd, this);\n this.node.on('touchend', this.mouseEnd, this);\n },\n\n // called every frame\n update: function (dt) {\n\n },\n\n mouseEnd() {\n this.rocker.setPosition(cc.v2(0, 0));\n },\n\n mouseDown: function (event) {\n // this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());\n },\n\n mouseMove: function (event) {\n var pos = this.bg.convertToNodeSpaceAR(event.getLocation());\n if (this.getDistance(cc.p(0, 0), pos) <= 50) {\n this.rocker.setPosition(pos);\n } else {\n var radian = this.getRadian(pos);\n pos.y = Math.sin(radian) * 50;\n pos.x = Math.cos(radian) * 50;\n this.rocker.setPosition(pos);\n }\n },\n\n getDistance: function (pos1, pos2) {\n var x = (pos1.x - pos2.x);\n var y = (pos1.y - pos2.y);\n return Math.sqrt((x * x + y * y));\n },\n\n getRadian: function (point) {\n this.radian = Math.atan2(point.y, point.x);\n return this.radian;\n },\n\n getAngle: function (point) {\n this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);\n return this.angle;\n }\n});\n"]}
|
||||
@@ -0,0 +1,320 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "toggle",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "toggle",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_id": "",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 28,
|
||||
"height": 28
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Background",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_id": "",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 28,
|
||||
"height": 28
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "6827ca32-0107-4552-bab2-dfb31799bb44"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
|
||||
},
|
||||
"fileId": "238bacn/jZGGYuFN7ndSzkO",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "checkmark",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_id": "",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 28,
|
||||
"height": 28
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "90004ad6-2f6d-40e1-93ef-b714375c6f06"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 2,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": false,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
|
||||
},
|
||||
"fileId": "0d447hRg/9AuLVwR7+lDw/1",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Toggle",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"transition": 3,
|
||||
"pressedColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 211,
|
||||
"g": 211,
|
||||
"b": 211,
|
||||
"a": 255
|
||||
},
|
||||
"hoverColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"duration": 0.1,
|
||||
"zoomScale": 1.2,
|
||||
"pressedSprite": null,
|
||||
"hoverSprite": null,
|
||||
"clickEvents": [],
|
||||
"_N$interactable": true,
|
||||
"_N$enableAutoGrayEffect": false,
|
||||
"_N$normalColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 214,
|
||||
"g": 214,
|
||||
"b": 214,
|
||||
"a": 255
|
||||
},
|
||||
"_N$disabledColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 124,
|
||||
"g": 124,
|
||||
"b": 124,
|
||||
"a": 255
|
||||
},
|
||||
"_N$normalSprite": null,
|
||||
"_N$disabledSprite": null,
|
||||
"_N$target": {
|
||||
"__id__": 2
|
||||
},
|
||||
"toggleGroup": null,
|
||||
"checkMark": {
|
||||
"__id__": 6
|
||||
},
|
||||
"checkEvents": [],
|
||||
"_N$isChecked": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
|
||||
},
|
||||
"fileId": "3d81aISgHdGFblE/PZD2Cp3",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_radio_button_on",
|
||||
"texture": "9d60001f-b5f4-4726-a629-2659e3ded0b8",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
32,
|
||||
32
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
32,
|
||||
32
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "kong",
|
||||
"texture": "65e0767e-1417-4be1-9d34-0961fbdac519",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
43,
|
||||
41
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
43,
|
||||
41
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "sprite_splash",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Sprite (Splash)",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "1a0f4zwu2VOapqEJkWXIF0R"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,93 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "videoplayer",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "videoplayer",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 428,
|
||||
"height": 240
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.VideoPlayer",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_resourceType": 1,
|
||||
"_remoteURL": "",
|
||||
"_clip": {
|
||||
"__uuid__": "2be36297-9abb-4fee-8049-9ed5e271da8a"
|
||||
},
|
||||
"_time": 0,
|
||||
"videoPlayerEvent": [],
|
||||
"_N$keepAspectRatio": true,
|
||||
"_N$isFullscreen": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "232d2782-c4bd-4bb4-9e01-909f03d6d3b9"
|
||||
},
|
||||
"fileId": "f0e6ehf9IVMI51Egy+e0ZTA"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,90 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "label",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Label",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 128,
|
||||
"height": 50
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_ignoreAnchorPointForPosition": false,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": false,
|
||||
"_fontSize": 40,
|
||||
"_lineHeight": 40,
|
||||
"_enableWrapText": true,
|
||||
"_isSystemFontUsed": true,
|
||||
"_N$string": "Label",
|
||||
"_N$horizontalAlign": 1,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$overflow": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "d1cddH/doRNQ4Aodz8556bh"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,75 @@
|
||||
"use strict";
|
||||
cc._RF.push(module, '280c3rsZJJKnZ9RqbALVwtK', 'rocker1');
|
||||
// Script/rocker1.js
|
||||
|
||||
"use strict";
|
||||
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function onLoad() {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("mousedown", this.mouseDown, this);
|
||||
this.node.on("mousemove", this.mouseMove, this);
|
||||
this.hua = this.node.getChildByName("hua");
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function update(dt) {},
|
||||
mouseDown: function mouseDown(event) {
|
||||
this.start = true;
|
||||
this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
this.bg.setPosition(this.startPos);
|
||||
},
|
||||
mouseMove: function mouseMove(event) {
|
||||
|
||||
if (this.start) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
pos.x += this.startPos.x;
|
||||
pos.y += this.startPos.y;
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = this.startPos.y + Math.sin(radian) * 50;
|
||||
pos.x = this.startPos.x + Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
var graphics = this.hua.getComponent(cc.Graphics);
|
||||
graphics.circle(pos.x, pos.y, 3);
|
||||
//添加颜色及透明度
|
||||
var fillColor = cc.Color.RED; //声明一个颜色变量
|
||||
fillColor.a = 200; //添加透明度
|
||||
graphics.fillColor = fillColor; //填充
|
||||
|
||||
graphics.stroke();
|
||||
graphics.fill();
|
||||
}
|
||||
}
|
||||
},
|
||||
getDistance: function getDistance(pos1, pos2) {
|
||||
var x = pos1.x - pos2.x;
|
||||
var y = pos1.y - pos2.y;
|
||||
return Math.sqrt(x * x + y * y);
|
||||
},
|
||||
getRadian: function getRadian(point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
// console.log('this', this.radian);
|
||||
this.getAngle(point);
|
||||
return this.radian;
|
||||
},
|
||||
getAngle: function getAngle(point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
console.log('this', this.angle);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
|
||||
cc._RF.pop();
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_btn_disabled",
|
||||
"texture": "71561142-4c83-4933-afca-cb7a17f67053",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
40
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
40,
|
||||
40
|
||||
],
|
||||
"capInsets": [
|
||||
15,
|
||||
7,
|
||||
15,
|
||||
9
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "canvas",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 479.9999999999999,
|
||||
"y": 319.99999999999994
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_ignoreAnchorPointForPosition": false,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_fitWidth": false,
|
||||
"_fitHeight": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "a6aa1W/pshGFZkMhhqxkZYP"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,744 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "helloworld",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
"_id": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0,
|
||||
"autoReleaseAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 20
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "a286bbGknJLZpRpxROV6M94",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 252,
|
||||
"g": 252,
|
||||
"b": 252,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 480,
|
||||
"y": 320
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "background",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 27,
|
||||
"g": 38,
|
||||
"b": 46,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"isAlignOnce": true,
|
||||
"_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": 200,
|
||||
"_originalHeight": 150
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e05GDlplhDIr5P35+m28XF",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -342,
|
||||
"y": -182
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "ceIHdk509F1pr7X5kiSCS8",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 6
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Node",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 12
|
||||
},
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "91phVGUddM0pFMZE4wByrG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 700,
|
||||
"height": 620
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 129,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 13
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "24bbcSMItJmIEY5092RAFy",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "832XRst7hJTJpB15PE8LIG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 15
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hua",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "4eXgKylflG9auz6KUjabUn",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Graphics",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 17
|
||||
},
|
||||
"_enabled": true,
|
||||
"_lineWidth": 1,
|
||||
"_strokeColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_lineJoin": 2,
|
||||
"_lineCap": 0,
|
||||
"_fillColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_miterLimit": 10
|
||||
},
|
||||
{
|
||||
"__type__": "280c3rsZJJKnZ9RqbALVwtK",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_fitWidth": false,
|
||||
"_fitHeight": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "HelloWorld",
|
||||
"texture": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
195,
|
||||
270
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
195,
|
||||
270
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_scrollbar",
|
||||
"texture": "0291c134-b3da-4098-b7b5-e397edbe947f",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
2,
|
||||
30,
|
||||
11
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
30,
|
||||
15
|
||||
],
|
||||
"capInsets": [
|
||||
10,
|
||||
0,
|
||||
10,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,596 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "scrollview",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "scrollView",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 184,
|
||||
"g": 184,
|
||||
"b": 184,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 240,
|
||||
"height": 250
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 20
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "scrollBar",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 238,
|
||||
"g": 217,
|
||||
"b": 227,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 1,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 12,
|
||||
"height": 250
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 120,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 16
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 18
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bar",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 236,
|
||||
"g": 241,
|
||||
"b": 245,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 1,
|
||||
"y": 0
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 10,
|
||||
"height": 30
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -1,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 5
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "5c3bb932-6c3c-468f-88a9-c8c61d458641"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "b1f27kt1ClHyJvwBLxrEfQY"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scrollbar",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_scrollView": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_touching": false,
|
||||
"_opacity": 255,
|
||||
"enableAutoHide": true,
|
||||
"autoHideTime": 1,
|
||||
"_N$handle": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_N$direction": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ScrollView",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"content": {
|
||||
"__id__": 8
|
||||
},
|
||||
"horizontal": false,
|
||||
"vertical": true,
|
||||
"inertia": true,
|
||||
"brake": 0.75,
|
||||
"elastic": true,
|
||||
"bounceDuration": 0.23,
|
||||
"scrollEvents": [],
|
||||
"_N$horizontalScrollBar": null,
|
||||
"_N$verticalScrollBar": {
|
||||
"__id__": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "content",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 1
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 220,
|
||||
"height": 400
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 12
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 115.31
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 15
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "view",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 240,
|
||||
"height": 250
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 11
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Mask",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_enabled": true,
|
||||
"_type": 0,
|
||||
"_segements": 64
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "c1dc9Kk/CRJqaNnBOP4YGDS"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "item",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 1
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 131.62,
|
||||
"height": 60
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -102.2,
|
||||
"y": -10.15
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 14
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": false,
|
||||
"_fontSize": 16,
|
||||
"_lineHeight": 20,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_N$string": "ScrollView content\n\n",
|
||||
"_N$horizontalAlign": 1,
|
||||
"_N$verticalAlign": 0,
|
||||
"_N$overflow": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "5280bTjVfhISb/ztQTswOuX"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "036a4WKD5hBcbQJmMrbqoW8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"isAlignOnce": true,
|
||||
"_alignFlags": 37,
|
||||
"_left": 350.07654921020657,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 237
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "5fe5dcaa-b513-4dc5-a166-573627b3a159"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "f8b835eFHxKj4uMGeoBGz+U"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "32044bd2-481f-4cf1-a656-e2b2fb1594eb"
|
||||
},
|
||||
"fileId": "2bb72ntvphNH4HtVfnSNUVp"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "singleColor",
|
||||
"texture": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
2,
|
||||
2
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
2,
|
||||
2
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "richtext",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "richText",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 153.38,
|
||||
"height": 50
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.RichText",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": true,
|
||||
"_N$string": "<color=#00ff00>Rich</c><color=#0fffff>Text</color>",
|
||||
"_N$horizontalAlign": 0,
|
||||
"_N$fontSize": 40,
|
||||
"_N$maxWidth": 0,
|
||||
"_N$lineHeight": 50
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "4a37dd57-78cd-4cec-aad4-f11a73d12b63"
|
||||
},
|
||||
"fileId": "fd4fe1WoCpJK6rVCZ13Z14R"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,212 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "progressBar",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "progressBar",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 15
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bar",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 50,
|
||||
"height": 15
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -50,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "67e68bc9-dad5-4ad9-a2d8-7e03d458e32f"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "5965ffac-69da-4b55-bcde-9225d0613c28"
|
||||
},
|
||||
"fileId": "38d28QPqAdC1L4aQLAAwhV2"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "88e79fd5-96b4-4a77-a1f4-312467171014"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ProgressBar",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_N$barSprite": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_N$mode": 0,
|
||||
"_N$totalLength": 100,
|
||||
"_N$progress": 0.5,
|
||||
"_N$reverse": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "5965ffac-69da-4b55-bcde-9225d0613c28"
|
||||
},
|
||||
"fileId": "c8bd6EVT6lD4bVMS1d/i0BC"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_scrollbar_vertical",
|
||||
"texture": "d6d3ca85-4681-47c1-b5dd-d036a9d39ea2",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
2,
|
||||
0,
|
||||
11,
|
||||
30
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
15,
|
||||
30
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
5,
|
||||
0,
|
||||
5
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_scrollbar_vertical_bg",
|
||||
"texture": "617323dd-11f4-4dd3-8eec-0caf6b3b45b9",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
15,
|
||||
30
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
15,
|
||||
30
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
8
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "editbox",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Editbox",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 160,
|
||||
"height": 40
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.EditBox",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": false,
|
||||
"_string": "",
|
||||
"_tabIndex": 0,
|
||||
"editingDidBegan": [],
|
||||
"textChanged": [],
|
||||
"editingDidEnded": [],
|
||||
"editingReturn": [],
|
||||
"_N$backgroundImage": {
|
||||
"__uuid__": "67e68bc9-dad5-4ad9-a2d8-7e03d458e32f"
|
||||
},
|
||||
"_N$returnType": 0,
|
||||
"_N$inputFlag": 5,
|
||||
"_N$inputMode": 6,
|
||||
"_N$fontSize": 29,
|
||||
"_N$lineHeight": 40,
|
||||
"_N$fontColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_N$placeholder": "Enter text here...",
|
||||
"_N$placeholderFontSize": 20,
|
||||
"_N$placeholderFontColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 127.5,
|
||||
"g": 127.5,
|
||||
"b": 127.5,
|
||||
"a": 255
|
||||
},
|
||||
"_N$maxLength": 8,
|
||||
"_N$stayOnTop": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "61aeb05b-3b32-452b-8eed-2b76deeed554"
|
||||
},
|
||||
"fileId": "590f66n7/1CY5uRJYcGGuJO",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_progressbar",
|
||||
"texture": "cfef78f1-c8df-49b7-8ed0-4c953ace2621",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
30,
|
||||
15
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
30,
|
||||
15
|
||||
],
|
||||
"capInsets": [
|
||||
5,
|
||||
0,
|
||||
5,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_toggle_normal",
|
||||
"texture": "d29077ba-1627-4a72-9579-7b56a235340c",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
28,
|
||||
28
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
28,
|
||||
28
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_toggle_disabled",
|
||||
"texture": "c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
28,
|
||||
28
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
28,
|
||||
28
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "layout",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Layout",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 167,
|
||||
"g": 167,
|
||||
"b": 167,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 150
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Layout",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_layoutSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 150
|
||||
},
|
||||
"_resize": 0,
|
||||
"_N$layoutType": 0,
|
||||
"_N$cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 40,
|
||||
"height": 40
|
||||
},
|
||||
"_N$startAxis": 0,
|
||||
"_N$padding": 0,
|
||||
"_N$spacingX": 0,
|
||||
"_N$spacingY": 0,
|
||||
"_N$verticalDirection": 1,
|
||||
"_N$horizontalDirection": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "785a442c-3ceb-45be-a46e-7317f625f3b9"
|
||||
},
|
||||
"fileId": "7f8d2O3hcNDT55RjJXZrQyg"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_toggle_pressed",
|
||||
"texture": "b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
28,
|
||||
28
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
28,
|
||||
28
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "tiledmap",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New TiledMap",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.TiledMap",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_tmxFile": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "6d9cbIJlHhJ/4JAwDJiN9SB"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_progressbar_bg",
|
||||
"texture": "99170b0b-d210-46f1-b213-7d9e3f23098a",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
60,
|
||||
15
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
60,
|
||||
15
|
||||
],
|
||||
"capInsets": [
|
||||
5,
|
||||
0,
|
||||
5,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "webview",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "webview",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 300,
|
||||
"height": 200
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 429,
|
||||
"y": 347
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.WebView",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": false,
|
||||
"_url": "",
|
||||
"webViewEvent": []
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "8c5001fd-07ee-4a4b-a8a0-63e15195e94d"
|
||||
},
|
||||
"fileId": "2fb356PwclC8L2CbHhqGUVr"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_sprite",
|
||||
"texture": "6e056173-d285-473c-b206-40a7fff5386e",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
2,
|
||||
40,
|
||||
36
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
40,
|
||||
40
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_toggle_checkmark",
|
||||
"texture": "73a0903d-d80e-4e3c-aa67-f999543c08f5",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
5,
|
||||
3,
|
||||
20,
|
||||
19
|
||||
],
|
||||
"offset": [
|
||||
1,
|
||||
1.5
|
||||
],
|
||||
"originalSize": [
|
||||
28,
|
||||
28
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "sprite",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Sprite",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 40,
|
||||
"height": 36
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "d7118yAG5lKybkFOAh8koPL"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,248 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "button",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Button",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 40
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Label",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 40
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_useOriginalSize": false,
|
||||
"_fontSize": 20,
|
||||
"_lineHeight": 40,
|
||||
"_enableWrapText": false,
|
||||
"_N$file": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_N$string": "button",
|
||||
"_N$horizontalAlign": 1,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$overflow": 1
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "972b9a4d-47ee-4c74-b5c3-61d8a69bc29f"
|
||||
},
|
||||
"fileId": "d3174kdUaZEoawd6DAb2S0l"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"transition": 2,
|
||||
"pressedColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"hoverColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"duration": 0.1,
|
||||
"pressedSprite": {
|
||||
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
|
||||
},
|
||||
"hoverSprite": {
|
||||
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
|
||||
},
|
||||
"clickEvents": [],
|
||||
"_N$interactable": true,
|
||||
"_N$normalColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_N$disabledColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_N$normalSprite": {
|
||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
||||
},
|
||||
"_N$disabledSprite": {
|
||||
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
|
||||
},
|
||||
"_N$target": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "972b9a4d-47ee-4c74-b5c3-61d8a69bc29f"
|
||||
},
|
||||
"fileId": "59d3ePxgxhP17q/bKZe2Mkj"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_panel",
|
||||
"texture": "d81ec8ad-247c-4e62-aa3c-d35c4193c7af",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
20,
|
||||
20
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
20,
|
||||
20
|
||||
],
|
||||
"capInsets": [
|
||||
4,
|
||||
3,
|
||||
4,
|
||||
3
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_sprite_splash",
|
||||
"texture": "0275e94c-56a7-410f-bd1a-fc7483f7d14a",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
2,
|
||||
2
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
2,
|
||||
2
|
||||
]
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_scrollbar_bg",
|
||||
"texture": "4bab67cb-18e6-4099-b840-355f0473f890",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
30,
|
||||
15
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
30,
|
||||
15
|
||||
],
|
||||
"capInsets": [
|
||||
10,
|
||||
0,
|
||||
10,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,747 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "pageview",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "pageview",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 450
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 20
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 22
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 24
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "background",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 450
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "d4995IHzA9DsKLlMTyCB0bq",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "view",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 450
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 19
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "content",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1500,
|
||||
"height": 450
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
},
|
||||
{
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -250,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 17
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "page_1",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 70,
|
||||
"b": 70,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 390
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 250,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "e4b25otxWBLVpmoEY72dW1B",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "page_2",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 181,
|
||||
"g": 255,
|
||||
"b": 70,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 390
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 750,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 12
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "0460dpbuuVL6IrBc9SGei8F",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "page_3",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 83,
|
||||
"g": 104,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 500,
|
||||
"height": 390
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 1250,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 15
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 13
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "7a1b8sccmBN1Jj/ZHKaE3JK",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Layout",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_layoutSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1500,
|
||||
"height": 450
|
||||
},
|
||||
"_resize": 1,
|
||||
"_N$layoutType": 1,
|
||||
"_N$cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 40,
|
||||
"height": 40
|
||||
},
|
||||
"_N$startAxis": 0,
|
||||
"_N$padding": 0,
|
||||
"_N$spacingX": 0,
|
||||
"_N$spacingY": 15,
|
||||
"_N$verticalDirection": 1,
|
||||
"_N$horizontalDirection": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "47588+/BXNHEK1F1sC9uHbf",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Mask",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_type": 0,
|
||||
"_segements": 64
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "5b1864GVRZEC7Qc8fzYUge7",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "indicator",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 27
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": -209
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 21
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 23
|
||||
},
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PageViewIndicator",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 20
|
||||
},
|
||||
"_enabled": true,
|
||||
"_layout": null,
|
||||
"_pageView": {
|
||||
"__id__": 22
|
||||
},
|
||||
"_indicators": [],
|
||||
"spriteFrame": {
|
||||
"__uuid__": "c9fa51ff-3f01-4601-8f80-325d1b11dab7"
|
||||
},
|
||||
"direction": 0,
|
||||
"cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 10,
|
||||
"height": 10
|
||||
},
|
||||
"spacing": 10
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PageView",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"content": {
|
||||
"__id__": 6
|
||||
},
|
||||
"horizontal": true,
|
||||
"vertical": true,
|
||||
"inertia": true,
|
||||
"brake": 0.5,
|
||||
"elastic": true,
|
||||
"bounceDuration": 0.5,
|
||||
"scrollEvents": [],
|
||||
"cancelInnerEvents": true,
|
||||
"scrollThreshold": 0.5,
|
||||
"pageTurningEventTiming": 0.1,
|
||||
"pageEvents": [],
|
||||
"_N$direction": 0,
|
||||
"_N$indicator": {
|
||||
"__id__": 21
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "c3bcdZElclEBJbaV6uqwUJx",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ca8401fe-ad6e-41a8-bd46-8e3e4e9945be"
|
||||
},
|
||||
"fileId": "52f01L6ceBGDrJGf8m2N/2X",
|
||||
"sync": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,162 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "particlesystem",
|
||||
"_objFlags": 0,
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asyncLoadAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "ParticleSystem",
|
||||
"_objFlags": 0,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_parent": null,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_children": [],
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_tag": -1,
|
||||
"_opacityModifyRGB": false,
|
||||
"_reorderChildDirty": false,
|
||||
"_id": "",
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ParticleSystem",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"_custom": false,
|
||||
"_file": {
|
||||
"__uuid__": "b2687ac4-099e-403c-a192-ff477686f4f5"
|
||||
},
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"playOnLoad": true,
|
||||
"_autoRemoveOnFinish": false,
|
||||
"_totalParticles": 150,
|
||||
"_duration": -1,
|
||||
"_emissionRate": 10,
|
||||
"_life": 1,
|
||||
"_lifeVar": 0,
|
||||
"_startColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_startColorVar": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_endColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 0
|
||||
},
|
||||
"_endColorVar": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 0
|
||||
},
|
||||
"_angle": 90,
|
||||
"_angleVar": 20,
|
||||
"_startSize": 50,
|
||||
"_startSizeVar": 0,
|
||||
"_endSize": 0,
|
||||
"_endSizeVar": 0,
|
||||
"_startSpin": 0,
|
||||
"_startSpinVar": 0,
|
||||
"_endSpin": 0,
|
||||
"_endSpinVar": 0,
|
||||
"_sourcePos": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_posVar": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_positionType": 0,
|
||||
"_emitterMode": 0,
|
||||
"_gravity": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_speed": 180,
|
||||
"_speedVar": 50,
|
||||
"_tangentialAccel": 80,
|
||||
"_tangentialAccelVar": 0,
|
||||
"_radialAccel": 0,
|
||||
"_radialAccelVar": 0,
|
||||
"_rotationIsDir": false,
|
||||
"_startRadius": 0,
|
||||
"_startRadiusVar": 0,
|
||||
"_endRadius": 0,
|
||||
"_endRadiusVar": 0,
|
||||
"_rotatePerS": 0,
|
||||
"_rotatePerSVar": 0,
|
||||
"_N$preview": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": null,
|
||||
"fileId": "868c9k4nqZNHpGMlTm0Yx6q"
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_radio_button_off",
|
||||
"texture": "567dcd80-8bf4-4535-8a5a-313f1caf078a",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
2,
|
||||
2,
|
||||
28,
|
||||
30
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
-1
|
||||
],
|
||||
"originalSize": [
|
||||
32,
|
||||
32
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_btn_pressed",
|
||||
"texture": "b43ff3c2-02bb-4874-81f7-f2dea6970f18",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
40
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
40,
|
||||
40
|
||||
],
|
||||
"capInsets": [
|
||||
11,
|
||||
11,
|
||||
11,
|
||||
7
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "default_btn_normal",
|
||||
"texture": "e851e89b-faa2-4484-bea6-5c01dd9f06e2",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
40
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
40,
|
||||
40
|
||||
],
|
||||
"capInsets": [
|
||||
8,
|
||||
11,
|
||||
7,
|
||||
9
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "bg",
|
||||
"texture": "00b45c8e-3d73-44a2-810a-ebebdacb33a3",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
94,
|
||||
94
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
94,
|
||||
94
|
||||
]
|
||||
}
|
||||
}
|
||||
277
RockerDemo2/library/uuid-to-mtime.json
Normal file
277
RockerDemo2/library/uuid-to-mtime.json
Normal file
@@ -0,0 +1,277 @@
|
||||
{
|
||||
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
|
||||
"asset": 1525947183044,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "image"
|
||||
},
|
||||
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
|
||||
"asset": 1525947133690,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "misc"
|
||||
},
|
||||
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "misc\\default_video.mp4"
|
||||
},
|
||||
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
|
||||
"asset": 1525947142649,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "obsolete"
|
||||
},
|
||||
"b8223619-7e38-47c4-841f-9160c232495a": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "obsolete\\atom.plist"
|
||||
},
|
||||
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
|
||||
"asset": 1525947133720,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "particle"
|
||||
},
|
||||
"b2687ac4-099e-403c-a192-ff477686f4f5": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "particle\\atom.plist"
|
||||
},
|
||||
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
|
||||
"asset": 1525947304795,
|
||||
"meta": 1523971032000,
|
||||
"relativePath": "prefab"
|
||||
},
|
||||
"29f52784-2fca-467b-92e7-8fd9ef8c57b7": {
|
||||
"asset": 1569568146066,
|
||||
"meta": 1529565486000,
|
||||
"relativePath": "Scene"
|
||||
},
|
||||
"4734c20c-0db8-4eb2-92ea-e692f4d70934": {
|
||||
"asset": 1569568146071,
|
||||
"meta": 1529565486000,
|
||||
"relativePath": "Script"
|
||||
},
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49": {
|
||||
"asset": 1569575301678,
|
||||
"meta": 1569575301687,
|
||||
"relativePath": "Scene\\helloworld.fire"
|
||||
},
|
||||
"7b81d4e8-ec84-4716-968d-500ac1d78a54": {
|
||||
"asset": 1569568146085,
|
||||
"meta": 1529565486000,
|
||||
"relativePath": "Texture"
|
||||
},
|
||||
"00b45c8e-3d73-44a2-810a-ebebdacb33a3": {
|
||||
"asset": 1529567588000,
|
||||
"meta": 1569568177276,
|
||||
"relativePath": "Texture\\bg.png"
|
||||
},
|
||||
"65e0767e-1417-4be1-9d34-0961fbdac519": {
|
||||
"asset": 1529567584000,
|
||||
"meta": 1569568177281,
|
||||
"relativePath": "Texture\\kong.png"
|
||||
},
|
||||
"6aa0aa6a-ebee-4155-a088-a687a6aadec4": {
|
||||
"asset": 1529565486000,
|
||||
"meta": 1569568177296,
|
||||
"relativePath": "Texture\\HelloWorld.png"
|
||||
},
|
||||
"a8027877-d8d6-4645-97a0-52d4a0123dba": {
|
||||
"asset": 1529565486000,
|
||||
"meta": 1569568177301,
|
||||
"relativePath": "Texture\\singleColor.png"
|
||||
},
|
||||
"71561142-4c83-4933-afca-cb7a17f67053": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821934,
|
||||
"relativePath": "image\\default_btn_disabled.png"
|
||||
},
|
||||
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821936,
|
||||
"relativePath": "image\\default_btn_normal.png"
|
||||
},
|
||||
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821942,
|
||||
"relativePath": "image\\default_btn_pressed.png"
|
||||
},
|
||||
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821944,
|
||||
"relativePath": "image\\default_panel.png"
|
||||
},
|
||||
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821950,
|
||||
"relativePath": "image\\default_progressbar.png"
|
||||
},
|
||||
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821951,
|
||||
"relativePath": "image\\default_progressbar_bg.png"
|
||||
},
|
||||
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821959,
|
||||
"relativePath": "image\\default_radio_button_off.png"
|
||||
},
|
||||
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821960,
|
||||
"relativePath": "image\\default_radio_button_on.png"
|
||||
},
|
||||
"4bab67cb-18e6-4099-b840-355f0473f890": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821965,
|
||||
"relativePath": "image\\default_scrollbar_bg.png"
|
||||
},
|
||||
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821968,
|
||||
"relativePath": "image\\default_scrollbar_vertical_bg.png"
|
||||
},
|
||||
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821975,
|
||||
"relativePath": "image\\default_scrollbar_vertical.png"
|
||||
},
|
||||
"0291c134-b3da-4098-b7b5-e397edbe947f": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821976,
|
||||
"relativePath": "image\\default_scrollbar.png"
|
||||
},
|
||||
"6e056173-d285-473c-b206-40a7fff5386e": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821982,
|
||||
"relativePath": "image\\default_sprite.png"
|
||||
},
|
||||
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821983,
|
||||
"relativePath": "image\\default_sprite_splash.png"
|
||||
},
|
||||
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821989,
|
||||
"relativePath": "image\\default_toggle_checkmark.png"
|
||||
},
|
||||
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821991,
|
||||
"relativePath": "image\\default_toggle_disabled.png"
|
||||
},
|
||||
"d29077ba-1627-4a72-9579-7b56a235340c": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821997,
|
||||
"relativePath": "image\\default_toggle_normal.png"
|
||||
},
|
||||
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571821999,
|
||||
"relativePath": "image\\default_toggle_pressed.png"
|
||||
},
|
||||
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822002,
|
||||
"relativePath": "prefab\\button.prefab"
|
||||
},
|
||||
"2c937608-2562-40ea-b264-7395df6f0cea": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822005,
|
||||
"relativePath": "prefab\\canvas.prefab"
|
||||
},
|
||||
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822007,
|
||||
"relativePath": "prefab\\editbox.prefab"
|
||||
},
|
||||
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822009,
|
||||
"relativePath": "prefab\\label.prefab"
|
||||
},
|
||||
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822011,
|
||||
"relativePath": "prefab\\layout.prefab"
|
||||
},
|
||||
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822014,
|
||||
"relativePath": "prefab\\pageview.prefab"
|
||||
},
|
||||
"cd33edea-55f5-46c2-958d-357a01384a36": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822016,
|
||||
"relativePath": "prefab\\particlesystem.prefab"
|
||||
},
|
||||
"5965ffac-69da-4b55-bcde-9225d0613c28": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822018,
|
||||
"relativePath": "prefab\\progressBar.prefab"
|
||||
},
|
||||
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822021,
|
||||
"relativePath": "prefab\\richtext.prefab"
|
||||
},
|
||||
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822023,
|
||||
"relativePath": "prefab\\scrollview.prefab"
|
||||
},
|
||||
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822026,
|
||||
"relativePath": "prefab\\slider.prefab"
|
||||
},
|
||||
"1f55e3be-b89b-4b79-88de-47fd31018044": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822028,
|
||||
"relativePath": "prefab\\sprite_splash.prefab"
|
||||
},
|
||||
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822030,
|
||||
"relativePath": "prefab\\sprite.prefab"
|
||||
},
|
||||
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822032,
|
||||
"relativePath": "prefab\\tiledmap.prefab"
|
||||
},
|
||||
"0d784963-d024-4ea6-a7db-03be0ad63010": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822034,
|
||||
"relativePath": "prefab\\toggle.prefab"
|
||||
},
|
||||
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822037,
|
||||
"relativePath": "prefab\\toggleContainer.prefab"
|
||||
},
|
||||
"d1b8be49-b0a0-435c-83b7-552bed4bbe35": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822039,
|
||||
"relativePath": "prefab\\toggleGroup.prefab"
|
||||
},
|
||||
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822041,
|
||||
"relativePath": "prefab\\videoplayer.prefab"
|
||||
},
|
||||
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
|
||||
"asset": 1523971032000,
|
||||
"meta": 1569571822043,
|
||||
"relativePath": "prefab\\webview.prefab"
|
||||
},
|
||||
"0582a5b1-3202-46db-b0ce-b0a0ff5d21ab": {
|
||||
"asset": 1569574318076,
|
||||
"meta": 1569574330827,
|
||||
"relativePath": "Script\\rocker.js"
|
||||
},
|
||||
"280c3aec-6492-4a9d-9f51-a9b00b570b4a": {
|
||||
"asset": 1569575039809,
|
||||
"meta": 1569575041920,
|
||||
"relativePath": "Script\\rocker1.js"
|
||||
}
|
||||
}
|
||||
36
RockerDemo2/local/assets.json
Normal file
36
RockerDemo2/local/assets.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"item-states": [
|
||||
{
|
||||
"folded": false,
|
||||
"id": "mount-assets"
|
||||
},
|
||||
{
|
||||
"folded": false,
|
||||
"id": "29f52784-2fca-467b-92e7-8fd9ef8c57b7"
|
||||
},
|
||||
{
|
||||
"folded": false,
|
||||
"id": "4734c20c-0db8-4eb2-92ea-e692f4d70934"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "7b81d4e8-ec84-4716-968d-500ac1d78a54"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "00b45c8e-3d73-44a2-810a-ebebdacb33a3"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "65e0767e-1417-4be1-9d34-0961fbdac519"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "6aa0aa6a-ebee-4155-a088-a687a6aadec4"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "a8027877-d8d6-4645-97a0-52d4a0123dba"
|
||||
}
|
||||
]
|
||||
}
|
||||
4
RockerDemo2/local/console.json
Normal file
4
RockerDemo2/local/console.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"fontsize": 14,
|
||||
"lineheight": 30
|
||||
}
|
||||
16
RockerDemo2/local/hierarchy.json
Normal file
16
RockerDemo2/local/hierarchy.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"item-states": [
|
||||
{
|
||||
"folded": true,
|
||||
"id": "e05GDlplhDIr5P35+m28XF"
|
||||
},
|
||||
{
|
||||
"folded": false,
|
||||
"id": "a286bbGknJLZpRpxROV6M94"
|
||||
},
|
||||
{
|
||||
"folded": true,
|
||||
"id": "91phVGUddM0pFMZE4wByrG"
|
||||
}
|
||||
]
|
||||
}
|
||||
105
RockerDemo2/local/layout.windows.json
Normal file
105
RockerDemo2/local/layout.windows.json
Normal file
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"version": "1.1.1",
|
||||
"windows": {
|
||||
"main": {
|
||||
"main": true,
|
||||
"url": "app://editor/index.html",
|
||||
"windowType": "dockable",
|
||||
"x": -8,
|
||||
"y": -8,
|
||||
"width": 1936,
|
||||
"height": 1056,
|
||||
"layout": {
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"hierarchy"
|
||||
],
|
||||
"height": 299.984375,
|
||||
"type": "panel",
|
||||
"width": 204
|
||||
},
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"assets"
|
||||
],
|
||||
"height": 289,
|
||||
"type": "panel",
|
||||
"width": 204
|
||||
}
|
||||
],
|
||||
"height": 592,
|
||||
"type": "dock-v",
|
||||
"width": 204
|
||||
},
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"scene"
|
||||
],
|
||||
"height": 289,
|
||||
"type": "panel",
|
||||
"width": 536.96875
|
||||
},
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"node-library"
|
||||
],
|
||||
"height": 289,
|
||||
"type": "panel",
|
||||
"width": 204
|
||||
}
|
||||
],
|
||||
"height": 289,
|
||||
"type": "dock-h",
|
||||
"width": 743.984375
|
||||
},
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"console",
|
||||
"timeline"
|
||||
],
|
||||
"height": 299.984375,
|
||||
"type": "panel",
|
||||
"width": 743.984375
|
||||
}
|
||||
],
|
||||
"height": 592,
|
||||
"type": "dock-v",
|
||||
"width": 743.984375
|
||||
},
|
||||
{
|
||||
"active": 0,
|
||||
"children": [
|
||||
"inspector"
|
||||
],
|
||||
"height": 592,
|
||||
"type": "panel",
|
||||
"width": 304
|
||||
}
|
||||
],
|
||||
"type": "dock-h"
|
||||
},
|
||||
"panels": [
|
||||
"node-library",
|
||||
"console",
|
||||
"inspector",
|
||||
"hierarchy",
|
||||
"assets",
|
||||
"scene",
|
||||
"timeline"
|
||||
]
|
||||
}
|
||||
},
|
||||
"panels": {}
|
||||
}
|
||||
3
RockerDemo2/local/local.json
Normal file
3
RockerDemo2/local/local.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49"
|
||||
}
|
||||
57
RockerDemo2/local/logs/project.log
Normal file
57
RockerDemo2/local/logs/project.log
Normal file
@@ -0,0 +1,57 @@
|
||||
2019-09-27T07:09:32.577Z - normal: Load ~/.CocosCreator/settings.json
|
||||
2019-09-27T07:09:32.582Z - normal: checking language setting...
|
||||
2019-09-27T07:09:32.582Z - normal: Language: zh
|
||||
2019-09-27T07:09:34.573Z - success: protocol editor-framework registered
|
||||
2019-09-27T07:09:34.573Z - success: protocol app registered
|
||||
2019-09-27T07:09:34.573Z - success: protocol theme registered
|
||||
2019-09-27T07:09:34.573Z - success: protocol packages registered
|
||||
2019-09-27T07:09:34.574Z - success: protocol unpack registerred
|
||||
2019-09-27T07:09:34.574Z - success: protocol disable-commonjs registerred
|
||||
2019-09-27T07:09:34.778Z - normal: connected!
|
||||
2019-09-27T07:09:34.782Z - normal: Check project E:\CreatorProject\test
|
||||
2019-09-27T07:09:34.783Z - normal: Initializing Cocos2d
|
||||
2019-09-27T07:09:35.009Z - normal: Initializing Asset Database
|
||||
2019-09-27T07:09:35.045Z - success: protocol uuid registerred
|
||||
2019-09-27T07:09:35.045Z - success: protocol db registerred
|
||||
2019-09-27T07:09:35.045Z - success: protocol thumbnail registerred
|
||||
2019-09-27T07:09:35.045Z - normal: Loading editor/builtin packages
|
||||
2019-09-27T07:09:35.067Z - success: anysdk loaded
|
||||
2019-09-27T07:09:35.196Z - success: assets loaded
|
||||
2019-09-27T07:09:35.198Z - success: builder loaded
|
||||
2019-09-27T07:09:35.201Z - success: cocos-analytics loaded
|
||||
2019-09-27T07:09:35.204Z - success: console loaded
|
||||
2019-09-27T07:09:35.250Z - success: fb-instant-games loaded
|
||||
2019-09-27T07:09:35.253Z - success: hierarchy loaded
|
||||
2019-09-27T07:09:35.260Z - success: inspector loaded
|
||||
2019-09-27T07:09:35.263Z - success: keystore loaded
|
||||
2019-09-27T07:09:35.266Z - success: node-library loaded
|
||||
2019-09-27T07:09:35.268Z - success: package-asset loaded
|
||||
2019-09-27T07:09:35.270Z - success: preferences loaded
|
||||
2019-09-27T07:09:35.273Z - success: project-exporter loaded
|
||||
2019-09-27T07:09:35.289Z - success: project-importer loaded
|
||||
2019-09-27T07:09:35.290Z - success: project-settings loaded
|
||||
2019-09-27T07:09:35.293Z - success: ui-kit loaded
|
||||
2019-09-27T07:09:35.295Z - success: ui-grid loaded
|
||||
2019-09-27T07:09:35.298Z - success: scene loaded
|
||||
2019-09-27T07:09:35.299Z - success: sprite-editor loaded
|
||||
2019-09-27T07:09:35.302Z - success: store loaded
|
||||
2019-09-27T07:09:35.306Z - success: timeline loaded
|
||||
2019-09-27T07:09:35.306Z - normal: Loading builtin packages
|
||||
2019-09-27T07:09:35.308Z - success: asset-db-debugger loaded
|
||||
2019-09-27T07:09:35.309Z - success: code-editor loaded
|
||||
2019-09-27T07:09:35.310Z - success: color-picker loaded
|
||||
2019-09-27T07:09:35.312Z - success: package-manager loaded
|
||||
2019-09-27T07:09:35.316Z - success: sdkbox loaded
|
||||
2019-09-27T07:09:35.319Z - success: tester loaded
|
||||
2019-09-27T07:09:35.320Z - success: ui-kit-preview-extra loaded
|
||||
2019-09-27T07:09:35.321Z - success: ui-kit-preview loaded
|
||||
2019-09-27T07:09:35.323Z - success: ui-tree loaded
|
||||
2019-09-27T07:09:36.483Z - normal: Initializing project E:\CreatorProject\test
|
||||
2019-09-27T07:09:36.486Z - normal: Loading packages
|
||||
2019-09-27T07:09:36.497Z - success: clean loaded
|
||||
2019-09-27T07:09:36.499Z - success: excel-killer loaded
|
||||
2019-09-27T07:09:36.501Z - success: resource loaded
|
||||
2019-09-27T07:09:36.501Z - normal: Watching packages
|
||||
2019-09-27T07:09:36.544Z - normal: Run Application
|
||||
2019-09-27T07:09:37.530Z - success: preview server running at http://localhost:7457
|
||||
2019-09-27T07:09:42.163Z - normal: 1.9.1
|
||||
3
RockerDemo2/local/node-library.json
Normal file
3
RockerDemo2/local/node-library.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"user": null
|
||||
}
|
||||
4
RockerDemo2/local/scene.json
Normal file
4
RockerDemo2/local/scene.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"designWidth": 640,
|
||||
"designHeight": 480
|
||||
}
|
||||
10
RockerDemo2/package.json
Normal file
10
RockerDemo2/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "CCCFramework",
|
||||
"version": "1.0.1",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eslint": "^5.12.1",
|
||||
"mobx": "^5.1.0"
|
||||
}
|
||||
}
|
||||
4
RockerDemo2/project.json
Normal file
4
RockerDemo2/project.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"engine": "cocos2d-html5",
|
||||
"packages": "packages"
|
||||
}
|
||||
13
RockerDemo2/settings/builder.json
Normal file
13
RockerDemo2/settings/builder.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"excludeScenes": [],
|
||||
"orientation": {
|
||||
"landscapeLeft": true,
|
||||
"landscapeRight": true,
|
||||
"portrait": false,
|
||||
"upsideDown": false
|
||||
},
|
||||
"packageName": "org.cocos2d.helloworld",
|
||||
"startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"title": "hello_world",
|
||||
"webOrientation": "auto"
|
||||
}
|
||||
7
RockerDemo2/settings/builder.panel.json
Normal file
7
RockerDemo2/settings/builder.panel.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"excludeScenes": [],
|
||||
"packageName": "org.cocos2d.helloworld",
|
||||
"platform": "web-mobile",
|
||||
"startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"title": "HelloWorld"
|
||||
}
|
||||
28
RockerDemo2/settings/project.json
Normal file
28
RockerDemo2/settings/project.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"collision-matrix": [
|
||||
[
|
||||
true
|
||||
]
|
||||
],
|
||||
"excluded-modules": [],
|
||||
"group-list": [
|
||||
"default"
|
||||
],
|
||||
"start-scene": "current",
|
||||
"design-resolution-width": 960,
|
||||
"design-resolution-height": 640,
|
||||
"fit-width": false,
|
||||
"fit-height": true,
|
||||
"use-project-simulator-setting": false,
|
||||
"simulator-orientation": false,
|
||||
"use-customize-simulator": false,
|
||||
"simulator-resolution": {
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"cocos-analytics": {
|
||||
"enable": false,
|
||||
"appID": "13798",
|
||||
"appSecret": "959b3ac0037d0f3c2fdce94f8421a9b2"
|
||||
}
|
||||
}
|
||||
743
RockerDemo2/temp/BackupAssets/assets/Scene/helloworld.fire
Normal file
743
RockerDemo2/temp/BackupAssets/assets/Scene/helloworld.fire
Normal file
@@ -0,0 +1,743 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_rawFiles": null,
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
"_id": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0,
|
||||
"autoReleaseAssets": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 20
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "a286bbGknJLZpRpxROV6M94",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 252,
|
||||
"g": 252,
|
||||
"b": 252,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 480,
|
||||
"y": 320
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "background",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e2e0crkOLxGrpMxpbC4iQg1",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 27,
|
||||
"g": 38,
|
||||
"b": 46,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"isAlignOnce": true,
|
||||
"_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": 200,
|
||||
"_originalHeight": 150
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "e05GDlplhDIr5P35+m28XF",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": -342,
|
||||
"y": -182
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "ceIHdk509F1pr7X5kiSCS8",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 6
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Node",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 12
|
||||
},
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "91phVGUddM0pFMZE4wByrG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 700,
|
||||
"height": 620
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 129,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "bg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 13
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "24bbcSMItJmIEY5092RAFy",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 94,
|
||||
"height": 94
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "ffc4229c-aae4-4979-bc22-b7e8b8a0364a"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "0582aWxMgJG27DOsKD/XSGr",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "rocker",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "832XRst7hJTJpB15PE8LIG",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 43,
|
||||
"height": 41
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 15
|
||||
},
|
||||
"_enabled": true,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1cb1e052-a9a8-479b-95f8-d483b97fd443"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_atlas": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hua",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_children": [],
|
||||
"_tag": -1,
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_id": "4eXgKylflG9auz6KUjabUn",
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_cascadeOpacityEnabled": true,
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_rotationX": 0,
|
||||
"_rotationY": 0,
|
||||
"_scaleX": 1,
|
||||
"_scaleY": 1,
|
||||
"_position": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_localZOrder": 0,
|
||||
"_globalZOrder": 0,
|
||||
"_opacityModifyRGB": false,
|
||||
"groupIndex": 0
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Graphics",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 17
|
||||
},
|
||||
"_enabled": true,
|
||||
"_lineWidth": 1,
|
||||
"_strokeColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_lineJoin": 2,
|
||||
"_lineCap": 0,
|
||||
"_fillColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_miterLimit": 10
|
||||
},
|
||||
{
|
||||
"__type__": "280c3rsZJJKnZ9RqbALVwtK",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"bg": {
|
||||
"__id__": 12
|
||||
},
|
||||
"rocker": {
|
||||
"__id__": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 640
|
||||
},
|
||||
"_fitWidth": false,
|
||||
"_fitHeight": true
|
||||
}
|
||||
]
|
||||
79
RockerDemo2/temp/quick-scripts/assets/Script/rocker.js
Normal file
79
RockerDemo2/temp/quick-scripts/assets/Script/rocker.js
Normal file
@@ -0,0 +1,79 @@
|
||||
(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/rocker.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
|
||||
cc._RF.push(module, '0582aWxMgJG27DOsKD/XSGr', 'rocker', __filename);
|
||||
// Script/rocker.js
|
||||
|
||||
"use strict";
|
||||
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function onLoad() {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("touchstart", this.mouseDown, this);
|
||||
this.node.on("touchmove", this.mouseMove, this);
|
||||
this.node.on('touchcancel', this.mouseEnd, this);
|
||||
this.node.on('touchend', this.mouseEnd, this);
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function update(dt) {},
|
||||
|
||||
mouseEnd: function mouseEnd() {
|
||||
this.rocker.setPosition(cc.v2(0, 0));
|
||||
},
|
||||
|
||||
|
||||
mouseDown: function mouseDown(event) {
|
||||
// this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
},
|
||||
|
||||
mouseMove: function mouseMove(event) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = Math.sin(radian) * 50;
|
||||
pos.x = Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
}
|
||||
},
|
||||
|
||||
getDistance: function getDistance(pos1, pos2) {
|
||||
var x = pos1.x - pos2.x;
|
||||
var y = pos1.y - pos2.y;
|
||||
return Math.sqrt(x * x + y * y);
|
||||
},
|
||||
|
||||
getRadian: function getRadian(point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
return this.radian;
|
||||
},
|
||||
|
||||
getAngle: function getAngle(point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
|
||||
cc._RF.pop();
|
||||
}
|
||||
if (CC_EDITOR) {
|
||||
__define(__module.exports, __require, __module);
|
||||
}
|
||||
else {
|
||||
cc.registerModuleFunc(__filename, function () {
|
||||
__define(__module.exports, __require, __module);
|
||||
});
|
||||
}
|
||||
})();
|
||||
//# sourceMappingURL=rocker.js.map
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["rocker.js"],"names":["cc","Class","extends","Component","properties","bg","Node","rocker","onLoad","start","angle","radian","node","on","mouseDown","mouseMove","mouseEnd","update","dt","setPosition","v2","event","pos","convertToNodeSpaceAR","getLocation","getDistance","p","getRadian","y","Math","sin","x","cos","pos1","pos2","sqrt","point","atan2","getAngle","PI"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGLC,gBAAY;AACRC,YAAIL,GAAGM,IADC;AAERC,gBAAQP,GAAGM;AAFH,KAHP;;AAQL;AACAE,YAAQ,kBAAY;AAChB,aAAKC,KAAL,GAAa,KAAb;AACA,aAAKC,KAAL,GAAa,CAAC,CAAd;AACA,aAAKC,MAAL,GAAc,CAAC,CAAf;AACA,aAAKC,IAAL,CAAUC,EAAV,CAAa,YAAb,EAA2B,KAAKC,SAAhC,EAA2C,IAA3C;AACA,aAAKF,IAAL,CAAUC,EAAV,CAAa,WAAb,EAA0B,KAAKE,SAA/B,EAA0C,IAA1C;AACA,aAAKH,IAAL,CAAUC,EAAV,CAAa,aAAb,EAA4B,KAAKG,QAAjC,EAA2C,IAA3C;AACA,aAAKJ,IAAL,CAAUC,EAAV,CAAa,UAAb,EAAyB,KAAKG,QAA9B,EAAwC,IAAxC;AACH,KAjBI;;AAmBL;AACAC,YAAQ,gBAAUC,EAAV,EAAc,CAErB,CAtBI;;AAwBLF,YAxBK,sBAwBM;AACP,aAAKT,MAAL,CAAYY,WAAZ,CAAwBnB,GAAGoB,EAAH,CAAM,CAAN,EAAS,CAAT,CAAxB;AACH,KA1BI;;;AA4BLN,eAAW,mBAAUO,KAAV,EAAiB;AACxB;AACH,KA9BI;;AAgCLN,eAAW,mBAAUM,KAAV,EAAiB;AACxB,YAAIC,MAAM,KAAKjB,EAAL,CAAQkB,oBAAR,CAA6BF,MAAMG,WAAN,EAA7B,CAAV;AACA,YAAI,KAAKC,WAAL,CAAiBzB,GAAG0B,CAAH,CAAK,CAAL,EAAQ,CAAR,CAAjB,EAA6BJ,GAA7B,KAAqC,EAAzC,EAA6C;AACzC,iBAAKf,MAAL,CAAYY,WAAZ,CAAwBG,GAAxB;AACH,SAFD,MAEO;AACH,gBAAIX,SAAS,KAAKgB,SAAL,CAAeL,GAAf,CAAb;AACAA,gBAAIM,CAAJ,GAAQC,KAAKC,GAAL,CAASnB,MAAT,IAAmB,EAA3B;AACAW,gBAAIS,CAAJ,GAAQF,KAAKG,GAAL,CAASrB,MAAT,IAAmB,EAA3B;AACA,iBAAKJ,MAAL,CAAYY,WAAZ,CAAwBG,GAAxB;AACH;AACJ,KA1CI;;AA4CLG,iBAAa,qBAAUQ,IAAV,EAAgBC,IAAhB,EAAsB;AAC/B,YAAIH,IAAKE,KAAKF,CAAL,GAASG,KAAKH,CAAvB;AACA,YAAIH,IAAKK,KAAKL,CAAL,GAASM,KAAKN,CAAvB;AACA,eAAOC,KAAKM,IAAL,CAAWJ,IAAIA,CAAJ,GAAQH,IAAIA,CAAvB,CAAP;AACH,KAhDI;;AAkDLD,eAAW,mBAAUS,KAAV,EAAiB;AACxB,aAAKzB,MAAL,GAAckB,KAAKQ,KAAL,CAAWD,MAAMR,CAAjB,EAAoBQ,MAAML,CAA1B,CAAd;AACA,eAAO,KAAKpB,MAAZ;AACH,KArDI;;AAuDL2B,cAAU,kBAAUF,KAAV,EAAiB;AACvB,aAAK1B,KAAL,GAAamB,KAAKQ,KAAL,CAAWD,MAAMR,CAAjB,EAAoBQ,MAAML,CAA1B,KAAgC,MAAMF,KAAKU,EAA3C,CAAb;AACA,eAAO,KAAK7B,KAAZ;AACH;AA1DI,CAAT","file":"rocker.js","sourceRoot":"..\\..\\..\\..\\assets\\Script","sourcesContent":["cc.Class({\n extends: cc.Component,\n\n properties: {\n bg: cc.Node,\n rocker: cc.Node\n },\n\n // use this for initialization\n onLoad: function () {\n this.start = false;\n this.angle = -1;\n this.radian = -1;\n this.node.on(\"touchstart\", this.mouseDown, this);\n this.node.on(\"touchmove\", this.mouseMove, this);\n this.node.on('touchcancel', this.mouseEnd, this);\n this.node.on('touchend', this.mouseEnd, this);\n },\n\n // called every frame\n update: function (dt) {\n\n },\n\n mouseEnd() {\n this.rocker.setPosition(cc.v2(0, 0));\n },\n\n mouseDown: function (event) {\n // this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());\n },\n\n mouseMove: function (event) {\n var pos = this.bg.convertToNodeSpaceAR(event.getLocation());\n if (this.getDistance(cc.p(0, 0), pos) <= 50) {\n this.rocker.setPosition(pos);\n } else {\n var radian = this.getRadian(pos);\n pos.y = Math.sin(radian) * 50;\n pos.x = Math.cos(radian) * 50;\n this.rocker.setPosition(pos);\n }\n },\n\n getDistance: function (pos1, pos2) {\n var x = (pos1.x - pos2.x);\n var y = (pos1.y - pos2.y);\n return Math.sqrt((x * x + y * y));\n },\n\n getRadian: function (point) {\n this.radian = Math.atan2(point.y, point.x);\n return this.radian;\n },\n\n getAngle: function (point) {\n this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);\n return this.angle;\n }\n});\n"]}
|
||||
87
RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js
Normal file
87
RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js
Normal file
@@ -0,0 +1,87 @@
|
||||
(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/rocker1.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
|
||||
cc._RF.push(module, '280c3rsZJJKnZ9RqbALVwtK', 'rocker1', __filename);
|
||||
// Script/rocker1.js
|
||||
|
||||
"use strict";
|
||||
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
bg: cc.Node,
|
||||
rocker: cc.Node
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function onLoad() {
|
||||
this.start = false;
|
||||
this.angle = -1;
|
||||
this.radian = -1;
|
||||
this.node.on("mousedown", this.mouseDown, this);
|
||||
this.node.on("mousemove", this.mouseMove, this);
|
||||
this.hua = this.node.getChildByName("hua");
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function update(dt) {},
|
||||
mouseDown: function mouseDown(event) {
|
||||
this.start = true;
|
||||
this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());
|
||||
this.bg.setPosition(this.startPos);
|
||||
},
|
||||
mouseMove: function mouseMove(event) {
|
||||
|
||||
if (this.start) {
|
||||
var pos = this.bg.convertToNodeSpaceAR(event.getLocation());
|
||||
if (this.getDistance(cc.p(0, 0), pos) <= 50) {
|
||||
pos.x += this.startPos.x;
|
||||
pos.y += this.startPos.y;
|
||||
this.rocker.setPosition(pos);
|
||||
} else {
|
||||
var radian = this.getRadian(pos);
|
||||
pos.y = this.startPos.y + Math.sin(radian) * 50;
|
||||
pos.x = this.startPos.x + Math.cos(radian) * 50;
|
||||
this.rocker.setPosition(pos);
|
||||
var graphics = this.hua.getComponent(cc.Graphics);
|
||||
graphics.circle(pos.x, pos.y, 3);
|
||||
//添加颜色及透明度
|
||||
var fillColor = cc.Color.RED; //声明一个颜色变量
|
||||
fillColor.a = 200; //添加透明度
|
||||
graphics.fillColor = fillColor; //填充
|
||||
|
||||
graphics.stroke();
|
||||
graphics.fill();
|
||||
}
|
||||
}
|
||||
},
|
||||
getDistance: function getDistance(pos1, pos2) {
|
||||
var x = pos1.x - pos2.x;
|
||||
var y = pos1.y - pos2.y;
|
||||
return Math.sqrt(x * x + y * y);
|
||||
},
|
||||
getRadian: function getRadian(point) {
|
||||
this.radian = Math.atan2(point.y, point.x);
|
||||
// console.log('this', this.radian);
|
||||
this.getAngle(point);
|
||||
return this.radian;
|
||||
},
|
||||
getAngle: function getAngle(point) {
|
||||
this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);
|
||||
console.log('this', this.angle);
|
||||
return this.angle;
|
||||
}
|
||||
});
|
||||
|
||||
cc._RF.pop();
|
||||
}
|
||||
if (CC_EDITOR) {
|
||||
__define(__module.exports, __require, __module);
|
||||
}
|
||||
else {
|
||||
cc.registerModuleFunc(__filename, function () {
|
||||
__define(__module.exports, __require, __module);
|
||||
});
|
||||
}
|
||||
})();
|
||||
//# sourceMappingURL=rocker1.js.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user