UIVipView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. ---@class UIVip__Generate_btnRight
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIVip__Generate_btnLeft
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIVip__Generate_btnInfo
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIVip__Generate_curVipNameTxt
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text TMPro.TextMeshProUGUI
  13. ---@class UIVip__Generate_vipIcon
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public image UnityEngine.UI.Image
  16. ---@class UIVip__Generate_vipFrame
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public image UnityEngine.UI.Image
  19. ---@class UIVip__Generate_number
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text TMPro.TextMeshProUGUI
  22. ---@class UIVip__Generate_expSlider
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public slider UnityEngine.UI.Slider
  25. ---@class UIVip__Generate_expTxt_sealIcon
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public image UnityEngine.UI.Image
  28. ---@class UIVip__Generate_btnCustomerService
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public button UnityEngine.UI.Button
  31. ---@class UIVip__Generate_expTxt
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text TMPro.TextMeshProUGUI
  34. ---@field public sealIcon UIVip__Generate_expTxt_sealIcon
  35. ---@class UIVip__Generate_rewardList
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  38. ---@class UIVip__Generate_vipUnlockDesItem
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public rectTransform UnityEngine.RectTransform
  41. ---@class UIVip__Generate_gainList
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public loopListView SuperScrollView.LoopListView
  44. ---@class UIVip__Generate_vipNameTxt
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public text UnityEngine.UI.Text
  47. ---@class UIVip__Generate_btnSure
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public uILocalizeScript UILocalizeScript
  50. ---@class UIVip__Generate_btnUpLv
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public button UnityEngine.UI.Button
  53. ---@class UIVip__Generate_btnBack
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public button UnityEngine.UI.Button
  56. ---@class UIVip__Generate_AnyBtn
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public button UnityEngine.UI.Button
  59. ---@class UIVip__Generate_uIAnimator
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public animator UnityEngine.Animator
  62. ---@class UIVip__Generate
  63. ---@field private gameObject UnityEngine.GameObject
  64. ---@field private transform UnityEngine.Transform
  65. ---@field private uIAnimator UIVip__Generate_uIAnimator
  66. ---@field private AnyBtn UIVip__Generate_AnyBtn
  67. ---@field private btnBack UIVip__Generate_btnBack
  68. ---@field private btnUpLv UIVip__Generate_btnUpLv
  69. ---@field private btnSure UIVip__Generate_btnSure
  70. ---@field private vipNameTxt UIVip__Generate_vipNameTxt
  71. ---@field private gainList UIVip__Generate_gainList
  72. ---@field private vipUnlockDesItem UIVip__Generate_vipUnlockDesItem
  73. ---@field private rewardList UIVip__Generate_rewardList
  74. ---@field private expTxt UIVip__Generate_expTxt
  75. ---@field private btnCustomerService UIVip__Generate_btnCustomerService
  76. ---@field private expSlider UIVip__Generate_expSlider
  77. ---@field private number UIVip__Generate_number
  78. ---@field private vipFrame UIVip__Generate_vipFrame
  79. ---@field private vipIcon UIVip__Generate_vipIcon
  80. ---@field private curVipNameTxt UIVip__Generate_curVipNameTxt
  81. ---@field private btnInfo UIVip__Generate_btnInfo
  82. ---@field private btnLeft UIVip__Generate_btnLeft
  83. ---@field private btnRight UIVip__Generate_btnRight
  84. local UIVipView = class("UIVipView", require("UIViewBase"))
  85. function UIVipView:ctor()
  86. end
  87. ---@private
  88. function UIVipView:SetActive(result)
  89. self.gameObject:SetActive(result)
  90. end
  91. ---@private
  92. function UIVipView:InitGenerate(Root, data)
  93. self.transform = Root
  94. self.inited = true
  95. if self.super.Init then
  96. self.super.Init(self)
  97. end
  98. local tmp
  99. self:InitGenerate__1(Root,data)
  100. self:InitGenerate__2(Root,data)
  101. self:InitGenerate__3(Root,data)
  102. self:InitGenerate__4(Root,data)
  103. self:InitGenerate__5(Root,data)
  104. self:InitGenerate__6(Root,data)
  105. self:InitGenerate__7(Root,data)
  106. self:InitGenerate__8(Root,data)
  107. self:InitGenerate__9(Root,data)
  108. self:InitGenerate__10(Root,data)
  109. self:InitGenerate__11(Root,data)
  110. self:InitGenerate__12(Root,data)
  111. self:InitGenerate__13(Root,data)
  112. self:InitGenerate__14(Root,data)
  113. self:InitGenerate__15(Root,data)
  114. self:InitGenerate__16(Root,data)
  115. self:InitGenerate__17(Root,data)
  116. self:InitGenerate__18(Root,data)
  117. self:InitGenerate__19(Root,data)
  118. self:InitGenerate__20(Root,data)
  119. end
  120. ---@private
  121. function UIVipView:InitGenerate__1(Root, data)
  122. --[[
  123. UIAnimator
  124. --]]
  125. local tmp = Root:Find("UIAnimator").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.uIAnimator = tmp
  130. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  131. tmp.animator.logWarnings = false
  132. end
  133. ---@private
  134. function UIVipView:InitGenerate__2(Root, data)
  135. --[[
  136. UIAnimator/Alpha
  137. --]]
  138. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.AnyBtn = tmp
  143. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  144. end
  145. ---@private
  146. function UIVipView:InitGenerate__3(Root, data)
  147. --[[
  148. UIAnimator/Window/Bottom/BtnBack
  149. --]]
  150. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBack").gameObject
  151. if tolua.getpeer(tmp) == nil then
  152. tolua.setpeer(tmp, {})
  153. end
  154. self.btnBack = tmp
  155. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  156. end
  157. ---@private
  158. function UIVipView:InitGenerate__4(Root, data)
  159. --[[
  160. UIAnimator/Window/Bottom/BtnUpLv
  161. --]]
  162. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnUpLv").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.btnUpLv = tmp
  167. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  168. end
  169. ---@private
  170. function UIVipView:InitGenerate__5(Root, data)
  171. --[[
  172. UIAnimator/Window/Bottom/BtnUpLv/Content/Text
  173. --]]
  174. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnUpLv/Content/Text").gameObject
  175. if tolua.getpeer(tmp) == nil then
  176. tolua.setpeer(tmp, {})
  177. end
  178. self.btnSure = tmp
  179. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  180. end
  181. ---@private
  182. function UIVipView:InitGenerate__6(Root, data)
  183. --[[
  184. UIAnimator/Window/Center/Title/VipNameTxt
  185. --]]
  186. local tmp = Root:Find("UIAnimator/Window/Center/Title/VipNameTxt").gameObject
  187. if tolua.getpeer(tmp) == nil then
  188. tolua.setpeer(tmp, {})
  189. end
  190. self.vipNameTxt = tmp
  191. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  192. end
  193. ---@private
  194. function UIVipView:InitGenerate__7(Root, data)
  195. --[[
  196. UIAnimator/Window/Center/GainList
  197. --]]
  198. local tmp = Root:Find("UIAnimator/Window/Center/GainList").gameObject
  199. if tolua.getpeer(tmp) == nil then
  200. tolua.setpeer(tmp, {})
  201. end
  202. self.gainList = tmp
  203. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  204. end
  205. ---@private
  206. function UIVipView:InitGenerate__8(Root, data)
  207. --[[
  208. UIAnimator/Window/Center/GainList/Viewport/Content/VipUnlockDesItem
  209. --]]
  210. local tmp = Root:Find("UIAnimator/Window/Center/GainList/Viewport/Content/VipUnlockDesItem").gameObject
  211. if tolua.getpeer(tmp) == nil then
  212. tolua.setpeer(tmp, {})
  213. end
  214. self.vipUnlockDesItem = CommonUtil.BindGridViewItem2LuaStatic("VipUnlockDesItem", tmp)
  215. self.vipUnlockDesItem.prefabName = "VipUnlockDesItem"
  216. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  217. end
  218. ---@private
  219. function UIVipView:InitGenerate__9(Root, data)
  220. --[[
  221. UIAnimator/Window/Center/RewardList
  222. --]]
  223. local tmp = Root:Find("UIAnimator/Window/Center/RewardList").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.rewardList = tmp
  228. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  229. end
  230. ---@private
  231. function UIVipView:InitGenerate__10(Root, data)
  232. --[[
  233. UIAnimator/Window/Top/Exp/NextLv/ExpTxt
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/Top/Exp/NextLv/ExpTxt").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.expTxt = tmp
  240. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  241. end
  242. ---@private
  243. function UIVipView:InitGenerate__11(Root, data)
  244. --[[
  245. UIAnimator/Window/Top/Exp/NextLv/BtnCustomerService
  246. --]]
  247. local tmp = Root:Find("UIAnimator/Window/Top/Exp/NextLv/BtnCustomerService").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.btnCustomerService = tmp
  252. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  253. end
  254. ---@private
  255. function UIVipView:InitGenerate__12(Root, data)
  256. --[[
  257. UIAnimator/Window/Top/Exp/NextLv/SealIcon
  258. --]]
  259. local tmp = Root:Find("UIAnimator/Window/Top/Exp/NextLv/SealIcon").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.expTxt.sealIcon = tmp
  264. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  265. end
  266. ---@private
  267. function UIVipView:InitGenerate__13(Root, data)
  268. --[[
  269. UIAnimator/Window/Top/Exp/ExpSlider
  270. --]]
  271. local tmp = Root:Find("UIAnimator/Window/Top/Exp/ExpSlider").gameObject
  272. if tolua.getpeer(tmp) == nil then
  273. tolua.setpeer(tmp, {})
  274. end
  275. self.expSlider = tmp
  276. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  277. end
  278. ---@private
  279. function UIVipView:InitGenerate__14(Root, data)
  280. --[[
  281. UIAnimator/Window/Top/Exp/Number
  282. --]]
  283. local tmp = Root:Find("UIAnimator/Window/Top/Exp/Number").gameObject
  284. if tolua.getpeer(tmp) == nil then
  285. tolua.setpeer(tmp, {})
  286. end
  287. self.number = tmp
  288. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  289. end
  290. ---@private
  291. function UIVipView:InitGenerate__15(Root, data)
  292. --[[
  293. UIAnimator/Window/Top/GodSeal/Mask/SealPlay/Seal/VipFrame
  294. --]]
  295. local tmp = Root:Find("UIAnimator/Window/Top/GodSeal/Mask/SealPlay/Seal/VipFrame").gameObject
  296. if tolua.getpeer(tmp) == nil then
  297. tolua.setpeer(tmp, {})
  298. end
  299. self.vipFrame = tmp
  300. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  301. end
  302. ---@private
  303. function UIVipView:InitGenerate__16(Root, data)
  304. --[[
  305. UIAnimator/Window/Top/GodSeal/Mask/SealPlay/Seal/VipIcon
  306. --]]
  307. local tmp = Root:Find("UIAnimator/Window/Top/GodSeal/Mask/SealPlay/Seal/VipIcon").gameObject
  308. if tolua.getpeer(tmp) == nil then
  309. tolua.setpeer(tmp, {})
  310. end
  311. self.vipIcon = tmp
  312. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  313. end
  314. ---@private
  315. function UIVipView:InitGenerate__17(Root, data)
  316. --[[
  317. UIAnimator/Window/Top/GodSeal/Frame/Title/CurVipNameTxt
  318. --]]
  319. local tmp = Root:Find("UIAnimator/Window/Top/GodSeal/Frame/Title/CurVipNameTxt").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.curVipNameTxt = tmp
  324. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  325. end
  326. ---@private
  327. function UIVipView:InitGenerate__18(Root, data)
  328. --[[
  329. UIAnimator/Window/Top/BtnInfo
  330. --]]
  331. local tmp = Root:Find("UIAnimator/Window/Top/BtnInfo").gameObject
  332. if tolua.getpeer(tmp) == nil then
  333. tolua.setpeer(tmp, {})
  334. end
  335. self.btnInfo = tmp
  336. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  337. end
  338. ---@private
  339. function UIVipView:InitGenerate__19(Root, data)
  340. --[[
  341. UIAnimator/Window/SwitchButtons/BtnLeft
  342. --]]
  343. local tmp = Root:Find("UIAnimator/Window/SwitchButtons/BtnLeft").gameObject
  344. if tolua.getpeer(tmp) == nil then
  345. tolua.setpeer(tmp, {})
  346. end
  347. self.btnLeft = tmp
  348. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  349. end
  350. ---@private
  351. function UIVipView:InitGenerate__20(Root, data)
  352. --[[
  353. UIAnimator/Window/SwitchButtons/BtnRight
  354. --]]
  355. local tmp = Root:Find("UIAnimator/Window/SwitchButtons/BtnRight").gameObject
  356. if tolua.getpeer(tmp) == nil then
  357. tolua.setpeer(tmp, {})
  358. end
  359. self.btnRight = tmp
  360. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  361. end
  362. ---@private
  363. function UIVipView:GenerateDestroy()
  364. if tolua.getpeer(self.expTxt.sealIcon) ~= nil then
  365. tolua.setpeer(self.expTxt.sealIcon, nil)
  366. end
  367. if tolua.getpeer(self.uIAnimator) ~= nil then
  368. tolua.setpeer(self.uIAnimator, nil)
  369. end
  370. self.uIAnimator = nil
  371. if tolua.getpeer(self.AnyBtn) ~= nil then
  372. tolua.setpeer(self.AnyBtn, nil)
  373. end
  374. self.AnyBtn = nil
  375. if tolua.getpeer(self.btnBack) ~= nil then
  376. tolua.setpeer(self.btnBack, nil)
  377. end
  378. self.btnBack = nil
  379. if tolua.getpeer(self.btnUpLv) ~= nil then
  380. tolua.setpeer(self.btnUpLv, nil)
  381. end
  382. self.btnUpLv = nil
  383. if tolua.getpeer(self.btnSure) ~= nil then
  384. tolua.setpeer(self.btnSure, nil)
  385. end
  386. self.btnSure = nil
  387. if tolua.getpeer(self.vipNameTxt) ~= nil then
  388. tolua.setpeer(self.vipNameTxt, nil)
  389. end
  390. self.vipNameTxt = nil
  391. if tolua.getpeer(self.gainList) ~= nil then
  392. tolua.setpeer(self.gainList, nil)
  393. end
  394. self.gainList = nil
  395. if self.vipUnlockDesItem.GenerateDestroy ~= nil then
  396. self.vipUnlockDesItem:GenerateDestroy()
  397. end
  398. if tolua.getpeer(self.vipUnlockDesItem) ~= nil then
  399. tolua.setpeer(self.vipUnlockDesItem, nil)
  400. end
  401. self.vipUnlockDesItem = nil
  402. if tolua.getpeer(self.rewardList) ~= nil then
  403. tolua.setpeer(self.rewardList, nil)
  404. end
  405. self.rewardList = nil
  406. if tolua.getpeer(self.expTxt) ~= nil then
  407. tolua.setpeer(self.expTxt, nil)
  408. end
  409. self.expTxt = nil
  410. if tolua.getpeer(self.btnCustomerService) ~= nil then
  411. tolua.setpeer(self.btnCustomerService, nil)
  412. end
  413. self.btnCustomerService = nil
  414. if tolua.getpeer(self.expSlider) ~= nil then
  415. tolua.setpeer(self.expSlider, nil)
  416. end
  417. self.expSlider = nil
  418. if tolua.getpeer(self.number) ~= nil then
  419. tolua.setpeer(self.number, nil)
  420. end
  421. self.number = nil
  422. if tolua.getpeer(self.vipFrame) ~= nil then
  423. tolua.setpeer(self.vipFrame, nil)
  424. end
  425. self.vipFrame = nil
  426. if tolua.getpeer(self.vipIcon) ~= nil then
  427. tolua.setpeer(self.vipIcon, nil)
  428. end
  429. self.vipIcon = nil
  430. if tolua.getpeer(self.curVipNameTxt) ~= nil then
  431. tolua.setpeer(self.curVipNameTxt, nil)
  432. end
  433. self.curVipNameTxt = nil
  434. if tolua.getpeer(self.btnInfo) ~= nil then
  435. tolua.setpeer(self.btnInfo, nil)
  436. end
  437. self.btnInfo = nil
  438. if tolua.getpeer(self.btnLeft) ~= nil then
  439. tolua.setpeer(self.btnLeft, nil)
  440. end
  441. self.btnLeft = nil
  442. if tolua.getpeer(self.btnRight) ~= nil then
  443. tolua.setpeer(self.btnRight, nil)
  444. end
  445. self.btnRight = nil
  446. self.transform = nil
  447. self.gameObject = nil
  448. self.inited = false
  449. end
  450. return UIVipView