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.
41 lines
1.5 KiB
41 lines
1.5 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_PanelSidebar')
|
|
export class Auto_PanelSidebar extends UIBase {
|
|
btnFinish:Node;
|
|
btnGet:Node;
|
|
btnEnter:Node;
|
|
btnClose:Node;
|
|
onLoad(){
|
|
super.onLoad();
|
|
this.btnFinish = find("center/btnFinish",this.node);
|
|
this.btnGet = find("center/btnGet",this.node);
|
|
this.btnEnter = find("center/btnEnter",this.node);
|
|
this.btnClose = find("center/btnClose",this.node);
|
|
}
|
|
onEnable() {
|
|
this.btnFinish.on(Node.EventType.TOUCH_END, this.click_btnFinish, this);
|
|
this.btnGet.on(Node.EventType.TOUCH_END, this.click_btnGet, this);
|
|
this.btnEnter.on(Node.EventType.TOUCH_END, this.click_btnEnter, this);
|
|
this.btnClose.on(Node.EventType.TOUCH_END, this.click_btnClose, this);
|
|
}
|
|
onDisable() {
|
|
this.btnFinish.off(Node.EventType.TOUCH_END, this.click_btnFinish, this);
|
|
this.btnGet.off(Node.EventType.TOUCH_END, this.click_btnGet, this);
|
|
this.btnEnter.off(Node.EventType.TOUCH_END, this.click_btnEnter, this);
|
|
this.btnClose.off(Node.EventType.TOUCH_END, this.click_btnClose, this);
|
|
}
|
|
click_btnFinish() {}
|
|
click_btnGet() {}
|
|
click_btnEnter() {}
|
|
click_btnClose() {}
|
|
} |