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.4 KiB
41 lines
1.4 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_ItemDetailBox')
|
||
|
|
export class Auto_ItemDetailBox extends UIBase {
|
||
|
|
bgMask:Node;
|
||
|
|
nameLab:Label;
|
||
|
|
descLab:Label;
|
||
|
|
icon:Node;
|
||
|
|
pingjiKuang:Node;
|
||
|
|
|
||
|
|
numLab:Label;
|
||
|
|
desc2Lab:Label;
|
||
|
|
suipianNode:Node;
|
||
|
|
onLoad(){
|
||
|
|
super.onLoad();
|
||
|
|
this.bgMask = find("bgMask",this.node);
|
||
|
|
this.nameLab = find("center/nameLab",this.node).getComponent(Label);
|
||
|
|
this.descLab = find("center/descLab",this.node).getComponent(Label);
|
||
|
|
this.icon = find("center/icon",this.node);
|
||
|
|
this.pingjiKuang = find("center/品级框",this.node);
|
||
|
|
this.numLab = find("center/numLab",this.node).getComponent(Label);
|
||
|
|
this.desc2Lab = find("center/desc2Lab",this.node).getComponent(Label);
|
||
|
|
this.suipianNode = find("center/碎片",this.node);
|
||
|
|
}
|
||
|
|
onEnable() {
|
||
|
|
this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
||
|
|
}
|
||
|
|
onDisable() {
|
||
|
|
this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
||
|
|
}
|
||
|
|
click_bgMask() {}
|
||
|
|
}
|