UIActivityDailyRechargeView_Generate.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. ---@class UIActivityDailyRecharge__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityDailyRecharge__Generate_lastBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIActivityDailyRecharge__Generate_nextBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIActivityDailyRecharge__Generate_btnReceive
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@field public uIRedPointRP UnityEngine.GameObject
  14. ---@class UIActivityDailyRecharge__Generate_btnConfirm
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class UIActivityDailyRecharge__Generate_btnRecharge
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIActivityDailyRecharge__Generate_bottomDsc
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public uILocalizeScript UILocalizeScript
  23. ---@class UIActivityDailyRecharge__Generate_iconItem
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public rectTransform UnityEngine.RectTransform
  26. ---@field public layoutElement UnityEngine.UI.LayoutElement
  27. ---@class UIActivityDailyRecharge__Generate_rewards
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public scrollRect UnityEngine.UI.ScrollRect
  30. ---@field public loopListView SuperScrollView.LoopListView
  31. ---@class UIActivityDailyRecharge__Generate_text3
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text UnityEngine.UI.Text
  34. ---@class UIActivityDailyRecharge__Generate_text2
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class UIActivityDailyRecharge__Generate_text1
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public text UnityEngine.UI.Text
  40. ---@class UIActivityDailyRecharge__Generate_AnyBtn
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@class UIActivityDailyRecharge__Generate
  44. ---@field private gameObject UnityEngine.GameObject
  45. ---@field private transform UnityEngine.Transform
  46. ---@field private AnyBtn UIActivityDailyRecharge__Generate_AnyBtn
  47. ---@field private boli UnityEngine.GameObject
  48. ---@field private text1 UIActivityDailyRecharge__Generate_text1
  49. ---@field private text2 UIActivityDailyRecharge__Generate_text2
  50. ---@field private text3 UIActivityDailyRecharge__Generate_text3
  51. ---@field private rewards UIActivityDailyRecharge__Generate_rewards
  52. ---@field private iconItem UIActivityDailyRecharge__Generate_iconItem
  53. ---@field private bottomDsc UIActivityDailyRecharge__Generate_bottomDsc
  54. ---@field private btnRecharge UIActivityDailyRecharge__Generate_btnRecharge
  55. ---@field private btnConfirm UIActivityDailyRecharge__Generate_btnConfirm
  56. ---@field private btnReceive UIActivityDailyRecharge__Generate_btnReceive
  57. ---@field private nextBtn UIActivityDailyRecharge__Generate_nextBtn
  58. ---@field private lastBtn UIActivityDailyRecharge__Generate_lastBtn
  59. ---@field private backBtn UIActivityDailyRecharge__Generate_backBtn
  60. local UIActivityDailyRechargeView = class("UIActivityDailyRechargeView", require("UIViewBase"))
  61. function UIActivityDailyRechargeView:ctor()
  62. end
  63. ---@private
  64. function UIActivityDailyRechargeView:SetActive(result)
  65. self.gameObject:SetActive(result)
  66. end
  67. ---@private
  68. function UIActivityDailyRechargeView:InitGenerate(Root, data)
  69. self.transform = Root
  70. self.inited = true
  71. if self.super.Init then
  72. self.super.Init(self)
  73. end
  74. local tmp
  75. self:InitGenerate__1(Root,data)
  76. self:InitGenerate__2(Root,data)
  77. self:InitGenerate__3(Root,data)
  78. self:InitGenerate__4(Root,data)
  79. self:InitGenerate__5(Root,data)
  80. self:InitGenerate__6(Root,data)
  81. self:InitGenerate__7(Root,data)
  82. self:InitGenerate__8(Root,data)
  83. self:InitGenerate__9(Root,data)
  84. self:InitGenerate__10(Root,data)
  85. self:InitGenerate__11(Root,data)
  86. self:InitGenerate__12(Root,data)
  87. self:InitGenerate__13(Root,data)
  88. self:InitGenerate__14(Root,data)
  89. self:InitGenerate__15(Root,data)
  90. end
  91. ---@private
  92. function UIActivityDailyRechargeView:InitGenerate__1(Root, data)
  93. --[[
  94. UIAnimator/Alpha
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.AnyBtn = tmp
  101. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  102. end
  103. ---@private
  104. function UIActivityDailyRechargeView:InitGenerate__2(Root, data)
  105. --[[
  106. UIAnimator/Window/Bottom/Layout/Boli
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Boli").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.boli = tmp
  113. end
  114. ---@private
  115. function UIActivityDailyRechargeView:InitGenerate__3(Root, data)
  116. --[[
  117. UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text1
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text1").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.text1 = tmp
  124. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  125. end
  126. ---@private
  127. function UIActivityDailyRechargeView:InitGenerate__4(Root, data)
  128. --[[
  129. UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text2
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text2").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.text2 = tmp
  136. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  137. end
  138. ---@private
  139. function UIActivityDailyRechargeView:InitGenerate__5(Root, data)
  140. --[[
  141. UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text3
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Boli/TalkBox/Text3").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.text3 = tmp
  148. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  149. end
  150. ---@private
  151. function UIActivityDailyRechargeView:InitGenerate__6(Root, data)
  152. --[[
  153. UIAnimator/Window/Bottom/Layout/Rewards
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Rewards").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.rewards = tmp
  160. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  161. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  162. end
  163. ---@private
  164. function UIActivityDailyRechargeView:InitGenerate__7(Root, data)
  165. --[[
  166. UIAnimator/Window/Bottom/Layout/Rewards/Icons/Content/IconItem
  167. --]]
  168. local tmp = Root:Find("UIAnimator/Window/Bottom/Layout/Rewards/Icons/Content/IconItem").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  173. self.iconItem.prefabName = "IconItem"
  174. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  175. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  176. end
  177. ---@private
  178. function UIActivityDailyRechargeView:InitGenerate__8(Root, data)
  179. --[[
  180. UIAnimator/Window/Bottom/BtnBox/Dsc/Text
  181. --]]
  182. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/Dsc/Text").gameObject
  183. if tolua.getpeer(tmp) == nil then
  184. tolua.setpeer(tmp, {})
  185. end
  186. self.bottomDsc = tmp
  187. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  188. end
  189. ---@private
  190. function UIActivityDailyRechargeView:InitGenerate__9(Root, data)
  191. --[[
  192. UIAnimator/Window/Bottom/BtnBox/BtnRecharge
  193. --]]
  194. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnRecharge").gameObject
  195. if tolua.getpeer(tmp) == nil then
  196. tolua.setpeer(tmp, {})
  197. end
  198. self.btnRecharge = tmp
  199. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  200. end
  201. ---@private
  202. function UIActivityDailyRechargeView:InitGenerate__10(Root, data)
  203. --[[
  204. UIAnimator/Window/Bottom/BtnBox/BtnConfirm
  205. --]]
  206. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnConfirm").gameObject
  207. if tolua.getpeer(tmp) == nil then
  208. tolua.setpeer(tmp, {})
  209. end
  210. self.btnConfirm = tmp
  211. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  212. end
  213. ---@private
  214. function UIActivityDailyRechargeView:InitGenerate__11(Root, data)
  215. --[[
  216. UIAnimator/Window/Bottom/BtnBox/BtnReceive
  217. --]]
  218. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnReceive").gameObject
  219. if tolua.getpeer(tmp) == nil then
  220. tolua.setpeer(tmp, {})
  221. end
  222. self.btnReceive = tmp
  223. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  224. end
  225. ---@private
  226. function UIActivityDailyRechargeView:InitGenerate__12(Root, data)
  227. --[[
  228. UIAnimator/Window/Bottom/BtnBox/BtnReceive/UIRedPointRP
  229. --]]
  230. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnReceive/UIRedPointRP").gameObject
  231. if tolua.getpeer(tmp) == nil then
  232. tolua.setpeer(tmp, {})
  233. end
  234. self.btnReceive.uIRedPointRP = tmp
  235. end
  236. ---@private
  237. function UIActivityDailyRechargeView:InitGenerate__13(Root, data)
  238. --[[
  239. UIAnimator/Window/Bottom/ChangeBtn/NextBtn
  240. --]]
  241. local tmp = Root:Find("UIAnimator/Window/Bottom/ChangeBtn/NextBtn").gameObject
  242. if tolua.getpeer(tmp) == nil then
  243. tolua.setpeer(tmp, {})
  244. end
  245. self.nextBtn = tmp
  246. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  247. end
  248. ---@private
  249. function UIActivityDailyRechargeView:InitGenerate__14(Root, data)
  250. --[[
  251. UIAnimator/Window/Bottom/ChangeBtn/LastBtn
  252. --]]
  253. local tmp = Root:Find("UIAnimator/Window/Bottom/ChangeBtn/LastBtn").gameObject
  254. if tolua.getpeer(tmp) == nil then
  255. tolua.setpeer(tmp, {})
  256. end
  257. self.lastBtn = tmp
  258. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  259. end
  260. ---@private
  261. function UIActivityDailyRechargeView:InitGenerate__15(Root, data)
  262. --[[
  263. UIAnimator/Window/BtnBack
  264. --]]
  265. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  266. if tolua.getpeer(tmp) == nil then
  267. tolua.setpeer(tmp, {})
  268. end
  269. self.backBtn = tmp
  270. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  271. end
  272. ---@private
  273. function UIActivityDailyRechargeView:GenerateDestroy()
  274. if tolua.getpeer(self.btnReceive.uIRedPointRP) ~= nil then
  275. tolua.setpeer(self.btnReceive.uIRedPointRP, nil)
  276. end
  277. if tolua.getpeer(self.AnyBtn) ~= nil then
  278. tolua.setpeer(self.AnyBtn, nil)
  279. end
  280. self.AnyBtn = nil
  281. if tolua.getpeer(self.boli) ~= nil then
  282. tolua.setpeer(self.boli, nil)
  283. end
  284. self.boli = nil
  285. if tolua.getpeer(self.text1) ~= nil then
  286. tolua.setpeer(self.text1, nil)
  287. end
  288. self.text1 = nil
  289. if tolua.getpeer(self.text2) ~= nil then
  290. tolua.setpeer(self.text2, nil)
  291. end
  292. self.text2 = nil
  293. if tolua.getpeer(self.text3) ~= nil then
  294. tolua.setpeer(self.text3, nil)
  295. end
  296. self.text3 = nil
  297. if tolua.getpeer(self.rewards) ~= nil then
  298. tolua.setpeer(self.rewards, nil)
  299. end
  300. self.rewards = nil
  301. if self.iconItem.GenerateDestroy ~= nil then
  302. self.iconItem:GenerateDestroy()
  303. end
  304. if tolua.getpeer(self.iconItem) ~= nil then
  305. tolua.setpeer(self.iconItem, nil)
  306. end
  307. self.iconItem = nil
  308. if tolua.getpeer(self.bottomDsc) ~= nil then
  309. tolua.setpeer(self.bottomDsc, nil)
  310. end
  311. self.bottomDsc = nil
  312. if tolua.getpeer(self.btnRecharge) ~= nil then
  313. tolua.setpeer(self.btnRecharge, nil)
  314. end
  315. self.btnRecharge = nil
  316. if tolua.getpeer(self.btnConfirm) ~= nil then
  317. tolua.setpeer(self.btnConfirm, nil)
  318. end
  319. self.btnConfirm = nil
  320. if tolua.getpeer(self.btnReceive) ~= nil then
  321. tolua.setpeer(self.btnReceive, nil)
  322. end
  323. self.btnReceive = nil
  324. if tolua.getpeer(self.nextBtn) ~= nil then
  325. tolua.setpeer(self.nextBtn, nil)
  326. end
  327. self.nextBtn = nil
  328. if tolua.getpeer(self.lastBtn) ~= nil then
  329. tolua.setpeer(self.lastBtn, nil)
  330. end
  331. self.lastBtn = nil
  332. if tolua.getpeer(self.backBtn) ~= nil then
  333. tolua.setpeer(self.backBtn, nil)
  334. end
  335. self.backBtn = nil
  336. self.transform = nil
  337. self.gameObject = nil
  338. self.inited = false
  339. end
  340. return UIActivityDailyRechargeView