From 670f9d95c5e522e8965f824631ff152146328db3 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=A2=9E=E5=8A=A0icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/comp/wallet/prefab/OneToken.prefab | 130 ++- assets/comp/wallet/scripts/ui/OneToken.ts | 27 +- assets/scenes/main.fire | 1085 +++++++++++---------- 3 files changed, 716 insertions(+), 526 deletions(-) diff --git a/assets/comp/wallet/prefab/OneToken.prefab b/assets/comp/wallet/prefab/OneToken.prefab index 735b035..ca44ced 100644 --- a/assets/comp/wallet/prefab/OneToken.prefab +++ b/assets/comp/wallet/prefab/OneToken.prefab @@ -27,20 +27,23 @@ }, { "__id__": 13 + }, + { + "__id__": 16 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 16 + "__id__": 19 }, { - "__id__": 17 + "__id__": 20 } ], "_prefab": { - "__id__": 18 + "__id__": 21 }, "_opacity": 255, "_color": { @@ -226,7 +229,7 @@ }, "_children": [], "_active": true, - "_level": 5, + "_level": 2, "_components": [ { "__id__": 7 @@ -331,7 +334,108 @@ "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" }, - "fileId": "1a8x2zZmNOU6glyFKwUfHp", + "fileId": "fd0Vfdt29Jh45d3VK9MwnT", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "rect-line", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 11 + } + ], + "_prefab": { + "__id__": 12 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 46, + "height": 46 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -180, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f8a72ecb-343d-4c53-9429-112006b05c75" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" + }, + "fileId": "76S2+7P2NLToxBZanaF82q", "sync": false }, { @@ -346,11 +450,11 @@ "_level": 5, "_components": [ { - "__id__": 11 + "__id__": 14 } ], "_prefab": { - "__id__": 12 + "__id__": 15 }, "_opacity": 255, "_color": { @@ -401,7 +505,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 10 + "__id__": 13 }, "_enabled": true, "_useOriginalSize": false, @@ -444,11 +548,11 @@ "_level": 5, "_components": [ { - "__id__": 14 + "__id__": 17 } ], "_prefab": { - "__id__": 15 + "__id__": 18 }, "_opacity": 255, "_color": { @@ -499,7 +603,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 13 + "__id__": 16 }, "_enabled": true, "_useOriginalSize": false, @@ -567,10 +671,10 @@ }, "_enabled": true, "symbolLabel": { - "__id__": 11 + "__id__": 14 }, "countLabel": { - "__id__": 14 + "__id__": 17 }, "icon": { "__id__": 7 diff --git a/assets/comp/wallet/scripts/ui/OneToken.ts b/assets/comp/wallet/scripts/ui/OneToken.ts index 179bef6..48694d6 100644 --- a/assets/comp/wallet/scripts/ui/OneToken.ts +++ b/assets/comp/wallet/scripts/ui/OneToken.ts @@ -33,20 +33,19 @@ export default class OneToken extends WalletBase { this.data = _data } - private updateInfo() { + private async updateInfo() { if (this.data.symbol) { this.symbolLabel.string = this.data.symbol } else { // TODO: get from remote + let symbol = await this.wallet.erc20Standard.getTokenSymbol(this.data.address) + this.data.symbol = symbol } this.icon.init(this.data.address) if (this.data.decimal === undefined && this.data.type !== ETH_TYPE) { // get from chain - this.wallet.erc20Standard.getTokenDecimals(this.data.address) - .then(sysmbol => { - this.data.symbol = sysmbol - this.showBalance() - }) + let decimal = await this.wallet.erc20Standard.getTokenDecimals(this.data.address) + this.data.decimal = parseInt(decimal) } if (this.data.balance !== undefined) { @@ -55,19 +54,15 @@ export default class OneToken extends WalletBase { this.countLabel.string = '-' } if (this.data.type === ETH_TYPE) { - this.wallet.getBalance() - .then(balance => { - this.data.balance = balance - this.showBalance() - }) + let balance = await this.wallet.getBalance() + this.data.balance = balance + } else { const account = this.wallet.currentAccount().address - this.wallet.erc20Standard.getBalanceOf(this.data.address, account) - .then(balance => { - this.data.balance = balance - this.showBalance() - }) + let balance = await this.wallet.erc20Standard.getBalanceOf(this.data.address, account) + this.data.balance = balance } + this.showBalance() } private showBalance() { diff --git a/assets/scenes/main.fire b/assets/scenes/main.fire index 9941e6c..0ffc6c8 100644 --- a/assets/scenes/main.fire +++ b/assets/scenes/main.fire @@ -17,7 +17,7 @@ "__id__": 2 }, { - "__id__": 216 + "__id__": 218 } ], "_active": false, @@ -87,13 +87,13 @@ "_level": 1, "_components": [ { - "__id__": 213 + "__id__": 215 }, { - "__id__": 214 + "__id__": 216 }, { - "__id__": 217 + "__id__": 219 } ], "_prefab": null, @@ -4647,20 +4647,20 @@ "__id__": 145 }, { - "__id__": 188 + "__id__": 190 } ], "_active": true, "_level": 1, "_components": [ - { - "__id__": 210 - }, - { - "__id__": 211 - }, { "__id__": 212 + }, + { + "__id__": 213 + }, + { + "__id__": 214 } ], "_prefab": null, @@ -6321,44 +6321,47 @@ "__id__": 146 }, { - "__id__": 148 + "__id__": 149 }, { - "__id__": 150 + "__id__": 151 }, { - "__id__": 152 + "__id__": 153 }, { - "__id__": 154 + "__id__": 161 }, { - "__id__": 156 + "__id__": 167 }, { - "__id__": 158 + "__id__": 169 }, { - "__id__": 166 + "__id__": 171 }, { - "__id__": 172 + "__id__": 173 }, { "__id__": 175 }, { "__id__": 177 + }, + { + "__id__": 179 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 186 + "__id__": 188 }, { - "__id__": 187 + "__id__": 189 } ], "_prefab": null, @@ -6408,7 +6411,7 @@ }, { "__type__": "cc.Node", - "_name": "New Sprite", + "_name": "avator", "_objFlags": 0, "_parent": { "__id__": 145 @@ -6419,6 +6422,110 @@ "_components": [ { "__id__": 147 + }, + { + "__id__": 148 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 64, + "height": 64 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -466, + "y": 53, + "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": "5eQSFlHW9JNYYEPqu8C9ik" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 146 + }, + "_enabled": true, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_miterLimit": 10, + "_id": "c2JbC6RMJO9r2vLjaebqLU" + }, + { + "__type__": "c5608gXK6JJrLX5LYUMj20m", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 146 + }, + "_enabled": true, + "ctx": { + "__id__": 147 + }, + "_id": "93to1VnftD2LgtNEbvXRbk" + }, + { + "__type__": "cc.Node", + "_name": "New Sprite", + "_objFlags": 0, + "_parent": { + "__id__": 145 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 150 } ], "_prefab": null, @@ -6471,7 +6578,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 146 + "__id__": 149 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6496,7 +6603,7 @@ }, { "__type__": "cc.Node", - "_name": "balanceTitle", + "_name": "avatar-board", "_objFlags": 0, "_parent": { "__id__": 145 @@ -6506,92 +6613,7 @@ "_level": 3, "_components": [ { - "__id__": 149 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 212, - "b": 60, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 77.83, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 1, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -390, - "y": -11, - "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": "c4/LYvNUJAY5F+UNaXoHVx" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 148 - }, - "_enabled": true, - "_useOriginalSize": false, - "_string": "Balance:", - "_N$string": "Balance:", - "_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": "80rgNMkVtOjbZIdC+KSgZJ" - }, - { - "__type__": "cc.Node", - "_name": "balanceLabel", - "_objFlags": 0, - "_parent": { - "__id__": 145 - }, - "_children": [], - "_active": true, - "_level": 3, - "_components": [ - { - "__id__": 151 + "__id__": 152 } ], "_prefab": null, @@ -6605,263 +6627,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 113.42, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -378, - "y": -11, - "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": "e3rPUFzQREzorLsNKehmHF" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 150 - }, - "_enabled": true, - "_useOriginalSize": false, - "_string": "100000 KCS", - "_N$string": "100000 KCS", - "_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": "06t7Y776NKh6M1Q2NS6hMV" - }, - { - "__type__": "cc.Node", - "_name": "addressTitle", - "_objFlags": 0, - "_parent": { - "__id__": 145 - }, - "_children": [], - "_active": true, - "_level": 3, - "_components": [ - { - "__id__": 153 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 212, - "b": 60, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 78.93, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 1, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -390, - "y": -70, - "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": "a9aBRq3AtFF76ypEiF0jLI" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 152 - }, - "_enabled": true, - "_useOriginalSize": false, - "_string": "Address:", - "_N$string": "Address:", - "_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": "087o+LgHRJ5IGp/WuKtgXT" - }, - { - "__type__": "cc.Node", - "_name": "addressLabel", - "_objFlags": 0, - "_parent": { - "__id__": 145 - }, - "_children": [], - "_active": true, - "_level": 3, - "_components": [ - { - "__id__": 155 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 145.69, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -378, - "y": -70, - "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": "1b4OrQjuFAGoyS9sFmaL64" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 154 - }, - "_enabled": true, - "_useOriginalSize": false, - "_string": "0x0123456789A", - "_N$string": "0x0123456789A", - "_fontSize": 20, - "_lineHeight": 40, - "_enableWrapText": true, - "_N$file": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_batchAsBitmap": false, - "_N$horizontalAlign": 0, - "_N$verticalAlign": 1, - "_N$fontFamily": "Arial", - "_N$overflow": 0, - "_N$cacheMode": 0, - "_id": "c3eWwnkO5Jd7svebFYAQY1" - }, - { - "__type__": "cc.Node", - "_name": "copyBtn", - "_objFlags": 0, - "_parent": { - "__id__": 145 - }, - "_children": [], - "_active": true, - "_level": 3, - "_components": [ - { - "__id__": 157 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 32, - "height": 32 + "width": 66, + "height": 66 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -6870,8 +6637,8 @@ }, "_position": { "__type__": "cc.Vec3", - "x": -204, - "y": -67, + "x": -434, + "y": 85, "z": 0 }, "_scale": { @@ -6892,22 +6659,22 @@ "_skewX": 0, "_skewY": 0, "groupIndex": 0, - "_id": "f5JR96+ItN5JtAK+OuUI+J" + "_id": "64x9MzsiZF9JqTjay/Kw/A" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 156 + "__id__": 151 }, "_enabled": true, "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "5298fe45-c38f-416c-a27d-073a1097a3ba" + "__uuid__": "f8a72ecb-343d-4c53-9429-112006b05c75" }, - "_type": 0, + "_type": 1, "_sizeMode": 0, "_fillType": 0, "_fillCenter": { @@ -6920,7 +6687,7 @@ "_isTrimmedMode": true, "_state": 0, "_atlas": null, - "_id": "9fDy6mOaJNjJQut8ksZeFy" + "_id": "78UD58bQpPVpWt/MlULf3+" }, { "__type__": "cc.Node", @@ -6931,20 +6698,20 @@ }, "_children": [ { - "__id__": 159 + "__id__": 154 }, { - "__id__": 161 + "__id__": 156 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 163 + "__id__": 158 }, { - "__id__": 164 + "__id__": 159 } ], "_prefab": null, @@ -6997,14 +6764,14 @@ "_name": "btn-receive", "_objFlags": 0, "_parent": { - "__id__": 158 + "__id__": 153 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 160 + "__id__": 155 } ], "_prefab": null, @@ -7057,7 +6824,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 159 + "__id__": 154 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7085,14 +6852,14 @@ "_name": "label", "_objFlags": 0, "_parent": { - "__id__": 158 + "__id__": 153 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 162 + "__id__": 157 } ], "_prefab": null, @@ -7145,7 +6912,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 161 + "__id__": 156 }, "_enabled": true, "_useOriginalSize": false, @@ -7170,7 +6937,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 158 + "__id__": 153 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7198,14 +6965,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 158 + "__id__": 153 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 165 + "__id__": 160 } ], "_N$interactable": true, @@ -7282,17 +7049,17 @@ }, "_children": [ { - "__id__": 167 + "__id__": 162 }, { - "__id__": 169 + "__id__": 164 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 171 + "__id__": 166 } ], "_prefab": null, @@ -7345,14 +7112,14 @@ "_name": "btn-send", "_objFlags": 0, "_parent": { - "__id__": 166 + "__id__": 161 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 168 + "__id__": 163 } ], "_prefab": null, @@ -7405,7 +7172,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 167 + "__id__": 162 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7433,14 +7200,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 166 + "__id__": 161 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 170 + "__id__": 165 } ], "_prefab": null, @@ -7493,7 +7260,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 169 + "__id__": 164 }, "_enabled": true, "_useOriginalSize": false, @@ -7518,7 +7285,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 166 + "__id__": 161 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7543,7 +7310,7 @@ }, { "__type__": "cc.Node", - "_name": "avator", + "_name": "copyBtn", "_objFlags": 0, "_parent": { "__id__": 145 @@ -7553,10 +7320,7 @@ "_level": 3, "_components": [ { - "__id__": 173 - }, - { - "__id__": 174 + "__id__": 168 } ], "_prefab": null, @@ -7570,18 +7334,18 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 64, - "height": 64 + "width": 32, + "height": 32 }, "_anchorPoint": { "__type__": "cc.Vec2", - "x": 0, - "y": 0 + "x": 0.5, + "y": 0.5 }, "_position": { "__type__": "cc.Vec3", - "x": -466, - "y": 53, + "x": -204, + "y": -67, "z": 0 }, "_scale": { @@ -7602,48 +7366,375 @@ "_skewX": 0, "_skewY": 0, "groupIndex": 0, - "_id": "5eQSFlHW9JNYYEPqu8C9ik" + "_id": "f5JR96+ItN5JtAK+OuUI+J" }, { - "__type__": "cc.Graphics", + "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 172 + "__id__": 167 }, "_enabled": true, - "_lineWidth": 1, - "_strokeColor": { + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "5298fe45-c38f-416c-a27d-073a1097a3ba" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "9fDy6mOaJNjJQut8ksZeFy" + }, + { + "__type__": "cc.Node", + "_name": "balanceTitle", + "_objFlags": 0, + "_parent": { + "__id__": 145 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 170 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, + "r": 255, + "g": 212, + "b": 60, "a": 255 }, - "_lineJoin": 2, - "_lineCap": 0, - "_fillColor": { + "_contentSize": { + "__type__": "cc.Size", + "width": 77.83, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 1, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -390, + "y": -11, + "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": "c4/LYvNUJAY5F+UNaXoHVx" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 169 + }, + "_enabled": true, + "_useOriginalSize": false, + "_string": "Balance:", + "_N$string": "Balance:", + "_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": "80rgNMkVtOjbZIdC+KSgZJ" + }, + { + "__type__": "cc.Node", + "_name": "balanceLabel", + "_objFlags": 0, + "_parent": { + "__id__": 145 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 172 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { "__type__": "cc.Color", "r": 255, "g": 255, "b": 255, "a": 255 }, - "_miterLimit": 10, - "_id": "c2JbC6RMJO9r2vLjaebqLU" + "_contentSize": { + "__type__": "cc.Size", + "width": 113.42, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -378, + "y": -11, + "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": "e3rPUFzQREzorLsNKehmHF" }, { - "__type__": "c5608gXK6JJrLX5LYUMj20m", + "__type__": "cc.Label", "_name": "", "_objFlags": 0, "node": { - "__id__": 172 + "__id__": 171 }, "_enabled": true, - "ctx": { + "_useOriginalSize": false, + "_string": "100000 KCS", + "_N$string": "100000 KCS", + "_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": "06t7Y776NKh6M1Q2NS6hMV" + }, + { + "__type__": "cc.Node", + "_name": "addressTitle", + "_objFlags": 0, + "_parent": { + "__id__": 145 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 174 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 212, + "b": 60, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 78.93, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 1, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -390, + "y": -70, + "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": "a9aBRq3AtFF76ypEiF0jLI" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { "__id__": 173 }, - "_id": "93to1VnftD2LgtNEbvXRbk" + "_enabled": true, + "_useOriginalSize": false, + "_string": "Address:", + "_N$string": "Address:", + "_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": "087o+LgHRJ5IGp/WuKtgXT" + }, + { + "__type__": "cc.Node", + "_name": "addressLabel", + "_objFlags": 0, + "_parent": { + "__id__": 145 + }, + "_children": [], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 176 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 145.69, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -378, + "y": -70, + "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": "1b4OrQjuFAGoyS9sFmaL64" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 175 + }, + "_enabled": true, + "_useOriginalSize": false, + "_string": "0x0123456789A", + "_N$string": "0x0123456789A", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 0, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "c3eWwnkO5Jd7svebFYAQY1" }, { "__type__": "cc.Node", @@ -7657,7 +7748,7 @@ "_level": 3, "_components": [ { - "__id__": 176 + "__id__": 178 } ], "_prefab": null, @@ -7710,7 +7801,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 175 + "__id__": 177 }, "_enabled": true, "_useOriginalSize": false, @@ -7739,17 +7830,17 @@ }, "_children": [ { - "__id__": 178 + "__id__": 180 }, { - "__id__": 183 + "__id__": 185 } ], "_active": false, "_level": 3, "_components": [ { - "__id__": 185 + "__id__": 187 } ], "_prefab": null, @@ -7802,20 +7893,20 @@ "_name": "New Sprite(Splash)", "_objFlags": 0, "_parent": { - "__id__": 177 + "__id__": 179 }, "_children": [], "_active": true, "_level": 4, "_components": [ - { - "__id__": 179 - }, - { - "__id__": 180 - }, { "__id__": 181 + }, + { + "__id__": 182 + }, + { + "__id__": 183 } ], "_prefab": null, @@ -7868,7 +7959,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 178 + "__id__": 180 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7896,7 +7987,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 178 + "__id__": 180 }, "_enabled": true, "alignMode": 1, @@ -7923,14 +8014,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 178 + "__id__": 180 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 182 + "__id__": 184 } ], "_N$interactable": true, @@ -8003,14 +8094,14 @@ "_name": "qrImgNode", "_objFlags": 0, "_parent": { - "__id__": 177 + "__id__": 179 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 184 + "__id__": 186 } ], "_prefab": null, @@ -8063,7 +8154,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 183 + "__id__": 185 }, "_enabled": true, "lightColor": { @@ -8087,7 +8178,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 177 + "__id__": 179 }, "_enabled": true, "alignMode": 1, @@ -8145,16 +8236,16 @@ }, "_enabled": true, "addressLabel": { - "__id__": 155 + "__id__": 176 }, "balanceLabel": { - "__id__": 151 + "__id__": 172 }, "qrNode": { - "__id__": 177 + "__id__": 179 }, "avatar": { - "__id__": 174 + "__id__": 148 }, "_id": "8bO0XBvlFDPJ87FOgdOxUH" }, @@ -8167,10 +8258,7 @@ }, "_children": [ { - "__id__": 189 - }, - { - "__id__": 193 + "__id__": 191 }, { "__id__": 195 @@ -8185,17 +8273,20 @@ "__id__": 201 }, { - "__id__": 205 + "__id__": 203 + }, + { + "__id__": 207 } ], "_active": false, "_level": 2, "_components": [ { - "__id__": 208 + "__id__": 210 }, { - "__id__": 209 + "__id__": 211 } ], "_prefab": null, @@ -8248,20 +8339,20 @@ "_name": "New Sprite(Splash)", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ - { - "__id__": 190 - }, - { - "__id__": 191 - }, { "__id__": 192 + }, + { + "__id__": 193 + }, + { + "__id__": 194 } ], "_prefab": null, @@ -8314,7 +8405,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 189 + "__id__": 191 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8342,7 +8433,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 189 + "__id__": 191 }, "_enabled": true, "alignMode": 1, @@ -8369,7 +8460,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 189 + "__id__": 191 }, "_enabled": true, "_id": "d5s8l9cvFDWo/fNwOpa2aV" @@ -8379,14 +8470,14 @@ "_name": "bg-blue", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": false, "_level": 3, "_components": [ { - "__id__": 194 + "__id__": 196 } ], "_prefab": null, @@ -8439,7 +8530,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 193 + "__id__": 195 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8467,14 +8558,14 @@ "_name": "bar-black", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 196 + "__id__": 198 } ], "_prefab": null, @@ -8527,7 +8618,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 195 + "__id__": 197 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8555,14 +8646,14 @@ "_name": "bar-black", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 198 + "__id__": 200 } ], "_prefab": null, @@ -8615,7 +8706,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 197 + "__id__": 199 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8643,14 +8734,14 @@ "_name": "menuPanel", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 200 + "__id__": 202 } ], "_prefab": null, @@ -8703,7 +8794,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 199 + "__id__": 201 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8731,17 +8822,17 @@ "_name": "close", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 202 + "__id__": 204 }, { - "__id__": 203 + "__id__": 205 } ], "_prefab": null, @@ -8794,7 +8885,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 201 + "__id__": 203 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8822,14 +8913,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 201 + "__id__": 203 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 204 + "__id__": 206 } ], "_N$interactable": true, @@ -8890,7 +8981,7 @@ { "__type__": "cc.ClickEvent", "target": { - "__id__": 188 + "__id__": 190 }, "component": "", "_componentId": "f2e85abZ1NDc58oBSrPm057", @@ -8902,17 +8993,17 @@ "_name": "contentNode", "_objFlags": 0, "_parent": { - "__id__": 188 + "__id__": 190 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 206 + "__id__": 208 }, { - "__id__": 207 + "__id__": 209 } ], "_prefab": null, @@ -8965,7 +9056,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 205 + "__id__": 207 }, "_enabled": true, "_srcBlendFactor": 770, @@ -8993,7 +9084,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 205 + "__id__": 207 }, "_enabled": true, "_layoutSize": { @@ -9026,7 +9117,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 188 + "__id__": 190 }, "_enabled": true, "alignMode": 1, @@ -9053,14 +9144,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 188 + "__id__": 190 }, "_enabled": true, "btnPreb": { "__uuid__": "edefc8c1-62a6-49f9-8610-13865e5b0e32" }, "contentNode": { - "__id__": 205 + "__id__": 207 }, "icons": [ { @@ -9154,7 +9245,7 @@ "__id__": 143 }, "menuPanel": { - "__id__": 188 + "__id__": 190 }, "_id": "a8YbO7l9lF95gWk3JRycGs" }, @@ -9184,7 +9275,7 @@ }, "_enabled": true, "webview": { - "__id__": 215 + "__id__": 217 }, "debugText": { "__id__": 6 @@ -9197,7 +9288,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 216 + "__id__": 218 }, "_enabled": true, "_useOriginalSize": false, @@ -9217,7 +9308,7 @@ "_level": 1, "_components": [ { - "__id__": 215 + "__id__": 217 } ], "_prefab": null,