UIChangeHeadView_Generate.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. ---@class UIChangeHead__Generate_unlockBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIChangeHead__Generate_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIChangeHead__Generate_usedBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIChangeHead__Generate_conditionTxt
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UIChangeHead__Generate_content
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  16. ---@class UIChangeHead__Generate_changeList
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  19. ---@class UIChangeHead__Generate_btnClose
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIChangeHead__Generate_AnyBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIChangeHead__Generate_uIAnimator
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public animator UnityEngine.Animator
  28. ---@class UIChangeHead__Generate
  29. ---@field private gameObject UnityEngine.GameObject
  30. ---@field private transform UnityEngine.Transform
  31. ---@field private uIAnimator UIChangeHead__Generate_uIAnimator
  32. ---@field private AnyBtn UIChangeHead__Generate_AnyBtn
  33. ---@field private window UnityEngine.GameObject
  34. ---@field private btnClose UIChangeHead__Generate_btnClose
  35. ---@field private changeList UIChangeHead__Generate_changeList
  36. ---@field private content UIChangeHead__Generate_content
  37. ---@field private unlockConditions UnityEngine.GameObject
  38. ---@field private conditionTxt UIChangeHead__Generate_conditionTxt
  39. ---@field private bottom UnityEngine.GameObject
  40. ---@field private usedBtn UIChangeHead__Generate_usedBtn
  41. ---@field private text UIChangeHead__Generate_text
  42. ---@field private unlockBtn UIChangeHead__Generate_unlockBtn
  43. local UIChangeHeadView = class("UIChangeHeadView", require("UIViewBase"))
  44. function UIChangeHeadView:ctor()
  45. end
  46. ---@private
  47. function UIChangeHeadView:SetActive(result)
  48. self.gameObject:SetActive(result)
  49. end
  50. ---@private
  51. function UIChangeHeadView:InitGenerate(Root, data)
  52. self.transform = Root
  53. self.inited = true
  54. if self.super.Init then
  55. self.super.Init(self)
  56. end
  57. local tmp
  58. self:InitGenerate__1(Root,data)
  59. self:InitGenerate__2(Root,data)
  60. self:InitGenerate__3(Root,data)
  61. self:InitGenerate__4(Root,data)
  62. self:InitGenerate__5(Root,data)
  63. self:InitGenerate__6(Root,data)
  64. self:InitGenerate__7(Root,data)
  65. self:InitGenerate__8(Root,data)
  66. self:InitGenerate__9(Root,data)
  67. self:InitGenerate__10(Root,data)
  68. self:InitGenerate__11(Root,data)
  69. self:InitGenerate__12(Root,data)
  70. self:InitGenerate__13(Root,data)
  71. end
  72. ---@private
  73. function UIChangeHeadView:InitGenerate__1(Root, data)
  74. --[[
  75. Root
  76. --]]
  77. end
  78. ---@private
  79. function UIChangeHeadView:InitGenerate__2(Root, data)
  80. --[[
  81. UIAnimator
  82. --]]
  83. local tmp = Root:Find("UIAnimator").gameObject
  84. if tolua.getpeer(tmp) == nil then
  85. tolua.setpeer(tmp, {})
  86. end
  87. self.uIAnimator = tmp
  88. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  89. tmp.animator.logWarnings = false
  90. end
  91. ---@private
  92. function UIChangeHeadView:InitGenerate__3(Root, data)
  93. --[[
  94. UIAnimator/Alpha
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.AnyBtn = tmp
  101. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  102. end
  103. ---@private
  104. function UIChangeHeadView:InitGenerate__4(Root, data)
  105. --[[
  106. UIAnimator/Window
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.window = tmp
  113. end
  114. ---@private
  115. function UIChangeHeadView:InitGenerate__5(Root, data)
  116. --[[
  117. UIAnimator/Window/Bg/CloseBox/BtnClose
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.btnClose = tmp
  124. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  125. end
  126. ---@private
  127. function UIChangeHeadView:InitGenerate__6(Root, data)
  128. --[[
  129. UIAnimator/Window/Bg/ChangeList
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/Bg/ChangeList").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.changeList = tmp
  136. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  137. end
  138. ---@private
  139. function UIChangeHeadView:InitGenerate__7(Root, data)
  140. --[[
  141. UIAnimator/Window/Bg/ChangeList/Viewport/Content
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/Bg/ChangeList/Viewport/Content").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.content = tmp
  148. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  149. end
  150. ---@private
  151. function UIChangeHeadView:InitGenerate__8(Root, data)
  152. --[[
  153. UIAnimator/Window/Bg/UnlockConditions
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/Bg/UnlockConditions").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.unlockConditions = tmp
  160. end
  161. ---@private
  162. function UIChangeHeadView:InitGenerate__9(Root, data)
  163. --[[
  164. UIAnimator/Window/Bg/UnlockConditions/ConditionTxt
  165. --]]
  166. local tmp = Root:Find("UIAnimator/Window/Bg/UnlockConditions/ConditionTxt").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.conditionTxt = tmp
  171. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  172. end
  173. ---@private
  174. function UIChangeHeadView:InitGenerate__10(Root, data)
  175. --[[
  176. UIAnimator/Window/Bg/Bottom
  177. --]]
  178. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom").gameObject
  179. if tolua.getpeer(tmp) == nil then
  180. tolua.setpeer(tmp, {})
  181. end
  182. self.bottom = tmp
  183. end
  184. ---@private
  185. function UIChangeHeadView:InitGenerate__11(Root, data)
  186. --[[
  187. UIAnimator/Window/Bg/Bottom/UsedBtn
  188. --]]
  189. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/UsedBtn").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.usedBtn = tmp
  194. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  195. end
  196. ---@private
  197. function UIChangeHeadView:InitGenerate__12(Root, data)
  198. --[[
  199. UIAnimator/Window/Bg/Bottom/UsedBtn/Content/Text
  200. --]]
  201. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/UsedBtn/Content/Text").gameObject
  202. if tolua.getpeer(tmp) == nil then
  203. tolua.setpeer(tmp, {})
  204. end
  205. self.text = tmp
  206. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  207. end
  208. ---@private
  209. function UIChangeHeadView:InitGenerate__13(Root, data)
  210. --[[
  211. UIAnimator/Window/Bg/Bottom/UnlockBtn
  212. --]]
  213. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/UnlockBtn").gameObject
  214. if tolua.getpeer(tmp) == nil then
  215. tolua.setpeer(tmp, {})
  216. end
  217. self.unlockBtn = tmp
  218. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  219. end
  220. ---@private
  221. function UIChangeHeadView:GenerateDestroy()
  222. if tolua.getpeer(self.unlockBtn) ~= nil then
  223. tolua.setpeer(self.unlockBtn, nil)
  224. end
  225. if tolua.getpeer(self.text) ~= nil then
  226. tolua.setpeer(self.text, nil)
  227. end
  228. if tolua.getpeer(self.usedBtn) ~= nil then
  229. tolua.setpeer(self.usedBtn, nil)
  230. end
  231. if tolua.getpeer(self.bottom) ~= nil then
  232. tolua.setpeer(self.bottom, nil)
  233. end
  234. if tolua.getpeer(self.conditionTxt) ~= nil then
  235. tolua.setpeer(self.conditionTxt, nil)
  236. end
  237. if tolua.getpeer(self.unlockConditions) ~= nil then
  238. tolua.setpeer(self.unlockConditions, nil)
  239. end
  240. if tolua.getpeer(self.btnClose) ~= nil then
  241. tolua.setpeer(self.btnClose, nil)
  242. end
  243. if tolua.getpeer(self.window) ~= nil then
  244. tolua.setpeer(self.window, nil)
  245. end
  246. if tolua.getpeer(self.uIAnimator) ~= nil then
  247. tolua.setpeer(self.uIAnimator, nil)
  248. end
  249. self.uIAnimator = nil
  250. if tolua.getpeer(self.AnyBtn) ~= nil then
  251. tolua.setpeer(self.AnyBtn, nil)
  252. end
  253. self.AnyBtn = nil
  254. if tolua.getpeer(self.changeList) ~= nil then
  255. tolua.setpeer(self.changeList, nil)
  256. end
  257. self.changeList = nil
  258. if tolua.getpeer(self.content) ~= nil then
  259. tolua.setpeer(self.content, nil)
  260. end
  261. self.content = nil
  262. self.transform = nil
  263. self.gameObject = nil
  264. self.inited = false
  265. end
  266. return UIChangeHeadView