UIActivityHundredRechargeBTView_Generate.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. ---@class UIActivityHundredRechargeBT__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityHundredRechargeBT__Generate_btnReceive
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIActivityHundredRechargeBT__Generate_btnRecharge_currency
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UIActivityHundredRechargeBT__Generate_btnRecharge_text
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text TMPro.TextMeshProUGUI
  13. ---@class UIActivityHundredRechargeBT__Generate_btnRecharge
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@field public text UIActivityHundredRechargeBT__Generate_btnRecharge_text
  17. ---@field public currency UIActivityHundredRechargeBT__Generate_btnRecharge_currency
  18. ---@class UIActivityHundredRechargeBT__Generate_toggle3
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public toggle UnityEngine.UI.Toggle
  21. ---@class UIActivityHundredRechargeBT__Generate_toggle2
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public toggle UnityEngine.UI.Toggle
  24. ---@class UIActivityHundredRechargeBT__Generate_toggle1
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public toggle UnityEngine.UI.Toggle
  27. ---@class UIActivityHundredRechargeBT__Generate_firstRechargeItem_iconSmallItem
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public rectTransform UnityEngine.RectTransform
  30. ---@field public layoutElement UnityEngine.UI.LayoutElement
  31. ---@class UIActivityHundredRechargeBT__Generate_firstRechargeItem_rewards
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public loopGridView SuperScrollView.LoopGridView
  34. ---@class UIActivityHundredRechargeBT__Generate_firstRechargeItem_numValue
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class UIActivityHundredRechargeBT__Generate_firstRechargeItem_textDays
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public text UnityEngine.UI.Text
  40. ---@class UIActivityHundredRechargeBT__Generate_firstRechargeItem
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public icon UnityEngine.GameObject
  43. ---@field public textDays UIActivityHundredRechargeBT__Generate_firstRechargeItem_textDays
  44. ---@field public numValue UIActivityHundredRechargeBT__Generate_firstRechargeItem_numValue
  45. ---@field public rewards UIActivityHundredRechargeBT__Generate_firstRechargeItem_rewards
  46. ---@field public iconSmallItem UIActivityHundredRechargeBT__Generate_firstRechargeItem_iconSmallItem
  47. ---@field public mask UnityEngine.GameObject
  48. ---@field public received UnityEngine.GameObject
  49. ---@field public available UnityEngine.GameObject
  50. ---@field public wating UnityEngine.GameObject
  51. ---@class UIActivityHundredRechargeBT__Generate_AnyBtn
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public button UnityEngine.UI.Button
  54. ---@class UIActivityHundredRechargeBT__Generate
  55. ---@field private gameObject UnityEngine.GameObject
  56. ---@field private transform UnityEngine.Transform
  57. ---@field private AnyBtn UIActivityHundredRechargeBT__Generate_AnyBtn
  58. ---@field private firstRechargeItem UIActivityHundredRechargeBT__Generate_firstRechargeItem
  59. ---@field private toggle1 UIActivityHundredRechargeBT__Generate_toggle1
  60. ---@field private toggle2 UIActivityHundredRechargeBT__Generate_toggle2
  61. ---@field private toggle3 UIActivityHundredRechargeBT__Generate_toggle3
  62. ---@field private btnRecharge UIActivityHundredRechargeBT__Generate_btnRecharge
  63. ---@field private btnReceive UIActivityHundredRechargeBT__Generate_btnReceive
  64. ---@field private labelReceived UnityEngine.GameObject
  65. ---@field private btnWating UnityEngine.GameObject
  66. ---@field private backBtn UIActivityHundredRechargeBT__Generate_backBtn
  67. local UIActivityHundredRechargeBTView = class("UIActivityHundredRechargeBTView", require("UIViewBase"))
  68. function UIActivityHundredRechargeBTView:ctor()
  69. end
  70. ---@private
  71. function UIActivityHundredRechargeBTView:SetActive(result)
  72. self.gameObject:SetActive(result)
  73. end
  74. ---@private
  75. function UIActivityHundredRechargeBTView:InitGenerate(Root, data)
  76. self.transform = Root
  77. self.inited = true
  78. if self.super.Init then
  79. self.super.Init(self)
  80. end
  81. local tmp
  82. self:InitGenerate__1(Root,data)
  83. self:InitGenerate__2(Root,data)
  84. self:InitGenerate__3(Root,data)
  85. self:InitGenerate__4(Root,data)
  86. self:InitGenerate__5(Root,data)
  87. self:InitGenerate__6(Root,data)
  88. self:InitGenerate__7(Root,data)
  89. self:InitGenerate__8(Root,data)
  90. self:InitGenerate__9(Root,data)
  91. self:InitGenerate__10(Root,data)
  92. self:InitGenerate__11(Root,data)
  93. self:InitGenerate__12(Root,data)
  94. self:InitGenerate__13(Root,data)
  95. self:InitGenerate__14(Root,data)
  96. self:InitGenerate__15(Root,data)
  97. self:InitGenerate__16(Root,data)
  98. self:InitGenerate__17(Root,data)
  99. self:InitGenerate__18(Root,data)
  100. self:InitGenerate__19(Root,data)
  101. self:InitGenerate__20(Root,data)
  102. self:InitGenerate__21(Root,data)
  103. end
  104. ---@private
  105. function UIActivityHundredRechargeBTView:InitGenerate__1(Root, data)
  106. --[[
  107. UIAnimator/Alpha
  108. --]]
  109. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.AnyBtn = tmp
  114. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  115. end
  116. ---@private
  117. function UIActivityHundredRechargeBTView:InitGenerate__2(Root, data)
  118. --[[
  119. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem
  120. --]]
  121. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.firstRechargeItem = tmp
  126. end
  127. ---@private
  128. function UIActivityHundredRechargeBTView:InitGenerate__3(Root, data)
  129. --[[
  130. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Icon
  131. --]]
  132. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Icon").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.firstRechargeItem.icon = tmp
  137. end
  138. ---@private
  139. function UIActivityHundredRechargeBTView:InitGenerate__4(Root, data)
  140. --[[
  141. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/TextDays
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/TextDays").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.firstRechargeItem.textDays = tmp
  148. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  149. end
  150. ---@private
  151. function UIActivityHundredRechargeBTView:InitGenerate__5(Root, data)
  152. --[[
  153. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/NumValue
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/NumValue").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.firstRechargeItem.numValue = tmp
  160. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  161. end
  162. ---@private
  163. function UIActivityHundredRechargeBTView:InitGenerate__6(Root, data)
  164. --[[
  165. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Rewards
  166. --]]
  167. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Rewards").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.firstRechargeItem.rewards = tmp
  172. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  173. end
  174. ---@private
  175. function UIActivityHundredRechargeBTView:InitGenerate__7(Root, data)
  176. --[[
  177. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Rewards/Viewport/Content/IconSmallItem
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Rewards/Viewport/Content/IconSmallItem").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.firstRechargeItem.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  184. self.firstRechargeItem.iconSmallItem.prefabName = "IconItem"
  185. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  186. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  187. end
  188. ---@private
  189. function UIActivityHundredRechargeBTView:InitGenerate__8(Root, data)
  190. --[[
  191. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Mask
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Mask").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.firstRechargeItem.mask = tmp
  198. end
  199. ---@private
  200. function UIActivityHundredRechargeBTView:InitGenerate__9(Root, data)
  201. --[[
  202. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Received
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Received").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.firstRechargeItem.received = tmp
  209. end
  210. ---@private
  211. function UIActivityHundredRechargeBTView:InitGenerate__10(Root, data)
  212. --[[
  213. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Available
  214. --]]
  215. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Available").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.firstRechargeItem.available = tmp
  220. end
  221. ---@private
  222. function UIActivityHundredRechargeBTView:InitGenerate__11(Root, data)
  223. --[[
  224. UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Wating
  225. --]]
  226. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/List/FirstRechargeItem/Wating").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.firstRechargeItem.wating = tmp
  231. end
  232. ---@private
  233. function UIActivityHundredRechargeBTView:InitGenerate__12(Root, data)
  234. --[[
  235. UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle1
  236. --]]
  237. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle1").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.toggle1 = tmp
  242. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  243. end
  244. ---@private
  245. function UIActivityHundredRechargeBTView:InitGenerate__13(Root, data)
  246. --[[
  247. UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle2
  248. --]]
  249. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle2").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.toggle2 = tmp
  254. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  255. end
  256. ---@private
  257. function UIActivityHundredRechargeBTView:InitGenerate__14(Root, data)
  258. --[[
  259. UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle3
  260. --]]
  261. local tmp = Root:Find("UIAnimator/Window/Bottom/BoxRewards/ToggleDays/Toggle3").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.toggle3 = tmp
  266. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  267. end
  268. ---@private
  269. function UIActivityHundredRechargeBTView:InitGenerate__15(Root, data)
  270. --[[
  271. UIAnimator/Window/Bottom/BtnBox/BtnRecharge
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnRecharge").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.btnRecharge = tmp
  278. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  279. end
  280. ---@private
  281. function UIActivityHundredRechargeBTView:InitGenerate__16(Root, data)
  282. --[[
  283. UIAnimator/Window/Bottom/BtnBox/BtnRecharge/Text
  284. --]]
  285. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnRecharge/Text").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.btnRecharge.text = tmp
  290. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  291. end
  292. ---@private
  293. function UIActivityHundredRechargeBTView:InitGenerate__17(Root, data)
  294. --[[
  295. UIAnimator/Window/Bottom/BtnBox/BtnRecharge/Text/Currency
  296. --]]
  297. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnRecharge/Text/Currency").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.btnRecharge.currency = tmp
  302. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  303. end
  304. ---@private
  305. function UIActivityHundredRechargeBTView:InitGenerate__18(Root, data)
  306. --[[
  307. UIAnimator/Window/Bottom/BtnBox/BtnReceive
  308. --]]
  309. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnReceive").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.btnReceive = tmp
  314. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  315. end
  316. ---@private
  317. function UIActivityHundredRechargeBTView:InitGenerate__19(Root, data)
  318. --[[
  319. UIAnimator/Window/Bottom/BtnBox/LabelReceived
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/LabelReceived").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.labelReceived = tmp
  326. end
  327. ---@private
  328. function UIActivityHundredRechargeBTView:InitGenerate__20(Root, data)
  329. --[[
  330. UIAnimator/Window/Bottom/BtnBox/BtnWating
  331. --]]
  332. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBox/BtnWating").gameObject
  333. if tolua.getpeer(tmp) == nil then
  334. tolua.setpeer(tmp, {})
  335. end
  336. self.btnWating = tmp
  337. end
  338. ---@private
  339. function UIActivityHundredRechargeBTView:InitGenerate__21(Root, data)
  340. --[[
  341. UIAnimator/Window/BtnBack
  342. --]]
  343. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  344. if tolua.getpeer(tmp) == nil then
  345. tolua.setpeer(tmp, {})
  346. end
  347. self.backBtn = tmp
  348. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  349. end
  350. ---@private
  351. function UIActivityHundredRechargeBTView:GenerateDestroy()
  352. if tolua.getpeer(self.btnRecharge.currency) ~= nil then
  353. tolua.setpeer(self.btnRecharge.currency, nil)
  354. end
  355. if tolua.getpeer(self.btnRecharge.text) ~= nil then
  356. tolua.setpeer(self.btnRecharge.text, nil)
  357. end
  358. if tolua.getpeer(self.firstRechargeItem.wating) ~= nil then
  359. tolua.setpeer(self.firstRechargeItem.wating, nil)
  360. end
  361. if tolua.getpeer(self.firstRechargeItem.available) ~= nil then
  362. tolua.setpeer(self.firstRechargeItem.available, nil)
  363. end
  364. if tolua.getpeer(self.firstRechargeItem.received) ~= nil then
  365. tolua.setpeer(self.firstRechargeItem.received, nil)
  366. end
  367. if tolua.getpeer(self.firstRechargeItem.mask) ~= nil then
  368. tolua.setpeer(self.firstRechargeItem.mask, nil)
  369. end
  370. if self.firstRechargeItem.iconSmallItem.GenerateDestroy ~= nil then
  371. self.firstRechargeItem.iconSmallItem:GenerateDestroy()
  372. end
  373. if tolua.getpeer(self.firstRechargeItem.iconSmallItem) ~= nil then
  374. tolua.setpeer(self.firstRechargeItem.iconSmallItem, nil)
  375. end
  376. if tolua.getpeer(self.firstRechargeItem.rewards) ~= nil then
  377. tolua.setpeer(self.firstRechargeItem.rewards, nil)
  378. end
  379. if tolua.getpeer(self.firstRechargeItem.numValue) ~= nil then
  380. tolua.setpeer(self.firstRechargeItem.numValue, nil)
  381. end
  382. if tolua.getpeer(self.firstRechargeItem.textDays) ~= nil then
  383. tolua.setpeer(self.firstRechargeItem.textDays, nil)
  384. end
  385. if tolua.getpeer(self.firstRechargeItem.icon) ~= nil then
  386. tolua.setpeer(self.firstRechargeItem.icon, nil)
  387. end
  388. if tolua.getpeer(self.AnyBtn) ~= nil then
  389. tolua.setpeer(self.AnyBtn, nil)
  390. end
  391. self.AnyBtn = nil
  392. if tolua.getpeer(self.firstRechargeItem) ~= nil then
  393. tolua.setpeer(self.firstRechargeItem, nil)
  394. end
  395. self.firstRechargeItem = nil
  396. if tolua.getpeer(self.toggle1) ~= nil then
  397. tolua.setpeer(self.toggle1, nil)
  398. end
  399. self.toggle1 = nil
  400. if tolua.getpeer(self.toggle2) ~= nil then
  401. tolua.setpeer(self.toggle2, nil)
  402. end
  403. self.toggle2 = nil
  404. if tolua.getpeer(self.toggle3) ~= nil then
  405. tolua.setpeer(self.toggle3, nil)
  406. end
  407. self.toggle3 = nil
  408. if tolua.getpeer(self.btnRecharge) ~= nil then
  409. tolua.setpeer(self.btnRecharge, nil)
  410. end
  411. self.btnRecharge = nil
  412. if tolua.getpeer(self.btnReceive) ~= nil then
  413. tolua.setpeer(self.btnReceive, nil)
  414. end
  415. self.btnReceive = nil
  416. if tolua.getpeer(self.labelReceived) ~= nil then
  417. tolua.setpeer(self.labelReceived, nil)
  418. end
  419. self.labelReceived = nil
  420. if tolua.getpeer(self.btnWating) ~= nil then
  421. tolua.setpeer(self.btnWating, nil)
  422. end
  423. self.btnWating = nil
  424. if tolua.getpeer(self.backBtn) ~= nil then
  425. tolua.setpeer(self.backBtn, nil)
  426. end
  427. self.backBtn = nil
  428. self.transform = nil
  429. self.gameObject = nil
  430. self.inited = false
  431. end
  432. return UIActivityHundredRechargeBTView