You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdLike2048/assets/script/ui/PopCoinToast/Auto_PopCoinToast.ts

40 lines
1.3 KiB

1 week ago
//*********************
// create by 流云
// 插件自动生成的节点脚本
// 请勿修改(自动生成会覆盖)
// 请通过子类继承使用
//*********************
import { _decorator, Node, find } from 'cc';
import { UIBase } from '../../../mx/module/ui/UIBase';
const { ccclass } = _decorator;
@ccclass('Auto_PopCoinToast')
export class Auto_PopCoinToast extends UIBase {
bgMask:Node;
ui_center:Node;
ui_title1:Node;
btnOk:Node;
btnCancel:Node;
onLoad(){
super.onLoad();
this.bgMask = find("bgMask",this.node);
this.ui_center = find("ui_center",this.node);
this.ui_title1 = find("ui_center/ui_title1",this.node);
this.btnOk = find("ui_center/btnOk",this.node);
this.btnCancel = find("ui_center/btnCancel",this.node);
}
onEnable() {
this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this);
this.btnOk.on(Node.EventType.TOUCH_END, this.click_btnOk, this);
this.btnCancel.on(Node.EventType.TOUCH_END, this.click_btnCancel, this);
}
onDisable() {
this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this);
this.btnOk.off(Node.EventType.TOUCH_END, this.click_btnOk, this);
this.btnCancel.off(Node.EventType.TOUCH_END, this.click_btnCancel, this);
}
click_bgMask() {}
click_btnOk() {}
click_btnCancel() {}
}