UIVipLvUpView_Generate.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. ---@class UIVipLvUp__Generate_curVipNameTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text TMPro.TextMeshProUGUI
  4. ---@class UIVipLvUp__Generate_vipIcon
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class UIVipLvUp__Generate_vipFrame
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIVipLvUp__Generate_reward
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
  13. ---@class UIVipLvUp__Generate_vipUnlockDesItem
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@class UIVipLvUp__Generate_gainList
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public loopListView SuperScrollView.LoopListView
  19. ---@class UIVipLvUp__Generate_godSeal
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public animator UnityEngine.Animator
  22. ---@class UIVipLvUp__Generate_AnyBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIVipLvUp__Generate_uIAnimator
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public animator UnityEngine.Animator
  28. ---@class UIVipLvUp__Generate
  29. ---@field private gameObject UnityEngine.GameObject
  30. ---@field private transform UnityEngine.Transform
  31. ---@field private uIAnimator UIVipLvUp__Generate_uIAnimator
  32. ---@field private AnyBtn UIVipLvUp__Generate_AnyBtn
  33. ---@field private godSeal UIVipLvUp__Generate_godSeal
  34. ---@field private gainList UIVipLvUp__Generate_gainList
  35. ---@field private vipUnlockDesItem UIVipLvUp__Generate_vipUnlockDesItem
  36. ---@field private reward UIVipLvUp__Generate_reward
  37. ---@field private vipFrame UIVipLvUp__Generate_vipFrame
  38. ---@field private vipIcon UIVipLvUp__Generate_vipIcon
  39. ---@field private curVipNameTxt UIVipLvUp__Generate_curVipNameTxt
  40. local UIVipLvUpView = class("UIVipLvUpView", require("UIViewBase"))
  41. function UIVipLvUpView:ctor()
  42. end
  43. ---@private
  44. function UIVipLvUpView:SetActive(result)
  45. self.gameObject:SetActive(result)
  46. end
  47. ---@private
  48. function UIVipLvUpView:InitGenerate(Root, data)
  49. self.transform = Root
  50. self.inited = true
  51. if self.super.Init then
  52. self.super.Init(self)
  53. end
  54. local tmp
  55. self:InitGenerate__1(Root,data)
  56. self:InitGenerate__2(Root,data)
  57. self:InitGenerate__3(Root,data)
  58. self:InitGenerate__4(Root,data)
  59. self:InitGenerate__5(Root,data)
  60. self:InitGenerate__6(Root,data)
  61. self:InitGenerate__7(Root,data)
  62. self:InitGenerate__8(Root,data)
  63. self:InitGenerate__9(Root,data)
  64. end
  65. ---@private
  66. function UIVipLvUpView:InitGenerate__1(Root, data)
  67. --[[
  68. UIAnimator
  69. --]]
  70. local tmp = Root:Find("UIAnimator").gameObject
  71. if tolua.getpeer(tmp) == nil then
  72. tolua.setpeer(tmp, {})
  73. end
  74. self.uIAnimator = tmp
  75. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  76. tmp.animator.logWarnings = false
  77. end
  78. ---@private
  79. function UIVipLvUpView:InitGenerate__2(Root, data)
  80. --[[
  81. UIAnimator/Alpha
  82. --]]
  83. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  84. if tolua.getpeer(tmp) == nil then
  85. tolua.setpeer(tmp, {})
  86. end
  87. self.AnyBtn = tmp
  88. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  89. end
  90. ---@private
  91. function UIVipLvUpView:InitGenerate__3(Root, data)
  92. --[[
  93. UIAnimator/Window/GodSeal
  94. --]]
  95. local tmp = Root:Find("UIAnimator/Window/GodSeal").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.godSeal = tmp
  100. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  101. tmp.animator.logWarnings = false
  102. end
  103. ---@private
  104. function UIVipLvUpView:InitGenerate__4(Root, data)
  105. --[[
  106. UIAnimator/Window/GodSeal/Content/Gain/GainList
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/GodSeal/Content/Gain/GainList").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.gainList = tmp
  113. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  114. end
  115. ---@private
  116. function UIVipLvUpView:InitGenerate__5(Root, data)
  117. --[[
  118. UIAnimator/Window/GodSeal/Content/Gain/GainList/Viewport/Content/VipUnlockDesItem
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/GodSeal/Content/Gain/GainList/Viewport/Content/VipUnlockDesItem").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.vipUnlockDesItem = CommonUtil.BindGridViewItem2LuaStatic("VipUnlockDesItem", tmp)
  125. self.vipUnlockDesItem.prefabName = "VipUnlockDesItem"
  126. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  127. end
  128. ---@private
  129. function UIVipLvUpView:InitGenerate__6(Root, data)
  130. --[[
  131. UIAnimator/Window/GodSeal/Content/Reward
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/GodSeal/Content/Reward").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.reward = tmp
  138. tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
  139. end
  140. ---@private
  141. function UIVipLvUpView:InitGenerate__7(Root, data)
  142. --[[
  143. UIAnimator/Window/GodSeal/Mask/SealPlay/Seal/VipFrame
  144. --]]
  145. local tmp = Root:Find("UIAnimator/Window/GodSeal/Mask/SealPlay/Seal/VipFrame").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.vipFrame = tmp
  150. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  151. end
  152. ---@private
  153. function UIVipLvUpView:InitGenerate__8(Root, data)
  154. --[[
  155. UIAnimator/Window/GodSeal/Mask/SealPlay/Seal/VipIcon
  156. --]]
  157. local tmp = Root:Find("UIAnimator/Window/GodSeal/Mask/SealPlay/Seal/VipIcon").gameObject
  158. if tolua.getpeer(tmp) == nil then
  159. tolua.setpeer(tmp, {})
  160. end
  161. self.vipIcon = tmp
  162. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  163. end
  164. ---@private
  165. function UIVipLvUpView:InitGenerate__9(Root, data)
  166. --[[
  167. UIAnimator/Window/GodSeal/Frame/Title/CurVipNameTxt
  168. --]]
  169. local tmp = Root:Find("UIAnimator/Window/GodSeal/Frame/Title/CurVipNameTxt").gameObject
  170. if tolua.getpeer(tmp) == nil then
  171. tolua.setpeer(tmp, {})
  172. end
  173. self.curVipNameTxt = tmp
  174. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  175. end
  176. ---@private
  177. function UIVipLvUpView:GenerateDestroy()
  178. if tolua.getpeer(self.uIAnimator) ~= nil then
  179. tolua.setpeer(self.uIAnimator, nil)
  180. end
  181. self.uIAnimator = nil
  182. if tolua.getpeer(self.AnyBtn) ~= nil then
  183. tolua.setpeer(self.AnyBtn, nil)
  184. end
  185. self.AnyBtn = nil
  186. if tolua.getpeer(self.godSeal) ~= nil then
  187. tolua.setpeer(self.godSeal, nil)
  188. end
  189. self.godSeal = nil
  190. if tolua.getpeer(self.gainList) ~= nil then
  191. tolua.setpeer(self.gainList, nil)
  192. end
  193. self.gainList = nil
  194. if self.vipUnlockDesItem.GenerateDestroy ~= nil then
  195. self.vipUnlockDesItem:GenerateDestroy()
  196. end
  197. if tolua.getpeer(self.vipUnlockDesItem) ~= nil then
  198. tolua.setpeer(self.vipUnlockDesItem, nil)
  199. end
  200. self.vipUnlockDesItem = nil
  201. if tolua.getpeer(self.reward) ~= nil then
  202. tolua.setpeer(self.reward, nil)
  203. end
  204. self.reward = nil
  205. if tolua.getpeer(self.vipFrame) ~= nil then
  206. tolua.setpeer(self.vipFrame, nil)
  207. end
  208. self.vipFrame = nil
  209. if tolua.getpeer(self.vipIcon) ~= nil then
  210. tolua.setpeer(self.vipIcon, nil)
  211. end
  212. self.vipIcon = nil
  213. if tolua.getpeer(self.curVipNameTxt) ~= nil then
  214. tolua.setpeer(self.curVipNameTxt, nil)
  215. end
  216. self.curVipNameTxt = nil
  217. self.transform = nil
  218. self.gameObject = nil
  219. self.inited = false
  220. end
  221. return UIVipLvUpView