bug fix
This commit is contained in:
@@ -13,7 +13,7 @@ import { SDKManager } from "../../../Main/Channel/SDKManager";
|
||||
import LanguageUtils from "../../../Main/Common/LanguageUtils";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
import { PersonalPanel } from "./PersonalPanel";
|
||||
import { PaymentMethod } from 'db://assets/Scripts/chat18x/payment/types';
|
||||
import { PaymentMethod } from "db://assets/Scripts/chat18x/payment/types";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -62,6 +62,7 @@ export class Web3PopPanel extends li_BaseView {
|
||||
this.registerListener();
|
||||
|
||||
this.selection.setScale(new Vec3(1, 0, 1));
|
||||
this._nodeTab.WD_AN_JT2.active = false;
|
||||
|
||||
this.refreshView();
|
||||
}
|
||||
@@ -144,7 +145,7 @@ export class Web3PopPanel extends li_BaseView {
|
||||
case proto.cs.EnmNetworkType.ENT_TRON:
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
this.coinIcon,
|
||||
"ui/web3pop/coinIcon/Tron"
|
||||
"ui/web3pop/coinIcon/SHOP_ICON_HB1"
|
||||
);
|
||||
this.coinText.string = "Tron(TRC20)";
|
||||
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
|
||||
@@ -155,7 +156,7 @@ export class Web3PopPanel extends li_BaseView {
|
||||
case proto.cs.EnmNetworkType.ENT_TON:
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
this.coinIcon,
|
||||
"ui/web3pop/coinIcon/TON"
|
||||
"ui/web3pop/coinIcon/SHOP_ICON_HB2"
|
||||
);
|
||||
this.coinText.string = "TON";
|
||||
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
|
||||
@@ -166,7 +167,7 @@ export class Web3PopPanel extends li_BaseView {
|
||||
case proto.cs.EnmNetworkType.ENT_ETH:
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
this.coinIcon,
|
||||
"ui/web3pop/coinIcon/ETH"
|
||||
"ui/web3pop/coinIcon/SHOP_ICON_HB3"
|
||||
);
|
||||
this.coinText.string = "ETH";
|
||||
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
|
||||
@@ -177,7 +178,7 @@ export class Web3PopPanel extends li_BaseView {
|
||||
case proto.cs.EnmNetworkType.ENT_BEP:
|
||||
ResManager.I.changeResourceSpriteFrame(
|
||||
this.coinIcon,
|
||||
"ui/web3pop/coinIcon/BEP"
|
||||
"ui/web3pop/coinIcon/SHOP_ICON_HB4"
|
||||
);
|
||||
this.coinText.string = "BEP";
|
||||
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
|
||||
@@ -205,8 +206,16 @@ export class Web3PopPanel extends li_BaseView {
|
||||
|
||||
updateSelectNetwork() {}
|
||||
|
||||
isSelectionOpen = false;
|
||||
onClickCoinTypeSelectBtn() {
|
||||
this.selection.scale = new Vec3(1, 1, 1);
|
||||
if (this.isSelectionOpen) {
|
||||
this.selection.scale = new Vec3(1, 0, 1);
|
||||
this._nodeTab.WD_AN_JT2.active = false;
|
||||
} else {
|
||||
this.selection.scale = new Vec3(1, 1, 1);
|
||||
this._nodeTab.WD_AN_JT2.active = true;
|
||||
}
|
||||
this.isSelectionOpen = !this.isSelectionOpen;
|
||||
}
|
||||
|
||||
onClickCoinType(type: proto.cs.EnmNetworkType) {
|
||||
@@ -229,6 +238,8 @@ export class Web3PopPanel extends li_BaseView {
|
||||
);
|
||||
|
||||
this.selection.scale = new Vec3(1, 0, 1);
|
||||
this._nodeTab.WD_AN_JT2.active = false;
|
||||
this.isSelectionOpen = false;
|
||||
}
|
||||
|
||||
onClickCopy() {
|
||||
|
||||
Reference in New Issue
Block a user