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.
47 lines
1.6 KiB
47 lines
1.6 KiB
|
|
//*********************
|
|
// create by 流云
|
|
// 插件自动生成的节点脚本
|
|
// 请勿修改(自动生成会覆盖)
|
|
// 请通过子类继承使用
|
|
//*********************
|
|
import { _decorator, Component, Node, find, Sprite, Label, Button, ScrollView, EditBox, RichText } from 'cc';
|
|
import { UIBase } from '../../../mx/module/ui/UIBase';
|
|
const { ccclass } = _decorator;
|
|
|
|
@ccclass('Auto_BattleFail')
|
|
export class Auto_BattleFail extends UIBase {
|
|
ui_bgMask:Node;
|
|
ui_center:Node;
|
|
ui_rankLevel:Node;
|
|
ui_star:Node;
|
|
ui_content:Node;
|
|
ui_coin:Node;
|
|
btnGet:Node;
|
|
btnADGet:Node;
|
|
ui_money:Node;
|
|
lb_money:Label;
|
|
onLoad(){
|
|
super.onLoad();
|
|
this.ui_bgMask = find("ui_bgMask",this.node);
|
|
this.ui_center = find("ui_center",this.node);
|
|
this.ui_rankLevel = find("ui_center/ui_rankLevel",this.node);
|
|
this.ui_star = find("ui_center/ui_star",this.node);
|
|
this.ui_content = find("ui_center/ui_content",this.node);
|
|
this.ui_coin = find("ui_center/ui_coin",this.node);
|
|
this.btnGet = find("ui_center/btnLayout/btnGet",this.node);
|
|
this.btnADGet = find("ui_center/btnLayout/btnADGet",this.node);
|
|
this.ui_money = find("ui_center/ui_money",this.node);
|
|
this.lb_money = find("ui_center/ui_money/lb_money",this.node)?.getComponent(Label);
|
|
}
|
|
onEnable() {
|
|
this.btnGet.on(Node.EventType.TOUCH_END, this.click_btnGet, this);
|
|
this.btnADGet.on(Node.EventType.TOUCH_END, this.click_btnADGet, this);
|
|
}
|
|
onDisable() {
|
|
this.btnGet.off(Node.EventType.TOUCH_END, this.click_btnGet, this);
|
|
this.btnADGet.off(Node.EventType.TOUCH_END, this.click_btnADGet, this);
|
|
}
|
|
click_btnGet() {}
|
|
click_btnADGet() {}
|
|
}
|
|
|