UIActivityDailyRechargeView_Generate.lua 12 KB

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