auto_welfareView.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_welfareView extends cc.Component {
  4. welfareView: cc.Node;
  5. mask: cc.Node;
  6. bg: cc.Node;
  7. npc: cc.Node;
  8. icon_btn2: cc.Node;
  9. weapon: cc.Node;
  10. icon_btn: cc.Node;
  11. gun: cc.Node;
  12. icon_btn1: cc.Node;
  13. bullet: cc.Node;
  14. icon: cc.Node;
  15. xcz_4m: cc.Node;
  16. xcz_wz: cc.Node;
  17. weapon_list: cc.Node;
  18. gun_list: cc.Node;
  19. bullet_list: cc.Node;
  20. close: cc.Node;
  21. close_icon: cc.Node;
  22. public static URL:string = "db://assets/resources/prefab/Interface/welfareView.prefab"
  23. onLoad () {
  24. this.welfareView = this.node
  25. this.mask = this.welfareView.getChildByName("mask");
  26. this.bg = this.welfareView.getChildByName("bg");
  27. this.npc = this.bg.getChildByName("npc");
  28. this.icon_btn2 = this.npc.getChildByName("icon_btn2");
  29. this.weapon = this.bg.getChildByName("weapon");
  30. this.icon_btn = this.weapon.getChildByName("icon_btn");
  31. this.gun = this.bg.getChildByName("gun");
  32. this.icon_btn1 = this.gun.getChildByName("icon_btn1");
  33. this.bullet = this.bg.getChildByName("bullet");
  34. this.icon = this.bullet.getChildByName("icon");
  35. this.xcz_4m = this.welfareView.getChildByName("xcz_4m");
  36. this.xcz_wz = this.welfareView.getChildByName("xcz_wz");
  37. this.weapon_list = this.xcz_wz.getChildByName("weapon_list");
  38. this.gun_list = this.xcz_wz.getChildByName("gun_list");
  39. this.bullet_list = this.xcz_wz.getChildByName("bullet_list");
  40. this.close = this.welfareView.getChildByName("close");
  41. this.close_icon = this.close.getChildByName("close_icon");
  42. }
  43. }