//********************* // 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_PanelCDK') export class Auto_PanelCDK extends UIBase { bgMask:Node; btnSave:Node; onLoad(){ super.onLoad(); this.bgMask = find("bgMask",this.node); this.btnSave = find("center/btnSave",this.node); } onEnable() { this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this); this.btnSave.on(Node.EventType.TOUCH_END, this.click_btnSave, this); } onDisable() { this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this); this.btnSave.off(Node.EventType.TOUCH_END, this.click_btnSave, this); } click_bgMask() {} click_btnSave() {} }