diff --git a/assets/prefabs/PageLevel.prefab b/assets/prefabs/PageLevel.prefab index 3acd3d9..8866a1b 100644 --- a/assets/prefabs/PageLevel.prefab +++ b/assets/prefabs/PageLevel.prefab @@ -24,15 +24,15 @@ { "__id__": 10 }, - { - "__id__": 20 - }, - { - "__id__": 38 - }, { "__id__": 56 }, + { + "__id__": 66 + }, + { + "__id__": 84 + }, { "__id__": 102 }, @@ -52,11 +52,11 @@ "__id__": 258 }, { - "__id__": 262 + "__id__": 260 } ], "_prefab": { - "__id__": 264 + "__id__": 262 }, "_lpos": { "__type__": "cc.Vec3", @@ -246,685 +246,25 @@ }, { "__type__": "cc.Node", - "_name": "IconSetting", + "_name": "Main", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 1 }, - "_children": [], - "_active": true, - "_components": [ + "_children": [ { "__id__": 11 }, - { - "__id__": 13 - }, - { - "__id__": 15 - }, { "__id__": 17 } ], - "_prefab": { - "__id__": 19 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -420.451, - "y": 955.309, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 108, - "height": 108 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "1clsImNMZCq4gjWNYIOUFq" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "9c27734d-854f-476b-961d-d1b92c75f8c0@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "fbQJvXkAVI95f2IOcKw2nx" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_alignFlags": 9, - "_target": null, - "_left": 65.54899999999998, - "_right": 0, - "_top": 70.69100000000003, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "7fSph66PxCzKzewaKLPszT" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 18 - }, - "clickEvents": [], - "_interactable": true, - "_transition": 0, - "_normalColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": null, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "c9aKGSeypKCptxZVG/wbkB" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b8AbrhFbFNAIT6XkLOpIN7", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Live", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 21 - }, - { - "__id__": 27 - } - ], "_active": true, "_components": [ { - "__id__": 33 + "__id__": 49 }, - { - "__id__": 35 - } - ], - "_prefab": { - "__id__": 37 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -255.44, - "y": 955.671, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "IconLive", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 20 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 22 - }, - { - "__id__": 24 - } - ], - "_prefab": { - "__id__": 26 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.453, - "y": 0.453, - "z": 0.453 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 21 - }, - "_enabled": true, - "__prefab": { - "__id__": 23 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 169, - "height": 155 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b7eC6y+qxG/YFywAoeBjv5" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 21 - }, - "_enabled": true, - "__prefab": { - "__id__": 25 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "5ab5c212-a4cc-4c9b-a372-0cd2f30f4aff@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "97ZNkyEEVPQbRevmw96EIg" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "98MSkaBrJKXJbFQfpDJAIR", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "LiveLabel", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 20 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 28 - }, - { - "__id__": 30 - } - ], - "_prefab": { - "__id__": 32 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 98.93, - "y": 6.255, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 - }, - "_enabled": true, - "__prefab": { - "__id__": 29 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 75.60546875, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f4KzB8ynNIo6kEc1UO/855" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 27 - }, - "_enabled": true, - "__prefab": { - "__id__": 31 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_string": "x 10", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 40, - "_fontSize": 40, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f12Cq++1NKgI+ofm58Z+Ws" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "40XNWUUWNOw7uZJvH5vt2i", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 34 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "13NBX4WQpGVaFyIsuhLQSi" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 36 - }, - "_alignFlags": 9, - "_target": null, - "_left": 234.56, - "_right": 0, - "_top": 74.32899999999995, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "25FKweH7hItqO4p07xYgW0" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "f6zebOlbFCqbvQtwSTkfqM", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Clock", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 39 - }, - { - "__id__": 45 - } - ], - "_active": true, - "_components": [ { "__id__": 51 }, @@ -935,438 +275,6 @@ "_prefab": { "__id__": 55 }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 378.58, - "y": 960.317, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "IconClock", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 40 - }, - { - "__id__": 42 - } - ], - "_prefab": { - "__id__": 44 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.328, - "y": 0.328, - "z": 0.328 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 39 - }, - "_enabled": true, - "__prefab": { - "__id__": 41 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 200, - "height": 200 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "85hkUmSTJJZ5lfYsfOMdUg" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 39 - }, - "_enabled": true, - "__prefab": { - "__id__": 43 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "4c8c7576-d69c-4524-8add-07ad36a958c6@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "cebiiCd4RKsZqvagehuHQ4" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "20Vy/LtCpIBqwp14sfp6Co", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "ClockLabel", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 46 - }, - { - "__id__": 48 - } - ], - "_prefab": { - "__id__": 50 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 81.674, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 47 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 64.4921875, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f7zrck3a1MKYsnt/UvrE+4" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 49 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_string": "60s", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 40, - "_fontSize": 40, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 2, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "3ddy8wsiBKs5s8Aa8kQPy8" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "bc8pnnht9O/4APAtgMaCW3", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 38 - }, - "_enabled": true, - "__prefab": { - "__id__": 52 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a2mMDwQY1E/ZuvLEFN8wxI" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 38 - }, - "_enabled": true, - "__prefab": { - "__id__": 54 - }, - "_alignFlags": 33, - "_target": null, - "_left": 0, - "_right": 111.42000000000002, - "_top": 69.68299999999999, - "_bottom": 0, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 0, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d8Vz+Y4bRNWbpXEOin8jT8" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "3dusqwNLdF/YOHuP+VgX9s", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Main", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 57 - }, - { - "__id__": 63 - } - ], - "_active": true, - "_components": [ - { - "__id__": 95 - }, - { - "__id__": 97 - }, - { - "__id__": 99 - } - ], - "_prefab": { - "__id__": 101 - }, "_lpos": { "__type__": "cc.Vec3", "x": 0, @@ -1402,20 +310,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 10 }, "_children": [], "_active": true, "_components": [ { - "__id__": 58 + "__id__": 12 }, { - "__id__": 60 + "__id__": 14 } ], "_prefab": { - "__id__": 62 + "__id__": 16 }, "_lpos": { "__type__": "cc.Vec3", @@ -1452,11 +360,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 11 }, "_enabled": true, "__prefab": { - "__id__": 59 + "__id__": 13 }, "_contentSize": { "__type__": "cc.Size", @@ -1480,11 +388,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 11 }, "_enabled": true, "__prefab": { - "__id__": 61 + "__id__": 15 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1538,30 +446,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 10 }, "_children": [ { - "__id__": 64 + "__id__": 18 }, { - "__id__": 70 + "__id__": 24 }, { - "__id__": 76 + "__id__": 30 } ], "_active": true, "_components": [ { - "__id__": 90 + "__id__": 44 }, { - "__id__": 92 + "__id__": 46 } ], "_prefab": { - "__id__": 94 + "__id__": 48 }, "_lpos": { "__type__": "cc.Vec3", @@ -1598,20 +506,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 63 + "__id__": 17 }, "_children": [], "_active": true, "_components": [ { - "__id__": 65 + "__id__": 19 }, { - "__id__": 67 + "__id__": 21 } ], "_prefab": { - "__id__": 69 + "__id__": 23 }, "_lpos": { "__type__": "cc.Vec3", @@ -1648,11 +556,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 18 }, "_enabled": true, "__prefab": { - "__id__": 66 + "__id__": 20 }, "_contentSize": { "__type__": "cc.Size", @@ -1676,11 +584,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 18 }, "_enabled": true, "__prefab": { - "__id__": 68 + "__id__": 22 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1757,20 +665,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 63 + "__id__": 17 }, "_children": [], "_active": true, "_components": [ { - "__id__": 71 + "__id__": 25 }, { - "__id__": 73 + "__id__": 27 } ], "_prefab": { - "__id__": 75 + "__id__": 29 }, "_lpos": { "__type__": "cc.Vec3", @@ -1807,11 +715,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 24 }, "_enabled": true, "__prefab": { - "__id__": 72 + "__id__": 26 }, "_contentSize": { "__type__": "cc.Size", @@ -1835,11 +743,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 24 }, "_enabled": true, "__prefab": { - "__id__": 74 + "__id__": 28 }, "_resizeMode": 1, "_layoutType": 1, @@ -1886,31 +794,31 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 63 + "__id__": 17 }, "_children": [ { - "__id__": 77 + "__id__": 31 } ], "_active": true, "_components": [ { - "__id__": 83 + "__id__": 37 }, { - "__id__": 85 + "__id__": 39 }, { - "__id__": 87 + "__id__": 41 } ], "_prefab": { - "__id__": 89 + "__id__": 43 }, "_lpos": { "__type__": "cc.Vec3", - "x": 37.618, + "x": 20, "y": -0.82, "z": 0 }, @@ -1943,20 +851,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 76 + "__id__": 30 }, "_children": [], "_active": true, "_components": [ { - "__id__": 78 + "__id__": 32 }, { - "__id__": 80 + "__id__": 34 } ], "_prefab": { - "__id__": 82 + "__id__": 36 }, "_lpos": { "__type__": "cc.Vec3", @@ -1993,11 +901,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 31 }, "_enabled": true, "__prefab": { - "__id__": 79 + "__id__": 33 }, "_contentSize": { "__type__": "cc.Size", @@ -2021,11 +929,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 31 }, "_enabled": true, "__prefab": { - "__id__": 81 + "__id__": 35 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2102,11 +1010,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 76 + "__id__": 30 }, "_enabled": true, "__prefab": { - "__id__": 84 + "__id__": 38 }, "_contentSize": { "__type__": "cc.Size", @@ -2130,11 +1038,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 76 + "__id__": 30 }, "_enabled": true, "__prefab": { - "__id__": 86 + "__id__": 40 }, "clickEvents": [], "_interactable": true, @@ -2186,11 +1094,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 76 + "__id__": 30 }, "_enabled": true, "__prefab": { - "__id__": 88 + "__id__": 42 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2244,11 +1152,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 17 }, "_enabled": true, "__prefab": { - "__id__": 91 + "__id__": 45 }, "_contentSize": { "__type__": "cc.Size", @@ -2272,11 +1180,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 17 }, "_enabled": true, "__prefab": { - "__id__": 93 + "__id__": 47 }, "_resizeMode": 0, "_layoutType": 1, @@ -2323,11 +1231,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 10 }, "_enabled": true, "__prefab": { - "__id__": 96 + "__id__": 50 }, "_contentSize": { "__type__": "cc.Size", @@ -2351,11 +1259,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 10 }, "_enabled": true, "__prefab": { - "__id__": 98 + "__id__": 52 }, "_alignFlags": 1, "_target": null, @@ -2387,11 +1295,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 10 }, "_enabled": true, "__prefab": { - "__id__": 100 + "__id__": 54 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2439,6 +1347,1098 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "IconSetting", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 57 + }, + { + "__id__": 59 + }, + { + "__id__": 61 + }, + { + "__id__": 63 + } + ], + "_prefab": { + "__id__": 65 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -420.451, + "y": 955.309, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 56 + }, + "_enabled": true, + "__prefab": { + "__id__": 58 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 108, + "height": 108 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1clsImNMZCq4gjWNYIOUFq" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 56 + }, + "_enabled": true, + "__prefab": { + "__id__": 60 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "9c27734d-854f-476b-961d-d1b92c75f8c0@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "fbQJvXkAVI95f2IOcKw2nx" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 56 + }, + "_enabled": true, + "__prefab": { + "__id__": 62 + }, + "_alignFlags": 9, + "_target": null, + "_left": 65.54899999999998, + "_right": 0, + "_top": 70.69100000000003, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7fSph66PxCzKzewaKLPszT" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 56 + }, + "_enabled": true, + "__prefab": { + "__id__": 64 + }, + "clickEvents": [], + "_interactable": true, + "_transition": 0, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9aKGSeypKCptxZVG/wbkB" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b8AbrhFbFNAIT6XkLOpIN7", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Live", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 67 + }, + { + "__id__": 73 + } + ], + "_active": true, + "_components": [ + { + "__id__": 79 + }, + { + "__id__": 81 + } + ], + "_prefab": { + "__id__": 83 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -255.44, + "y": 955.671, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "IconLive", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 66 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 68 + }, + { + "__id__": 70 + } + ], + "_prefab": { + "__id__": 72 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.453, + "y": 0.453, + "z": 0.453 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 67 + }, + "_enabled": true, + "__prefab": { + "__id__": 69 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 169, + "height": 155 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b7eC6y+qxG/YFywAoeBjv5" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 67 + }, + "_enabled": true, + "__prefab": { + "__id__": 71 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "5ab5c212-a4cc-4c9b-a372-0cd2f30f4aff@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "97ZNkyEEVPQbRevmw96EIg" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "98MSkaBrJKXJbFQfpDJAIR", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "LiveLabel", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 66 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 74 + }, + { + "__id__": 76 + } + ], + "_prefab": { + "__id__": 78 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 98.93, + "y": 6.255, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 75 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 75.60546875, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f4KzB8ynNIo6kEc1UO/855" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 77 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "x 10", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": false, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f12Cq++1NKgI+ofm58Z+Ws" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "40XNWUUWNOw7uZJvH5vt2i", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 66 + }, + "_enabled": true, + "__prefab": { + "__id__": 80 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13NBX4WQpGVaFyIsuhLQSi" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 66 + }, + "_enabled": true, + "__prefab": { + "__id__": 82 + }, + "_alignFlags": 9, + "_target": null, + "_left": 234.56, + "_right": 0, + "_top": 74.32899999999995, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "25FKweH7hItqO4p07xYgW0" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f6zebOlbFCqbvQtwSTkfqM", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Clock", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 85 + }, + { + "__id__": 91 + } + ], + "_active": true, + "_components": [ + { + "__id__": 97 + }, + { + "__id__": 99 + } + ], + "_prefab": { + "__id__": 101 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 378.58, + "y": 960.317, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "IconClock", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 84 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 86 + }, + { + "__id__": 88 + } + ], + "_prefab": { + "__id__": 90 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.328, + "y": 0.328, + "z": 0.328 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 85 + }, + "_enabled": true, + "__prefab": { + "__id__": 87 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 200 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "85hkUmSTJJZ5lfYsfOMdUg" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 85 + }, + "_enabled": true, + "__prefab": { + "__id__": 89 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "4c8c7576-d69c-4524-8add-07ad36a958c6@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cebiiCd4RKsZqvagehuHQ4" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "20Vy/LtCpIBqwp14sfp6Co", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ClockLabel", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 84 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 92 + }, + { + "__id__": 94 + } + ], + "_prefab": { + "__id__": 96 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 81.674, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 91 + }, + "_enabled": true, + "__prefab": { + "__id__": 93 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64.4921875, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f7zrck3a1MKYsnt/UvrE+4" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 91 + }, + "_enabled": true, + "__prefab": { + "__id__": 95 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "60s", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": false, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 2, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3ddy8wsiBKs5s8Aa8kQPy8" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "bc8pnnht9O/4APAtgMaCW3", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 84 + }, + "_enabled": true, + "__prefab": { + "__id__": 98 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a2mMDwQY1E/ZuvLEFN8wxI" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 84 + }, + "_enabled": true, + "__prefab": { + "__id__": 100 + }, + "_alignFlags": 33, + "_target": null, + "_left": 0, + "_right": 111.42000000000002, + "_top": 69.68299999999999, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8Vz+Y4bRNWbpXEOin8jT8" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "3dusqwNLdF/YOHuP+VgX9s", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.Node", "_name": "TipsLayout", @@ -6220,25 +6220,25 @@ "__id__": 259 }, "inputLayout": { - "__id__": 70 + "__id__": 24 }, "submitButton": { - "__id__": 76 + "__id__": 30 }, "inputTemplate": { "__id__": 228 }, "actionNode": { - "__id__": 63 + "__id__": 17 }, "iconSetting": { - "__id__": 10 + "__id__": 56 }, "tipsLayout": { "__id__": 102 }, "mainImage": { - "__id__": 57 + "__id__": 11 }, "tipsItem1": { "__id__": 103 @@ -6256,19 +6256,11 @@ "__id__": 207 }, "clockLabel": { - "__id__": 48 + "__id__": 94 }, "liveLabel": { - "__id__": 30 + "__id__": 76 }, - "levelConfigs": [ - { - "__id__": 260 - }, - { - "__id__": 261 - } - ], "currentLevelIndex": 0, "clickAudio": { "__uuid__": "a68a6314-fb7c-48a9-bd6c-0a65ef665d50", @@ -6288,28 +6280,6 @@ "__type__": "cc.CompPrefabInfo", "fileId": "e2itWq4ZlL5b9D690HcX3O" }, - { - "__type__": "LevelConfig", - "mainImage": { - "__uuid__": "388a4fd2-4c46-46ae-b796-10ab85c39e04@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "clue1": "这是一种职业", - "clue2": "这种职业出现在事业单位", - "clue3": "这是在学校里面的一种职业", - "answer": "教师" - }, - { - "__type__": "LevelConfig", - "mainImage": { - "__uuid__": "ea160d5d-8094-4867-afdc-1e1ae1279835@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "clue1": "这是一个历史人物", - "clue2": "他是三国时期的人物", - "clue3": "是武力值很高的将军", - "answer": "吕布" - }, { "__type__": "cc.AudioSource", "_name": "", @@ -6320,7 +6290,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 263 + "__id__": 261 }, "_clip": null, "_loop": false, diff --git a/assets/prefabs/PageLevel.ts b/assets/prefabs/PageLevel.ts index c76660d..be1d5b8 100644 --- a/assets/prefabs/PageLevel.ts +++ b/assets/prefabs/PageLevel.ts @@ -7,27 +7,6 @@ import { LevelDataManager } from 'db://assets/scripts/utils/LevelDataManager'; import { RuntimeLevelConfig } from 'db://assets/scripts/types/LevelTypes'; const { ccclass, property } = _decorator; -/** - * 关卡配置类 - */ -@ccclass('LevelConfig') -export class LevelConfig { - @property(SpriteFrame) - mainImage: SpriteFrame | null = null; - - @property({ tooltip: '线索1内容(默认解锁)' }) - clue1: string = ''; - - @property({ tooltip: '线索2内容' }) - clue2: string = ''; - - @property({ tooltip: '线索3内容' }) - clue3: string = ''; - - @property({ tooltip: '答案(用于确定输入框数量和验证)' }) - answer: string = ''; -} - /** * 关卡页面组件 * 继承 BaseView,实现页面生命周期 @@ -78,9 +57,6 @@ export class PageLevel extends BaseView { liveLabel: Label | null = null; // ========== 配置属性 ========== - @property([LevelConfig]) - levelConfigs: LevelConfig[] = []; - @property({ min: 0, tooltip: '当前关卡索引' @@ -106,9 +82,12 @@ export class PageLevel extends BaseView { /** 倒计时是否结束 */ private _isTimeUp: boolean = false; - /** 当前关卡配置(API 或本地) */ + /** 当前关卡配置 */ private _currentConfig: RuntimeLevelConfig | null = null; + /** 是否正在切换关卡(防止重复提交) */ + private _isTransitioning: boolean = false; + /** * 页面首次加载时调用 */ @@ -147,64 +126,28 @@ export class PageLevel extends BaseView { } /** - * 初始化关卡 + * 初始化关卡(从 API 数据加载) */ private initLevel(): void { - // 优先使用 API 数据 - if (LevelDataManager.instance.hasApiData()) { - this._initFromApiConfig(); - } else { - this._initFromLocalConfig(); - } - } - - /** - * 从 API 配置初始化关卡 - */ - private _initFromApiConfig(): void { const config = LevelDataManager.instance.getLevelConfig(this.currentLevelIndex); if (!config) { - console.warn('[PageLevel] 没有找到 API 关卡配置'); - // 降级到本地配置 - this._initFromLocalConfig(); + console.warn(`[PageLevel] 没有找到关卡配置,索引: ${this.currentLevelIndex}`); return; } - console.log(`[PageLevel] 使用 API 配置初始化关卡 ${this.currentLevelIndex + 1}: ${config.name}`); + console.log(`[PageLevel] 初始化关卡 ${this.currentLevelIndex + 1}: ${config.name}`); this._applyLevelConfig(config); } - /** - * 从本地配置初始化关卡 - */ - private _initFromLocalConfig(): void { - const config = this.levelConfigs[this.currentLevelIndex]; - if (!config) { - console.warn('[PageLevel] 没有找到本地关卡配置'); - return; - } - - // 创建 RuntimeLevelConfig 从本地配置 - const runtimeConfig: RuntimeLevelConfig = { - id: this.currentLevelIndex, - name: `关卡 ${this.currentLevelIndex + 1}`, - spriteFrame: config.mainImage, - clue1: config.clue1, - clue2: config.clue2, - clue3: config.clue3, - answer: config.answer - }; - - console.log(`[PageLevel] 使用本地配置初始化关卡 ${this.currentLevelIndex + 1}`); - this._applyLevelConfig(runtimeConfig); - } - /** * 应用关卡配置(通用初始化逻辑) */ private _applyLevelConfig(config: RuntimeLevelConfig): void { this._currentConfig = config; + // 重置关卡切换状态,允许再次提交 + this._isTransitioning = false; + // 重置倒计时状态 this._isTimeUp = false; this._countdown = 60; @@ -668,6 +611,7 @@ export class PageLevel extends BaseView { */ onSubmitAnswer(): void { if (!this._currentConfig) return; + if (this._isTransitioning) return; const userAnswer = this.getAnswer(); console.log(`[PageLevel] 提交答案: ${userAnswer}, 正确答案: ${this._currentConfig.answer}`); @@ -688,6 +632,9 @@ export class PageLevel extends BaseView { private showSuccess(): void { console.log('[PageLevel] 答案正确!'); + // 标记正在切换关卡,防止重复提交 + this._isTransitioning = true; + // 停止倒计时 this.stopCountdown(); @@ -723,10 +670,7 @@ export class PageLevel extends BaseView { this.currentLevelIndex++; // 检查是否还有关卡 - const manager = LevelDataManager.instance; - const totalLevels = manager.hasApiData() - ? manager.getLevelCount() - : this.levelConfigs.length; + const totalLevels = LevelDataManager.instance.getLevelCount(); if (this.currentLevelIndex >= totalLevels) { // 所有关卡完成 diff --git a/assets/scripts/types.meta b/assets/scripts/types.meta new file mode 100644 index 0000000..c0e5e63 --- /dev/null +++ b/assets/scripts/types.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "b6801da6-5ffd-48d2-8d5c-a2d837c825d3", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/scripts/types/LevelTypes.ts b/assets/scripts/types/LevelTypes.ts index bf94b90..f3eebad 100644 --- a/assets/scripts/types/LevelTypes.ts +++ b/assets/scripts/types/LevelTypes.ts @@ -4,32 +4,37 @@ import { SpriteFrame } from 'cc'; * API 返回的单个关卡数据结构 */ export interface ApiLevelData { - /** 关卡 ID */ - id: number; - /** 关卡名称 */ - name: string; + /** 关卡 ID (UUID) */ + id: string; + /** 关卡序号 */ + level: number; /** 主图 URL */ imageUrl: string; - /** 线索1(映射到 clue1) */ + /** 线索1 */ hint1: string; - /** 线索2(映射到 clue2) */ + /** 线索2 */ hint2: string; - /** 线索3(映射到 clue3) */ + /** 线索3 */ hint3: string; /** 答案 */ answer: string; + /** 排序 */ + sortOrder: number; } /** * API 响应结构 */ export interface ApiResponse { - /** 状态码,0 表示成功 */ - code: number; + /** 是否成功 */ + success: boolean; /** 响应消息 */ - message: string; - /** 关卡数据数组 */ - data: ApiLevelData[]; + message: string | null; + /** 响应数据 */ + data: { + levels: ApiLevelData[]; + total: number; + }; } /** @@ -37,7 +42,7 @@ export interface ApiResponse { */ export interface RuntimeLevelConfig { /** 关卡 ID */ - id: number; + id: string; /** 关卡名称 */ name: string; /** 主图 SpriteFrame(可能为 null 如果加载失败) */ diff --git a/assets/scripts/types/LevelTypes.ts.meta b/assets/scripts/types/LevelTypes.ts.meta new file mode 100644 index 0000000..4b3c58d --- /dev/null +++ b/assets/scripts/types/LevelTypes.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "4cf882b6-b17f-470d-a76b-ea0783d5d424", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/scripts/utils/HttpUtil.ts.meta b/assets/scripts/utils/HttpUtil.ts.meta new file mode 100644 index 0000000..aca53a5 --- /dev/null +++ b/assets/scripts/utils/HttpUtil.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "5b29e766-746d-4646-98fd-7908fdd9dbe0", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/scripts/utils/LevelDataManager.ts b/assets/scripts/utils/LevelDataManager.ts index dadd12f..5ecf3aa 100644 --- a/assets/scripts/utils/LevelDataManager.ts +++ b/assets/scripts/utils/LevelDataManager.ts @@ -119,12 +119,12 @@ export class LevelDataManager { try { const response = await HttpUtil.get(this.API_URL, this.REQUEST_TIMEOUT); - if (response.code !== 0) { - console.warn(`[LevelDataManager] API 返回错误码: ${response.code}, 消息: ${response.message}`); + if (!response.success) { + console.warn(`[LevelDataManager] API 返回失败, 消息: ${response.message}`); return null; } - return response.data; + return response.data.levels; } catch (error) { console.error('[LevelDataManager] API 请求失败:', error); return null; @@ -149,7 +149,7 @@ export class LevelDataManager { configs.push({ id: data.id, - name: data.name, + name: `第${data.level}关`, spriteFrame: spriteFrame, clue1: data.hint1, clue2: data.hint2, diff --git a/assets/scripts/utils/LevelDataManager.ts.meta b/assets/scripts/utils/LevelDataManager.ts.meta new file mode 100644 index 0000000..0f9796c --- /dev/null +++ b/assets/scripts/utils/LevelDataManager.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "082391a3-f1eb-476c-b5b3-810c757f536c", + "files": [], + "subMetas": {}, + "userData": {} +}