UIActivityDailyRechargeBTView_Generate.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. ---@class UIActivityDailyRechargeBT__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityDailyRechargeBT__Generate_title
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIActivityDailyRechargeBT__Generate_bg
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIActivityDailyRechargeBT__Generate_banner
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class UIActivityDailyRechargeBT__Generate_taskListScroll
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public loopListView SuperScrollView.LoopListView
  16. ---@class UIActivityDailyRechargeBT__Generate_leftTimeNode_icon
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public image UnityEngine.UI.Image
  19. ---@class UIActivityDailyRechargeBT__Generate_leftTimeNode_leftTimeTxt
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIActivityDailyRechargeBT__Generate_leftTimeNode
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public leftTimeTxt UIActivityDailyRechargeBT__Generate_leftTimeNode_leftTimeTxt
  25. ---@field public icon UIActivityDailyRechargeBT__Generate_leftTimeNode_icon
  26. ---@class UIActivityDailyRechargeBT__Generate_AnyBtn
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UIActivityDailyRechargeBT__Generate
  30. ---@field private gameObject UnityEngine.GameObject
  31. ---@field private transform UnityEngine.Transform
  32. ---@field private AnyBtn UIActivityDailyRechargeBT__Generate_AnyBtn
  33. ---@field private leftTimeNode UIActivityDailyRechargeBT__Generate_leftTimeNode
  34. ---@field private taskListScroll UIActivityDailyRechargeBT__Generate_taskListScroll
  35. ---@field private taskItemActivity UnityEngine.GameObject
  36. ---@field private banner UIActivityDailyRechargeBT__Generate_banner
  37. ---@field private bg UIActivityDailyRechargeBT__Generate_bg
  38. ---@field private title UIActivityDailyRechargeBT__Generate_title
  39. ---@field private backBtn UIActivityDailyRechargeBT__Generate_backBtn
  40. local UIActivityDailyRechargeBTView = class("UIActivityDailyRechargeBTView", require("UIViewBase"))
  41. function UIActivityDailyRechargeBTView:ctor()
  42. end
  43. ---@private
  44. function UIActivityDailyRechargeBTView:SetActive(result)
  45. self.gameObject:SetActive(result)
  46. end
  47. ---@private
  48. function UIActivityDailyRechargeBTView:InitGenerate(Root, data)
  49. self.transform = Root
  50. self.inited = true
  51. if self.super.Init then
  52. self.super.Init(self)
  53. end
  54. local tmp
  55. self:InitGenerate__1(Root,data)
  56. self:InitGenerate__2(Root,data)
  57. self:InitGenerate__3(Root,data)
  58. self:InitGenerate__4(Root,data)
  59. self:InitGenerate__5(Root,data)
  60. self:InitGenerate__6(Root,data)
  61. self:InitGenerate__7(Root,data)
  62. self:InitGenerate__8(Root,data)
  63. self:InitGenerate__9(Root,data)
  64. self:InitGenerate__10(Root,data)
  65. end
  66. ---@private
  67. function UIActivityDailyRechargeBTView:InitGenerate__1(Root, data)
  68. --[[
  69. UIAnimator/Alpha
  70. --]]
  71. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  72. if tolua.getpeer(tmp) == nil then
  73. tolua.setpeer(tmp, {})
  74. end
  75. self.AnyBtn = tmp
  76. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  77. end
  78. ---@private
  79. function UIActivityDailyRechargeBTView:InitGenerate__2(Root, data)
  80. --[[
  81. UIAnimator/Window/Bottom/Bg/TimeCountdown
  82. --]]
  83. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown").gameObject
  84. if tolua.getpeer(tmp) == nil then
  85. tolua.setpeer(tmp, {})
  86. end
  87. self.leftTimeNode = tmp
  88. end
  89. ---@private
  90. function UIActivityDailyRechargeBTView:InitGenerate__3(Root, data)
  91. --[[
  92. UIAnimator/Window/Bottom/Bg/TimeCountdown/Text
  93. --]]
  94. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown/Text").gameObject
  95. if tolua.getpeer(tmp) == nil then
  96. tolua.setpeer(tmp, {})
  97. end
  98. self.leftTimeNode.leftTimeTxt = tmp
  99. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  100. end
  101. ---@private
  102. function UIActivityDailyRechargeBTView:InitGenerate__4(Root, data)
  103. --[[
  104. UIAnimator/Window/Bottom/Bg/TimeCountdown/Text/Icon
  105. --]]
  106. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown/Text/Icon").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.leftTimeNode.icon = tmp
  111. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  112. end
  113. ---@private
  114. function UIActivityDailyRechargeBTView:InitGenerate__5(Root, data)
  115. --[[
  116. UIAnimator/Window/Bottom/Bg/ScrollView
  117. --]]
  118. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/ScrollView").gameObject
  119. if tolua.getpeer(tmp) == nil then
  120. tolua.setpeer(tmp, {})
  121. end
  122. self.taskListScroll = tmp
  123. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  124. end
  125. ---@private
  126. function UIActivityDailyRechargeBTView:InitGenerate__6(Root, data)
  127. --[[
  128. UIAnimator/Window/Bottom/Bg/ScrollView/Viewport/Content/TaskItemActivity
  129. --]]
  130. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/ScrollView/Viewport/Content/TaskItemActivity").gameObject
  131. if tolua.getpeer(tmp) == nil then
  132. tolua.setpeer(tmp, {})
  133. end
  134. self.taskItemActivity = CommonUtil.BindGridViewItem2LuaStatic("TaskItemActivity", tmp)
  135. self.taskItemActivity.prefabName = "TaskItemActivity"
  136. end
  137. ---@private
  138. function UIActivityDailyRechargeBTView:InitGenerate__7(Root, data)
  139. --[[
  140. UIAnimator/Window/Banner
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/Banner").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.banner = tmp
  147. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  148. end
  149. ---@private
  150. function UIActivityDailyRechargeBTView:InitGenerate__8(Root, data)
  151. --[[
  152. UIAnimator/Window/Banner/Image
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/Banner/Image").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.bg = tmp
  159. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  160. end
  161. ---@private
  162. function UIActivityDailyRechargeBTView:InitGenerate__9(Root, data)
  163. --[[
  164. UIAnimator/Window/Banner/Label/Text
  165. --]]
  166. local tmp = Root:Find("UIAnimator/Window/Banner/Label/Text").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.title = tmp
  171. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  172. end
  173. ---@private
  174. function UIActivityDailyRechargeBTView:InitGenerate__10(Root, data)
  175. --[[
  176. UIAnimator/Window/BtnBack
  177. --]]
  178. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  179. if tolua.getpeer(tmp) == nil then
  180. tolua.setpeer(tmp, {})
  181. end
  182. self.backBtn = tmp
  183. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  184. end
  185. ---@private
  186. function UIActivityDailyRechargeBTView:GenerateDestroy()
  187. if tolua.getpeer(self.leftTimeNode.icon) ~= nil then
  188. tolua.setpeer(self.leftTimeNode.icon, nil)
  189. end
  190. if tolua.getpeer(self.leftTimeNode.leftTimeTxt) ~= nil then
  191. tolua.setpeer(self.leftTimeNode.leftTimeTxt, nil)
  192. end
  193. if tolua.getpeer(self.AnyBtn) ~= nil then
  194. tolua.setpeer(self.AnyBtn, nil)
  195. end
  196. self.AnyBtn = nil
  197. if tolua.getpeer(self.leftTimeNode) ~= nil then
  198. tolua.setpeer(self.leftTimeNode, nil)
  199. end
  200. self.leftTimeNode = nil
  201. if tolua.getpeer(self.taskListScroll) ~= nil then
  202. tolua.setpeer(self.taskListScroll, nil)
  203. end
  204. self.taskListScroll = nil
  205. if self.taskItemActivity.GenerateDestroy ~= nil then
  206. self.taskItemActivity:GenerateDestroy()
  207. end
  208. if tolua.getpeer(self.taskItemActivity) ~= nil then
  209. tolua.setpeer(self.taskItemActivity, nil)
  210. end
  211. self.taskItemActivity = nil
  212. if tolua.getpeer(self.banner) ~= nil then
  213. tolua.setpeer(self.banner, nil)
  214. end
  215. self.banner = nil
  216. if tolua.getpeer(self.bg) ~= nil then
  217. tolua.setpeer(self.bg, nil)
  218. end
  219. self.bg = nil
  220. if tolua.getpeer(self.title) ~= nil then
  221. tolua.setpeer(self.title, nil)
  222. end
  223. self.title = nil
  224. if tolua.getpeer(self.backBtn) ~= nil then
  225. tolua.setpeer(self.backBtn, nil)
  226. end
  227. self.backBtn = nil
  228. self.transform = nil
  229. self.gameObject = nil
  230. self.inited = false
  231. end
  232. return UIActivityDailyRechargeBTView