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.
81 lines
3.1 KiB
81 lines
3.1 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_pageDungeon')
|
|
export class Auto_pageDungeon extends UIBase {
|
|
ui_center:Node;
|
|
ui_content:Node;
|
|
|
|
ui_layNode:Node;
|
|
ui_layNode2:Node;
|
|
ui_layNode4:Node;
|
|
ui_layNode3:Node;
|
|
ui_layNode5:Node;
|
|
ui_layNode6:Node;
|
|
ui_item:Node;
|
|
lb_num:Label;
|
|
|
|
itemNode1:Node;
|
|
itemNode2:Node;
|
|
itemNode3:Node;
|
|
itemNode4:Node;
|
|
itemNode5:Node;
|
|
itemNode6:Node;
|
|
tiaozhan_label:Label;
|
|
onLoad(){
|
|
super.onLoad();
|
|
this.ui_center = find("ui_center",this.node);
|
|
this.ui_content = find("ui_center/view/ui_content",this.node);
|
|
|
|
// this.tiaozhan_label = find("ui_center/view/ui_content/itemNode1/tiaozhan_label",this.node)?.getComponent(Label);
|
|
|
|
|
|
this.ui_layNode = find("ui_center/view/ui_content/itemNode1/ui_layNode",this.node);
|
|
this.ui_layNode2 = find("ui_center/view/ui_content/itemNode2/ui_layNode",this.node);
|
|
this.ui_layNode3 = find("ui_center/view/ui_content/itemNode3/ui_layNode",this.node);
|
|
this.ui_layNode4 = find("ui_center/view/ui_content/itemNode4/ui_layNode",this.node);
|
|
this.ui_layNode5 = find("ui_center/view/ui_content/itemNode5/ui_layNode",this.node);
|
|
this.ui_layNode6 = find("ui_center/view/ui_content/itemNode6/ui_layNode",this.node);
|
|
|
|
this.ui_item = find("ui_center/ui_item",this.node);
|
|
this.lb_num = find("ui_center/ui_item/lb_num",this.node)?.getComponent(Label);
|
|
|
|
this.itemNode1 = find("ui_center/view/ui_content/itemNode1",this.node);
|
|
this.itemNode2 = find("ui_center/view/ui_content/itemNode2",this.node);
|
|
this.itemNode3 = find("ui_center/view/ui_content/itemNode3",this.node);
|
|
this.itemNode4 = find("ui_center/view/ui_content/itemNode4",this.node);
|
|
this.itemNode5 = find("ui_center/view/ui_content/itemNode5",this.node);
|
|
this.itemNode6 = find("ui_center/view/ui_content/itemNode6",this.node);
|
|
}
|
|
onEnable() {
|
|
// this.itemNode1.on(Node.EventType.TOUCH_END, this.click_itemNode1, this);
|
|
// this.itemNode2.on(Node.EventType.TOUCH_END, this.click_itemNode2, this);
|
|
// this.itemNode3.on(Node.EventType.TOUCH_END, this.click_itemNode3, this);
|
|
// this.itemNode4.on(Node.EventType.TOUCH_END, this.click_itemNode4, this);
|
|
// this.itemNode5.on(Node.EventType.TOUCH_END, this.click_itemNode5, this);
|
|
}
|
|
onDisable() {
|
|
// this.itemNode1.off(Node.EventType.TOUCH_END, this.click_itemNode1, this);
|
|
// this.itemNode2.off(Node.EventType.TOUCH_END, this.click_itemNode2, this);
|
|
// this.itemNode3.off(Node.EventType.TOUCH_END, this.click_itemNode3, this);
|
|
// this.itemNode4.off(Node.EventType.TOUCH_END, this.click_itemNode4, this);
|
|
// this.itemNode5.off(Node.EventType.TOUCH_END, this.click_itemNode5, this);
|
|
}
|
|
click_itemNode1() {
|
|
|
|
}
|
|
click_itemNode2() {}
|
|
click_itemNode3() {}
|
|
click_itemNode4() {}
|
|
click_itemNode5() {}
|
|
click_itemNode6() {}
|
|
} |