45 lines
795 B
TypeScript
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) {
|
|
|
|
}
|
|
}
|
|
}
|