UIActivityChipRewardComView_Generate.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. ---@class UIActivityChipRewardCom__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityChipRewardCom__Generate_time
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIActivityChipRewardCom__Generate_btnInfo
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIActivityChipRewardCom__Generate_banner
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class UIActivityChipRewardCom__Generate_exchangeItem
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@class UIActivityChipRewardCom__Generate_boxExchange
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public loopListView SuperScrollView.LoopListView
  19. ---@class UIActivityChipRewardCom__Generate_AnyBtn
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIActivityChipRewardCom__Generate
  23. ---@field private gameObject UnityEngine.GameObject
  24. ---@field private transform UnityEngine.Transform
  25. ---@field private AnyBtn UIActivityChipRewardCom__Generate_AnyBtn
  26. ---@field private boxExchange UIActivityChipRewardCom__Generate_boxExchange
  27. ---@field private exchangeItem UIActivityChipRewardCom__Generate_exchangeItem
  28. ---@field private banner UIActivityChipRewardCom__Generate_banner
  29. ---@field private btnInfo UIActivityChipRewardCom__Generate_btnInfo
  30. ---@field private time UIActivityChipRewardCom__Generate_time
  31. ---@field private backBtn UIActivityChipRewardCom__Generate_backBtn
  32. local UIActivityChipRewardComView = class("UIActivityChipRewardComView", require("UIViewBase"))
  33. function UIActivityChipRewardComView:ctor()
  34. end
  35. ---@private
  36. function UIActivityChipRewardComView:SetActive(result)
  37. self.gameObject:SetActive(result)
  38. end
  39. ---@private
  40. function UIActivityChipRewardComView:InitGenerate(Root, data)
  41. self.transform = Root
  42. self.inited = true
  43. if self.super.Init then
  44. self.super.Init(self)
  45. end
  46. local tmp
  47. self:InitGenerate__1(Root,data)
  48. self:InitGenerate__2(Root,data)
  49. self:InitGenerate__3(Root,data)
  50. self:InitGenerate__4(Root,data)
  51. self:InitGenerate__5(Root,data)
  52. self:InitGenerate__6(Root,data)
  53. self:InitGenerate__7(Root,data)
  54. end
  55. ---@private
  56. function UIActivityChipRewardComView:InitGenerate__1(Root, data)
  57. --[[
  58. UIAnimator/Alpha
  59. --]]
  60. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  61. if tolua.getpeer(tmp) == nil then
  62. tolua.setpeer(tmp, {})
  63. end
  64. self.AnyBtn = tmp
  65. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  66. end
  67. ---@private
  68. function UIActivityChipRewardComView:InitGenerate__2(Root, data)
  69. --[[
  70. UIAnimator/Window/Bottom/BoxExchange
  71. --]]
  72. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxExchange").gameObject
  73. if tolua.getpeer(tmp) == nil then
  74. tolua.setpeer(tmp, {})
  75. end
  76. self.boxExchange = tmp
  77. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  78. end
  79. ---@private
  80. function UIActivityChipRewardComView:InitGenerate__3(Root, data)
  81. --[[
  82. UIAnimator/Window/Bottom/BoxExchange/Viewport/Content/ExchangeItem
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxExchange/Viewport/Content/ExchangeItem").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.exchangeItem = CommonUtil.BindGridViewItem2LuaStatic("ExchangeItem", tmp)
  89. self.exchangeItem.prefabName = "ExchangeItem"
  90. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  91. end
  92. ---@private
  93. function UIActivityChipRewardComView:InitGenerate__4(Root, data)
  94. --[[
  95. UIAnimator/Window/BannerBg/Banner
  96. --]]
  97. local tmp = Root:Find("UIAnimator/Window/BannerBg/Banner").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.banner = tmp
  102. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  103. end
  104. ---@private
  105. function UIActivityChipRewardComView:InitGenerate__5(Root, data)
  106. --[[
  107. UIAnimator/Window/BannerBg/BtnInfo
  108. --]]
  109. local tmp = Root:Find("UIAnimator/Window/BannerBg/BtnInfo").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.btnInfo = tmp
  114. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  115. end
  116. ---@private
  117. function UIActivityChipRewardComView:InitGenerate__6(Root, data)
  118. --[[
  119. UIAnimator/Window/BannerBg/TimeLimit/Time
  120. --]]
  121. local tmp = Root:Find("UIAnimator/Window/BannerBg/TimeLimit/Time").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.time = tmp
  126. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  127. end
  128. ---@private
  129. function UIActivityChipRewardComView:InitGenerate__7(Root, data)
  130. --[[
  131. UIAnimator/Window/BtnBack
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.backBtn = tmp
  138. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  139. end
  140. ---@private
  141. function UIActivityChipRewardComView:GenerateDestroy()
  142. if tolua.getpeer(self.AnyBtn) ~= nil then
  143. tolua.setpeer(self.AnyBtn, nil)
  144. end
  145. self.AnyBtn = nil
  146. if tolua.getpeer(self.boxExchange) ~= nil then
  147. tolua.setpeer(self.boxExchange, nil)
  148. end
  149. self.boxExchange = nil
  150. if self.exchangeItem.GenerateDestroy ~= nil then
  151. self.exchangeItem:GenerateDestroy()
  152. end
  153. if tolua.getpeer(self.exchangeItem) ~= nil then
  154. tolua.setpeer(self.exchangeItem, nil)
  155. end
  156. self.exchangeItem = nil
  157. if tolua.getpeer(self.banner) ~= nil then
  158. tolua.setpeer(self.banner, nil)
  159. end
  160. self.banner = nil
  161. if tolua.getpeer(self.btnInfo) ~= nil then
  162. tolua.setpeer(self.btnInfo, nil)
  163. end
  164. self.btnInfo = nil
  165. if tolua.getpeer(self.time) ~= nil then
  166. tolua.setpeer(self.time, nil)
  167. end
  168. self.time = nil
  169. if tolua.getpeer(self.backBtn) ~= nil then
  170. tolua.setpeer(self.backBtn, nil)
  171. end
  172. self.backBtn = nil
  173. self.transform = nil
  174. self.gameObject = nil
  175. self.inited = false
  176. end
  177. return UIActivityChipRewardComView