UIActivityDailyRechargeROBTView_Generate.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. ---@class UIActivityDailyRechargeROBT__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityDailyRechargeROBT__Generate_title
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIActivityDailyRechargeROBT__Generate_bg
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIActivityDailyRechargeROBT__Generate_banner
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class UIActivityDailyRechargeROBT__Generate_weekTaskToggle
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public toggle UnityEngine.UI.Toggle
  16. ---@field public redpoint UnityEngine.GameObject
  17. ---@class UIActivityDailyRechargeROBT__Generate_dailyTaskToggle
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public toggle UnityEngine.UI.Toggle
  20. ---@field public redpoint UnityEngine.GameObject
  21. ---@class UIActivityDailyRechargeROBT__Generate_toggleGroup
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  24. ---@class UIActivityDailyRechargeROBT__Generate_taskListScroll
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public loopListView SuperScrollView.LoopListView
  27. ---@class UIActivityDailyRechargeROBT__Generate_leftTimeNode_icon
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public image UnityEngine.UI.Image
  30. ---@class UIActivityDailyRechargeROBT__Generate_leftTimeNode_leftTimeTxt
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public text UnityEngine.UI.Text
  33. ---@class UIActivityDailyRechargeROBT__Generate_leftTimeNode
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public leftTimeTxt UIActivityDailyRechargeROBT__Generate_leftTimeNode_leftTimeTxt
  36. ---@field public icon UIActivityDailyRechargeROBT__Generate_leftTimeNode_icon
  37. ---@class UIActivityDailyRechargeROBT__Generate_AnyBtn
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIActivityDailyRechargeROBT__Generate
  41. ---@field private gameObject UnityEngine.GameObject
  42. ---@field private transform UnityEngine.Transform
  43. ---@field private AnyBtn UIActivityDailyRechargeROBT__Generate_AnyBtn
  44. ---@field private leftTimeNode UIActivityDailyRechargeROBT__Generate_leftTimeNode
  45. ---@field private taskListScroll UIActivityDailyRechargeROBT__Generate_taskListScroll
  46. ---@field private taskItemActivity UnityEngine.GameObject
  47. ---@field private toggleGroup UIActivityDailyRechargeROBT__Generate_toggleGroup
  48. ---@field private dailyTaskToggle UIActivityDailyRechargeROBT__Generate_dailyTaskToggle
  49. ---@field private weekTaskToggle UIActivityDailyRechargeROBT__Generate_weekTaskToggle
  50. ---@field private banner UIActivityDailyRechargeROBT__Generate_banner
  51. ---@field private bg UIActivityDailyRechargeROBT__Generate_bg
  52. ---@field private title UIActivityDailyRechargeROBT__Generate_title
  53. ---@field private backBtn UIActivityDailyRechargeROBT__Generate_backBtn
  54. local UIActivityDailyRechargeROBTView = class("UIActivityDailyRechargeROBTView", require("UIViewBase"))
  55. function UIActivityDailyRechargeROBTView:ctor()
  56. end
  57. ---@private
  58. function UIActivityDailyRechargeROBTView:SetActive(result)
  59. self.gameObject:SetActive(result)
  60. end
  61. ---@private
  62. function UIActivityDailyRechargeROBTView:InitGenerate(Root, data)
  63. self.transform = Root
  64. self.inited = true
  65. if self.super.Init then
  66. self.super.Init(self)
  67. end
  68. local tmp
  69. self:InitGenerate__1(Root,data)
  70. self:InitGenerate__2(Root,data)
  71. self:InitGenerate__3(Root,data)
  72. self:InitGenerate__4(Root,data)
  73. self:InitGenerate__5(Root,data)
  74. self:InitGenerate__6(Root,data)
  75. self:InitGenerate__7(Root,data)
  76. self:InitGenerate__8(Root,data)
  77. self:InitGenerate__9(Root,data)
  78. self:InitGenerate__10(Root,data)
  79. self:InitGenerate__11(Root,data)
  80. self:InitGenerate__12(Root,data)
  81. self:InitGenerate__13(Root,data)
  82. self:InitGenerate__14(Root,data)
  83. self:InitGenerate__15(Root,data)
  84. end
  85. ---@private
  86. function UIActivityDailyRechargeROBTView:InitGenerate__1(Root, data)
  87. --[[
  88. UIAnimator/Alpha
  89. --]]
  90. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  91. if tolua.getpeer(tmp) == nil then
  92. tolua.setpeer(tmp, {})
  93. end
  94. self.AnyBtn = tmp
  95. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  96. end
  97. ---@private
  98. function UIActivityDailyRechargeROBTView:InitGenerate__2(Root, data)
  99. --[[
  100. UIAnimator/Window/Bottom/Bg/TimeCountdown
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.leftTimeNode = tmp
  107. end
  108. ---@private
  109. function UIActivityDailyRechargeROBTView:InitGenerate__3(Root, data)
  110. --[[
  111. UIAnimator/Window/Bottom/Bg/TimeCountdown/Text
  112. --]]
  113. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown/Text").gameObject
  114. if tolua.getpeer(tmp) == nil then
  115. tolua.setpeer(tmp, {})
  116. end
  117. self.leftTimeNode.leftTimeTxt = tmp
  118. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  119. end
  120. ---@private
  121. function UIActivityDailyRechargeROBTView:InitGenerate__4(Root, data)
  122. --[[
  123. UIAnimator/Window/Bottom/Bg/TimeCountdown/Text/Icon
  124. --]]
  125. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/TimeCountdown/Text/Icon").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.leftTimeNode.icon = tmp
  130. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  131. end
  132. ---@private
  133. function UIActivityDailyRechargeROBTView:InitGenerate__5(Root, data)
  134. --[[
  135. UIAnimator/Window/Bottom/Bg/ScrollView
  136. --]]
  137. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/ScrollView").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.taskListScroll = tmp
  142. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  143. end
  144. ---@private
  145. function UIActivityDailyRechargeROBTView:InitGenerate__6(Root, data)
  146. --[[
  147. UIAnimator/Window/Bottom/Bg/ScrollView/Viewport/Content/TaskItemActivity
  148. --]]
  149. local tmp = Root:Find("UIAnimator/Window/Bottom/Bg/ScrollView/Viewport/Content/TaskItemActivity").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.taskItemActivity = CommonUtil.BindGridViewItem2LuaStatic("TaskItemActivity", tmp)
  154. self.taskItemActivity.prefabName = "TaskItemActivity"
  155. end
  156. ---@private
  157. function UIActivityDailyRechargeROBTView:InitGenerate__7(Root, data)
  158. --[[
  159. UIAnimator/Window/Bottom/ToggleGroup
  160. --]]
  161. local tmp = Root:Find("UIAnimator/Window/Bottom/ToggleGroup").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.toggleGroup = tmp
  166. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  167. end
  168. ---@private
  169. function UIActivityDailyRechargeROBTView:InitGenerate__8(Root, data)
  170. --[[
  171. UIAnimator/Window/Bottom/ToggleGroup/Toggle1
  172. --]]
  173. local tmp = Root:Find("UIAnimator/Window/Bottom/ToggleGroup/Toggle1").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.dailyTaskToggle = tmp
  178. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  179. end
  180. ---@private
  181. function UIActivityDailyRechargeROBTView:InitGenerate__9(Root, data)
  182. --[[
  183. UIAnimator/Window/Bottom/ToggleGroup/Toggle1/UIRedPointRP
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/Bottom/ToggleGroup/Toggle1/UIRedPointRP").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.dailyTaskToggle.redpoint = tmp
  190. end
  191. ---@private
  192. function UIActivityDailyRechargeROBTView:InitGenerate__10(Root, data)
  193. --[[
  194. UIAnimator/Window/Bottom/ToggleGroup/Toggle2
  195. --]]
  196. local tmp = Root:Find("UIAnimator/Window/Bottom/ToggleGroup/Toggle2").gameObject
  197. if tolua.getpeer(tmp) == nil then
  198. tolua.setpeer(tmp, {})
  199. end
  200. self.weekTaskToggle = tmp
  201. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  202. end
  203. ---@private
  204. function UIActivityDailyRechargeROBTView:InitGenerate__11(Root, data)
  205. --[[
  206. UIAnimator/Window/Bottom/ToggleGroup/Toggle2/UIRedPointRP
  207. --]]
  208. local tmp = Root:Find("UIAnimator/Window/Bottom/ToggleGroup/Toggle2/UIRedPointRP").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.weekTaskToggle.redpoint = tmp
  213. end
  214. ---@private
  215. function UIActivityDailyRechargeROBTView:InitGenerate__12(Root, data)
  216. --[[
  217. UIAnimator/Window/Banner
  218. --]]
  219. local tmp = Root:Find("UIAnimator/Window/Banner").gameObject
  220. if tolua.getpeer(tmp) == nil then
  221. tolua.setpeer(tmp, {})
  222. end
  223. self.banner = tmp
  224. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  225. end
  226. ---@private
  227. function UIActivityDailyRechargeROBTView:InitGenerate__13(Root, data)
  228. --[[
  229. UIAnimator/Window/Banner/Image
  230. --]]
  231. local tmp = Root:Find("UIAnimator/Window/Banner/Image").gameObject
  232. if tolua.getpeer(tmp) == nil then
  233. tolua.setpeer(tmp, {})
  234. end
  235. self.bg = tmp
  236. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  237. end
  238. ---@private
  239. function UIActivityDailyRechargeROBTView:InitGenerate__14(Root, data)
  240. --[[
  241. UIAnimator/Window/Banner/Label/Text
  242. --]]
  243. local tmp = Root:Find("UIAnimator/Window/Banner/Label/Text").gameObject
  244. if tolua.getpeer(tmp) == nil then
  245. tolua.setpeer(tmp, {})
  246. end
  247. self.title = tmp
  248. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  249. end
  250. ---@private
  251. function UIActivityDailyRechargeROBTView:InitGenerate__15(Root, data)
  252. --[[
  253. UIAnimator/Window/BtnBack
  254. --]]
  255. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  256. if tolua.getpeer(tmp) == nil then
  257. tolua.setpeer(tmp, {})
  258. end
  259. self.backBtn = tmp
  260. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  261. end
  262. ---@private
  263. function UIActivityDailyRechargeROBTView:GenerateDestroy()
  264. if tolua.getpeer(self.weekTaskToggle.redpoint) ~= nil then
  265. tolua.setpeer(self.weekTaskToggle.redpoint, nil)
  266. end
  267. if tolua.getpeer(self.dailyTaskToggle.redpoint) ~= nil then
  268. tolua.setpeer(self.dailyTaskToggle.redpoint, nil)
  269. end
  270. if tolua.getpeer(self.leftTimeNode.icon) ~= nil then
  271. tolua.setpeer(self.leftTimeNode.icon, nil)
  272. end
  273. if tolua.getpeer(self.leftTimeNode.leftTimeTxt) ~= nil then
  274. tolua.setpeer(self.leftTimeNode.leftTimeTxt, nil)
  275. end
  276. if tolua.getpeer(self.AnyBtn) ~= nil then
  277. tolua.setpeer(self.AnyBtn, nil)
  278. end
  279. self.AnyBtn = nil
  280. if tolua.getpeer(self.leftTimeNode) ~= nil then
  281. tolua.setpeer(self.leftTimeNode, nil)
  282. end
  283. self.leftTimeNode = nil
  284. if tolua.getpeer(self.taskListScroll) ~= nil then
  285. tolua.setpeer(self.taskListScroll, nil)
  286. end
  287. self.taskListScroll = nil
  288. if self.taskItemActivity.GenerateDestroy ~= nil then
  289. self.taskItemActivity:GenerateDestroy()
  290. end
  291. if tolua.getpeer(self.taskItemActivity) ~= nil then
  292. tolua.setpeer(self.taskItemActivity, nil)
  293. end
  294. self.taskItemActivity = nil
  295. if tolua.getpeer(self.toggleGroup) ~= nil then
  296. tolua.setpeer(self.toggleGroup, nil)
  297. end
  298. self.toggleGroup = nil
  299. if tolua.getpeer(self.dailyTaskToggle) ~= nil then
  300. tolua.setpeer(self.dailyTaskToggle, nil)
  301. end
  302. self.dailyTaskToggle = nil
  303. if tolua.getpeer(self.weekTaskToggle) ~= nil then
  304. tolua.setpeer(self.weekTaskToggle, nil)
  305. end
  306. self.weekTaskToggle = nil
  307. if tolua.getpeer(self.banner) ~= nil then
  308. tolua.setpeer(self.banner, nil)
  309. end
  310. self.banner = nil
  311. if tolua.getpeer(self.bg) ~= nil then
  312. tolua.setpeer(self.bg, nil)
  313. end
  314. self.bg = nil
  315. if tolua.getpeer(self.title) ~= nil then
  316. tolua.setpeer(self.title, nil)
  317. end
  318. self.title = nil
  319. if tolua.getpeer(self.backBtn) ~= nil then
  320. tolua.setpeer(self.backBtn, nil)
  321. end
  322. self.backBtn = nil
  323. self.transform = nil
  324. self.gameObject = nil
  325. self.inited = false
  326. end
  327. return UIActivityDailyRechargeROBTView