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.
48 lines
1.8 KiB
48 lines
1.8 KiB
|
1 week ago
|
|
||
|
|
//*********************
|
||
|
|
// 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_boxLevelupDetail')
|
||
|
|
export class Auto_boxLevelupDetail extends UIBase {
|
||
|
|
bgMask:Node;
|
||
|
|
ui_mainView:Node;
|
||
|
|
lb_nameLab:Label;
|
||
|
|
lb_boxLevel:Label;
|
||
|
|
ui_lay1:Node;
|
||
|
|
ui_lay2:Node;
|
||
|
|
leftBtn:Node;
|
||
|
|
rightBtn:Node;
|
||
|
|
ui_itemNode:Node;
|
||
|
|
onLoad(){
|
||
|
|
super.onLoad();
|
||
|
|
this.bgMask = find("bgMask",this.node);
|
||
|
|
this.ui_mainView = find("ui_mainView",this.node);
|
||
|
|
this.lb_nameLab = find("ui_mainView/lb_nameLab",this.node)?.getComponent(Label);
|
||
|
|
this.lb_boxLevel = find("ui_mainView/lay/lb_boxLevel",this.node)?.getComponent(Label);
|
||
|
|
this.ui_lay1 = find("ui_mainView/高级宝箱框/ui_lay1",this.node);
|
||
|
|
this.ui_lay2 = find("ui_mainView/稀有宝箱框/ui_lay1",this.node);
|
||
|
|
this.leftBtn = find("ui_mainView/leftBtn",this.node);
|
||
|
|
this.rightBtn = find("ui_mainView/rightBtn",this.node);
|
||
|
|
this.ui_itemNode = find("ui_mainView/ui_itemNode",this.node);
|
||
|
|
}
|
||
|
|
onEnable() {
|
||
|
|
this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
||
|
|
this.leftBtn.on(Node.EventType.TOUCH_END, this.click_leftBtn, this);
|
||
|
|
this.rightBtn.on(Node.EventType.TOUCH_END, this.click_rightBtn, this);
|
||
|
|
}
|
||
|
|
onDisable() {
|
||
|
|
this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
||
|
|
this.leftBtn.off(Node.EventType.TOUCH_END, this.click_leftBtn, this);
|
||
|
|
this.rightBtn.off(Node.EventType.TOUCH_END, this.click_rightBtn, this);
|
||
|
|
}
|
||
|
|
click_bgMask() {}
|
||
|
|
click_leftBtn() {}
|
||
|
|
click_rightBtn() {}
|
||
|
|
}
|