diff --git a/assets/comp/wallet/prefab/chianBtn.prefab b/assets/comp/wallet/prefab/chianBtn.prefab index 149625c..f19d74d 100644 --- a/assets/comp/wallet/prefab/chianBtn.prefab +++ b/assets/comp/wallet/prefab/chianBtn.prefab @@ -31,10 +31,13 @@ }, { "__id__": 7 + }, + { + "__id__": 8 } ], "_prefab": { - "__id__": 8 + "__id__": 10 }, "_opacity": 255, "_color": { @@ -273,6 +276,86 @@ "_N$affectedByScale": false, "_id": "" }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 9 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "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__": 1 + }, + "component": "", + "_componentId": "7b631hG5VxEu6deSSqBp4B1", + "handler": "onClick", + "customEventData": "" + }, { "__type__": "cc.PrefabInfo", "root": { diff --git a/assets/comp/wallet/prefab/tabBtn.prefab b/assets/comp/wallet/prefab/tabBtn.prefab new file mode 100644 index 0000000..b91cf73 --- /dev/null +++ b/assets/comp/wallet/prefab/tabBtn.prefab @@ -0,0 +1,334 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "tabBtn", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 5 + }, + { + "__id__": 6 + }, + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 9 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 153, + "g": 153, + "b": 153, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 80 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 110, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "New Label", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_level": 4, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": { + "__id__": 4 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 153, + "g": 153, + "b": 153, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 63.37, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 90, + "_rotationY": 90, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": -0.7071067811865475, + "w": 0.7071067811865476 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_useOriginalSize": false, + "_string": "Tokens", + "_N$string": "Tokens", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f" + }, + "fileId": "0eFiIBpkxFprj9q+ngUQWf", + "sync": false + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "13d3eb87-b218-4fb7-b7c2-31e8a58b67bc" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "7b631hG5VxEu6deSSqBp4B1", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "titleLabel": { + "__id__": 3 + }, + "border": { + "__id__": 1 + }, + "title": "", + "selected": false, + "colors": [ + { + "__type__": "cc.Color", + "r": 127, + "g": 127, + "b": 127, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 0, + "g": 255, + "b": 0, + "a": 255 + } + ], + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 8 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "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__": 1 + }, + "component": "", + "_componentId": "7b631hG5VxEu6deSSqBp4B1", + "handler": "onClick", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f" + }, + "fileId": "d9Su+XfHhMuaIxSt7nzqdk", + "sync": false + } +] \ No newline at end of file diff --git a/assets/comp/wallet/prefab/tabBtn.prefab.meta b/assets/comp/wallet/prefab/tabBtn.prefab.meta new file mode 100644 index 0000000..dbe47c7 --- /dev/null +++ b/assets/comp/wallet/prefab/tabBtn.prefab.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "907f9b53-1333-4900-b166-4ba7a7b6e09f", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/JCWallet.ts b/assets/comp/wallet/scripts/JCWallet.ts index 007d4db..ec62ec3 100644 --- a/assets/comp/wallet/scripts/JCWallet.ts +++ b/assets/comp/wallet/scripts/JCWallet.ts @@ -2,7 +2,8 @@ import { singleton } from "./decorator/singleton.decorator"; import Web3 = require('./lib/web3.min'); import sth = require("./lib/ethSigUtil"); import { ZError } from "./common/ZError"; -import { AllChains } from './data/allchain'; +import { AllChains } from "./data/allchain"; + export interface IChainData { name: string, diff --git a/assets/comp/wallet/scripts/ui/ButtonGroup.ts b/assets/comp/wallet/scripts/ui/ButtonGroup.ts index 12169cb..66f166a 100644 --- a/assets/comp/wallet/scripts/ui/ButtonGroup.ts +++ b/assets/comp/wallet/scripts/ui/ButtonGroup.ts @@ -1,7 +1,9 @@ const {ccclass, property} = cc._decorator; -import TextBtn from "./TextBtn"; +import TextBtn, { TEXTBTN_CLICKED } from "./TextBtn"; import WalletBase from "./WallerBase"; +export const BTN_SELECT_INDEX_CHANGE = 'btn_select_index_change' + @ccclass export default class ButtonGroup extends WalletBase { @property({ @@ -18,4 +20,25 @@ export default class ButtonGroup extends WalletBase { } // update (dt) {} + resetBtns() { + for (let btn of this.btns) { + btn.node.off(TEXTBTN_CLICKED); + } + this.btns.length = 0 + this.node.removeAllChildren() + } + + addBtn(btn: TextBtn) { + this.btns.push(btn); + btn.node.on(TEXTBTN_CLICKED, this.onChildBtnClicked.bind(this)) + this.node.addChild(btn.node); + } + + onChildBtnClicked(data: {index: number}) { + console.log(`textbtn clicked: ${JSON.stringify(data)}`) + for (let btn of this.btns) { + btn.selected = btn.index === data.index + } + this.node.emit(BTN_SELECT_INDEX_CHANGE, data) + } } diff --git a/assets/comp/wallet/scripts/ui/ChainTab.ts b/assets/comp/wallet/scripts/ui/ChainTab.ts index eadc4ca..b3f77cc 100644 --- a/assets/comp/wallet/scripts/ui/ChainTab.ts +++ b/assets/comp/wallet/scripts/ui/ChainTab.ts @@ -1,5 +1,5 @@ import JCWallet from "../JCWallet"; -import ButtonGroup from "./ButtonGroup"; +import ButtonGroup, { BTN_SELECT_INDEX_CHANGE } from "./ButtonGroup"; import TextBtn from "./TextBtn"; const {ccclass, property} = cc._decorator; @@ -23,9 +23,15 @@ export default class ChainTab extends cc.Component { start () { this.wallet = new JCWallet() + this.btnGroup.node.on(BTN_SELECT_INDEX_CHANGE, + this.onChainSelectChange) this.updateChains() } + onDestroy() { + this.btnGroup.node.off(BTN_SELECT_INDEX_CHANGE) + } + // update (dt) {} updateChains() { @@ -34,12 +40,18 @@ export default class ChainTab extends cc.Component { return; } this.node.removeAllChildren() + let i = 0; for (const chain of chains) { const btn = cc.instantiate(this.btnPreb) const btnM: TextBtn = btn.getComponent(TextBtn) - this.node.addChild(btn) + this.btnGroup.addBtn(btnM); btnM.title = chain.name + btnM.index = i ++ btnM.selected = this.wallet.currentChain.id === chain.id } } + + onChainSelectChange(data: {index: number}) { + console.log('on chain change: ', JSON.stringify(data)) + } } diff --git a/assets/comp/wallet/scripts/ui/TextBtn.ts b/assets/comp/wallet/scripts/ui/TextBtn.ts index 2c7140c..40df525 100644 --- a/assets/comp/wallet/scripts/ui/TextBtn.ts +++ b/assets/comp/wallet/scripts/ui/TextBtn.ts @@ -4,6 +4,7 @@ import WalletBase from "./WallerBase"; const {ccclass, property} = cc._decorator; +export const TEXTBTN_CLICKED = 'textbtn_clicked' @ccclass export default class TextBtn extends WalletBase { @@ -21,6 +22,8 @@ export default class TextBtn extends WalletBase { @property selected: boolean = false; + index: number = 0 + @property({ type: [cc.Color] }) @@ -41,4 +44,8 @@ export default class TextBtn extends WalletBase { this.titleLabel.node.color = color this.border.color = color } + + onClick() { + this.node.emit(TEXTBTN_CLICKED, {index: this.index}) + } } diff --git a/assets/comp/wallet/scripts/ui/TokenTab.ts b/assets/comp/wallet/scripts/ui/TokenTab.ts new file mode 100644 index 0000000..117b362 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/TokenTab.ts @@ -0,0 +1,53 @@ +import JCWallet from "../JCWallet"; +import ButtonGroup, { BTN_SELECT_INDEX_CHANGE } from "./ButtonGroup"; +import TextBtn from "./TextBtn"; + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class TokenTab extends cc.Component { + private wallet: JCWallet + + @property({ + type: ButtonGroup + }) + btnGroup: ButtonGroup = null + + @property({ + type: cc.Prefab + }) + btnPreb: cc.Prefab = null + // LIFE-CYCLE CALLBACKS: + + // onLoad () {} + private titles = ['Tokens', 'Hero', 'Weapon', 'Chip'] + + start () { + this.wallet = new JCWallet() + this.btnGroup.resetBtns() + this.btnGroup.node.on(BTN_SELECT_INDEX_CHANGE, + this.onTokenTypeChange.bind(this)) + this.showAllBtn(); + } + + onDestroy() { + this.btnGroup.node.off(BTN_SELECT_INDEX_CHANGE) + } + + // update (dt) {} + showAllBtn() { + console.log('show all token tab') + for (let i = 0, l = this.titles.length; i < l; i++) { + const btn = cc.instantiate(this.btnPreb) + const btnM: TextBtn = btn.getComponent(TextBtn) + this.btnGroup.addBtn(btnM); + btnM.title = this.titles[i] + btnM.index = i + btnM.selected = i === 0 + } + } + + onTokenTypeChange(data: {index: number}) { + console.log('on token change: ', JSON.stringify(data)) + } +} diff --git a/assets/comp/wallet/scripts/ui/TokenTab.ts.meta b/assets/comp/wallet/scripts/ui/TokenTab.ts.meta new file mode 100644 index 0000000..2d24830 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/TokenTab.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "1509d53c-4897-4e44-b6b6-3557947e4017", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/scenes/main.fire b/assets/scenes/main.fire index c0c7f04..e1d175c 100644 --- a/assets/scenes/main.fire +++ b/assets/scenes/main.fire @@ -17,10 +17,10 @@ "__id__": 2 }, { - "__id__": 211 + "__id__": 215 } ], - "_active": true, + "_active": false, "_level": 0, "_components": [], "_prefab": null, @@ -44,8 +44,8 @@ }, "_scale": { "__type__": "cc.Vec3", - "x": 0.6589463895975868, - "y": 0.6589463895975868, + "x": 0.43373552062052806, + "y": 0.43373552062052806, "z": 1 }, "_quat": { @@ -84,16 +84,16 @@ } ], "_active": true, - "_level": 0, + "_level": 1, "_components": [ - { - "__id__": 208 - }, - { - "__id__": 209 - }, { "__id__": 212 + }, + { + "__id__": 213 + }, + { + "__id__": 216 } ], "_prefab": null, @@ -3166,23 +3166,23 @@ "__id__": 111 }, { - "__id__": 129 + "__id__": 133 }, { - "__id__": 160 + "__id__": 164 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 205 + "__id__": 209 }, { - "__id__": 206 + "__id__": 210 }, { - "__id__": 207 + "__id__": 211 } ], "_prefab": null, @@ -3581,6 +3581,7 @@ "__id__": 71 }, "_enabled": true, + "btns": [], "_id": "75i3x/wgxII7G9ohVAoOHu" }, { @@ -4874,20 +4875,26 @@ "__id__": 112 }, { - "__id__": 116 + "__id__": 118 }, { - "__id__": 120 + "__id__": 122 }, { - "__id__": 124 + "__id__": 126 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 128 + "__id__": 130 + }, + { + "__id__": 131 + }, + { + "__id__": 132 } ], "_prefab": null, @@ -4951,10 +4958,12 @@ "_level": 3, "_components": [ { - "__id__": 115 + "__id__": 116 } ], - "_prefab": null, + "_prefab": { + "__id__": 117 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -5014,7 +5023,9 @@ "__id__": 114 } ], - "_prefab": null, + "_prefab": { + "__id__": 115 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -5084,6 +5095,17 @@ "_N$cacheMode": 0, "_id": "8dsHU97X5PvLq0hD5pyGgM" }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 112 + }, + "asset": { + "__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f" + }, + "fileId": "0eFiIBpkxFprj9q+ngUQWf", + "sync": false + }, { "__type__": "cc.Sprite", "_name": "", @@ -5112,6 +5134,17 @@ "_atlas": null, "_id": "3eivVLnZtBk6EqjMhCbby/" }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 112 + }, + "asset": { + "__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f" + }, + "fileId": "d9Su+XfHhMuaIxSt7nzqdk", + "sync": false + }, { "__type__": "cc.Node", "_name": "tabBtn", @@ -5121,14 +5154,14 @@ }, "_children": [ { - "__id__": 117 + "__id__": 119 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 119 + "__id__": 121 } ], "_prefab": null, @@ -5181,14 +5214,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 116 + "__id__": 118 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 118 + "__id__": 120 } ], "_prefab": null, @@ -5241,7 +5274,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 117 + "__id__": 119 }, "_enabled": true, "_useOriginalSize": false, @@ -5266,7 +5299,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 116 + "__id__": 118 }, "_enabled": true, "_srcBlendFactor": 770, @@ -5298,14 +5331,14 @@ }, "_children": [ { - "__id__": 121 + "__id__": 123 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 123 + "__id__": 125 } ], "_prefab": null, @@ -5358,14 +5391,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 120 + "__id__": 122 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 122 + "__id__": 124 } ], "_prefab": null, @@ -5418,7 +5451,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 121 + "__id__": 123 }, "_enabled": true, "_useOriginalSize": false, @@ -5443,7 +5476,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 120 + "__id__": 122 }, "_enabled": true, "_srcBlendFactor": 770, @@ -5475,14 +5508,14 @@ }, "_children": [ { - "__id__": 125 + "__id__": 127 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 127 + "__id__": 129 } ], "_prefab": null, @@ -5535,14 +5568,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 124 + "__id__": 126 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 126 + "__id__": 128 } ], "_prefab": null, @@ -5595,7 +5628,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 125 + "__id__": 127 }, "_enabled": true, "_useOriginalSize": false, @@ -5620,7 +5653,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 124 + "__id__": 126 }, "_enabled": true, "_srcBlendFactor": 770, @@ -5676,6 +5709,33 @@ "_N$affectedByScale": false, "_id": "e9zokqInxMz433sUX8Dfmv" }, + { + "__type__": "efb26ONfWpHPK4X8j/eF4VD", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 111 + }, + "_enabled": true, + "btns": [], + "_id": "6c12EkVTFJ3IKYITT9+CyP" + }, + { + "__type__": "1509dU8SJdORLa2NVeUfkAX", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 111 + }, + "_enabled": true, + "btnGroup": { + "__id__": 131 + }, + "btnPreb": { + "__uuid__": "907f9b53-1333-4900-b166-4ba7a7b6e09f" + }, + "_id": "1a2GrOUBJNypnFye8d5wyl" + }, { "__type__": "cc.Node", "_name": "tokenNode", @@ -5685,17 +5745,17 @@ }, "_children": [ { - "__id__": 130 + "__id__": 134 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 158 + "__id__": 162 }, { - "__id__": 159 + "__id__": 163 } ], "_prefab": null, @@ -5748,17 +5808,11 @@ "_name": "content", "_objFlags": 0, "_parent": { - "__id__": 129 + "__id__": 133 }, "_children": [ { - "__id__": 131 - }, - { - "__id__": 143 - }, - { - "__id__": 145 + "__id__": 135 }, { "__id__": 147 @@ -5774,13 +5828,19 @@ }, { "__id__": 155 + }, + { + "__id__": 157 + }, + { + "__id__": 159 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 157 + "__id__": 161 } ], "_prefab": null, @@ -5833,28 +5893,28 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [ { - "__id__": 132 + "__id__": 136 }, { - "__id__": 135 + "__id__": 139 }, { - "__id__": 138 + "__id__": 142 } ], "_active": true, "_level": 4, "_components": [ { - "__id__": 141 + "__id__": 145 } ], "_prefab": { - "__id__": 142 + "__id__": 146 }, "_opacity": 255, "_color": { @@ -5905,18 +5965,18 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 131 + "__id__": 135 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 133 + "__id__": 137 } ], "_prefab": { - "__id__": 134 + "__id__": 138 }, "_opacity": 255, "_color": { @@ -5967,7 +6027,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 132 + "__id__": 136 }, "_enabled": true, "_srcBlendFactor": 770, @@ -5993,7 +6053,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 131 + "__id__": 135 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6006,18 +6066,18 @@ "_name": "nameLabel", "_objFlags": 0, "_parent": { - "__id__": 131 + "__id__": 135 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 136 + "__id__": 140 } ], "_prefab": { - "__id__": 137 + "__id__": 141 }, "_opacity": 255, "_color": { @@ -6068,7 +6128,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 135 + "__id__": 139 }, "_enabled": true, "_useOriginalSize": false, @@ -6091,7 +6151,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 131 + "__id__": 135 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6104,18 +6164,18 @@ "_name": "countLabel", "_objFlags": 0, "_parent": { - "__id__": 131 + "__id__": 135 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 139 + "__id__": 143 } ], "_prefab": { - "__id__": 140 + "__id__": 144 }, "_opacity": 255, "_color": { @@ -6166,7 +6226,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 138 + "__id__": 142 }, "_enabled": true, "_useOriginalSize": false, @@ -6189,7 +6249,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 131 + "__id__": 135 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6202,7 +6262,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 131 + "__id__": 135 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6228,7 +6288,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 131 + "__id__": 135 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6241,14 +6301,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 144 + "__id__": 148 } ], "_prefab": null, @@ -6301,7 +6361,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 143 + "__id__": 147 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6329,14 +6389,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 146 + "__id__": 150 } ], "_prefab": null, @@ -6389,7 +6449,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 145 + "__id__": 149 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6417,14 +6477,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 148 + "__id__": 152 } ], "_prefab": null, @@ -6477,7 +6537,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 147 + "__id__": 151 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6505,14 +6565,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 150 + "__id__": 154 } ], "_prefab": null, @@ -6565,7 +6625,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 149 + "__id__": 153 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6593,14 +6653,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 152 + "__id__": 156 } ], "_prefab": null, @@ -6653,7 +6713,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 151 + "__id__": 155 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6681,14 +6741,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 154 + "__id__": 158 } ], "_prefab": null, @@ -6741,7 +6801,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 153 + "__id__": 157 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6769,14 +6829,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 130 + "__id__": 134 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 156 + "__id__": 160 } ], "_prefab": null, @@ -6829,7 +6889,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 155 + "__id__": 159 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6857,7 +6917,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 130 + "__id__": 134 }, "_enabled": true, "_layoutSize": { @@ -6890,7 +6950,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 129 + "__id__": 133 }, "_enabled": true, "horizontal": false, @@ -6902,10 +6962,10 @@ "scrollEvents": [], "cancelInnerEvents": true, "_N$content": { - "__id__": 130 + "__id__": 134 }, "content": { - "__id__": 130 + "__id__": 134 }, "_id": "93DE2Y689LTZVFcuKyUjcw" }, @@ -6914,7 +6974,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 129 + "__id__": 133 }, "_enabled": true, "_spriteFrame": null, @@ -6933,17 +6993,17 @@ }, "_children": [ { - "__id__": 161 + "__id__": 165 } ], "_active": false, "_level": 2, "_components": [ { - "__id__": 203 + "__id__": 207 }, { - "__id__": 204 + "__id__": 208 } ], "_prefab": null, @@ -6996,15 +7056,9 @@ "_name": "content", "_objFlags": 0, "_parent": { - "__id__": 160 + "__id__": 164 }, "_children": [ - { - "__id__": 162 - }, - { - "__id__": 164 - }, { "__id__": 166 }, @@ -7058,13 +7112,19 @@ }, { "__id__": 200 + }, + { + "__id__": 202 + }, + { + "__id__": 204 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 202 + "__id__": 206 } ], "_prefab": null, @@ -7117,14 +7177,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 163 + "__id__": 167 } ], "_prefab": null, @@ -7177,7 +7237,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 162 + "__id__": 166 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7205,14 +7265,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 165 + "__id__": 169 } ], "_prefab": null, @@ -7265,7 +7325,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 164 + "__id__": 168 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7293,14 +7353,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 167 + "__id__": 171 } ], "_prefab": null, @@ -7353,7 +7413,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 166 + "__id__": 170 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7381,14 +7441,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 169 + "__id__": 173 } ], "_prefab": null, @@ -7441,7 +7501,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 168 + "__id__": 172 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7469,14 +7529,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 171 + "__id__": 175 } ], "_prefab": null, @@ -7529,7 +7589,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 170 + "__id__": 174 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7557,14 +7617,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 173 + "__id__": 177 } ], "_prefab": null, @@ -7617,7 +7677,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 172 + "__id__": 176 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7645,14 +7705,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 175 + "__id__": 179 } ], "_prefab": null, @@ -7705,7 +7765,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 174 + "__id__": 178 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7733,14 +7793,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 177 + "__id__": 181 } ], "_prefab": null, @@ -7793,7 +7853,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 176 + "__id__": 180 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7821,14 +7881,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 179 + "__id__": 183 } ], "_prefab": null, @@ -7881,7 +7941,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 178 + "__id__": 182 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7909,14 +7969,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 181 + "__id__": 185 } ], "_prefab": null, @@ -7969,7 +8029,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 180 + "__id__": 184 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7997,14 +8057,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 183 + "__id__": 187 } ], "_prefab": null, @@ -8057,7 +8117,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 182 + "__id__": 186 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8085,14 +8145,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 185 + "__id__": 189 } ], "_prefab": null, @@ -8145,7 +8205,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 184 + "__id__": 188 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8173,14 +8233,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 187 + "__id__": 191 } ], "_prefab": null, @@ -8233,7 +8293,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 186 + "__id__": 190 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8261,14 +8321,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 189 + "__id__": 193 } ], "_prefab": null, @@ -8321,7 +8381,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 188 + "__id__": 192 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8349,14 +8409,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 191 + "__id__": 195 } ], "_prefab": null, @@ -8409,7 +8469,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 190 + "__id__": 194 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8437,14 +8497,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 193 + "__id__": 197 } ], "_prefab": null, @@ -8497,7 +8557,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 192 + "__id__": 196 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8525,14 +8585,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 195 + "__id__": 199 } ], "_prefab": null, @@ -8585,7 +8645,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 194 + "__id__": 198 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8613,14 +8673,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 197 + "__id__": 201 } ], "_prefab": null, @@ -8673,7 +8733,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 196 + "__id__": 200 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8701,14 +8761,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 199 + "__id__": 203 } ], "_prefab": null, @@ -8761,7 +8821,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 198 + "__id__": 202 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8789,14 +8849,14 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 161 + "__id__": 165 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 201 + "__id__": 205 } ], "_prefab": null, @@ -8849,7 +8909,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 200 + "__id__": 204 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8877,7 +8937,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 161 + "__id__": 165 }, "_enabled": true, "_layoutSize": { @@ -8910,7 +8970,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 160 + "__id__": 164 }, "_enabled": true, "horizontal": false, @@ -8922,10 +8982,10 @@ "scrollEvents": [], "cancelInnerEvents": true, "_N$content": { - "__id__": 161 + "__id__": 165 }, "content": { - "__id__": 161 + "__id__": 165 }, "_id": "c1dTpcs0FN148gHZkzcGGN" }, @@ -8934,7 +8994,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 160 + "__id__": 164 }, "_enabled": true, "_spriteFrame": null, @@ -9038,7 +9098,7 @@ }, "_enabled": true, "webview": { - "__id__": 210 + "__id__": 214 }, "debugText": { "__id__": 6 @@ -9051,7 +9111,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 211 + "__id__": 215 }, "_enabled": true, "_useOriginalSize": false, @@ -9071,7 +9131,7 @@ "_level": 1, "_components": [ { - "__id__": 210 + "__id__": 214 } ], "_prefab": null,