//********************* // 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_buyPower') export class Auto_buyPower extends UIBase { bgMask:Node; ui_center:Node; btnClose:Node; freeBtn:Node; buyBtn:Node; tiliNumLab1:Label; tiliNumLab2:Label; freeLab:Label; buyNumLab:Label; freeLabZS:Label; freeBtnRed:Node; onLoad(){ super.onLoad(); this.bgMask = find("bgMask",this.node); this.ui_center = find("ui_center",this.node); this.btnClose = find("ui_center/btnClose",this.node); this.freeBtn = find("ui_center/freeBtn",this.node); this.buyBtn = find("ui_center/buyBtn",this.node); this.freeBtnRed = find("ui_center/freeBtn/红点",this.node); this.tiliNumLab1 = find("ui_center/单体力/tiliNumLab1",this.node).getComponent(Label); this.tiliNumLab2 = find("ui_center/3体力/tiliNumLab2",this.node).getComponent(Label); this.freeLab = find("ui_center/freeBtn/freeLab",this.node).getComponent(Label); this.buyNumLab = find("ui_center/buyBtn/buyNumLab",this.node).getComponent(Label); this.freeLabZS = find("ui_center/buyBtn/freeLabZS",this.node).getComponent(Label); } onEnable() { this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this); this.btnClose.on(Node.EventType.TOUCH_END, this.click_btnClose, this); this.freeBtn.on(Node.EventType.TOUCH_END, this.click_freeBtn, this); this.buyBtn.on(Node.EventType.TOUCH_END, this.click_buyBtn, this); } onDisable() { this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this); this.btnClose.off(Node.EventType.TOUCH_END, this.click_btnClose, this); this.freeBtn.off(Node.EventType.TOUCH_END, this.click_freeBtn, this); this.buyBtn.off(Node.EventType.TOUCH_END, this.click_buyBtn, this); } click_bgMask() {} click_btnClose() {} click_freeBtn() {} click_buyBtn() {} }