auto_menu.ts 607 B

1234567891011121314151617181920212223
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_menu extends cc.Component {
  4. menu: cc.Node;
  5. bg: cc.Node;
  6. start_btn: cc.Node;
  7. loading_lb: cc.Node;
  8. progress: cc.Node;
  9. bar: cc.Node;
  10. public static URL:string = "db://assets/resources/prefab/Interface/menu.prefab"
  11. onLoad () {
  12. this.menu = this.node
  13. this.bg = this.menu.getChildByName("bg");
  14. this.start_btn = this.menu.getChildByName("start_btn");
  15. this.loading_lb = this.menu.getChildByName("loading_lb");
  16. this.progress = this.menu.getChildByName("progress");
  17. this.bar = this.progress.getChildByName("bar");
  18. }
  19. }