UIFashionTotalView_Generate.lua 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. ---@class UIFashionTotal__Generate_attr1Title
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UIFashionTotal__Generate_property
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@field public noPro UnityEngine.GameObject
  8. ---@class UIFashionTotal__Generate_attrTitle
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public uILocalizeScript UILocalizeScript
  11. ---@class UIFashionTotal__Generate_propertySuit
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  14. ---@field public noPro UnityEngine.GameObject
  15. ---@class UIFashionTotal__Generate_btnClose
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public button UnityEngine.UI.Button
  18. ---@class UIFashionTotal__Generate_title
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public text TMPro.TextMeshProUGUI
  21. ---@class UIFashionTotal__Generate_AnyBtn
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public button UnityEngine.UI.Button
  24. ---@class UIFashionTotal__Generate_uIAnimator
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public animator UnityEngine.Animator
  27. ---@class UIFashionTotal__Generate
  28. ---@field private gameObject UnityEngine.GameObject
  29. ---@field private transform UnityEngine.Transform
  30. ---@field private uIAnimator UIFashionTotal__Generate_uIAnimator
  31. ---@field private AnyBtn UIFashionTotal__Generate_AnyBtn
  32. ---@field private title UIFashionTotal__Generate_title
  33. ---@field private btnClose UIFashionTotal__Generate_btnClose
  34. ---@field private fashionPropertyItem UnityEngine.GameObject
  35. ---@field private propertySuit UIFashionTotal__Generate_propertySuit
  36. ---@field private attrTitle UIFashionTotal__Generate_attrTitle
  37. ---@field private property UIFashionTotal__Generate_property
  38. ---@field private attr1Title UIFashionTotal__Generate_attr1Title
  39. local UIFashionTotalView = class("UIFashionTotalView", require("UIViewBase"))
  40. function UIFashionTotalView:ctor()
  41. end
  42. ---@private
  43. function UIFashionTotalView:SetActive(result)
  44. self.gameObject:SetActive(result)
  45. end
  46. ---@private
  47. function UIFashionTotalView: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 UIFashionTotalView: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 UIFashionTotalView:InitGenerate__2(Root, data)
  81. --[[
  82. UIAnimator/Alpha
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.AnyBtn = tmp
  89. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  90. end
  91. ---@private
  92. function UIFashionTotalView:InitGenerate__3(Root, data)
  93. --[[
  94. UIAnimator/Window/TextTitle
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Window/TextTitle").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.title = tmp
  101. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  102. end
  103. ---@private
  104. function UIFashionTotalView:InitGenerate__4(Root, data)
  105. --[[
  106. UIAnimator/Window/BtnClose
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.btnClose = tmp
  113. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  114. end
  115. ---@private
  116. function UIFashionTotalView:InitGenerate__5(Root, data)
  117. --[[
  118. UIAnimator/Window/FashionPropertyItem
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/FashionPropertyItem").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.fashionPropertyItem = CommonUtil.BindGridViewItem2LuaStatic("FashionPropertyItem", tmp)
  125. self.fashionPropertyItem.prefabName = "FashionPropertyItem"
  126. end
  127. ---@private
  128. function UIFashionTotalView:InitGenerate__6(Root, data)
  129. --[[
  130. UIAnimator/Window/PropertySuit
  131. --]]
  132. local tmp = Root:Find("UIAnimator/Window/PropertySuit").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.propertySuit = tmp
  137. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  138. end
  139. ---@private
  140. function UIFashionTotalView:InitGenerate__7(Root, data)
  141. --[[
  142. UIAnimator/Window/PropertySuit/NoPro
  143. --]]
  144. local tmp = Root:Find("UIAnimator/Window/PropertySuit/NoPro").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.propertySuit.noPro = tmp
  149. end
  150. ---@private
  151. function UIFashionTotalView:InitGenerate__8(Root, data)
  152. --[[
  153. UIAnimator/Window/PropertySuit/PropertyTitle/Text
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/PropertySuit/PropertyTitle/Text").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.attrTitle = tmp
  160. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  161. end
  162. ---@private
  163. function UIFashionTotalView:InitGenerate__9(Root, data)
  164. --[[
  165. UIAnimator/Window/Property
  166. --]]
  167. local tmp = Root:Find("UIAnimator/Window/Property").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.property = tmp
  172. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  173. end
  174. ---@private
  175. function UIFashionTotalView:InitGenerate__10(Root, data)
  176. --[[
  177. UIAnimator/Window/Property/NoPro
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window/Property/NoPro").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.property.noPro = tmp
  184. end
  185. ---@private
  186. function UIFashionTotalView:InitGenerate__11(Root, data)
  187. --[[
  188. UIAnimator/Window/Property/PropertyTitle/Text
  189. --]]
  190. local tmp = Root:Find("UIAnimator/Window/Property/PropertyTitle/Text").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.attr1Title = tmp
  195. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  196. end
  197. ---@private
  198. function UIFashionTotalView:GenerateDestroy()
  199. if tolua.getpeer(self.property.noPro) ~= nil then
  200. tolua.setpeer(self.property.noPro, nil)
  201. end
  202. if tolua.getpeer(self.propertySuit.noPro) ~= nil then
  203. tolua.setpeer(self.propertySuit.noPro, nil)
  204. end
  205. if tolua.getpeer(self.uIAnimator) ~= nil then
  206. tolua.setpeer(self.uIAnimator, nil)
  207. end
  208. self.uIAnimator = nil
  209. if tolua.getpeer(self.AnyBtn) ~= nil then
  210. tolua.setpeer(self.AnyBtn, nil)
  211. end
  212. self.AnyBtn = nil
  213. if tolua.getpeer(self.title) ~= nil then
  214. tolua.setpeer(self.title, nil)
  215. end
  216. self.title = nil
  217. if tolua.getpeer(self.btnClose) ~= nil then
  218. tolua.setpeer(self.btnClose, nil)
  219. end
  220. self.btnClose = nil
  221. if self.fashionPropertyItem.GenerateDestroy ~= nil then
  222. self.fashionPropertyItem:GenerateDestroy()
  223. end
  224. if tolua.getpeer(self.fashionPropertyItem) ~= nil then
  225. tolua.setpeer(self.fashionPropertyItem, nil)
  226. end
  227. self.fashionPropertyItem = nil
  228. if tolua.getpeer(self.propertySuit) ~= nil then
  229. tolua.setpeer(self.propertySuit, nil)
  230. end
  231. self.propertySuit = nil
  232. if tolua.getpeer(self.attrTitle) ~= nil then
  233. tolua.setpeer(self.attrTitle, nil)
  234. end
  235. self.attrTitle = nil
  236. if tolua.getpeer(self.property) ~= nil then
  237. tolua.setpeer(self.property, nil)
  238. end
  239. self.property = nil
  240. if tolua.getpeer(self.attr1Title) ~= nil then
  241. tolua.setpeer(self.attr1Title, nil)
  242. end
  243. self.attr1Title = nil
  244. self.transform = nil
  245. self.gameObject = nil
  246. self.inited = false
  247. end
  248. return UIFashionTotalView