UIIdolGiftTipsView_Generate.lua 5.8 KB

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