diff --git a/RockerDemo2/assets/Scene.meta b/RockerDemo2/assets/Scene.meta new file mode 100644 index 0000000..7da30b0 --- /dev/null +++ b/RockerDemo2/assets/Scene.meta @@ -0,0 +1,6 @@ +{ + "ver": "1.0.1", + "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", + "isGroup": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Scene/helloworld.fire b/RockerDemo2/assets/Scene/helloworld.fire new file mode 100644 index 0000000..892f1e0 --- /dev/null +++ b/RockerDemo2/assets/Scene/helloworld.fire @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/assets/Scene/helloworld.fire.meta b/RockerDemo2/assets/Scene/helloworld.fire.meta new file mode 100644 index 0000000..2bff939 --- /dev/null +++ b/RockerDemo2/assets/Scene/helloworld.fire.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.0", + "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49", + "asyncLoadAssets": false, + "autoReleaseAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Script.meta b/RockerDemo2/assets/Script.meta new file mode 100644 index 0000000..7259168 --- /dev/null +++ b/RockerDemo2/assets/Script.meta @@ -0,0 +1,6 @@ +{ + "ver": "1.0.1", + "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934", + "isGroup": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Script/rocker.js b/RockerDemo2/assets/Script/rocker.js new file mode 100644 index 0000000..13719a6 --- /dev/null +++ b/RockerDemo2/assets/Script/rocker.js @@ -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; + } +}); diff --git a/RockerDemo2/assets/Script/rocker.js.meta b/RockerDemo2/assets/Script/rocker.js.meta new file mode 100644 index 0000000..0e528c4 --- /dev/null +++ b/RockerDemo2/assets/Script/rocker.js.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "0582a5b1-3202-46db-b0ce-b0a0ff5d21ab", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Script/rocker1.js b/RockerDemo2/assets/Script/rocker1.js new file mode 100644 index 0000000..9ed9078 --- /dev/null +++ b/RockerDemo2/assets/Script/rocker1.js @@ -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; + } +}); diff --git a/RockerDemo2/assets/Script/rocker1.js.meta b/RockerDemo2/assets/Script/rocker1.js.meta new file mode 100644 index 0000000..bdd969e --- /dev/null +++ b/RockerDemo2/assets/Script/rocker1.js.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Texture.meta b/RockerDemo2/assets/Texture.meta new file mode 100644 index 0000000..f483d19 --- /dev/null +++ b/RockerDemo2/assets/Texture.meta @@ -0,0 +1,6 @@ +{ + "ver": "1.0.1", + "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54", + "isGroup": false, + "subMetas": {} +} \ No newline at end of file diff --git a/RockerDemo2/assets/Texture/HelloWorld.png b/RockerDemo2/assets/Texture/HelloWorld.png new file mode 100644 index 0000000..21d4326 Binary files /dev/null and b/RockerDemo2/assets/Texture/HelloWorld.png differ diff --git a/RockerDemo2/assets/Texture/HelloWorld.png.meta b/RockerDemo2/assets/Texture/HelloWorld.png.meta new file mode 100644 index 0000000..9c52a59 --- /dev/null +++ b/RockerDemo2/assets/Texture/HelloWorld.png.meta @@ -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": {} + } + } +} \ No newline at end of file diff --git a/RockerDemo2/assets/Texture/bg.png b/RockerDemo2/assets/Texture/bg.png new file mode 100644 index 0000000..da20474 Binary files /dev/null and b/RockerDemo2/assets/Texture/bg.png differ diff --git a/RockerDemo2/assets/Texture/bg.png.meta b/RockerDemo2/assets/Texture/bg.png.meta new file mode 100644 index 0000000..0142762 --- /dev/null +++ b/RockerDemo2/assets/Texture/bg.png.meta @@ -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": {} + } + } +} \ No newline at end of file diff --git a/RockerDemo2/assets/Texture/kong.png b/RockerDemo2/assets/Texture/kong.png new file mode 100644 index 0000000..3620245 Binary files /dev/null and b/RockerDemo2/assets/Texture/kong.png differ diff --git a/RockerDemo2/assets/Texture/kong.png.meta b/RockerDemo2/assets/Texture/kong.png.meta new file mode 100644 index 0000000..fd1adf2 --- /dev/null +++ b/RockerDemo2/assets/Texture/kong.png.meta @@ -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": {} + } + } +} \ No newline at end of file diff --git a/RockerDemo2/assets/Texture/singleColor.png b/RockerDemo2/assets/Texture/singleColor.png new file mode 100644 index 0000000..ea5bd0b Binary files /dev/null and b/RockerDemo2/assets/Texture/singleColor.png differ diff --git a/RockerDemo2/assets/Texture/singleColor.png.meta b/RockerDemo2/assets/Texture/singleColor.png.meta new file mode 100644 index 0000000..89cdf74 --- /dev/null +++ b/RockerDemo2/assets/Texture/singleColor.png.meta @@ -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": {} + } + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/00/0004d1cf-a0ad-47d8-ab17-34d3db9d35a3.json b/RockerDemo2/library/imports/00/0004d1cf-a0ad-47d8-ab17-34d3db9d35a3.json new file mode 100644 index 0000000..c75e241 --- /dev/null +++ b/RockerDemo2/library/imports/00/0004d1cf-a0ad-47d8-ab17-34d3db9d35a3.json @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js b/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js new file mode 100644 index 0000000..22ad438 --- /dev/null +++ b/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js @@ -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(); \ No newline at end of file diff --git a/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js.map b/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js.map new file mode 100644 index 0000000..79fdbf2 --- /dev/null +++ b/RockerDemo2/library/imports/05/0582a5b1-3202-46db-b0ce-b0a0ff5d21ab.js.map @@ -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"]} \ No newline at end of file diff --git a/RockerDemo2/library/imports/0d/0d784963-d024-4ea6-a7db-03be0ad63010.json b/RockerDemo2/library/imports/0d/0d784963-d024-4ea6-a7db-03be0ad63010.json new file mode 100644 index 0000000..5b207c0 --- /dev/null +++ b/RockerDemo2/library/imports/0d/0d784963-d024-4ea6-a7db-03be0ad63010.json @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/1a/1a32fc76-f0bd-4f66-980f-56929c0ca0b3.json b/RockerDemo2/library/imports/1a/1a32fc76-f0bd-4f66-980f-56929c0ca0b3.json new file mode 100644 index 0000000..f84074b --- /dev/null +++ b/RockerDemo2/library/imports/1a/1a32fc76-f0bd-4f66-980f-56929c0ca0b3.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/1c/1cb1e052-a9a8-479b-95f8-d483b97fd443.json b/RockerDemo2/library/imports/1c/1cb1e052-a9a8-479b-95f8-d483b97fd443.json new file mode 100644 index 0000000..525af71 --- /dev/null +++ b/RockerDemo2/library/imports/1c/1cb1e052-a9a8-479b-95f8-d483b97fd443.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/1f/1f55e3be-b89b-4b79-88de-47fd31018044.json b/RockerDemo2/library/imports/1f/1f55e3be-b89b-4b79-88de-47fd31018044.json new file mode 100644 index 0000000..584ba43 --- /dev/null +++ b/RockerDemo2/library/imports/1f/1f55e3be-b89b-4b79-88de-47fd31018044.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/23/232d2782-c4bd-4bb4-9e01-909f03d6d3b9.json b/RockerDemo2/library/imports/23/232d2782-c4bd-4bb4-9e01-909f03d6d3b9.json new file mode 100644 index 0000000..1cf6d6e --- /dev/null +++ b/RockerDemo2/library/imports/23/232d2782-c4bd-4bb4-9e01-909f03d6d3b9.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/27/27756ebb-3d33-44b0-9b96-e858fadd4dd4.json b/RockerDemo2/library/imports/27/27756ebb-3d33-44b0-9b96-e858fadd4dd4.json new file mode 100644 index 0000000..6efa6d7 --- /dev/null +++ b/RockerDemo2/library/imports/27/27756ebb-3d33-44b0-9b96-e858fadd4dd4.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js b/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js new file mode 100644 index 0000000..6387b35 --- /dev/null +++ b/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js @@ -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(); \ No newline at end of file diff --git a/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js.map b/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js.map new file mode 100644 index 0000000..8d4bf0a --- /dev/null +++ b/RockerDemo2/library/imports/28/280c3aec-6492-4a9d-9f51-a9b00b570b4a.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["..\\..\\..\\..\\assets\\Script/assets\\Script\\rocker1.js"],"names":["cc","Class","extends","Component","properties","bg","Node","rocker","onLoad","start","angle","radian","node","on","mouseDown","mouseMove","hua","getChildByName","update","dt","event","startPos","convertToNodeSpaceAR","getLocation","setPosition","pos","getDistance","p","x","y","getRadian","Math","sin","cos","graphics","getComponent","Graphics","circle","fillColor","Color","RED","a","stroke","fill","pos1","pos2","sqrt","point","atan2","getAngle","PI","console","log"],"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,WAAb,EAA0B,KAAKC,SAA/B,EAA0C,IAA1C;AACA,aAAKF,IAAL,CAAUC,EAAV,CAAa,WAAb,EAA0B,KAAKE,SAA/B,EAA0C,IAA1C;AACA,aAAKC,GAAL,GAAW,KAAKJ,IAAL,CAAUK,cAAV,CAAyB,KAAzB,CAAX;AACH,KAhBI;;AAkBL;AACAC,YAAQ,gBAAUC,EAAV,EAAc,CAErB,CArBI;AAsBLL,eAAW,mBAAUM,KAAV,EAAiB;AACxB,aAAKX,KAAL,GAAa,IAAb;AACA,aAAKY,QAAL,GAAgB,KAAKT,IAAL,CAAUU,oBAAV,CAA+BF,MAAMG,WAAN,EAA/B,CAAhB;AACA,aAAKlB,EAAL,CAAQmB,WAAR,CAAoB,KAAKH,QAAzB;AAGH,KA5BI;AA6BLN,eAAW,mBAAUK,KAAV,EAAiB;;AAExB,YAAI,KAAKX,KAAT,EAAgB;AACZ,gBAAIgB,MAAM,KAAKpB,EAAL,CAAQiB,oBAAR,CAA6BF,MAAMG,WAAN,EAA7B,CAAV;AACA,gBAAI,KAAKG,WAAL,CAAiB1B,GAAG2B,CAAH,CAAK,CAAL,EAAQ,CAAR,CAAjB,EAA6BF,GAA7B,KAAqC,EAAzC,EAA6C;AACzCA,oBAAIG,CAAJ,IAAS,KAAKP,QAAL,CAAcO,CAAvB;AACAH,oBAAII,CAAJ,IAAS,KAAKR,QAAL,CAAcQ,CAAvB;AACA,qBAAKtB,MAAL,CAAYiB,WAAZ,CAAwBC,GAAxB;AACH,aAJD,MAIO;AACH,oBAAId,SAAS,KAAKmB,SAAL,CAAeL,GAAf,CAAb;AACAA,oBAAII,CAAJ,GAAQ,KAAKR,QAAL,CAAcQ,CAAd,GAAkBE,KAAKC,GAAL,CAASrB,MAAT,IAAmB,EAA7C;AACAc,oBAAIG,CAAJ,GAAQ,KAAKP,QAAL,CAAcO,CAAd,GAAkBG,KAAKE,GAAL,CAAStB,MAAT,IAAmB,EAA7C;AACA,qBAAKJ,MAAL,CAAYiB,WAAZ,CAAwBC,GAAxB;AACA,oBAAIS,WAAW,KAAKlB,GAAL,CAASmB,YAAT,CAAsBnC,GAAGoC,QAAzB,CAAf;AACAF,yBAASG,MAAT,CAAgBZ,IAAIG,CAApB,EAAuBH,IAAII,CAA3B,EAA8B,CAA9B;AACA;AACA,oBAAIS,YAAYtC,GAAGuC,KAAH,CAASC,GAAzB,CARG,CAQ0B;AAC7BF,0BAAUG,CAAV,GAAc,GAAd,CATG,CASe;AAClBP,yBAASI,SAAT,GAAqBA,SAArB,CAVG,CAU4B;;AAE/BJ,yBAASQ,MAAT;AACAR,yBAASS,IAAT;AACH;AACJ;AACJ,KArDI;AAsDLjB,iBAAa,qBAAUkB,IAAV,EAAgBC,IAAhB,EAAsB;AAC/B,YAAIjB,IAAKgB,KAAKhB,CAAL,GAASiB,KAAKjB,CAAvB;AACA,YAAIC,IAAKe,KAAKf,CAAL,GAASgB,KAAKhB,CAAvB;AACA,eAAOE,KAAKe,IAAL,CAAWlB,IAAIA,CAAJ,GAAQC,IAAIA,CAAvB,CAAP;AACH,KA1DI;AA2DLC,eAAW,mBAAUiB,KAAV,EAAiB;AACxB,aAAKpC,MAAL,GAAcoB,KAAKiB,KAAL,CAAWD,MAAMlB,CAAjB,EAAoBkB,MAAMnB,CAA1B,CAAd;AACA;AACA,aAAKqB,QAAL,CAAcF,KAAd;AACA,eAAO,KAAKpC,MAAZ;AACH,KAhEI;AAiELsC,cAAU,kBAAUF,KAAV,EAAiB;AACvB,aAAKrC,KAAL,GAAaqB,KAAKiB,KAAL,CAAWD,MAAMlB,CAAjB,EAAoBkB,MAAMnB,CAA1B,KAAgC,MAAMG,KAAKmB,EAA3C,CAAb;AACAC,gBAAQC,GAAR,CAAY,MAAZ,EAAoB,KAAK1C,KAAzB;AACA,eAAO,KAAKA,KAAZ;AACH;AArEI,CAAT","file":"rocker1.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(\"mousedown\", this.mouseDown, this);\n this.node.on(\"mousemove\", this.mouseMove, this);\n this.hua = this.node.getChildByName(\"hua\");\n },\n\n // called every frame\n update: function (dt) {\n\n },\n mouseDown: function (event) {\n this.start = true;\n this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());\n this.bg.setPosition(this.startPos);\n\n\n },\n mouseMove: function (event) {\n\n if (this.start) {\n var pos = this.bg.convertToNodeSpaceAR(event.getLocation());\n if (this.getDistance(cc.p(0, 0), pos) <= 50) {\n pos.x += this.startPos.x;\n pos.y += this.startPos.y;\n this.rocker.setPosition(pos);\n } else {\n var radian = this.getRadian(pos);\n pos.y = this.startPos.y + Math.sin(radian) * 50;\n pos.x = this.startPos.x + Math.cos(radian) * 50;\n this.rocker.setPosition(pos);\n var graphics = this.hua.getComponent(cc.Graphics);\n graphics.circle(pos.x, pos.y, 3);\n //添加颜色及透明度 \n let fillColor = cc.Color.RED;//声明一个颜色变量 \n fillColor.a = 200;//添加透明度 \n graphics.fillColor = fillColor;//填充 \n\n graphics.stroke();\n graphics.fill();\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 getRadian: function (point) {\n this.radian = Math.atan2(point.y, point.x);\n // console.log('this', this.radian);\n this.getAngle(point);\n return this.radian;\n },\n getAngle: function (point) {\n this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);\n console.log('this', this.angle);\n return this.angle;\n }\n});\n"]} \ No newline at end of file diff --git a/RockerDemo2/library/imports/29/29158224-f8dd-4661-a796-1ffab537140e.json b/RockerDemo2/library/imports/29/29158224-f8dd-4661-a796-1ffab537140e.json new file mode 100644 index 0000000..b686c96 --- /dev/null +++ b/RockerDemo2/library/imports/29/29158224-f8dd-4661-a796-1ffab537140e.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/2c/2c937608-2562-40ea-b264-7395df6f0cea.json b/RockerDemo2/library/imports/2c/2c937608-2562-40ea-b264-7395df6f0cea.json new file mode 100644 index 0000000..202c3d5 --- /dev/null +++ b/RockerDemo2/library/imports/2c/2c937608-2562-40ea-b264-7395df6f0cea.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/2d/2d2f792f-a40c-49bb-a189-ed176a246e49.json b/RockerDemo2/library/imports/2d/2d2f792f-a40c-49bb-a189-ed176a246e49.json new file mode 100644 index 0000000..fe7cdb8 --- /dev/null +++ b/RockerDemo2/library/imports/2d/2d2f792f-a40c-49bb-a189-ed176a246e49.json @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/31/31bc895a-c003-4566-a9f3-2e54ae1c17dc.json b/RockerDemo2/library/imports/31/31bc895a-c003-4566-a9f3-2e54ae1c17dc.json new file mode 100644 index 0000000..38b2ed6 --- /dev/null +++ b/RockerDemo2/library/imports/31/31bc895a-c003-4566-a9f3-2e54ae1c17dc.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/31/31d8962d-babb-4ec7-be19-8e9f54a4ea99.json b/RockerDemo2/library/imports/31/31d8962d-babb-4ec7-be19-8e9f54a4ea99.json new file mode 100644 index 0000000..964e437 --- /dev/null +++ b/RockerDemo2/library/imports/31/31d8962d-babb-4ec7-be19-8e9f54a4ea99.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/32/32044bd2-481f-4cf1-a656-e2b2fb1594eb.json b/RockerDemo2/library/imports/32/32044bd2-481f-4cf1-a656-e2b2fb1594eb.json new file mode 100644 index 0000000..91b7bfd --- /dev/null +++ b/RockerDemo2/library/imports/32/32044bd2-481f-4cf1-a656-e2b2fb1594eb.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/41/410fb916-8721-4663-bab8-34397391ace7.json b/RockerDemo2/library/imports/41/410fb916-8721-4663-bab8-34397391ace7.json new file mode 100644 index 0000000..ff54225 --- /dev/null +++ b/RockerDemo2/library/imports/41/410fb916-8721-4663-bab8-34397391ace7.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/4a/4a37dd57-78cd-4cec-aad4-f11a73d12b63.json b/RockerDemo2/library/imports/4a/4a37dd57-78cd-4cec-aad4-f11a73d12b63.json new file mode 100644 index 0000000..ab7ccf9 --- /dev/null +++ b/RockerDemo2/library/imports/4a/4a37dd57-78cd-4cec-aad4-f11a73d12b63.json @@ -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": "RichText", + "_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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/59/5965ffac-69da-4b55-bcde-9225d0613c28.json b/RockerDemo2/library/imports/59/5965ffac-69da-4b55-bcde-9225d0613c28.json new file mode 100644 index 0000000..3c0b874 --- /dev/null +++ b/RockerDemo2/library/imports/59/5965ffac-69da-4b55-bcde-9225d0613c28.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/5c/5c3bb932-6c3c-468f-88a9-c8c61d458641.json b/RockerDemo2/library/imports/5c/5c3bb932-6c3c-468f-88a9-c8c61d458641.json new file mode 100644 index 0000000..510e54f --- /dev/null +++ b/RockerDemo2/library/imports/5c/5c3bb932-6c3c-468f-88a9-c8c61d458641.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/5f/5fe5dcaa-b513-4dc5-a166-573627b3a159.json b/RockerDemo2/library/imports/5f/5fe5dcaa-b513-4dc5-a166-573627b3a159.json new file mode 100644 index 0000000..7d3d5db --- /dev/null +++ b/RockerDemo2/library/imports/5f/5fe5dcaa-b513-4dc5-a166-573627b3a159.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/61/61aeb05b-3b32-452b-8eed-2b76deeed554.json b/RockerDemo2/library/imports/61/61aeb05b-3b32-452b-8eed-2b76deeed554.json new file mode 100644 index 0000000..c6b8f44 --- /dev/null +++ b/RockerDemo2/library/imports/61/61aeb05b-3b32-452b-8eed-2b76deeed554.json @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/67/67e68bc9-dad5-4ad9-a2d8-7e03d458e32f.json b/RockerDemo2/library/imports/67/67e68bc9-dad5-4ad9-a2d8-7e03d458e32f.json new file mode 100644 index 0000000..d1cccef --- /dev/null +++ b/RockerDemo2/library/imports/67/67e68bc9-dad5-4ad9-a2d8-7e03d458e32f.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/68/6827ca32-0107-4552-bab2-dfb31799bb44.json b/RockerDemo2/library/imports/68/6827ca32-0107-4552-bab2-dfb31799bb44.json new file mode 100644 index 0000000..adbbfa3 --- /dev/null +++ b/RockerDemo2/library/imports/68/6827ca32-0107-4552-bab2-dfb31799bb44.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/71/7168db62-0edc-42e5-be5d-682cf6c4a165.json b/RockerDemo2/library/imports/71/7168db62-0edc-42e5-be5d-682cf6c4a165.json new file mode 100644 index 0000000..566bd1f --- /dev/null +++ b/RockerDemo2/library/imports/71/7168db62-0edc-42e5-be5d-682cf6c4a165.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/78/785a442c-3ceb-45be-a46e-7317f625f3b9.json b/RockerDemo2/library/imports/78/785a442c-3ceb-45be-a46e-7317f625f3b9.json new file mode 100644 index 0000000..d885896 --- /dev/null +++ b/RockerDemo2/library/imports/78/785a442c-3ceb-45be-a46e-7317f625f3b9.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/7d/7d4ffd94-42d6-4045-9db7-a744229adfc4.json b/RockerDemo2/library/imports/7d/7d4ffd94-42d6-4045-9db7-a744229adfc4.json new file mode 100644 index 0000000..c15a6ce --- /dev/null +++ b/RockerDemo2/library/imports/7d/7d4ffd94-42d6-4045-9db7-a744229adfc4.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/7d/7de03a80-4457-438d-95a7-3e7cdffd6086.json b/RockerDemo2/library/imports/7d/7de03a80-4457-438d-95a7-3e7cdffd6086.json new file mode 100644 index 0000000..d383caf --- /dev/null +++ b/RockerDemo2/library/imports/7d/7de03a80-4457-438d-95a7-3e7cdffd6086.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/88/88e79fd5-96b4-4a77-a1f4-312467171014.json b/RockerDemo2/library/imports/88/88e79fd5-96b4-4a77-a1f4-312467171014.json new file mode 100644 index 0000000..b74356a --- /dev/null +++ b/RockerDemo2/library/imports/88/88e79fd5-96b4-4a77-a1f4-312467171014.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/8c/8c5001fd-07ee-4a4b-a8a0-63e15195e94d.json b/RockerDemo2/library/imports/8c/8c5001fd-07ee-4a4b-a8a0-63e15195e94d.json new file mode 100644 index 0000000..620e3b8 --- /dev/null +++ b/RockerDemo2/library/imports/8c/8c5001fd-07ee-4a4b-a8a0-63e15195e94d.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/8c/8cdb44ac-a3f6-449f-b354-7cd48cf84061.json b/RockerDemo2/library/imports/8c/8cdb44ac-a3f6-449f-b354-7cd48cf84061.json new file mode 100644 index 0000000..0aa4695 --- /dev/null +++ b/RockerDemo2/library/imports/8c/8cdb44ac-a3f6-449f-b354-7cd48cf84061.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/90/90004ad6-2f6d-40e1-93ef-b714375c6f06.json b/RockerDemo2/library/imports/90/90004ad6-2f6d-40e1-93ef-b714375c6f06.json new file mode 100644 index 0000000..54b81d4 --- /dev/null +++ b/RockerDemo2/library/imports/90/90004ad6-2f6d-40e1-93ef-b714375c6f06.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/96/96083d03-c332-4a3f-9386-d03e2d19e8ee.json b/RockerDemo2/library/imports/96/96083d03-c332-4a3f-9386-d03e2d19e8ee.json new file mode 100644 index 0000000..f4bd80a --- /dev/null +++ b/RockerDemo2/library/imports/96/96083d03-c332-4a3f-9386-d03e2d19e8ee.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/97/972b9a4d-47ee-4c74-b5c3-61d8a69bc29f.json b/RockerDemo2/library/imports/97/972b9a4d-47ee-4c74-b5c3-61d8a69bc29f.json new file mode 100644 index 0000000..1b24b6b --- /dev/null +++ b/RockerDemo2/library/imports/97/972b9a4d-47ee-4c74-b5c3-61d8a69bc29f.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/9b/9bbda31e-ad49-43c9-aaf2-f7d9896bac69.json b/RockerDemo2/library/imports/9b/9bbda31e-ad49-43c9-aaf2-f7d9896bac69.json new file mode 100644 index 0000000..d8ebc68 --- /dev/null +++ b/RockerDemo2/library/imports/9b/9bbda31e-ad49-43c9-aaf2-f7d9896bac69.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/a2/a23235d1-15db-4b95-8439-a2e005bfff91.json b/RockerDemo2/library/imports/a2/a23235d1-15db-4b95-8439-a2e005bfff91.json new file mode 100644 index 0000000..de23603 --- /dev/null +++ b/RockerDemo2/library/imports/a2/a23235d1-15db-4b95-8439-a2e005bfff91.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/bf/bf0a434c-84dd-4a8e-a08a-7a36f180cc75.json b/RockerDemo2/library/imports/bf/bf0a434c-84dd-4a8e-a08a-7a36f180cc75.json new file mode 100644 index 0000000..4141145 --- /dev/null +++ b/RockerDemo2/library/imports/bf/bf0a434c-84dd-4a8e-a08a-7a36f180cc75.json @@ -0,0 +1,1025 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "toggleContainer", + "_objFlags": 0, + "_rawFiles": null, + "data": { + "__id__": 1 + }, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "toggleContainer", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 11 + }, + { + "__id__": 20 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 29 + } + ], + "_prefab": { + "__id__": 30 + }, + "_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": 221, + "height": 61 + }, + "_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": "toggle1", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 6 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 9 + } + ], + "_prefab": { + "__id__": 10 + }, + "_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": 41, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": -62, + "y": 3 + }, + "_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 + } + ], + "_prefab": { + "__id__": 5 + }, + "_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": 30 + }, + "_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__": 3 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "12e439SyJxPm6pHTRj/H92b", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 8 + }, + "_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": 32, + "height": 32 + }, + "_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__": 6 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "d5f81EvT59O3IYhi0b8awdA", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_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__": 7 + }, + "checkEvents": [], + "_N$isChecked": true + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "f8ae482OYFF86r5AHHZHzkB", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "toggle2", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 12 + }, + { + "__id__": 15 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 18 + } + ], + "_prefab": { + "__id__": 19 + }, + "_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": 42, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": 15, + "y": 3 + }, + "_skewX": 0, + "_skewY": 0, + "_localZOrder": 0, + "_globalZOrder": 0, + "_opacityModifyRGB": false, + "groupIndex": 0 + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 13 + } + ], + "_prefab": { + "__id__": 14 + }, + "_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": 30 + }, + "_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__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "23182iNXjhGfbiM+k2MoPhG", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [], + "_tag": -1, + "_active": false, + "_components": [ + { + "__id__": 16 + } + ], + "_prefab": { + "__id__": 17 + }, + "_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": 32, + "height": 32 + }, + "_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__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "67160qO3xZPvYfuiiHVaiyt", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_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__": 11 + }, + "toggleGroup": null, + "checkMark": { + "__id__": 16 + }, + "checkEvents": [], + "_N$isChecked": true + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "4b82d4NuWJDnZcPM+lR6By/", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "toggle3", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 21 + }, + { + "__id__": 24 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 27 + } + ], + "_prefab": { + "__id__": 28 + }, + "_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": 37, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": 91, + "y": 3 + }, + "_skewX": 0, + "_skewY": 0, + "_localZOrder": 0, + "_globalZOrder": 0, + "_opacityModifyRGB": false, + "groupIndex": 0 + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 0, + "_parent": { + "__id__": 20 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 22 + } + ], + "_prefab": { + "__id__": 23 + }, + "_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": 30 + }, + "_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__": 21 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "7042dNy6Q1OmYWrdrd+O8Q7", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 20 + }, + "_children": [], + "_tag": -1, + "_active": false, + "_components": [ + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 26 + }, + "_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": 32, + "height": 32 + }, + "_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__": 24 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "faafbv5RyVCB5deTlAulXVo", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_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__": 20 + }, + "toggleGroup": null, + "checkMark": { + "__id__": 25 + }, + "checkEvents": [], + "_N$isChecked": true + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "2b5ebCn5ohKwJt/iEtuj16b", + "sync": false + }, + { + "__type__": "cc.ToggleContainer", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "allowSwitchOff": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "bf0a434c-84dd-4a8e-a08a-7a36f180cc75" + }, + "fileId": "8762b/ljEVCT4m/QHu2tS1g", + "sync": false + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/c9/c9fa51ff-3f01-4601-8f80-325d1b11dab7.json b/RockerDemo2/library/imports/c9/c9fa51ff-3f01-4601-8f80-325d1b11dab7.json new file mode 100644 index 0000000..6f8998b --- /dev/null +++ b/RockerDemo2/library/imports/c9/c9fa51ff-3f01-4601-8f80-325d1b11dab7.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/ca/ca8401fe-ad6e-41a8-bd46-8e3e4e9945be.json b/RockerDemo2/library/imports/ca/ca8401fe-ad6e-41a8-bd46-8e3e4e9945be.json new file mode 100644 index 0000000..9b2a632 --- /dev/null +++ b/RockerDemo2/library/imports/ca/ca8401fe-ad6e-41a8-bd46-8e3e4e9945be.json @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/cd/cd33edea-55f5-46c2-958d-357a01384a36.json b/RockerDemo2/library/imports/cd/cd33edea-55f5-46c2-958d-357a01384a36.json new file mode 100644 index 0000000..88edc96 --- /dev/null +++ b/RockerDemo2/library/imports/cd/cd33edea-55f5-46c2-958d-357a01384a36.json @@ -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" + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/d1/d1b8be49-b0a0-435c-83b7-552bed4bbe35.json b/RockerDemo2/library/imports/d1/d1b8be49-b0a0-435c-83b7-552bed4bbe35.json new file mode 100644 index 0000000..f213ec9 --- /dev/null +++ b/RockerDemo2/library/imports/d1/d1b8be49-b0a0-435c-83b7-552bed4bbe35.json @@ -0,0 +1,1037 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "toggleGroup", + "_objFlags": 0, + "_rawFiles": null, + "data": { + "__id__": 1 + }, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "toggleGroup", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 12 + }, + { + "__id__": 21 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 30 + }, + "_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": 221, + "height": 61 + }, + "_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": "toggle1", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 6 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 9 + } + ], + "_prefab": { + "__id__": 11 + }, + "_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": 41, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": -62, + "y": 3 + }, + "_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 + } + ], + "_prefab": { + "__id__": 5 + }, + "_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": 30 + }, + "_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__": 3 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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": { + "__id__": 0 + }, + "fileId": "77Nw/VkxBDlYn1tJHSiW69", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 8 + }, + "_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": 32, + "height": 32 + }, + "_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__": 6 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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": { + "__id__": 0 + }, + "fileId": "eabUMeFj1JHYgwbMpSg1zc", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_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, + "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$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 2 + }, + "toggleGroup": { + "__id__": 10 + }, + "checkMark": { + "__id__": 7 + }, + "checkEvents": [], + "_N$isChecked": true + }, + { + "__type__": "cc.ToggleGroup", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "allowSwitchOff": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "25DeyD94tFkalmK6Tg7UdE", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "toggle2", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 13 + }, + { + "__id__": 16 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 20 + }, + "_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": 42, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": 15, + "y": 3 + }, + "_skewX": 0, + "_skewY": 0, + "_localZOrder": 0, + "_globalZOrder": 0, + "_opacityModifyRGB": false, + "groupIndex": 0 + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 0, + "_parent": { + "__id__": 12 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 14 + } + ], + "_prefab": { + "__id__": 15 + }, + "_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": 30 + }, + "_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__": 13 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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": { + "__id__": 0 + }, + "fileId": "72QEruyX5CrIAFmVn9a3F6", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 12 + }, + "_children": [], + "_tag": -1, + "_active": false, + "_components": [ + { + "__id__": 17 + } + ], + "_prefab": { + "__id__": 18 + }, + "_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": 32, + "height": 32 + }, + "_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__": 16 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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": { + "__id__": 0 + }, + "fileId": "c7L6vaJVRBDZfq/ZftHdp1", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_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, + "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$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 12 + }, + "toggleGroup": { + "__id__": 10 + }, + "checkMark": { + "__id__": 17 + }, + "checkEvents": [], + "_N$isChecked": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "61w1JEqOlGsaSeDBTtJqu3", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "toggle3", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 22 + }, + { + "__id__": 25 + } + ], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 28 + } + ], + "_prefab": { + "__id__": 29 + }, + "_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": 37, + "height": 28 + }, + "_rotationX": 0, + "_rotationY": 0, + "_scaleX": 1, + "_scaleY": 1, + "_position": { + "__type__": "cc.Vec2", + "x": 91, + "y": 3 + }, + "_skewX": 0, + "_skewY": 0, + "_localZOrder": 0, + "_globalZOrder": 0, + "_opacityModifyRGB": false, + "groupIndex": 0 + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 0, + "_parent": { + "__id__": 21 + }, + "_children": [], + "_tag": -1, + "_active": true, + "_components": [ + { + "__id__": 23 + } + ], + "_prefab": { + "__id__": 24 + }, + "_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": 30 + }, + "_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__": 22 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f" + }, + "_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": { + "__id__": 0 + }, + "fileId": "9dSgcVxjxAToRrdMlwhWpR", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "checkmark", + "_objFlags": 0, + "_parent": { + "__id__": 21 + }, + "_children": [], + "_tag": -1, + "_active": false, + "_components": [ + { + "__id__": 26 + } + ], + "_prefab": { + "__id__": 27 + }, + "_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": 32, + "height": 32 + }, + "_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__": 25 + }, + "_enabled": true, + "_spriteFrame": { + "__uuid__": "1a32fc76-f0bd-4f66-980f-56929c0ca0b3" + }, + "_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": { + "__id__": 0 + }, + "fileId": "24Fq6PF85FxZmTxjsAlpwl", + "sync": false + }, + { + "__type__": "cc.Toggle", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 21 + }, + "_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, + "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$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 21 + }, + "toggleGroup": { + "__id__": 10 + }, + "checkMark": { + "__id__": 26 + }, + "checkEvents": [], + "_N$isChecked": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "99UOOvWWtLsock+J9rw0jb", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d7d5Rc1ntDm421UemL1Qj0", + "sync": false + } +] \ No newline at end of file diff --git a/RockerDemo2/library/imports/e7/e7aba14b-f956-4480-b254-8d57832e273f.json b/RockerDemo2/library/imports/e7/e7aba14b-f956-4480-b254-8d57832e273f.json new file mode 100644 index 0000000..6ff2224 --- /dev/null +++ b/RockerDemo2/library/imports/e7/e7aba14b-f956-4480-b254-8d57832e273f.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/e9/e9ec654c-97a2-4787-9325-e6a10375219a.json b/RockerDemo2/library/imports/e9/e9ec654c-97a2-4787-9325-e6a10375219a.json new file mode 100644 index 0000000..6c56560 --- /dev/null +++ b/RockerDemo2/library/imports/e9/e9ec654c-97a2-4787-9325-e6a10375219a.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/f0/f0048c10-f03e-4c97-b9d3-3506e1d58952.json b/RockerDemo2/library/imports/f0/f0048c10-f03e-4c97-b9d3-3506e1d58952.json new file mode 100644 index 0000000..f54fdf1 --- /dev/null +++ b/RockerDemo2/library/imports/f0/f0048c10-f03e-4c97-b9d3-3506e1d58952.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/imports/ff/ffc4229c-aae4-4979-bc22-b7e8b8a0364a.json b/RockerDemo2/library/imports/ff/ffc4229c-aae4-4979-bc22-b7e8b8a0364a.json new file mode 100644 index 0000000..e06e603 --- /dev/null +++ b/RockerDemo2/library/imports/ff/ffc4229c-aae4-4979-bc22-b7e8b8a0364a.json @@ -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 + ] + } +} \ No newline at end of file diff --git a/RockerDemo2/library/uuid-to-mtime.json b/RockerDemo2/library/uuid-to-mtime.json new file mode 100644 index 0000000..5579930 --- /dev/null +++ b/RockerDemo2/library/uuid-to-mtime.json @@ -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" + } +} \ No newline at end of file diff --git a/RockerDemo2/local/assets.json b/RockerDemo2/local/assets.json new file mode 100644 index 0000000..a29d716 --- /dev/null +++ b/RockerDemo2/local/assets.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/RockerDemo2/local/console.json b/RockerDemo2/local/console.json new file mode 100644 index 0000000..ab68954 --- /dev/null +++ b/RockerDemo2/local/console.json @@ -0,0 +1,4 @@ +{ + "fontsize": 14, + "lineheight": 30 +} \ No newline at end of file diff --git a/RockerDemo2/local/hierarchy.json b/RockerDemo2/local/hierarchy.json new file mode 100644 index 0000000..b4eba52 --- /dev/null +++ b/RockerDemo2/local/hierarchy.json @@ -0,0 +1,16 @@ +{ + "item-states": [ + { + "folded": true, + "id": "e05GDlplhDIr5P35+m28XF" + }, + { + "folded": false, + "id": "a286bbGknJLZpRpxROV6M94" + }, + { + "folded": true, + "id": "91phVGUddM0pFMZE4wByrG" + } + ] +} \ No newline at end of file diff --git a/RockerDemo2/local/layout.windows.json b/RockerDemo2/local/layout.windows.json new file mode 100644 index 0000000..d235884 --- /dev/null +++ b/RockerDemo2/local/layout.windows.json @@ -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": {} +} \ No newline at end of file diff --git a/RockerDemo2/local/local.json b/RockerDemo2/local/local.json new file mode 100644 index 0000000..3d896a1 --- /dev/null +++ b/RockerDemo2/local/local.json @@ -0,0 +1,3 @@ +{ + "last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49" +} \ No newline at end of file diff --git a/RockerDemo2/local/logs/project.log b/RockerDemo2/local/logs/project.log new file mode 100644 index 0000000..6332251 --- /dev/null +++ b/RockerDemo2/local/logs/project.log @@ -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 diff --git a/RockerDemo2/local/node-library.json b/RockerDemo2/local/node-library.json new file mode 100644 index 0000000..6a2b9fd --- /dev/null +++ b/RockerDemo2/local/node-library.json @@ -0,0 +1,3 @@ +{ + "user": null +} \ No newline at end of file diff --git a/RockerDemo2/local/scene.json b/RockerDemo2/local/scene.json new file mode 100644 index 0000000..71329ca --- /dev/null +++ b/RockerDemo2/local/scene.json @@ -0,0 +1,4 @@ +{ + "designWidth": 640, + "designHeight": 480 +} \ No newline at end of file diff --git a/RockerDemo2/package.json b/RockerDemo2/package.json new file mode 100644 index 0000000..f13f8df --- /dev/null +++ b/RockerDemo2/package.json @@ -0,0 +1,10 @@ +{ + "name": "CCCFramework", + "version": "1.0.1", + "main": "index.js", + "license": "MIT", + "dependencies": { + "eslint": "^5.12.1", + "mobx": "^5.1.0" + } +} diff --git a/RockerDemo2/project.json b/RockerDemo2/project.json new file mode 100644 index 0000000..4257d04 --- /dev/null +++ b/RockerDemo2/project.json @@ -0,0 +1,4 @@ +{ + "engine": "cocos2d-html5", + "packages": "packages" +} \ No newline at end of file diff --git a/RockerDemo2/settings/builder.json b/RockerDemo2/settings/builder.json new file mode 100644 index 0000000..09f915c --- /dev/null +++ b/RockerDemo2/settings/builder.json @@ -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" +} \ No newline at end of file diff --git a/RockerDemo2/settings/builder.panel.json b/RockerDemo2/settings/builder.panel.json new file mode 100644 index 0000000..6a7c356 --- /dev/null +++ b/RockerDemo2/settings/builder.panel.json @@ -0,0 +1,7 @@ +{ + "excludeScenes": [], + "packageName": "org.cocos2d.helloworld", + "platform": "web-mobile", + "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", + "title": "HelloWorld" +} \ No newline at end of file diff --git a/RockerDemo2/settings/project.json b/RockerDemo2/settings/project.json new file mode 100644 index 0000000..ac399c6 --- /dev/null +++ b/RockerDemo2/settings/project.json @@ -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" + } +} \ No newline at end of file diff --git a/RockerDemo2/temp/BackupAssets/assets/Scene/helloworld.fire b/RockerDemo2/temp/BackupAssets/assets/Scene/helloworld.fire new file mode 100644 index 0000000..892f1e0 --- /dev/null +++ b/RockerDemo2/temp/BackupAssets/assets/Scene/helloworld.fire @@ -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 + } +] \ No newline at end of file diff --git a/RockerDemo2/temp/quick-scripts/assets/Script/rocker.js b/RockerDemo2/temp/quick-scripts/assets/Script/rocker.js new file mode 100644 index 0000000..df8639c --- /dev/null +++ b/RockerDemo2/temp/quick-scripts/assets/Script/rocker.js @@ -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 + \ No newline at end of file diff --git a/RockerDemo2/temp/quick-scripts/assets/Script/rocker.js.map b/RockerDemo2/temp/quick-scripts/assets/Script/rocker.js.map new file mode 100644 index 0000000..73ba261 --- /dev/null +++ b/RockerDemo2/temp/quick-scripts/assets/Script/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"]} \ No newline at end of file diff --git a/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js b/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js new file mode 100644 index 0000000..7b7a5e8 --- /dev/null +++ b/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js @@ -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 + \ No newline at end of file diff --git a/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js.map b/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js.map new file mode 100644 index 0000000..63f8fd4 --- /dev/null +++ b/RockerDemo2/temp/quick-scripts/assets/Script/rocker1.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["rocker1.js"],"names":["cc","Class","extends","Component","properties","bg","Node","rocker","onLoad","start","angle","radian","node","on","mouseDown","mouseMove","hua","getChildByName","update","dt","event","startPos","convertToNodeSpaceAR","getLocation","setPosition","pos","getDistance","p","x","y","getRadian","Math","sin","cos","graphics","getComponent","Graphics","circle","fillColor","Color","RED","a","stroke","fill","pos1","pos2","sqrt","point","atan2","getAngle","PI","console","log"],"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,WAAb,EAA0B,KAAKC,SAA/B,EAA0C,IAA1C;AACA,aAAKF,IAAL,CAAUC,EAAV,CAAa,WAAb,EAA0B,KAAKE,SAA/B,EAA0C,IAA1C;AACA,aAAKC,GAAL,GAAW,KAAKJ,IAAL,CAAUK,cAAV,CAAyB,KAAzB,CAAX;AACH,KAhBI;;AAkBL;AACAC,YAAQ,gBAAUC,EAAV,EAAc,CAErB,CArBI;AAsBLL,eAAW,mBAAUM,KAAV,EAAiB;AACxB,aAAKX,KAAL,GAAa,IAAb;AACA,aAAKY,QAAL,GAAgB,KAAKT,IAAL,CAAUU,oBAAV,CAA+BF,MAAMG,WAAN,EAA/B,CAAhB;AACA,aAAKlB,EAAL,CAAQmB,WAAR,CAAoB,KAAKH,QAAzB;AAGH,KA5BI;AA6BLN,eAAW,mBAAUK,KAAV,EAAiB;;AAExB,YAAI,KAAKX,KAAT,EAAgB;AACZ,gBAAIgB,MAAM,KAAKpB,EAAL,CAAQiB,oBAAR,CAA6BF,MAAMG,WAAN,EAA7B,CAAV;AACA,gBAAI,KAAKG,WAAL,CAAiB1B,GAAG2B,CAAH,CAAK,CAAL,EAAQ,CAAR,CAAjB,EAA6BF,GAA7B,KAAqC,EAAzC,EAA6C;AACzCA,oBAAIG,CAAJ,IAAS,KAAKP,QAAL,CAAcO,CAAvB;AACAH,oBAAII,CAAJ,IAAS,KAAKR,QAAL,CAAcQ,CAAvB;AACA,qBAAKtB,MAAL,CAAYiB,WAAZ,CAAwBC,GAAxB;AACH,aAJD,MAIO;AACH,oBAAId,SAAS,KAAKmB,SAAL,CAAeL,GAAf,CAAb;AACAA,oBAAII,CAAJ,GAAQ,KAAKR,QAAL,CAAcQ,CAAd,GAAkBE,KAAKC,GAAL,CAASrB,MAAT,IAAmB,EAA7C;AACAc,oBAAIG,CAAJ,GAAQ,KAAKP,QAAL,CAAcO,CAAd,GAAkBG,KAAKE,GAAL,CAAStB,MAAT,IAAmB,EAA7C;AACA,qBAAKJ,MAAL,CAAYiB,WAAZ,CAAwBC,GAAxB;AACA,oBAAIS,WAAW,KAAKlB,GAAL,CAASmB,YAAT,CAAsBnC,GAAGoC,QAAzB,CAAf;AACAF,yBAASG,MAAT,CAAgBZ,IAAIG,CAApB,EAAuBH,IAAII,CAA3B,EAA8B,CAA9B;AACA;AACA,oBAAIS,YAAYtC,GAAGuC,KAAH,CAASC,GAAzB,CARG,CAQ0B;AAC7BF,0BAAUG,CAAV,GAAc,GAAd,CATG,CASe;AAClBP,yBAASI,SAAT,GAAqBA,SAArB,CAVG,CAU4B;;AAE/BJ,yBAASQ,MAAT;AACAR,yBAASS,IAAT;AACH;AACJ;AACJ,KArDI;AAsDLjB,iBAAa,qBAAUkB,IAAV,EAAgBC,IAAhB,EAAsB;AAC/B,YAAIjB,IAAKgB,KAAKhB,CAAL,GAASiB,KAAKjB,CAAvB;AACA,YAAIC,IAAKe,KAAKf,CAAL,GAASgB,KAAKhB,CAAvB;AACA,eAAOE,KAAKe,IAAL,CAAWlB,IAAIA,CAAJ,GAAQC,IAAIA,CAAvB,CAAP;AACH,KA1DI;AA2DLC,eAAW,mBAAUiB,KAAV,EAAiB;AACxB,aAAKpC,MAAL,GAAcoB,KAAKiB,KAAL,CAAWD,MAAMlB,CAAjB,EAAoBkB,MAAMnB,CAA1B,CAAd;AACA;AACA,aAAKqB,QAAL,CAAcF,KAAd;AACA,eAAO,KAAKpC,MAAZ;AACH,KAhEI;AAiELsC,cAAU,kBAAUF,KAAV,EAAiB;AACvB,aAAKrC,KAAL,GAAaqB,KAAKiB,KAAL,CAAWD,MAAMlB,CAAjB,EAAoBkB,MAAMnB,CAA1B,KAAgC,MAAMG,KAAKmB,EAA3C,CAAb;AACAC,gBAAQC,GAAR,CAAY,MAAZ,EAAoB,KAAK1C,KAAzB;AACA,eAAO,KAAKA,KAAZ;AACH;AArEI,CAAT","file":"rocker1.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(\"mousedown\", this.mouseDown, this);\n this.node.on(\"mousemove\", this.mouseMove, this);\n this.hua = this.node.getChildByName(\"hua\");\n },\n\n // called every frame\n update: function (dt) {\n\n },\n mouseDown: function (event) {\n this.start = true;\n this.startPos = this.node.convertToNodeSpaceAR(event.getLocation());\n this.bg.setPosition(this.startPos);\n\n\n },\n mouseMove: function (event) {\n\n if (this.start) {\n var pos = this.bg.convertToNodeSpaceAR(event.getLocation());\n if (this.getDistance(cc.p(0, 0), pos) <= 50) {\n pos.x += this.startPos.x;\n pos.y += this.startPos.y;\n this.rocker.setPosition(pos);\n } else {\n var radian = this.getRadian(pos);\n pos.y = this.startPos.y + Math.sin(radian) * 50;\n pos.x = this.startPos.x + Math.cos(radian) * 50;\n this.rocker.setPosition(pos);\n var graphics = this.hua.getComponent(cc.Graphics);\n graphics.circle(pos.x, pos.y, 3);\n //添加颜色及透明度 \n let fillColor = cc.Color.RED;//声明一个颜色变量 \n fillColor.a = 200;//添加透明度 \n graphics.fillColor = fillColor;//填充 \n\n graphics.stroke();\n graphics.fill();\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 getRadian: function (point) {\n this.radian = Math.atan2(point.y, point.x);\n // console.log('this', this.radian);\n this.getAngle(point);\n return this.radian;\n },\n getAngle: function (point) {\n this.angle = Math.atan2(point.y, point.x) * (180 / Math.PI);\n console.log('this', this.angle);\n return this.angle;\n }\n});\n"]} \ No newline at end of file