From d7246ec672f04a92cb5b50243c32a58662670b5f Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 26 Feb 2019 13:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E7=8A=B6=E6=80=81=E6=9D=A1=E5=8F=8A=E7=99=BB=E5=87=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/prefabs/content.prefab | 1299 +++++++++++++++-------- assets/scripts/scrollContent.js | 9 + 2 files changed, 845 insertions(+), 463 deletions(-) diff --git a/assets/resources/prefabs/content.prefab b/assets/resources/prefabs/content.prefab index 21a6489..3f46b2b 100644 --- a/assets/resources/prefabs/content.prefab +++ b/assets/resources/prefabs/content.prefab @@ -20,27 +20,27 @@ "__id__": 2 }, { - "__id__": 25 + "__id__": 35 }, { - "__id__": 52 + "__id__": 62 }, { - "__id__": 68 + "__id__": 78 }, { - "__id__": 112 + "__id__": 122 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 114 + "__id__": 124 } ], "_prefab": { - "__id__": 115 + "__id__": 125 }, "_opacity": 255, "_color": { @@ -109,20 +109,23 @@ }, { "__id__": 18 + }, + { + "__id__": 22 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 22 + "__id__": 32 }, { - "__id__": 23 + "__id__": 33 } ], "_prefab": { - "__id__": 24 + "__id__": 34 }, "_opacity": 255, "_color": { @@ -841,6 +844,370 @@ "fileId": "88axSUuZBOiqZ6YnD1JXLJ", "sync": false }, + { + "__type__": "cc.Node", + "_name": "login_status_label", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 23 + } + ], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 30 + } + ], + "_prefab": { + "__id__": 31 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 1, + "g": 76, + "b": 147, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 217.99, + "height": 45 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -43, + "y": -654, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "logoutBtn", + "_objFlags": 0, + "_parent": { + "__id__": 22 + }, + "_children": [ + { + "__id__": 24 + } + ], + "_active": true, + "_level": 4, + "_components": [ + { + "__id__": 27 + }, + { + "__id__": 28 + } + ], + "_prefab": { + "__id__": 29 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 1, + "g": 76, + "b": 147, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 102.23, + "height": 50 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 193, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "New Sprite(Splash)", + "_objFlags": 0, + "_parent": { + "__id__": 23 + }, + "_children": [], + "_active": true, + "_level": 5, + "_components": [ + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 26 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 1, + "g": 76, + "b": 147, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 98, + "height": 4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": -29, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 24 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_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, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "65uS+O3WRNWYL7bXPddqLm", + "sync": false + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "_srcBlendFactor": 1, + "_dstBlendFactor": 771, + "_useOriginalSize": false, + "_string": "[注销]", + "_N$string": "[注销]", + "_fontSize": 40, + "_lineHeight": 50, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "transition": 0, + "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__": 23 + }, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "41mwaIrflKx7ALPLEZqmPh", + "sync": false + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 22 + }, + "_enabled": true, + "_srcBlendFactor": 1, + "_dstBlendFactor": 771, + "_useOriginalSize": false, + "_string": "150****8051", + "_N$string": "150****8051", + "_fontSize": 40, + "_lineHeight": 45, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "bcpHsJN3ZBjbZYSEt5H8Fi", + "sync": false + }, { "__type__": "cc.Sprite", "_name": "", @@ -916,24 +1283,24 @@ }, "_children": [ { - "__id__": 26 + "__id__": 36 }, { - "__id__": 32 + "__id__": 42 }, { - "__id__": 35 + "__id__": 45 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 50 + "__id__": 60 } ], "_prefab": { - "__id__": 51 + "__id__": 61 }, "_opacity": 255, "_color": { @@ -985,22 +1352,22 @@ "_name": "btn_back", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 35 }, "_children": [ { - "__id__": 27 + "__id__": 37 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 30 + "__id__": 40 } ], "_prefab": { - "__id__": 31 + "__id__": 41 }, "_opacity": 255, "_color": { @@ -1052,18 +1419,18 @@ "_name": "btn_title_3", "_objFlags": 0, "_parent": { - "__id__": 26 + "__id__": 36 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 28 + "__id__": 38 } ], "_prefab": { - "__id__": 29 + "__id__": 39 }, "_opacity": 255, "_color": { @@ -1115,7 +1482,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 27 + "__id__": 37 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1154,7 +1521,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 26 + "__id__": 36 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1193,18 +1560,18 @@ "_name": "part3_bg", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 35 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 33 + "__id__": 43 } ], "_prefab": { - "__id__": 34 + "__id__": 44 }, "_opacity": 255, "_color": { @@ -1256,7 +1623,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 32 + "__id__": 42 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1295,31 +1662,31 @@ "_name": "border", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 35 }, "_children": [ { - "__id__": 36 + "__id__": 46 }, { - "__id__": 39 + "__id__": 49 }, { - "__id__": 42 + "__id__": 52 }, { - "__id__": 45 + "__id__": 55 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 48 + "__id__": 58 } ], "_prefab": { - "__id__": 49 + "__id__": 59 }, "_opacity": 255, "_color": { @@ -1371,18 +1738,18 @@ "_name": "scope", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 45 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 37 + "__id__": 47 } ], "_prefab": { - "__id__": 38 + "__id__": 48 }, "_opacity": 255, "_color": { @@ -1434,7 +1801,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 36 + "__id__": 46 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1473,18 +1840,18 @@ "_name": "scope", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 45 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 40 + "__id__": 50 } ], "_prefab": { - "__id__": 41 + "__id__": 51 }, "_opacity": 255, "_color": { @@ -1536,7 +1903,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 39 + "__id__": 49 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1575,18 +1942,18 @@ "_name": "border_bl", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 45 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 43 + "__id__": 53 } ], "_prefab": { - "__id__": 44 + "__id__": 54 }, "_opacity": 255, "_color": { @@ -1638,7 +2005,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 42 + "__id__": 52 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1677,18 +2044,18 @@ "_name": "border_tr", "_objFlags": 0, "_parent": { - "__id__": 35 + "__id__": 45 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 46 + "__id__": 56 } ], "_prefab": { - "__id__": 47 + "__id__": 57 }, "_opacity": 255, "_color": { @@ -1740,7 +2107,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 45 + "__id__": 55 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1779,7 +2146,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 35 + "__id__": 45 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1818,7 +2185,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 25 + "__id__": 35 }, "_enabled": true, "_srcBlendFactor": 770, @@ -1861,24 +2228,24 @@ }, "_children": [ { - "__id__": 53 + "__id__": 63 }, { - "__id__": 59 + "__id__": 69 }, { - "__id__": 62 + "__id__": 72 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 66 + "__id__": 76 } ], "_prefab": { - "__id__": 67 + "__id__": 77 }, "_opacity": 255, "_color": { @@ -1930,22 +2297,22 @@ "_name": "btn_back", "_objFlags": 0, "_parent": { - "__id__": 52 + "__id__": 62 }, "_children": [ { - "__id__": 54 + "__id__": 64 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 57 + "__id__": 67 } ], "_prefab": { - "__id__": 58 + "__id__": 68 }, "_opacity": 255, "_color": { @@ -1997,18 +2364,18 @@ "_name": "btn_title_2", "_objFlags": 0, "_parent": { - "__id__": 53 + "__id__": 63 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 55 + "__id__": 65 } ], "_prefab": { - "__id__": 56 + "__id__": 66 }, "_opacity": 255, "_color": { @@ -2060,7 +2427,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 54 + "__id__": 64 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2099,7 +2466,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 53 + "__id__": 63 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2138,18 +2505,18 @@ "_name": "ruls", "_objFlags": 0, "_parent": { - "__id__": 52 + "__id__": 62 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 60 + "__id__": 70 } ], "_prefab": { - "__id__": 61 + "__id__": 71 }, "_opacity": 255, "_color": { @@ -2201,7 +2568,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 59 + "__id__": 69 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2240,21 +2607,21 @@ "_name": "invite_btn", "_objFlags": 0, "_parent": { - "__id__": 52 + "__id__": 62 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 63 + "__id__": 73 }, { - "__id__": 64 + "__id__": 74 } ], "_prefab": { - "__id__": 65 + "__id__": 75 }, "_opacity": 255, "_color": { @@ -2306,7 +2673,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 62 + "__id__": 72 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2334,7 +2701,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 62 + "__id__": 72 }, "_enabled": true, "transition": 0, @@ -2378,7 +2745,7 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": { - "__id__": 62 + "__id__": 72 }, "_id": "" }, @@ -2398,7 +2765,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 52 + "__id__": 62 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2441,10 +2808,7 @@ }, "_children": [ { - "__id__": 69 - }, - { - "__id__": 75 + "__id__": 79 }, { "__id__": 85 @@ -2453,24 +2817,27 @@ "__id__": 95 }, { - "__id__": 101 + "__id__": 105 }, { - "__id__": 105 + "__id__": 111 + }, + { + "__id__": 115 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 109 + "__id__": 119 }, { - "__id__": 110 + "__id__": 120 } ], "_prefab": { - "__id__": 111 + "__id__": 121 }, "_opacity": 255, "_color": { @@ -2522,22 +2889,22 @@ "_name": "btn_back", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 78 }, "_children": [ { - "__id__": 70 + "__id__": 80 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 73 + "__id__": 83 } ], "_prefab": { - "__id__": 74 + "__id__": 84 }, "_opacity": 255, "_color": { @@ -2589,18 +2956,18 @@ "_name": "btn_title_5", "_objFlags": 0, "_parent": { - "__id__": 69 + "__id__": 79 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 71 + "__id__": 81 } ], "_prefab": { - "__id__": 72 + "__id__": 82 }, "_opacity": 255, "_color": { @@ -2652,7 +3019,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2691,7 +3058,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 69 + "__id__": 79 }, "_enabled": true, "_srcBlendFactor": 770, @@ -2730,339 +3097,8 @@ "_name": "qr_qq", "_objFlags": 0, "_parent": { - "__id__": 68 - }, - "_children": [ - { - "__id__": 76 - }, - { - "__id__": 79 - } - ], - "_active": true, - "_level": 3, - "_components": [ - { - "__id__": 83 - } - ], - "_prefab": { - "__id__": 84 - }, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 219, - "height": 219 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -170, - "y": -100, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "_zIndex": 0, - "groupIndex": 0, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "border", - "_objFlags": 0, - "_parent": { - "__id__": 75 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 77 - } - ], - "_prefab": { "__id__": 78 }, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 230, - "height": 230 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "_zIndex": 0, - "groupIndex": 0, - "_id": "" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 76 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "e8247d6f-22e8-4734-81dc-b397237ee6de" - }, - "_type": 1, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__uuid__": "9d572a53-1800-4095-b553-392a21202673" - }, - "fileId": "dfuLjwm1lMzIk/HTdfoz2U", - "sync": false - }, - { - "__type__": "cc.Node", - "_name": "New Label", - "_objFlags": 0, - "_parent": { - "__id__": 75 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 80 - }, - { - "__id__": 81 - } - ], - "_prefab": { - "__id__": 82 - }, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 233, - "b": 153, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 320.67, - "height": 80 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 0, - "y": -174, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "_zIndex": 0, - "groupIndex": 0, - "_id": "" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 79 - }, - "_enabled": true, - "_srcBlendFactor": 1, - "_dstBlendFactor": 771, - "_useOriginalSize": false, - "_string": "长按扫码加入官方QQ群\nQQ:928149914", - "_N$string": "长按扫码加入官方QQ群\nQQ:928149914", - "_fontSize": 30, - "_lineHeight": 40, - "_enableWrapText": true, - "_N$file": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_N$horizontalAlign": 1, - "_N$verticalAlign": 1, - "_N$fontFamily": "Arial", - "_N$overflow": 0, - "_id": "" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 79 - }, - "_enabled": true, - "_color": { - "__type__": "cc.Color", - "r": 93, - "g": 49, - "b": 14, - "a": 255 - }, - "_width": 2, - "_id": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__uuid__": "9d572a53-1800-4095-b553-392a21202673" - }, - "fileId": "7aCwLDczpEzKduv+pwIm0k", - "sync": false - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 75 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "d901df5d-112a-4130-bf7c-2ccd1150beda" - }, - "_type": 0, - "_sizeMode": 1, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__uuid__": "9d572a53-1800-4095-b553-392a21202673" - }, - "fileId": "97svWCAeBIGJW7f64RAbfl", - "sync": false - }, - { - "__type__": "cc.Node", - "_name": "qr_wechat", - "_objFlags": 0, - "_parent": { - "__id__": 68 - }, "_children": [ { "__id__": 86 @@ -3101,7 +3137,7 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 176, + "x": -170, "y": -100, "z": 0 }, @@ -3225,7 +3261,7 @@ "asset": { "__uuid__": "9d572a53-1800-4095-b553-392a21202673" }, - "fileId": "42Y/gRRa5Dp5ev4d9pfwa+", + "fileId": "dfuLjwm1lMzIk/HTdfoz2U", "sync": false }, { @@ -3257,6 +3293,337 @@ "b": 153, "a": 255 }, + "_contentSize": { + "__type__": "cc.Size", + "width": 320.67, + "height": 80 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": -174, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 89 + }, + "_enabled": true, + "_srcBlendFactor": 1, + "_dstBlendFactor": 771, + "_useOriginalSize": false, + "_string": "长按扫码加入官方QQ群\nQQ:928149914", + "_N$string": "长按扫码加入官方QQ群\nQQ:928149914", + "_fontSize": 30, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_id": "" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 89 + }, + "_enabled": true, + "_color": { + "__type__": "cc.Color", + "r": 93, + "g": 49, + "b": 14, + "a": 255 + }, + "_width": 2, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "7aCwLDczpEzKduv+pwIm0k", + "sync": false + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 85 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "d901df5d-112a-4130-bf7c-2ccd1150beda" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "97svWCAeBIGJW7f64RAbfl", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "qr_wechat", + "_objFlags": 0, + "_parent": { + "__id__": 78 + }, + "_children": [ + { + "__id__": 96 + }, + { + "__id__": 99 + } + ], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 103 + } + ], + "_prefab": { + "__id__": 104 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 219, + "height": 219 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 176, + "y": -100, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "border", + "_objFlags": 0, + "_parent": { + "__id__": 95 + }, + "_children": [], + "_active": true, + "_level": 4, + "_components": [ + { + "__id__": 97 + } + ], + "_prefab": { + "__id__": 98 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 230, + "height": 230 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "_zIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 96 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "e8247d6f-22e8-4734-81dc-b397237ee6de" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "9d572a53-1800-4095-b553-392a21202673" + }, + "fileId": "42Y/gRRa5Dp5ev4d9pfwa+", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "New Label", + "_objFlags": 0, + "_parent": { + "__id__": 95 + }, + "_children": [], + "_active": true, + "_level": 4, + "_components": [ + { + "__id__": 100 + }, + { + "__id__": 101 + } + ], + "_prefab": { + "__id__": 102 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 233, + "b": 153, + "a": 255 + }, "_contentSize": { "__type__": "cc.Size", "width": 334, @@ -3299,7 +3666,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 89 + "__id__": 99 }, "_enabled": true, "_srcBlendFactor": 1, @@ -3324,7 +3691,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 89 + "__id__": 99 }, "_enabled": true, "_color": { @@ -3353,7 +3720,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 85 + "__id__": 95 }, "_enabled": true, "_srcBlendFactor": 770, @@ -3392,22 +3759,22 @@ "_name": "bottom_tip", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 78 }, "_children": [ { - "__id__": 96 + "__id__": 106 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 99 + "__id__": 109 } ], "_prefab": { - "__id__": 100 + "__id__": 110 }, "_opacity": 255, "_color": { @@ -3459,18 +3826,18 @@ "_name": "tip_label", "_objFlags": 0, "_parent": { - "__id__": 95 + "__id__": 105 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 97 + "__id__": 107 } ], "_prefab": { - "__id__": 98 + "__id__": 108 }, "_opacity": 255, "_color": { @@ -3522,7 +3889,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 96 + "__id__": 106 }, "_enabled": true, "_srcBlendFactor": 1, @@ -3558,7 +3925,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 95 + "__id__": 105 }, "_enabled": true, "_srcBlendFactor": 770, @@ -3597,21 +3964,21 @@ "_name": "bottom_btn", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 78 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 102 + "__id__": 112 }, { - "__id__": 103 + "__id__": 113 } ], "_prefab": { - "__id__": 104 + "__id__": 114 }, "_opacity": 255, "_color": { @@ -3663,7 +4030,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 101 + "__id__": 111 }, "_enabled": true, "_srcBlendFactor": 770, @@ -3691,7 +4058,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 101 + "__id__": 111 }, "_enabled": true, "transition": 0, @@ -3735,7 +4102,7 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": { - "__id__": 101 + "__id__": 111 }, "_id": "" }, @@ -3755,21 +4122,21 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 78 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 106 + "__id__": 116 }, { - "__id__": 107 + "__id__": 117 } ], "_prefab": { - "__id__": 108 + "__id__": 118 }, "_opacity": 255, "_color": { @@ -3821,7 +4188,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 105 + "__id__": 115 }, "_enabled": true, "_srcBlendFactor": 1, @@ -3846,7 +4213,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 105 + "__id__": 115 }, "_enabled": true, "_color": { @@ -3875,7 +4242,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 68 + "__id__": 78 }, "_enabled": true, "_srcBlendFactor": 770, @@ -3903,7 +4270,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 68 + "__id__": 78 }, "_enabled": true, "alignMode": 1, @@ -3948,7 +4315,7 @@ "_level": 2, "_components": [], "_prefab": { - "__id__": 113 + "__id__": 123 }, "_opacity": 255, "_color": { @@ -4018,16 +4385,16 @@ "__id__": 2 }, "part2": { - "__id__": 52 + "__id__": 62 }, "part3": { - "__id__": 25 + "__id__": 35 }, "part4": { - "__id__": 112 + "__id__": 122 }, "part5": { - "__id__": 68 + "__id__": 78 }, "processBarPrefab": { "__uuid__": "f353cb4a-ce95-42aa-90df-fefb96f58cf5" @@ -4048,10 +4415,16 @@ "__id__": 18 }, "inviteBtn": { - "__id__": 62 + "__id__": 72 }, "ruleBtn": { - "__id__": 101 + "__id__": 111 + }, + "loginStatusLabel": { + "__id__": 30 + }, + "logoutBtn": { + "__id__": 23 }, "_id": "" }, diff --git a/assets/scripts/scrollContent.js b/assets/scripts/scrollContent.js index c8606d5..bcf21f2 100644 --- a/assets/scripts/scrollContent.js +++ b/assets/scripts/scrollContent.js @@ -53,12 +53,21 @@ cc.Class({ ruleBtn: { default: null, type: cc.Node + }, + loginStatusLabel: { + default: null, + type: cc.Label + }, + logoutBtn: { + default: null, + type: cc.Node } }, // LIFE-CYCLE CALLBACKS: onLoad () { + this.loginStatusLabel.node.active = false; var processBar = cc.instantiate(this.processBarPrefab); processBar.getComponent('progressBar').currentVal = 1024; this.part1.addChild(processBar);