12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- const { ccclass } = cc._decorator;
- @ccclass
- export default class auto_topMenu extends cc.Component {
- topMenu: cc.Node;
- daynum: cc.Node;
- day_num: cc.Node;
- pause_btn: cc.Node;
- pause: cc.Node;
- numNode: cc.Node;
- bg: cc.Node;
- role_sp: cc.Node;
- role_num: cc.Node;
- bullet_num: cc.Node;
- power_num: cc.Node;
- reducePower_num: cc.Node;
- Sun_sp: cc.Node;
- Moon_sp: cc.Node;
- testPanel: cc.Node;
- bullet_editBox: cc.Node;
- BACKGROUND_SPRITE: cc.Node;
- TEXT_LABEL: cc.Node;
- PLACEHOLDER_LABEL: cc.Node;
- bullet_btn: cc.Node;
- bullet: cc.Node;
- addHero_btn: cc.Node;
- addBoss_btn: cc.Node;
- openUI_btn: cc.Node;
- btns_node: cc.Node;
- btn_welfare: cc.Node;
- tip_welfare: cc.Node;
- bottom_btn: cc.Node;
- btn_drop: cc.Node;
- tip_drop: cc.Node;
- btn_sign: cc.Node;
- tip_sign: cc.Node;
- btn_shop: cc.Node;
- tip_shop: cc.Node;
- public static URL:string = "db://assets/resources/prefab/Interface/topMenu.prefab"
- onLoad () {
- this.topMenu = this.node
- this.daynum = this.topMenu.getChildByName("daynum");
- this.day_num = this.daynum.getChildByName("day_num");
- this.pause_btn = this.topMenu.getChildByName("pause_btn");
- this.pause = this.pause_btn.getChildByName("pause");
- this.numNode = this.topMenu.getChildByName("numNode");
- this.bg = this.numNode.getChildByName("bg");
- this.role_sp = this.bg.getChildByName("role_sp");
- this.role_num = this.bg.getChildByName("role_num");
- this.bullet_num = this.bg.getChildByName("bullet_num");
- this.power_num = this.bg.getChildByName("power_num");
- this.reducePower_num = this.bg.getChildByName("reducePower_num");
- this.Sun_sp = this.topMenu.getChildByName("Sun_sp");
- this.Moon_sp = this.topMenu.getChildByName("Moon_sp");
- this.testPanel = this.topMenu.getChildByName("testPanel");
- this.bullet_editBox = this.testPanel.getChildByName("bullet_editBox");
- this.BACKGROUND_SPRITE = this.bullet_editBox.getChildByName("BACKGROUND_SPRITE");
- this.TEXT_LABEL = this.bullet_editBox.getChildByName("TEXT_LABEL");
- this.PLACEHOLDER_LABEL = this.bullet_editBox.getChildByName("PLACEHOLDER_LABEL");
- this.bullet_btn = this.testPanel.getChildByName("bullet_btn");
- this.bullet = this.testPanel.getChildByName("bullet");
- this.addHero_btn = this.testPanel.getChildByName("addHero_btn");
- this.addBoss_btn = this.testPanel.getChildByName("addBoss_btn");
- this.openUI_btn = this.testPanel.getChildByName("openUI_btn");
- this.btns_node = this.topMenu.getChildByName("btns_node");
- this.btn_welfare = this.btns_node.getChildByName("btn_welfare");
- this.tip_welfare = this.btn_welfare.getChildByName("tip_welfare");
- this.bottom_btn = this.topMenu.getChildByName("bottom_btn");
- this.btn_drop = this.bottom_btn.getChildByName("btn_drop");
- this.tip_drop = this.btn_drop.getChildByName("tip_drop");
- this.btn_sign = this.bottom_btn.getChildByName("btn_sign");
- this.tip_sign = this.btn_sign.getChildByName("tip_sign");
- this.btn_shop = this.bottom_btn.getChildByName("btn_shop");
- this.tip_shop = this.btn_shop.getChildByName("tip_shop");
- }
- }
|