UIDojoMatchView_Generate.lua 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. ---@class UIDojoMatch__Generate_progressTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIDojoMatch__Generate_progress
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class UIDojoMatch__Generate_MatchingCountDownText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIDojoMatch__Generate_rightContent
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  13. ---@class UIDojoMatch__Generate_rightMemberScrollView
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  16. ---@class UIDojoMatch__Generate_leftContent
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  19. ---@class UIDojoMatch__Generate_leftMemberScrollView
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  22. ---@class UIDojoMatch__Generate_uIAnimator
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public animator UnityEngine.Animator
  25. ---@class UIDojoMatch__Generate
  26. ---@field private gameObject UnityEngine.GameObject
  27. ---@field private transform UnityEngine.Transform
  28. ---@field private uIAnimator UIDojoMatch__Generate_uIAnimator
  29. ---@field private emptyNode UnityEngine.GameObject
  30. ---@field private leftMemberScrollView UIDojoMatch__Generate_leftMemberScrollView
  31. ---@field private leftContent UIDojoMatch__Generate_leftContent
  32. ---@field private rightMemberScrollView UIDojoMatch__Generate_rightMemberScrollView
  33. ---@field private rightContent UIDojoMatch__Generate_rightContent
  34. ---@field private MatchingNode UnityEngine.GameObject
  35. ---@field private MatchingCountDownText UIDojoMatch__Generate_MatchingCountDownText
  36. ---@field private VSNode UnityEngine.GameObject
  37. ---@field private progress UIDojoMatch__Generate_progress
  38. ---@field private progressTxt UIDojoMatch__Generate_progressTxt
  39. local UIDojoMatchView = class("UIDojoMatchView", require("UIViewBase"))
  40. function UIDojoMatchView:ctor()
  41. end
  42. ---@private
  43. function UIDojoMatchView:SetActive(result)
  44. self.gameObject:SetActive(result)
  45. end
  46. ---@private
  47. function UIDojoMatchView:InitGenerate(Root, data)
  48. self.transform = Root
  49. self.inited = true
  50. if self.super.Init then
  51. self.super.Init(self)
  52. end
  53. local tmp
  54. self:InitGenerate__1(Root,data)
  55. self:InitGenerate__2(Root,data)
  56. self:InitGenerate__3(Root,data)
  57. self:InitGenerate__4(Root,data)
  58. self:InitGenerate__5(Root,data)
  59. self:InitGenerate__6(Root,data)
  60. self:InitGenerate__7(Root,data)
  61. self:InitGenerate__8(Root,data)
  62. self:InitGenerate__9(Root,data)
  63. self:InitGenerate__10(Root,data)
  64. self:InitGenerate__11(Root,data)
  65. end
  66. ---@private
  67. function UIDojoMatchView:InitGenerate__1(Root, data)
  68. --[[
  69. UIAnimator
  70. --]]
  71. local tmp = Root:Find("UIAnimator").gameObject
  72. if tolua.getpeer(tmp) == nil then
  73. tolua.setpeer(tmp, {})
  74. end
  75. self.uIAnimator = tmp
  76. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  77. tmp.animator.logWarnings = false
  78. end
  79. ---@private
  80. function UIDojoMatchView:InitGenerate__2(Root, data)
  81. --[[
  82. UIAnimator/Window/CenterView/LeftRoot/Empty
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Window/CenterView/LeftRoot/Empty").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.emptyNode = tmp
  89. end
  90. ---@private
  91. function UIDojoMatchView:InitGenerate__3(Root, data)
  92. --[[
  93. UIAnimator/Window/CenterView/LeftRoot/MemberScrollView
  94. --]]
  95. local tmp = Root:Find("UIAnimator/Window/CenterView/LeftRoot/MemberScrollView").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.leftMemberScrollView = tmp
  100. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  101. end
  102. ---@private
  103. function UIDojoMatchView:InitGenerate__4(Root, data)
  104. --[[
  105. UIAnimator/Window/CenterView/LeftRoot/MemberScrollView/Viewport/Content
  106. --]]
  107. local tmp = Root:Find("UIAnimator/Window/CenterView/LeftRoot/MemberScrollView/Viewport/Content").gameObject
  108. if tolua.getpeer(tmp) == nil then
  109. tolua.setpeer(tmp, {})
  110. end
  111. self.leftContent = tmp
  112. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  113. end
  114. ---@private
  115. function UIDojoMatchView:InitGenerate__5(Root, data)
  116. --[[
  117. UIAnimator/Window/CenterView/RightRoot/MemberScrollView
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Window/CenterView/RightRoot/MemberScrollView").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.rightMemberScrollView = tmp
  124. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  125. end
  126. ---@private
  127. function UIDojoMatchView:InitGenerate__6(Root, data)
  128. --[[
  129. UIAnimator/Window/CenterView/RightRoot/MemberScrollView/Viewport/Content
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/CenterView/RightRoot/MemberScrollView/Viewport/Content").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.rightContent = tmp
  136. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  137. end
  138. ---@private
  139. function UIDojoMatchView:InitGenerate__7(Root, data)
  140. --[[
  141. UIAnimator/Window/CenterView/StatusRoot/Matching
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/CenterView/StatusRoot/Matching").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.MatchingNode = tmp
  148. end
  149. ---@private
  150. function UIDojoMatchView:InitGenerate__8(Root, data)
  151. --[[
  152. UIAnimator/Window/CenterView/StatusRoot/Matching/CountDown
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/CenterView/StatusRoot/Matching/CountDown").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.MatchingCountDownText = tmp
  159. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  160. end
  161. ---@private
  162. function UIDojoMatchView:InitGenerate__9(Root, data)
  163. --[[
  164. UIAnimator/Window/CenterView/StatusRoot/VSNode
  165. --]]
  166. local tmp = Root:Find("UIAnimator/Window/CenterView/StatusRoot/VSNode").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.VSNode = tmp
  171. end
  172. ---@private
  173. function UIDojoMatchView:InitGenerate__10(Root, data)
  174. --[[
  175. UIAnimator/Window/CenterView/StatusRoot/VSNode/Slider
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/CenterView/StatusRoot/VSNode/Slider").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.progress = tmp
  182. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  183. end
  184. ---@private
  185. function UIDojoMatchView:InitGenerate__11(Root, data)
  186. --[[
  187. UIAnimator/Window/CenterView/StatusRoot/VSNode/Progress/Text
  188. --]]
  189. local tmp = Root:Find("UIAnimator/Window/CenterView/StatusRoot/VSNode/Progress/Text").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.progressTxt = tmp
  194. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  195. end
  196. ---@private
  197. function UIDojoMatchView:GenerateDestroy()
  198. if tolua.getpeer(self.uIAnimator) ~= nil then
  199. tolua.setpeer(self.uIAnimator, nil)
  200. end
  201. self.uIAnimator = nil
  202. if tolua.getpeer(self.emptyNode) ~= nil then
  203. tolua.setpeer(self.emptyNode, nil)
  204. end
  205. self.emptyNode = nil
  206. if tolua.getpeer(self.leftMemberScrollView) ~= nil then
  207. tolua.setpeer(self.leftMemberScrollView, nil)
  208. end
  209. self.leftMemberScrollView = nil
  210. if tolua.getpeer(self.leftContent) ~= nil then
  211. tolua.setpeer(self.leftContent, nil)
  212. end
  213. self.leftContent = nil
  214. if tolua.getpeer(self.rightMemberScrollView) ~= nil then
  215. tolua.setpeer(self.rightMemberScrollView, nil)
  216. end
  217. self.rightMemberScrollView = nil
  218. if tolua.getpeer(self.rightContent) ~= nil then
  219. tolua.setpeer(self.rightContent, nil)
  220. end
  221. self.rightContent = nil
  222. if tolua.getpeer(self.MatchingNode) ~= nil then
  223. tolua.setpeer(self.MatchingNode, nil)
  224. end
  225. self.MatchingNode = nil
  226. if tolua.getpeer(self.MatchingCountDownText) ~= nil then
  227. tolua.setpeer(self.MatchingCountDownText, nil)
  228. end
  229. self.MatchingCountDownText = nil
  230. if tolua.getpeer(self.VSNode) ~= nil then
  231. tolua.setpeer(self.VSNode, nil)
  232. end
  233. self.VSNode = nil
  234. if tolua.getpeer(self.progress) ~= nil then
  235. tolua.setpeer(self.progress, nil)
  236. end
  237. self.progress = nil
  238. if tolua.getpeer(self.progressTxt) ~= nil then
  239. tolua.setpeer(self.progressTxt, nil)
  240. end
  241. self.progressTxt = nil
  242. self.transform = nil
  243. self.gameObject = nil
  244. self.inited = false
  245. end
  246. return UIDojoMatchView