UIActivityDailyRechargeView_Generate.lua 9.9 KB

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