auto_loading.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_loading extends cc.Component {
  4. Canvas: cc.Node;
  5. background: cc.Node;
  6. tip: cc.Node;
  7. imgLogo: cc.Node;
  8. biaoshi: cc.Node;
  9. top3: cc.Node;
  10. gTop1: cc.Node;
  11. gTop2: cc.Node;
  12. gTop3: cc.Node;
  13. imgAgeTips: cc.Node;
  14. gBottom: cc.Node;
  15. btnLogin: cc.Node;
  16. LoginFont: cc.Node;
  17. btnEnter: cc.Node;
  18. GameStartFont: cc.Node;
  19. TipBtn: cc.Node;
  20. gServer: cc.Node;
  21. imgServerBg: cc.Node;
  22. imgServerState: cc.Node;
  23. txtServer: cc.Node;
  24. gToggle: cc.Node;
  25. words: cc.Node;
  26. toggle: cc.Node;
  27. imgToggleBg: cc.Node;
  28. imgCheckMask: cc.Node;
  29. gProgress: cc.Node;
  30. progress: cc.Node;
  31. imgRole: cc.Node;
  32. txtProgress: cc.Node;
  33. txtProgressTips: cc.Node;
  34. gInfo: cc.Node;
  35. imgBottomDi: cc.Node;
  36. txtJiankang: cc.Node;
  37. txtTips1: cc.Node;
  38. txtTips2: cc.Node;
  39. TipsBtn: cc.Node;
  40. txtLoginTips: cc.Node;
  41. BtnLayout: cc.Node;
  42. btnGonggao: cc.Node;
  43. btnGgTitle: cc.Node;
  44. btnService: cc.Node;
  45. btnSvTitle: cc.Node;
  46. btnClearCache: cc.Node;
  47. btnClearTitle: cc.Node;
  48. btnGzh: cc.Node;
  49. txtVersion: cc.Node;
  50. txtTips: cc.Node;
  51. lb_msg: cc.Node;
  52. Label: cc.Node;
  53. public static URL: string = "db://assets/scene/loading.fire"
  54. onLoad() {
  55. let parent = this.node.getParent();
  56. this.Canvas = parent.getChildByName("Canvas");
  57. this.background = this.Canvas.getChildByName("background");
  58. this.tip = this.background.getChildByName("tip");
  59. this.imgLogo = this.Canvas.getChildByName("imgLogo");
  60. this.biaoshi = this.Canvas.getChildByName("biaoshi");
  61. this.top3 = this.Canvas.getChildByName("top3");
  62. this.gTop1 = this.top3.getChildByName("gTop1");
  63. this.gTop2 = this.top3.getChildByName("gTop2");
  64. this.gTop3 = this.top3.getChildByName("gTop3");
  65. this.imgAgeTips = this.Canvas.getChildByName("imgAgeTips");
  66. this.gBottom = this.Canvas.getChildByName("gBottom");
  67. this.btnLogin = this.gBottom.getChildByName("btnLogin");
  68. this.LoginFont = this.btnLogin.getChildByName("LoginFont");
  69. this.btnEnter = this.gBottom.getChildByName("btnEnter");
  70. this.GameStartFont = this.btnEnter.getChildByName("GameStartFont");
  71. this.TipBtn = this.btnEnter.getChildByName("TipBtn");
  72. this.gServer = this.gBottom.getChildByName("gServer");
  73. this.imgServerBg = this.gServer.getChildByName("imgServerBg");
  74. this.imgServerState = this.imgServerBg.getChildByName("imgServerState");
  75. this.txtServer = this.imgServerBg.getChildByName("txtServer");
  76. this.gToggle = this.gBottom.getChildByName("gToggle");
  77. this.words = this.gToggle.getChildByName("words");
  78. this.toggle = this.gToggle.getChildByName("toggle");
  79. this.imgToggleBg = this.toggle.getChildByName("imgToggleBg");
  80. this.imgCheckMask = this.toggle.getChildByName("imgCheckMask");
  81. this.gProgress = this.gBottom.getChildByName("gProgress");
  82. this.progress = this.gProgress.getChildByName("progress");
  83. this.imgRole = this.gProgress.getChildByName("imgRole");
  84. this.txtProgress = this.gProgress.getChildByName("txtProgress");
  85. this.txtProgressTips = this.gProgress.getChildByName("txtProgressTips");
  86. this.gInfo = this.gBottom.getChildByName("gInfo");
  87. this.imgBottomDi = this.gInfo.getChildByName("imgBottomDi");
  88. this.txtJiankang = this.gInfo.getChildByName("txtJiankang");
  89. this.txtTips1 = this.gInfo.getChildByName("txtTips1");
  90. this.txtTips2 = this.gInfo.getChildByName("txtTips2");
  91. this.TipsBtn = this.gInfo.getChildByName("TipsBtn");
  92. this.txtLoginTips = this.gBottom.getChildByName("txtLoginTips");
  93. this.BtnLayout = this.Canvas.getChildByName("BtnLayout");
  94. this.btnGonggao = this.BtnLayout.getChildByName("btnGonggao");
  95. this.btnGgTitle = this.btnGonggao.getChildByName("btnGgTitle");
  96. this.btnService = this.BtnLayout.getChildByName("btnService");
  97. this.btnSvTitle = this.btnService.getChildByName("btnSvTitle");
  98. this.btnClearCache = this.BtnLayout.getChildByName("btnClearCache");
  99. this.btnClearTitle = this.btnClearCache.getChildByName("btnClearTitle");
  100. this.btnGzh = this.Canvas.getChildByName("btnGzh");
  101. this.txtVersion = this.Canvas.getChildByName("txtVersion");
  102. this.txtTips = this.Canvas.getChildByName("txtTips");
  103. this.lb_msg = this.Canvas.getChildByName("lb_msg");
  104. }
  105. }