UIActivityBackGiftView_Generate.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ---@class UIActivityBackGift__Generate_btnReceive
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityBackGift__Generate_AnyBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIActivityBackGift__Generate
  8. ---@field private gameObject UnityEngine.GameObject
  9. ---@field private transform UnityEngine.Transform
  10. ---@field private AnyBtn UIActivityBackGift__Generate_AnyBtn
  11. ---@field private banner UnityEngine.GameObject
  12. ---@field private btnReceive UIActivityBackGift__Generate_btnReceive
  13. local UIActivityBackGiftView = class("UIActivityBackGiftView", require("UIViewBase"))
  14. function UIActivityBackGiftView:ctor()
  15. end
  16. ---@private
  17. function UIActivityBackGiftView:SetActive(result)
  18. self.gameObject:SetActive(result)
  19. end
  20. ---@private
  21. function UIActivityBackGiftView:InitGenerate(Root, data)
  22. self.transform = Root
  23. self.inited = true
  24. if self.super.Init then
  25. self.super.Init(self)
  26. end
  27. local tmp
  28. self:InitGenerate__1(Root,data)
  29. self:InitGenerate__2(Root,data)
  30. self:InitGenerate__3(Root,data)
  31. end
  32. ---@private
  33. function UIActivityBackGiftView:InitGenerate__1(Root, data)
  34. --[[
  35. UIAnimator/Alpha
  36. --]]
  37. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  38. if tolua.getpeer(tmp) == nil then
  39. tolua.setpeer(tmp, {})
  40. end
  41. self.AnyBtn = tmp
  42. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  43. end
  44. ---@private
  45. function UIActivityBackGiftView:InitGenerate__2(Root, data)
  46. --[[
  47. UIAnimator/Window/Banner
  48. --]]
  49. local tmp = Root:Find("UIAnimator/Window/Banner").gameObject
  50. if tolua.getpeer(tmp) == nil then
  51. tolua.setpeer(tmp, {})
  52. end
  53. self.banner = tmp
  54. end
  55. ---@private
  56. function UIActivityBackGiftView:InitGenerate__3(Root, data)
  57. --[[
  58. UIAnimator/Window/BtnReceive
  59. --]]
  60. local tmp = Root:Find("UIAnimator/Window/BtnReceive").gameObject
  61. if tolua.getpeer(tmp) == nil then
  62. tolua.setpeer(tmp, {})
  63. end
  64. self.btnReceive = tmp
  65. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  66. end
  67. ---@private
  68. function UIActivityBackGiftView:GenerateDestroy()
  69. if tolua.getpeer(self.AnyBtn) ~= nil then
  70. tolua.setpeer(self.AnyBtn, nil)
  71. end
  72. self.AnyBtn = nil
  73. if tolua.getpeer(self.banner) ~= nil then
  74. tolua.setpeer(self.banner, nil)
  75. end
  76. self.banner = nil
  77. if tolua.getpeer(self.btnReceive) ~= nil then
  78. tolua.setpeer(self.btnReceive, nil)
  79. end
  80. self.btnReceive = nil
  81. self.transform = nil
  82. self.gameObject = nil
  83. self.inited = false
  84. end
  85. return UIActivityBackGiftView