消消方块阵换皮表情
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.
 
 
 

67 lines
2.8 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_center')
export class Auto_center extends UIBase {
ui_box1:Node;
btnMusic:Node;
btnEffect:Node;
btnVibrate:Node;
ui_boxLang:Node;
ui_box2:Node;
btnRestart:Node;
btnSave:Node;
btnDuiHuan:Node;
btnGM:Node;
btnResetArea:Node;
onLoad(){
super.onLoad();
this.ui_box1 = find("弹窗游戏设置/ui_box1",this.node);
this.btnMusic = find("弹窗游戏设置/ui_box1/btnMusic",this.node);
this.btnEffect = find("弹窗游戏设置/ui_box1/btnEffect",this.node);
this.btnVibrate = find("弹窗游戏设置/ui_box1/btnVibrate",this.node);
this.ui_boxLang = find("弹窗游戏设置/ui_boxLang",this.node);
this.ui_box2 = find("弹窗游戏设置/ui_box2",this.node);
this.btnRestart = find("弹窗游戏设置/ui_box2/btnRestart",this.node);
this.btnSave = find("弹窗游戏设置/ui_box2/btnSave",this.node);
this.btnDuiHuan = find("弹窗游戏设置/ui_box2/btnDuiHuan",this.node);
this.btnGM = find("弹窗游戏设置/ui_box2/btnGM",this.node);
this.btnResetArea = find("btnResetArea",this.node);
}
onEnable() {
this.btnMusic.on(Node.EventType.TOUCH_END, this.click_btnMusic, this);
this.btnEffect.on(Node.EventType.TOUCH_END, this.click_btnEffect, this);
this.btnVibrate.on(Node.EventType.TOUCH_END, this.click_btnVibrate, this);
this.btnRestart.on(Node.EventType.TOUCH_END, this.click_btnRestart, this);
this.btnSave.on(Node.EventType.TOUCH_END, this.click_btnSave, this);
this.btnDuiHuan.on(Node.EventType.TOUCH_END, this.click_btnDuiHuan, this);
this.btnGM.on(Node.EventType.TOUCH_END, this.click_btnGM, this);
this.btnResetArea.on(Node.EventType.TOUCH_END, this.click_btnResetArea, this);
}
onDisable() {
this.btnMusic.off(Node.EventType.TOUCH_END, this.click_btnMusic, this);
this.btnEffect.off(Node.EventType.TOUCH_END, this.click_btnEffect, this);
this.btnVibrate.off(Node.EventType.TOUCH_END, this.click_btnVibrate, this);
this.btnRestart.off(Node.EventType.TOUCH_END, this.click_btnRestart, this);
this.btnSave.off(Node.EventType.TOUCH_END, this.click_btnSave, this);
this.btnDuiHuan.off(Node.EventType.TOUCH_END, this.click_btnDuiHuan, this);
this.btnGM.off(Node.EventType.TOUCH_END, this.click_btnGM, this);
this.btnResetArea.off(Node.EventType.TOUCH_END, this.click_btnResetArea, this);
}
click_btnMusic() {}
click_btnEffect() {}
click_btnVibrate() {}
click_btnRestart() {}
click_btnSave() {}
click_btnDuiHuan() {}
click_btnGM() {}
click_btnResetArea() {}
}