UIPetMySupportView_Generate.lua 6.2 KB

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