auto_dialogView.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_dialogView extends cc.Component {
  4. dialogView: cc.Node;
  5. imgMask: cc.Node;
  6. Bg: cc.Node;
  7. img3JiBtDi: cc.Node;
  8. title: cc.Node;
  9. btnClose: cc.Node;
  10. DescLabel: cc.Node;
  11. layout: cc.Node;
  12. btnCancel: cc.Node;
  13. txtCancel: cc.Node;
  14. btnConfirm: cc.Node;
  15. txtConfirm: cc.Node;
  16. public static URL:string = "db://assets/bundle/dialogView/dialogView.prefab"
  17. onLoad () {
  18. this.dialogView = this.node
  19. this.imgMask = this.dialogView.getChildByName("imgMask");
  20. this.Bg = this.imgMask.getChildByName("Bg");
  21. this.img3JiBtDi = this.Bg.getChildByName("img3JiBtDi");
  22. this.title = this.Bg.getChildByName("title");
  23. this.btnClose = this.Bg.getChildByName("btnClose");
  24. this.DescLabel = this.Bg.getChildByName("DescLabel");
  25. this.layout = this.Bg.getChildByName("layout");
  26. this.btnCancel = this.layout.getChildByName("btnCancel");
  27. this.txtCancel = this.btnCancel.getChildByName("txtCancel");
  28. this.btnConfirm = this.layout.getChildByName("btnConfirm");
  29. this.txtConfirm = this.btnConfirm.getChildByName("txtConfirm");
  30. }
  31. }