TestChain/assets/comp/wallet/scripts/ui/WalletMainPanel.ts
2022-06-19 15:03:30 +08:00

45 lines
795 B
TypeScript

import JCWallet from "../JCWallet";
import ChainTab from "./ChainTab";
import ListNode from "./ListNode";
import WalletBase from "./WallerBase";
const {ccclass, property} = cc._decorator;
@ccclass
export default class WalletMainPanel extends WalletBase {
@property({
type: ChainTab
})
chainTab: ChainTab = null
@property({
type: ListNode
})
listNode: ListNode = null
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
super.start()
}
// update (dt) {}
hideWallet() {
this.node.active = false
}
updateChainList() {
const chains = this.wallet.chainList
if (!chains || chains.length === 0) {
return;
}
for (const chain of chains) {
}
}
}