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/BattleRevive/Auto_BattleRevive.ts

49 lines
1.9 KiB

3 weeks ago
//*********************
// create by 流云
// 插件自动生成的节点脚本
// 请勿修改(自动生成会覆盖)
// 请通过子类继承使用
//*********************
import { _decorator, Component, Node, find, Sprite, Label, Button, ScrollView, EditBox } from 'cc';
import { UIBase } from '../../../mx/module/ui/UIBase';
const { ccclass } = _decorator;
@ccclass('Auto_BattleRevive')
export class Auto_BattleRevive extends UIBase {
ui_bgMask:Node;
ui_center:Node;
btnBack:Node;
btnAdRevive:Node;
btnFreeRevive:Node;
lb_progress:Label;
ui_guideMask:Node;
btnContinue:Node;
onLoad(){
super.onLoad();
this.ui_bgMask = find("ui_bgMask",this.node);
this.ui_center = find("ui_center",this.node);
this.btnBack = find("ui_center/btnLayout/btnBack",this.node);
this.btnAdRevive = find("ui_center/btnLayout/btnAdRevive",this.node);
this.btnFreeRevive = find("ui_center/btnLayout/btnFreeRevive",this.node);
this.lb_progress = find("ui_center/lb_progress",this.node)?.getComponent(Label);
this.ui_guideMask = find("ui_guideMask",this.node);
this.btnContinue = find("ui_guideMask/引导框/btnContinue",this.node);
}
onEnable() {
this.btnBack.on(Node.EventType.TOUCH_END, this.click_btnBack, this);
this.btnAdRevive.on(Node.EventType.TOUCH_END, this.click_btnAdRevive, this);
this.btnFreeRevive.on(Node.EventType.TOUCH_END, this.click_btnFreeRevive, this);
this.btnContinue.on(Node.EventType.TOUCH_END, this.click_btnContinue, this);
}
onDisable() {
this.btnBack.off(Node.EventType.TOUCH_END, this.click_btnBack, this);
this.btnAdRevive.off(Node.EventType.TOUCH_END, this.click_btnAdRevive, this);
this.btnFreeRevive.off(Node.EventType.TOUCH_END, this.click_btnFreeRevive, this);
this.btnContinue.off(Node.EventType.TOUCH_END, this.click_btnContinue, this);
}
click_btnBack() {}
click_btnAdRevive() {}
click_btnFreeRevive() {}
click_btnContinue() {}
}