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/buyItemBox/Auto_buyItemBox.ts

45 lines
1.6 KiB

//*********************
// 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_buyItemBox')
export class Auto_buyItemBox extends UIBase {
ui_bgMask:Node;
ui_center:Node;
lb_name:Label;
btnClose:Node;
btnBuy:Node;
lb_num:Label;
lb_desc:Label;
ui_layout:Node;
lb_buy:Label;
onLoad(){
super.onLoad();
this.ui_bgMask = find("ui_bgMask",this.node);
this.ui_center = find("ui_center",this.node);
this.lb_name = find("ui_center/lb_name",this.node)?.getComponent(Label);
this.btnClose = find("ui_center/btnClose",this.node);
this.btnBuy = find("ui_center/btnBuy",this.node);
this.lb_num = find("ui_center/lb_num",this.node)?.getComponent(Label);
this.lb_desc = find("ui_center/lb_desc",this.node)?.getComponent(Label);
this.ui_layout = find("ui_center/ui_layout",this.node);
this.lb_buy = find("ui_center/ui_layout/lb_buy",this.node)?.getComponent(Label);
}
onEnable() {
this.btnClose.on(Node.EventType.TOUCH_END, this.click_btnClose, this);
this.btnBuy.on(Node.EventType.TOUCH_END, this.click_btnBuy, this);
}
onDisable() {
this.btnClose.off(Node.EventType.TOUCH_END, this.click_btnClose, this);
this.btnBuy.off(Node.EventType.TOUCH_END, this.click_btnBuy, this);
}
click_btnClose() {}
click_btnBuy() {}
}