UIIdolMyFansTipsView_Generate.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. ---@class UIIdolMyFansTips__Generate_rankScroll
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public loopGridView SuperScrollView.LoopGridView
  4. ---@field public scrollRect UnityEngine.UI.ScrollRect
  5. ---@class UIIdolMyFansTips__Generate_closeBtn
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public button UnityEngine.UI.Button
  8. ---@class UIIdolMyFansTips__Generate_AnyBtn
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class UIIdolMyFansTips__Generate_uIAnimator
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public animator UnityEngine.Animator
  14. ---@class UIIdolMyFansTips__Generate
  15. ---@field private gameObject UnityEngine.GameObject
  16. ---@field private transform UnityEngine.Transform
  17. ---@field private uIAnimator UIIdolMyFansTips__Generate_uIAnimator
  18. ---@field private AnyBtn UIIdolMyFansTips__Generate_AnyBtn
  19. ---@field private window UnityEngine.GameObject
  20. ---@field private closeBtn UIIdolMyFansTips__Generate_closeBtn
  21. ---@field private rankScroll UIIdolMyFansTips__Generate_rankScroll
  22. ---@field private rankContent UnityEngine.GameObject
  23. ---@field private fansItem UnityEngine.GameObject
  24. ---@field private emptyNode UnityEngine.GameObject
  25. local UIIdolMyFansTipsView = class("UIIdolMyFansTipsView", require("UIViewBase"))
  26. function UIIdolMyFansTipsView:ctor()
  27. end
  28. ---@private
  29. function UIIdolMyFansTipsView:SetActive(result)
  30. self.gameObject:SetActive(result)
  31. end
  32. ---@private
  33. function UIIdolMyFansTipsView:InitGenerate(Root, data)
  34. self.transform = Root
  35. self.inited = true
  36. if self.super.Init then
  37. self.super.Init(self)
  38. end
  39. local tmp
  40. self:InitGenerate__1(Root,data)
  41. self:InitGenerate__2(Root,data)
  42. self:InitGenerate__3(Root,data)
  43. self:InitGenerate__4(Root,data)
  44. self:InitGenerate__5(Root,data)
  45. self:InitGenerate__6(Root,data)
  46. self:InitGenerate__7(Root,data)
  47. self:InitGenerate__8(Root,data)
  48. self:InitGenerate__9(Root,data)
  49. end
  50. ---@private
  51. function UIIdolMyFansTipsView:InitGenerate__1(Root, data)
  52. --[[
  53. Root
  54. --]]
  55. end
  56. ---@private
  57. function UIIdolMyFansTipsView:InitGenerate__2(Root, data)
  58. --[[
  59. UIAnimator
  60. --]]
  61. local tmp = Root:Find("UIAnimator").gameObject
  62. if tolua.getpeer(tmp) == nil then
  63. tolua.setpeer(tmp, {})
  64. end
  65. self.uIAnimator = tmp
  66. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  67. tmp.animator.logWarnings = false
  68. end
  69. ---@private
  70. function UIIdolMyFansTipsView:InitGenerate__3(Root, data)
  71. --[[
  72. UIAnimator/Alpha
  73. --]]
  74. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  75. if tolua.getpeer(tmp) == nil then
  76. tolua.setpeer(tmp, {})
  77. end
  78. self.AnyBtn = tmp
  79. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  80. end
  81. ---@private
  82. function UIIdolMyFansTipsView:InitGenerate__4(Root, data)
  83. --[[
  84. UIAnimator/Window
  85. --]]
  86. local tmp = Root:Find("UIAnimator/Window").gameObject
  87. if tolua.getpeer(tmp) == nil then
  88. tolua.setpeer(tmp, {})
  89. end
  90. self.window = tmp
  91. end
  92. ---@private
  93. function UIIdolMyFansTipsView:InitGenerate__5(Root, data)
  94. --[[
  95. UIAnimator/Window/Bg/CloseBox/BtnClose
  96. --]]
  97. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.closeBtn = tmp
  102. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  103. end
  104. ---@private
  105. function UIIdolMyFansTipsView:InitGenerate__6(Root, data)
  106. --[[
  107. UIAnimator/Window/Bg/CenterView/ListScroll
  108. --]]
  109. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/ListScroll").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.rankScroll = tmp
  114. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  115. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  116. end
  117. ---@private
  118. function UIIdolMyFansTipsView:InitGenerate__7(Root, data)
  119. --[[
  120. UIAnimator/Window/Bg/CenterView/ListScroll/Viewport/Content
  121. --]]
  122. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/ListScroll/Viewport/Content").gameObject
  123. if tolua.getpeer(tmp) == nil then
  124. tolua.setpeer(tmp, {})
  125. end
  126. self.rankContent = tmp
  127. end
  128. ---@private
  129. function UIIdolMyFansTipsView:InitGenerate__8(Root, data)
  130. --[[
  131. UIAnimator/Window/Bg/CenterView/ListScroll/Viewport/Content/FansItem
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/ListScroll/Viewport/Content/FansItem").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.fansItem = CommonUtil.BindGridViewItem2LuaStatic("FansItem", tmp)
  138. self.fansItem.prefabName = "FansItem"
  139. end
  140. ---@private
  141. function UIIdolMyFansTipsView:InitGenerate__9(Root, data)
  142. --[[
  143. UIAnimator/Window/Bg/CenterView/Empty
  144. --]]
  145. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/Empty").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.emptyNode = tmp
  150. end
  151. ---@private
  152. function UIIdolMyFansTipsView:GenerateDestroy()
  153. if tolua.getpeer(self.uIAnimator) ~= nil then
  154. tolua.setpeer(self.uIAnimator, nil)
  155. end
  156. self.uIAnimator = nil
  157. if tolua.getpeer(self.AnyBtn) ~= nil then
  158. tolua.setpeer(self.AnyBtn, nil)
  159. end
  160. self.AnyBtn = nil
  161. if tolua.getpeer(self.window) ~= nil then
  162. tolua.setpeer(self.window, nil)
  163. end
  164. self.window = nil
  165. if tolua.getpeer(self.closeBtn) ~= nil then
  166. tolua.setpeer(self.closeBtn, nil)
  167. end
  168. self.closeBtn = nil
  169. if tolua.getpeer(self.rankScroll) ~= nil then
  170. tolua.setpeer(self.rankScroll, nil)
  171. end
  172. self.rankScroll = nil
  173. if tolua.getpeer(self.rankContent) ~= nil then
  174. tolua.setpeer(self.rankContent, nil)
  175. end
  176. self.rankContent = nil
  177. if self.fansItem.GenerateDestroy ~= nil then
  178. self.fansItem:GenerateDestroy()
  179. end
  180. if tolua.getpeer(self.fansItem) ~= nil then
  181. tolua.setpeer(self.fansItem, nil)
  182. end
  183. self.fansItem = nil
  184. if tolua.getpeer(self.emptyNode) ~= nil then
  185. tolua.setpeer(self.emptyNode, nil)
  186. end
  187. self.emptyNode = nil
  188. self.transform = nil
  189. self.gameObject = nil
  190. self.inited = false
  191. end
  192. return UIIdolMyFansTipsView