diff --git a/assets/components/Page.ts b/assets/components/Page.ts new file mode 100644 index 0000000..331cba5 --- /dev/null +++ b/assets/components/Page.ts @@ -0,0 +1,11 @@ +const {ccclass, property} = cc._decorator; + +@ccclass +export default class Page extends cc.Component { + @property({type: cc.String}) + pageName: string = '' + + start () { + + } +} diff --git a/assets/components/Page.ts.meta b/assets/components/Page.ts.meta new file mode 100644 index 0000000..9ae80d2 --- /dev/null +++ b/assets/components/Page.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.8", + "uuid": "3b1ab7fa-f2e6-42e4-851d-98bfd2f6b009", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/components/card/Card.ts b/assets/components/card/Card.ts index 56d00e2..216ea2e 100644 --- a/assets/components/card/Card.ts +++ b/assets/components/card/Card.ts @@ -1,11 +1,26 @@ const {ccclass, property} = cc._decorator; +export interface ICardData { + price: number + name: string + portrait: string +} + @ccclass export default class Card extends cc.Component { -// @property({ type: cc.Node }) -// snode: cc.Node = null + + @property({type: cc.Sprite}) + mainImg: cc.Sprite = null + @property({type: cc.Sprite}) + nameImg: cc.Sprite = null + @property({type: cc.Label}) + priceLabel: cc.Label = null start () { } + + init(data: ICardData) { + console.log('card init with data: ', data) + } } diff --git a/assets/components/top_btn.meta b/assets/components/footer.meta similarity index 80% rename from assets/components/top_btn.meta rename to assets/components/footer.meta index 76377b7..3f82b18 100644 --- a/assets/components/top_btn.meta +++ b/assets/components/footer.meta @@ -1,6 +1,6 @@ { "ver": "1.1.2", - "uuid": "3df24160-761c-49c8-8207-cb2cdbd168d0", + "uuid": "623bee19-d24c-443d-9b80-d19cbdc6a993", "isBundle": false, "bundleName": "", "priority": 1, diff --git a/assets/components/header.meta b/assets/components/header.meta new file mode 100644 index 0000000..df4ca50 --- /dev/null +++ b/assets/components/header.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.2", + "uuid": "35675772-6a5e-453b-b01e-44592f0ba641", + "isBundle": false, + "bundleName": "", + "priority": 1, + "compressionType": {}, + "optimizeHotUpdate": {}, + "inlineSpriteFrames": {}, + "isRemoteBundle": {}, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/components/top_btn/TopBtn.ts b/assets/components/header/TopBtn.ts similarity index 84% rename from assets/components/top_btn/TopBtn.ts rename to assets/components/header/TopBtn.ts index 4e8f533..17d933b 100644 --- a/assets/components/top_btn/TopBtn.ts +++ b/assets/components/header/TopBtn.ts @@ -1,3 +1,6 @@ +import { TOP_BTN_CHANGE } from '../../scripts/JCEvent' +import Page from '../Page' + const {ccclass, property} = cc._decorator; @ccclass @@ -17,6 +20,9 @@ export default class TopBtn extends cc.Component { needChange: boolean = true private selected = false + @property(cc.String) + pageName: string = '' + start () { // this.node.on('click', this.onClick, this) @@ -41,7 +47,7 @@ export default class TopBtn extends cc.Component { return } this.setSelect(true) - cc.zevent.emit('top_btn_change', this.index) + cc.zevent.emit(TOP_BTN_CHANGE, this.pageName) } } diff --git a/assets/components/top_btn/TopBtn.ts.meta b/assets/components/header/TopBtn.ts.meta similarity index 100% rename from assets/components/top_btn/TopBtn.ts.meta rename to assets/components/header/TopBtn.ts.meta diff --git a/assets/components/p1/TopMenu.ts b/assets/components/header/TopMenu.ts similarity index 69% rename from assets/components/p1/TopMenu.ts rename to assets/components/header/TopMenu.ts index ca8a092..672b99a 100644 --- a/assets/components/p1/TopMenu.ts +++ b/assets/components/header/TopMenu.ts @@ -1,11 +1,10 @@ -import TopBtn from '../top_btn/TopBtn' +import TopBtn from './TopBtn' +import { TOP_BTN_CHANGE } from '../../scripts/JCEvent' const {ccclass, property} = cc._decorator; @ccclass export default class TopMenu extends cc.Component { -// @property({ type: cc.Node }) -// snode: cc.Node = null @property({type: cc.Node}) container: cc.Node = null @@ -16,9 +15,9 @@ export default class TopMenu extends cc.Component { start () { // this.initBtns() this.btns[0].setSelect(true) - cc.zevent.on('top_btn_change', (index: number) => { + cc.zevent.on(TOP_BTN_CHANGE, (pageName: string) => { for (let i = 0, l = this.btns.length; i < l; i++) { - if (index !== i) { + if (pageName !== this.btns[i].pageName) { this.btns[i].setSelect(false) } } diff --git a/assets/components/p1/TopMenu.ts.meta b/assets/components/header/TopMenu.ts.meta similarity index 100% rename from assets/components/p1/TopMenu.ts.meta rename to assets/components/header/TopMenu.ts.meta diff --git a/assets/components/header/header.prefab b/assets/components/header/header.prefab new file mode 100644 index 0000000..b013fd5 --- /dev/null +++ b/assets/components/header/header.prefab @@ -0,0 +1,3023 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "header", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 5 + } + ], + "_active": true, + "_components": [ + { + "__id__": 80 + }, + { + "__id__": 81 + }, + { + "__id__": 82 + } + ], + "_prefab": { + "__id__": 83 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1920, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 960, + 996.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "icon_logo_t", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": { + "__id__": 4 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 88, + "height": 58 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -875.132, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "ca72e426-6b59-4a46-8a69-4dd90dab4b27" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "aeTftZ2CtNvZfSrgYnqeuk", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_list", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 6 + }, + { + "__id__": 18 + }, + { + "__id__": 30 + }, + { + "__id__": 42 + }, + { + "__id__": 54 + }, + { + "__id__": 66 + } + ], + "_active": true, + "_components": [ + { + "__id__": 77 + }, + { + "__id__": 78 + } + ], + "_prefab": { + "__id__": 79 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1000, + "height": 80 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 460, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 7 + }, + { + "__id__": 10 + } + ], + "_active": true, + "_components": [ + { + "__id__": 14 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 17 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 124, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -438, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 6 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 9 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 91, + "height": 25 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "b742e44a-edd6-4ac0-b4e9-34131804abeb" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 6 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 6 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 12 + } + ], + "_prefab": { + "__id__": 13 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 124, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -6.6, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 6 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 6 + }, + "_enabled": true, + "titleImg": { + "__id__": 8 + }, + "bgNode": { + "__id__": 10 + }, + "index": 0, + "needChange": true, + "pageName": "home", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 6 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 16 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 6 + }, + "_id": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 6 + }, + "component": "", + "_componentId": "1884782OwNJ26JHRLAP4Swy", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 6 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "62p7z+mjVItocqVBWhi7WL", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 19 + }, + { + "__id__": 22 + } + ], + "_active": true, + "_components": [ + { + "__id__": 26 + }, + { + "__id__": 27 + } + ], + "_prefab": { + "__id__": 29 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -313.5, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 18 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 20 + } + ], + "_prefab": { + "__id__": 21 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 93, + "height": 25 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "a66ee166-81a6-4757-ab6e-8e996459c08c" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 18 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 18 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 24 + } + ], + "_prefab": { + "__id__": 25 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 125, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -6.6, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 22 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 22 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 18 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "titleImg": { + "__id__": 20 + }, + "bgNode": { + "__id__": 22 + }, + "index": 1, + "needChange": false, + "pageName": "video", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 28 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 18 + }, + "component": "", + "_componentId": "1884782OwNJ26JHRLAP4Swy", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 18 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "7bDI2Yqu9K/LfxVAyWVKRN", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 31 + }, + { + "__id__": 34 + } + ], + "_active": true, + "_components": [ + { + "__id__": 38 + }, + { + "__id__": 39 + } + ], + "_prefab": { + "__id__": 41 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 192, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -155, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 30 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 32 + } + ], + "_prefab": { + "__id__": 33 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 160, + "height": 31 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -4.361, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 31 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "c3fc6d22-a27b-461c-8867-54ae44fb8114" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 30 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 30 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 35 + }, + { + "__id__": 36 + } + ], + "_prefab": { + "__id__": 37 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 192, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -6.6, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 30 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 30 + }, + "_enabled": true, + "titleImg": { + "__id__": 32 + }, + "bgNode": { + "__id__": 34 + }, + "index": 2, + "needChange": true, + "pageName": "gameplay", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 30 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 40 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 30 + }, + "component": "", + "_componentId": "1884782OwNJ26JHRLAP4Swy", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 30 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "5aEQ0uryVLdbmLv2idAAXg", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 43 + }, + { + "__id__": 46 + } + ], + "_active": true, + "_components": [ + { + "__id__": 50 + }, + { + "__id__": 51 + } + ], + "_prefab": { + "__id__": 53 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 186, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 34, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 42 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 44 + } + ], + "_prefab": { + "__id__": 45 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 154, + "height": 25 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -1.454, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 43 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "2fa55406-e322-472d-85c9-9509b4360f06" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 42 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 42 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 47 + }, + { + "__id__": 48 + } + ], + "_prefab": { + "__id__": 49 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 186, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -6.6, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 46 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 46 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 42 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 42 + }, + "_enabled": true, + "titleImg": { + "__id__": 44 + }, + "bgNode": { + "__id__": 46 + }, + "index": 3, + "needChange": true, + "pageName": "nft", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 42 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 52 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 42 + }, + "component": "", + "_componentId": "1884782OwNJ26JHRLAP4Swy", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 42 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "905r6utJZKZqf5QSgkTQ5t", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 55 + }, + { + "__id__": 58 + } + ], + "_active": true, + "_components": [ + { + "__id__": 62 + }, + { + "__id__": 63 + } + ], + "_prefab": { + "__id__": 65 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 108, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 181, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 54 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 56 + } + ], + "_prefab": { + "__id__": 57 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 71, + "height": 31 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -4.361, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 55 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "9b96837f-3524-4c89-8b5f-2eaf17999ec3" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 54 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 54 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 59 + }, + { + "__id__": 60 + } + ], + "_prefab": { + "__id__": 61 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 108, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -6.6, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 58 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 58 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 54 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 54 + }, + "_enabled": true, + "titleImg": { + "__id__": 56 + }, + "bgNode": { + "__id__": 58 + }, + "index": 4, + "needChange": true, + "pageName": "chip", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 54 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 64 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 54 + }, + "component": "", + "_componentId": "1884782OwNJ26JHRLAP4Swy", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 54 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c59yOAldlAm4lf79wLC9ku", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "top_btn", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [ + { + "__id__": 67 + }, + { + "__id__": 70 + } + ], + "_active": true, + "_components": [ + { + "__id__": 74 + }, + { + "__id__": 75 + } + ], + "_prefab": { + "__id__": 76 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 258, + "height": 81 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 364, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "btn_chip", + "_objFlags": 0, + "_parent": { + "__id__": 66 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 68 + } + ], + "_prefab": { + "__id__": 69 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 258, + "height": 62 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 67 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "22faf598-bd09-45e4-8914-0d9b027d7873" + }, + "_type": 0, + "_sizeMode": 2, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 66 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "09yf74PB1GC6J9wla5+vgu", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "btn_bg", + "_objFlags": 0, + "_parent": { + "__id__": 66 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 71 + }, + { + "__id__": 72 + } + ], + "_prefab": { + "__id__": 73 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 258, + "height": 47 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 70 + }, + "_enabled": false, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "bbd766a3-5374-465d-b28e-b15f44099408" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 70 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 40, + "_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": 137, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 66 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "c3YjBeatZCg6tmnwiAM8va", + "sync": false + }, + { + "__type__": "1884782OwNJ26JHRLAP4Swy", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 66 + }, + "_enabled": true, + "titleImg": { + "__id__": 68 + }, + "bgNode": { + "__id__": 70 + }, + "index": 5, + "needChange": false, + "pageName": "market", + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 66 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 66 + }, + "asset": { + "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" + }, + "fileId": "ecsyz1h1tLJrFrVa+0rN55", + "sync": false + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 32, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "_layoutSize": { + "__type__": "cc.Size", + "width": 300, + "height": 200 + }, + "_resize": 0, + "_N$layoutType": 1, + "_N$cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_N$startAxis": 0, + "_N$paddingLeft": 0, + "_N$paddingRight": 0, + "_N$paddingTop": 0, + "_N$paddingBottom": 0, + "_N$spacingX": 0, + "_N$spacingY": 0, + "_N$verticalDirection": 1, + "_N$horizontalDirection": 0, + "_N$affectedByScale": false, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "28d+nKhxxD6K71zBJNtVFb", + "sync": false + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "alignMode": 1, + "_target": null, + "_alignFlags": 41, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "1c95d374-fbec-4b12-8a9f-a5b2cfe0c42e" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "9c9dfsQpn9BHLzPcy+ysoKA", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "container": { + "__id__": 5 + }, + "btns": [ + { + "__id__": 14 + }, + { + "__id__": 26 + }, + { + "__id__": 38 + }, + { + "__id__": 50 + }, + { + "__id__": 62 + }, + { + "__id__": 74 + } + ], + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "", + "sync": false + } +] \ No newline at end of file diff --git a/assets/components/header/header.prefab.meta b/assets/components/header/header.prefab.meta new file mode 100644 index 0000000..480e05b --- /dev/null +++ b/assets/components/header/header.prefab.meta @@ -0,0 +1,8 @@ +{ + "ver": "1.2.9", + "uuid": "22f839be-6f25-4956-bd01-dfcd391f95e1", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/components/top_btn/top_btn.prefab b/assets/components/header/top_btn.prefab similarity index 100% rename from assets/components/top_btn/top_btn.prefab rename to assets/components/header/top_btn.prefab diff --git a/assets/components/top_btn/top_btn.prefab.meta b/assets/components/header/top_btn.prefab.meta similarity index 100% rename from assets/components/top_btn/top_btn.prefab.meta rename to assets/components/header/top_btn.prefab.meta diff --git a/assets/components/p1/Page1.ts b/assets/components/p1/Page1.ts index fe779bf..d89beb5 100644 --- a/assets/components/p1/Page1.ts +++ b/assets/components/p1/Page1.ts @@ -1,11 +1,9 @@ +import Page from '../Page' + const {ccclass, property} = cc._decorator; @ccclass -export default class Page1 extends cc.Component { -// @property({ type: cc.Node }) -// snode: cc.Node = null - - +export default class Page1 extends Page { start () { diff --git a/assets/components/p1/p1.prefab b/assets/components/p1/p1.prefab index 71b77d5..c00a480 100644 --- a/assets/components/p1/p1.prefab +++ b/assets/components/p1/p1.prefab @@ -1269,6 +1269,7 @@ "__id__": 1 }, "_enabled": true, + "pageName": "home", "_id": "" }, { diff --git a/assets/components/p2/Page2.ts b/assets/components/p2/Page2.ts new file mode 100644 index 0000000..39f927c --- /dev/null +++ b/assets/components/p2/Page2.ts @@ -0,0 +1,16 @@ +import { PAGE_ON_SHOW } from '../../scripts/JCEvent' +import Page from '../Page' + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class Page2 extends Page { + + start () { + cc.zevent.on(PAGE_ON_SHOW, (index: number) => { + if (index === 4) { + + } + }) + } +} diff --git a/assets/components/p2/Page2.ts.meta b/assets/components/p2/Page2.ts.meta new file mode 100644 index 0000000..5be34b7 --- /dev/null +++ b/assets/components/p2/Page2.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.8", + "uuid": "59d92a0d-a51a-4e6d-83ed-6e4cc4751f85", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/components/p2/p2.prefab b/assets/components/p2/p2.prefab index 094bbe6..7c60088 100644 --- a/assets/components/p2/p2.prefab +++ b/assets/components/p2/p2.prefab @@ -34,10 +34,13 @@ "_components": [ { "__id__": 27 + }, + { + "__id__": 28 } ], "_prefab": { - "__id__": 28 + "__id__": 29 }, "_opacity": 255, "_color": { @@ -1017,6 +1020,17 @@ "_atlas": null, "_id": "" }, + { + "__type__": "59d92oNpRpObYPtbkzEdR+F", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "pageName": "gameplay", + "_id": "" + }, { "__type__": "cc.PrefabInfo", "root": { diff --git a/assets/components/p3/Page3.ts b/assets/components/p3/Page3.ts index c85af00..84008d8 100644 --- a/assets/components/p3/Page3.ts +++ b/assets/components/p3/Page3.ts @@ -1,7 +1,9 @@ +import Page from '../Page' + const {ccclass, property} = cc._decorator; @ccclass -export default class Page3 extends cc.Component { +export default class Page3 extends Page { @property({ type: cc.PageView }) pageView: cc.PageView = null diff --git a/assets/components/p3/p3.prefab b/assets/components/p3/p3.prefab index e3019bf..6e721cd 100644 --- a/assets/components/p3/p3.prefab +++ b/assets/components/p3/p3.prefab @@ -1593,6 +1593,7 @@ "__id__": 1 }, "_enabled": true, + "pageName": "nft", "pageView": { "__id__": 29 }, diff --git a/assets/components/p4/Page4.ts b/assets/components/p4/Page4.ts new file mode 100644 index 0000000..492227a --- /dev/null +++ b/assets/components/p4/Page4.ts @@ -0,0 +1,16 @@ +import { PAGE_ON_SHOW } from '../../scripts/JCEvent' +import Page from '../Page' + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class Page4 extends Page { + + start () { + cc.zevent.on(PAGE_ON_SHOW, (index: number) => { + if (index === 4) { + + } + }) + } +} diff --git a/assets/components/p4/Page4.ts.meta b/assets/components/p4/Page4.ts.meta new file mode 100644 index 0000000..90a0910 --- /dev/null +++ b/assets/components/p4/Page4.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.8", + "uuid": "d1e3a6a1-718d-445e-b469-387fc35199ab", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/components/p4/p4.prefab b/assets/components/p4/p4.prefab index 979e4b3..7e0fd9f 100644 --- a/assets/components/p4/p4.prefab +++ b/assets/components/p4/p4.prefab @@ -43,10 +43,13 @@ "_components": [ { "__id__": 35 + }, + { + "__id__": 36 } ], "_prefab": { - "__id__": 36 + "__id__": 37 }, "_opacity": 255, "_color": { @@ -1320,6 +1323,17 @@ "_atlas": null, "_id": "" }, + { + "__type__": "d1e3aahcY1EXrRpOH/DUZmr", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "pageName": "chip", + "_id": "" + }, { "__type__": "cc.PrefabInfo", "root": { diff --git a/assets/resources.meta b/assets/resources.meta index 12e4e18..eeb7b9a 100644 --- a/assets/resources.meta +++ b/assets/resources.meta @@ -1,9 +1,9 @@ { "ver": "1.1.2", "uuid": "2eebd6cf-e464-4158-b356-87fdfd217e78", - "isBundle": false, - "bundleName": "", - "priority": 1, + "isBundle": true, + "bundleName": "resources", + "priority": 8, "compressionType": {}, "optimizeHotUpdate": {}, "inlineSpriteFrames": {}, diff --git a/assets/scene/main.fire b/assets/scene/main.fire index 9d083dc..9924240 100644 --- a/assets/scene/main.fire +++ b/assets/scene/main.fire @@ -84,13 +84,13 @@ "_active": true, "_components": [ { - "__id__": 96 + "__id__": 99 }, { - "__id__": 97 + "__id__": 100 }, { - "__id__": 98 + "__id__": 101 } ], "_prefab": null, @@ -180,7 +180,7 @@ "array": [ 0, 0, - 352.4651589226626, + 353.3311666841434, 0, 0, 0, @@ -588,22 +588,24 @@ "__id__": 17 }, { - "__id__": 19 + "__id__": 20 } ], "_active": true, "_components": [ - { - "__id__": 93 - }, - { - "__id__": 94 - }, { "__id__": 95 + }, + { + "__id__": 96 + }, + { + "__id__": 97 } ], - "_prefab": null, + "_prefab": { + "__id__": 98 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -649,7 +651,7 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "7eAKnlNy9OX6lcDnRKz7YN" + "_id": "57xBNSJ7pCzKs1h5M5Bibx" }, { "__type__": "cc.Node", @@ -665,7 +667,9 @@ "__id__": 18 } ], - "_prefab": null, + "_prefab": { + "__id__": 19 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -711,7 +715,7 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "9evRQzAMNLman3zxcMengB" + "_id": "eegMrgtEhApKC7sTTmuhos" }, { "__type__": "cc.Sprite", @@ -743,7 +747,18 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "9ahIphyCRIU5DovTKRDCSs" + "_id": "342K9l/JVBkIgiW69Sbgx5" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 16 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "aeTftZ2CtNvZfSrgYnqeuk", + "sync": false }, { "__type__": "cc.Node", @@ -754,34 +769,36 @@ }, "_children": [ { - "__id__": 20 + "__id__": 21 }, { - "__id__": 32 + "__id__": 33 }, { - "__id__": 44 + "__id__": 45 }, { - "__id__": 56 + "__id__": 57 }, { - "__id__": 68 + "__id__": 69 }, { - "__id__": 80 + "__id__": 81 } ], "_active": true, "_components": [ { - "__id__": 91 + "__id__": 92 }, { - "__id__": 92 + "__id__": 93 } ], - "_prefab": null, + "_prefab": { + "__id__": 94 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -827,34 +844,34 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "9dtAcR33BBy6y3nj5oH5dv" + "_id": "86b0N3DTlPd5g+f2b+b8eV" }, { "__type__": "cc.Node", "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 21 + "__id__": 22 }, { - "__id__": 24 + "__id__": 25 } ], "_active": true, "_components": [ { - "__id__": 28 + "__id__": 29 }, { - "__id__": 29 + "__id__": 30 } ], "_prefab": { - "__id__": 31 + "__id__": 32 }, "_opacity": 255, "_color": { @@ -901,24 +918,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "97eJshHg1HN40a5lUmnQr7" + "_id": "28cz2fn5pEn7IOy2HZqy+i" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 20 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 22 + "__id__": 23 } ], "_prefab": { - "__id__": 23 + "__id__": 24 }, "_opacity": 255, "_color": { @@ -965,14 +982,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "14r3577gBI95wibAp5lDt0" + "_id": "d5pJhPn9JHS5zEyfNl4lKD" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 21 + "__id__": 22 }, "_enabled": true, "_materials": [ @@ -997,12 +1014,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "10/x+HLC5BYLwmiBpDaFBF" + "_id": "e7Cwlbt85DKrbrfsEd5pcn" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 20 + "__id__": 21 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1015,20 +1032,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 20 + "__id__": 21 }, "_children": [], "_active": false, "_components": [ { - "__id__": 25 + "__id__": 26 }, { - "__id__": 26 + "__id__": 27 } ], "_prefab": { - "__id__": 27 + "__id__": 28 }, "_opacity": 255, "_color": { @@ -1075,14 +1092,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "e6fN6DYCJPip1hvT/kQhxb" + "_id": "d6yEv3bF1K/Kb5ujNYZhpY" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 24 + "__id__": 25 }, "_enabled": true, "_materials": [ @@ -1107,14 +1124,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "43a8yCLsdHj4smHwEJYCk4" + "_id": "75rdpxmRZJ2Kpq/V39LtqF" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 24 + "__id__": 25 }, "_enabled": true, "alignMode": 1, @@ -1134,12 +1151,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "e0so0s5FZAhr9FNQPfLH91" + "_id": "d6SQ3k/chBMYgwJul3BXIi" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 20 + "__id__": 21 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1152,25 +1169,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 20 + "__id__": 21 }, "_enabled": true, "titleImg": { - "__id__": 22 + "__id__": 23 }, "bgNode": { - "__id__": 24 + "__id__": 25 }, "index": 0, "needChange": true, - "_id": "05ppXMg11Ae496UIhb91nO" + "pageName": "home", + "_id": "23zdCGEhlEMqTuhySIU4ho" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 20 + "__id__": 21 }, "_enabled": true, "_normalMaterial": null, @@ -1179,7 +1197,7 @@ "zoomScale": 1.2, "clickEvents": [ { - "__id__": 30 + "__id__": 31 } ], "_N$interactable": true, @@ -1235,14 +1253,14 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": { - "__id__": 20 + "__id__": 21 }, - "_id": "d9JETI0BFD54gr3nnRjXhR" + "_id": "66d1O8fslBNpTaafht3/Jt" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 20 + "__id__": 21 }, "component": "", "_componentId": "1884782OwNJ26JHRLAP4Swy", @@ -1252,7 +1270,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 20 + "__id__": 21 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1265,27 +1283,27 @@ "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 33 + "__id__": 34 }, { - "__id__": 36 + "__id__": 37 } ], "_active": true, "_components": [ { - "__id__": 40 + "__id__": 41 }, { - "__id__": 41 + "__id__": 42 } ], "_prefab": { - "__id__": 43 + "__id__": 44 }, "_opacity": 255, "_color": { @@ -1332,24 +1350,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "32axG77BZHYJi2VXSlOiCN" + "_id": "b4PJsdddtAl5q98Ovi/eBt" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 32 + "__id__": 33 }, "_children": [], "_active": true, "_components": [ { - "__id__": 34 + "__id__": 35 } ], "_prefab": { - "__id__": 35 + "__id__": 36 }, "_opacity": 255, "_color": { @@ -1396,14 +1414,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "88TDKFn+BO96rMamzQJ8WR" + "_id": "0bOfJD3+RMn50J+Rm1dQ4B" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 33 + "__id__": 34 }, "_enabled": true, "_materials": [ @@ -1428,12 +1446,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "62NwOw31lP8KBu3H1KfPwM" + "_id": "80C/5Bh+5P7qIwgl0OxwEE" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 32 + "__id__": 33 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1446,20 +1464,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 32 + "__id__": 33 }, "_children": [], "_active": false, "_components": [ { - "__id__": 37 + "__id__": 38 }, { - "__id__": 38 + "__id__": 39 } ], "_prefab": { - "__id__": 39 + "__id__": 40 }, "_opacity": 255, "_color": { @@ -1506,14 +1524,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "c1oCzhVvRK9ZOz0M83j2Yf" + "_id": "25i+EXdE1HdJYWnNK5+XD1" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 36 + "__id__": 37 }, "_enabled": true, "_materials": [ @@ -1538,14 +1556,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "c0y5v0d5tOVYCxd8RbIzmz" + "_id": "29YOpYb7lLp7wSxL7NpL0x" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 36 + "__id__": 37 }, "_enabled": true, "alignMode": 1, @@ -1565,12 +1583,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "113pAySsNE4aefG7dmx1BA" + "_id": "32WRDtwrFN0YA7NWz1qatM" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 32 + "__id__": 33 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1583,25 +1601,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 32 + "__id__": 33 }, "_enabled": true, "titleImg": { - "__id__": 34 + "__id__": 35 }, "bgNode": { - "__id__": 36 + "__id__": 37 }, "index": 1, "needChange": false, - "_id": "90ZBH3MC1AsYNa3o7ylpyh" + "pageName": "video", + "_id": "fcAaCi8yBEt7gMz2FbO05V" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 32 + "__id__": 33 }, "_enabled": true, "_normalMaterial": null, @@ -1610,7 +1629,7 @@ "zoomScale": 1.2, "clickEvents": [ { - "__id__": 42 + "__id__": 43 } ], "_N$interactable": true, @@ -1666,12 +1685,12 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": null, - "_id": "bcAYNA83hLGaBine/8q5MS" + "_id": "99ejqba7REwZPQ2PhrYvQv" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 32 + "__id__": 33 }, "component": "", "_componentId": "1884782OwNJ26JHRLAP4Swy", @@ -1681,7 +1700,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 32 + "__id__": 33 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1694,27 +1713,27 @@ "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 45 + "__id__": 46 }, { - "__id__": 48 + "__id__": 49 } ], "_active": true, "_components": [ { - "__id__": 52 + "__id__": 53 }, { - "__id__": 53 + "__id__": 54 } ], "_prefab": { - "__id__": 55 + "__id__": 56 }, "_opacity": 255, "_color": { @@ -1761,24 +1780,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "84YJ4TC/hBqLNlpBqmhsug" + "_id": "3eG13sLDVIjoflusEU+M0J" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 44 + "__id__": 45 }, "_children": [], "_active": true, "_components": [ { - "__id__": 46 + "__id__": 47 } ], "_prefab": { - "__id__": 47 + "__id__": 48 }, "_opacity": 255, "_color": { @@ -1825,14 +1844,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "69ogoFpr1G0pbAenQeDd1X" + "_id": "52YwvYe4NAQZOjF1PBLUN2" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 45 + "__id__": 46 }, "_enabled": true, "_materials": [ @@ -1857,12 +1876,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "f2sE/ZGchLuYm0ic6O2XJI" + "_id": "c4DPnribZLQpFclYntw0ux" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 44 + "__id__": 45 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -1875,20 +1894,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 44 + "__id__": 45 }, "_children": [], "_active": false, "_components": [ { - "__id__": 49 + "__id__": 50 }, { - "__id__": 50 + "__id__": 51 } ], "_prefab": { - "__id__": 51 + "__id__": 52 }, "_opacity": 255, "_color": { @@ -1935,14 +1954,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "ef/R5qG81K9oY29y/zMnsB" + "_id": "cdNMp3JsFJLqXrnI3X7ubU" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 48 + "__id__": 49 }, "_enabled": true, "_materials": [ @@ -1967,14 +1986,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "4bLS67AwJL7o6Im7/Lcsfu" + "_id": "35PzVT7xFGq4xPQWo2jpB8" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 48 + "__id__": 49 }, "_enabled": true, "alignMode": 1, @@ -1994,12 +2013,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "18rg0oB1tJZIl1oT3EilWF" + "_id": "e2zk5oREBDCJn+thgaq1ww" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 44 + "__id__": 45 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2012,25 +2031,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 44 + "__id__": 45 }, "_enabled": true, "titleImg": { - "__id__": 46 + "__id__": 47 }, "bgNode": { - "__id__": 48 + "__id__": 49 }, "index": 2, "needChange": true, - "_id": "f9w9I+eS5ItY9pBtZY+IuQ" + "pageName": "gameplay", + "_id": "113v12a6BBDbvCWz7Ruhh+" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 44 + "__id__": 45 }, "_enabled": true, "_normalMaterial": null, @@ -2039,7 +2059,7 @@ "zoomScale": 1.2, "clickEvents": [ { - "__id__": 54 + "__id__": 55 } ], "_N$interactable": true, @@ -2095,12 +2115,12 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": null, - "_id": "4bg/Z2LQpFjYI5itqOBrJR" + "_id": "66/QM97eNG3L1LkJ0UFcrP" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 44 + "__id__": 45 }, "component": "", "_componentId": "1884782OwNJ26JHRLAP4Swy", @@ -2110,7 +2130,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 44 + "__id__": 45 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2123,27 +2143,27 @@ "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 57 + "__id__": 58 }, { - "__id__": 60 + "__id__": 61 } ], "_active": true, "_components": [ { - "__id__": 64 + "__id__": 65 }, { - "__id__": 65 + "__id__": 66 } ], "_prefab": { - "__id__": 67 + "__id__": 68 }, "_opacity": 255, "_color": { @@ -2190,24 +2210,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "01ybeZ2KBJcLx55HdUqdv3" + "_id": "f7EAwc2B1DkZNvKBkrDfAP" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 56 + "__id__": 57 }, "_children": [], "_active": true, "_components": [ { - "__id__": 58 + "__id__": 59 } ], "_prefab": { - "__id__": 59 + "__id__": 60 }, "_opacity": 255, "_color": { @@ -2254,14 +2274,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "75A/YHT1FGFJ+7CTnnnX2k" + "_id": "1dgrrhciZFmqB4Qp5iaCE2" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 57 + "__id__": 58 }, "_enabled": true, "_materials": [ @@ -2286,12 +2306,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "09zX/ORLBIrLY6xr64ZXIB" + "_id": "78bIlTTWlA1Y/0R5l79Y4Y" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 56 + "__id__": 57 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2304,20 +2324,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 56 + "__id__": 57 }, "_children": [], "_active": false, "_components": [ { - "__id__": 61 + "__id__": 62 }, { - "__id__": 62 + "__id__": 63 } ], "_prefab": { - "__id__": 63 + "__id__": 64 }, "_opacity": 255, "_color": { @@ -2364,14 +2384,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "86P7oSsDpFoIvmWBYGAbwb" + "_id": "7aewBamI5J6bi1jJbQSqbZ" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 60 + "__id__": 61 }, "_enabled": true, "_materials": [ @@ -2396,14 +2416,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "65ZBHrNT5DJLHgrfO6Hxap" + "_id": "84CEfozCdEdZgj6B2mQ7pv" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 60 + "__id__": 61 }, "_enabled": true, "alignMode": 1, @@ -2423,12 +2443,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "2azBi8vPNBp6i58iekrZQl" + "_id": "28SjgSCwNKHp/OIHI+KCDP" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 56 + "__id__": 57 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2441,25 +2461,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 56 + "__id__": 57 }, "_enabled": true, "titleImg": { - "__id__": 58 + "__id__": 59 }, "bgNode": { - "__id__": 60 + "__id__": 61 }, "index": 3, "needChange": true, - "_id": "68T56K14JIpp/xQ4ZPIbNZ" + "pageName": "nft", + "_id": "38sknpxoxK2LHmi0OpK6Ps" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 56 + "__id__": 57 }, "_enabled": true, "_normalMaterial": null, @@ -2468,7 +2489,7 @@ "zoomScale": 1.2, "clickEvents": [ { - "__id__": 66 + "__id__": 67 } ], "_N$interactable": true, @@ -2524,12 +2545,12 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": null, - "_id": "0f4k6RJM1N5JyUyKiC9UMk" + "_id": "84wHBplZdMyLZ+92q84iez" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 56 + "__id__": 57 }, "component": "", "_componentId": "1884782OwNJ26JHRLAP4Swy", @@ -2539,7 +2560,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 56 + "__id__": 57 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2552,27 +2573,27 @@ "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 69 + "__id__": 70 }, { - "__id__": 72 + "__id__": 73 } ], "_active": true, "_components": [ { - "__id__": 76 + "__id__": 77 }, { - "__id__": 77 + "__id__": 78 } ], "_prefab": { - "__id__": 79 + "__id__": 80 }, "_opacity": 255, "_color": { @@ -2619,24 +2640,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "3cPpDDGgZOepvLjb2wA0f3" + "_id": "ebBdXhIilIj6Xxv15U02g6" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 69 }, "_children": [], "_active": true, "_components": [ { - "__id__": 70 + "__id__": 71 } ], "_prefab": { - "__id__": 71 + "__id__": 72 }, "_opacity": 255, "_color": { @@ -2683,14 +2704,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "5ctZPbMAFDy42bAqClQdj6" + "_id": "80UzZw6SVLM6zIYsFWMln/" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 69 + "__id__": 70 }, "_enabled": true, "_materials": [ @@ -2715,12 +2736,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "29W0km435AyqHdbgzkmvIe" + "_id": "e83KM9qPZEqJttZdRvSa2o" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 68 + "__id__": 69 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2733,20 +2754,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 68 + "__id__": 69 }, "_children": [], "_active": false, "_components": [ { - "__id__": 73 + "__id__": 74 }, { - "__id__": 74 + "__id__": 75 } ], "_prefab": { - "__id__": 75 + "__id__": 76 }, "_opacity": 255, "_color": { @@ -2793,14 +2814,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "9f8n1Uz2ZHQJiJocS3xXYY" + "_id": "73BxC0XRhKna9bdPT//OVn" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 72 + "__id__": 73 }, "_enabled": true, "_materials": [ @@ -2825,14 +2846,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "balbpIYbNDs4JbEcyRtfli" + "_id": "4d3IcqkNVJoak9S18GLEnV" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 72 + "__id__": 73 }, "_enabled": true, "alignMode": 1, @@ -2852,12 +2873,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "49sMt6gXdCT7XlJU0dklZt" + "_id": "3bAfq+6HNI+a+mtGCsDWe4" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 68 + "__id__": 69 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2870,25 +2891,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 68 + "__id__": 69 }, "_enabled": true, "titleImg": { - "__id__": 70 + "__id__": 71 }, "bgNode": { - "__id__": 72 + "__id__": 73 }, "index": 4, "needChange": true, - "_id": "bcXjwcAPJEnbTEI+iORQNE" + "pageName": "chip", + "_id": "b5TpjUwBJO4af5Tt8E75Gt" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 68 + "__id__": 69 }, "_enabled": true, "_normalMaterial": null, @@ -2897,7 +2919,7 @@ "zoomScale": 1.2, "clickEvents": [ { - "__id__": 78 + "__id__": 79 } ], "_N$interactable": true, @@ -2953,12 +2975,12 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": null, - "_id": "7dcV0lj91KZ4nC7HntgheW" + "_id": "ba4OX0cSBG55A+3CyGc6c2" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 68 + "__id__": 69 }, "component": "", "_componentId": "1884782OwNJ26JHRLAP4Swy", @@ -2968,7 +2990,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 68 + "__id__": 69 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -2981,27 +3003,27 @@ "_name": "top_btn", "_objFlags": 0, "_parent": { - "__id__": 19 + "__id__": 20 }, "_children": [ { - "__id__": 81 + "__id__": 82 }, { - "__id__": 84 + "__id__": 85 } ], "_active": true, "_components": [ { - "__id__": 88 + "__id__": 89 }, { - "__id__": 89 + "__id__": 90 } ], "_prefab": { - "__id__": 90 + "__id__": 91 }, "_opacity": 255, "_color": { @@ -3048,24 +3070,24 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "e0TUgBhD5PBLBtjmfYYa0t" + "_id": "60VlwkdA9HCaO8YsRtFYDp" }, { "__type__": "cc.Node", "_name": "btn_chip", "_objFlags": 0, "_parent": { - "__id__": 80 + "__id__": 81 }, "_children": [], "_active": true, "_components": [ { - "__id__": 82 + "__id__": 83 } ], "_prefab": { - "__id__": 83 + "__id__": 84 }, "_opacity": 255, "_color": { @@ -3112,14 +3134,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "a9xhTmFrFE2ITew42qeTkT" + "_id": "c0fxuVlKxPIZR9Y6nMCBjv" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 81 + "__id__": 82 }, "_enabled": true, "_materials": [ @@ -3144,12 +3166,12 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "6awvRe1vlADbkcvnnKWV2B" + "_id": "achuOxdVREOoQVNWF1e1V+" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 80 + "__id__": 81 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -3162,20 +3184,20 @@ "_name": "btn_bg", "_objFlags": 0, "_parent": { - "__id__": 80 + "__id__": 81 }, "_children": [], "_active": true, "_components": [ { - "__id__": 85 + "__id__": 86 }, { - "__id__": 86 + "__id__": 87 } ], "_prefab": { - "__id__": 87 + "__id__": 88 }, "_opacity": 255, "_color": { @@ -3222,14 +3244,14 @@ "_is3DNode": false, "_groupIndex": 0, "groupIndex": 0, - "_id": "87uRJDNd9DgrfiCJuhgjZW" + "_id": "ddtEZ8GjlOO61b+WjlHASx" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 84 + "__id__": 85 }, "_enabled": false, "_materials": [ @@ -3254,14 +3276,14 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "12gRmPLcFJRIFpAA42xDmB" + "_id": "9ebN1qW/tGO4j0tn83xejP" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 84 + "__id__": 85 }, "_enabled": true, "alignMode": 1, @@ -3281,12 +3303,12 @@ "_isAbsVerticalCenter": true, "_originalWidth": 137, "_originalHeight": 0, - "_id": "30txy3ckVFq5/xIqgXMZzi" + "_id": "1dmxiscRhDR66Do1+ZH5kt" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 80 + "__id__": 81 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -3299,25 +3321,26 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 80 + "__id__": 81 }, "_enabled": true, "titleImg": { - "__id__": 82 + "__id__": 83 }, "bgNode": { - "__id__": 84 + "__id__": 85 }, "index": 5, "needChange": false, - "_id": "e2BuYbi3VAeIvvSLgMSRF7" + "pageName": "market", + "_id": "2894F2NddHbJT+9cSaHoHb" }, { "__type__": "cc.Button", "_name": "", "_objFlags": 0, "node": { - "__id__": 80 + "__id__": 81 }, "_enabled": true, "_normalMaterial": null, @@ -3378,12 +3401,12 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": null, - "_id": "87QAZ8z6xFR7ma+ZhnTq6y" + "_id": "87vtsUMeBI2qaXLKU+W/aY" }, { "__type__": "cc.PrefabInfo", "root": { - "__id__": 80 + "__id__": 81 }, "asset": { "__uuid__": "5ca1e837-34e8-4af5-a008-7f9f85298b70" @@ -3396,7 +3419,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 19 + "__id__": 20 }, "_enabled": true, "alignMode": 1, @@ -3416,14 +3439,14 @@ "_isAbsVerticalCenter": true, "_originalWidth": 0, "_originalHeight": 0, - "_id": "51S5aMV4RMv4eSS70SXrJp" + "_id": "eeovxoUhpFL5fxEReNGkFC" }, { "__type__": "cc.Layout", "_name": "", "_objFlags": 0, "node": { - "__id__": 19 + "__id__": 20 }, "_enabled": true, "_layoutSize": { @@ -3448,7 +3471,18 @@ "_N$verticalDirection": 1, "_N$horizontalDirection": 0, "_N$affectedByScale": false, - "_id": "f6Ny+f2cpB7IW6D3nsYQFn" + "_id": "e7VC4NhwlAJ7E4xYH38tyw" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 16 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "28d+nKhxxD6K71zBJNtVFb", + "sync": false }, { "__type__": "cc.Widget", @@ -3475,7 +3509,7 @@ "_isAbsVerticalCenter": true, "_originalWidth": 0, "_originalHeight": 0, - "_id": "6dhExCCudHGKGMNdS4K+RZ" + "_id": "6cyP+p9ulB5rFJfZG2TctV" }, { "__type__": "cc.Sprite", @@ -3507,7 +3541,7 @@ "_fillRange": 0, "_isTrimmedMode": true, "_atlas": null, - "_id": "eaT7k1rM9MIISJLDbDgUoj" + "_id": "5ewiP/iZBFV7LJSUkCEUXo" }, { "__type__": "9c9dfsQpn9BHLzPcy+ysoKA", @@ -3518,29 +3552,40 @@ }, "_enabled": true, "container": { - "__id__": 19 + "__id__": 20 }, "btns": [ { - "__id__": 28 + "__id__": 29 }, { - "__id__": 40 + "__id__": 41 }, { - "__id__": 52 + "__id__": 53 }, { - "__id__": 64 + "__id__": 65 }, { - "__id__": 76 + "__id__": 77 }, { - "__id__": 88 + "__id__": 89 } ], - "_id": "00LfdHuaJO+IXC+PjPqE2p" + "_id": "a2tRVFvc5BubXSw3hdeMWf" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 16 + }, + "asset": { + "__uuid__": "22f839be-6f25-4956-bd01-dfcd391f95e1" + }, + "fileId": "", + "sync": false }, { "__type__": "cc.Canvas", diff --git a/assets/scripts/JCEvent.ts b/assets/scripts/JCEvent.ts index 6e5e2c9..c295de4 100644 --- a/assets/scripts/JCEvent.ts +++ b/assets/scripts/JCEvent.ts @@ -1,3 +1,12 @@ +/** + * top menu button on clicked + */ +export const TOP_BTN_CHANGE = 'top_btn_change' +/** + * part page on show + */ +export const PAGE_ON_SHOW = 'page_on_show' + let createNanoEvents = () => ({ events: {}, emit (event, ...args) { diff --git a/assets/scripts/scene/main.ts b/assets/scripts/scene/main.ts index 27b1ff5..2c7cc4e 100644 --- a/assets/scripts/scene/main.ts +++ b/assets/scripts/scene/main.ts @@ -1,10 +1,10 @@ +import { PAGE_ON_SHOW, TOP_BTN_CHANGE } from '../JCEvent' + const {ccclass, property} = cc._decorator; import('../JCEvent') @ccclass -export default class NewClass extends cc.Component { -// @property({ type: cc.Node }) -// snode: cc.Node = null +export default class MainClass extends cc.Component { @property({type: [cc.Node]}) pages: cc.Node[] = [] @property({type: cc.Node}) @@ -13,7 +13,11 @@ export default class NewClass extends cc.Component { private isScrolling = false start () { - cc.zevent.on('top_btn_change', (index: number) => { + cc.zevent.on(TOP_BTN_CHANGE, (pageName: string) => { + let index = this.pages.findIndex(o => { + let comp = o.getComponent('Page') + return comp?.pageName === pageName + }) this.showPage(index) }) this.node.on(cc.Node.EventType.MOUSE_WHEEL, this.mouseScroll, this) @@ -30,12 +34,13 @@ export default class NewClass extends cc.Component { let self = this this.isScrolling = true const pageSize = 1037 - let y = index < 1 ? pageSize * index : pageSize * (index - 1) + let y = pageSize * index cc.tween(this.content) .to(1, {position: cc.v3(0, y, 0)}, { easing: 'sineOut'}) .call(() => { self.isScrolling = false self.currentPage = index + cc.zevent.emit(PAGE_ON_SHOW, index) }) .start() }