UIArtifactPoolView_Generate.lua 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. ---@class UIArtifactPool__Generate_btnClose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIArtifactPool__Generate_notice_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UIArtifactPool__Generate_notice
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UIArtifactPool__Generate_notice_text
  10. ---@class UIArtifactPool__Generate_next_text
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public uILocalizeScript UILocalizeScript
  13. ---@class UIArtifactPool__Generate_iconitem1
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@field public layoutElement UnityEngine.UI.LayoutElement
  17. ---@class UIArtifactPool__Generate_next
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public loopGridView SuperScrollView.LoopGridView
  20. ---@field public text UIArtifactPool__Generate_next_text
  21. ---@class UIArtifactPool__Generate_opend_text
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public uILocalizeScript UILocalizeScript
  24. ---@class UIArtifactPool__Generate_iconitem
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public rectTransform UnityEngine.RectTransform
  27. ---@field public layoutElement UnityEngine.UI.LayoutElement
  28. ---@class UIArtifactPool__Generate_opend
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public loopGridView SuperScrollView.LoopGridView
  31. ---@field public text UIArtifactPool__Generate_opend_text
  32. ---@class UIArtifactPool__Generate_AnyBtn
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public button UnityEngine.UI.Button
  35. ---@class UIArtifactPool__Generate_uIAnimator
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public animator UnityEngine.Animator
  38. ---@class UIArtifactPool__Generate
  39. ---@field private gameObject UnityEngine.GameObject
  40. ---@field private transform UnityEngine.Transform
  41. ---@field private uIAnimator UIArtifactPool__Generate_uIAnimator
  42. ---@field private AnyBtn UIArtifactPool__Generate_AnyBtn
  43. ---@field private window UnityEngine.GameObject
  44. ---@field private opend UIArtifactPool__Generate_opend
  45. ---@field private iconitem UIArtifactPool__Generate_iconitem
  46. ---@field private next UIArtifactPool__Generate_next
  47. ---@field private iconitem1 UIArtifactPool__Generate_iconitem1
  48. ---@field private bottomBox UnityEngine.GameObject
  49. ---@field private notice UIArtifactPool__Generate_notice
  50. ---@field private btnClose UIArtifactPool__Generate_btnClose
  51. local UIArtifactPoolView = class("UIArtifactPoolView", require("UIViewBase"))
  52. function UIArtifactPoolView:ctor()
  53. end
  54. ---@private
  55. function UIArtifactPoolView:SetActive(result)
  56. self.gameObject:SetActive(result)
  57. end
  58. ---@private
  59. function UIArtifactPoolView:InitGenerate(Root, data)
  60. self.transform = Root
  61. self.inited = true
  62. if self.super.Init then
  63. self.super.Init(self)
  64. end
  65. local tmp
  66. self:InitGenerate__1(Root,data)
  67. self:InitGenerate__2(Root,data)
  68. self:InitGenerate__3(Root,data)
  69. self:InitGenerate__4(Root,data)
  70. self:InitGenerate__5(Root,data)
  71. self:InitGenerate__6(Root,data)
  72. self:InitGenerate__7(Root,data)
  73. self:InitGenerate__8(Root,data)
  74. self:InitGenerate__9(Root,data)
  75. self:InitGenerate__10(Root,data)
  76. self:InitGenerate__11(Root,data)
  77. self:InitGenerate__12(Root,data)
  78. self:InitGenerate__13(Root,data)
  79. end
  80. ---@private
  81. function UIArtifactPoolView:InitGenerate__1(Root, data)
  82. --[[
  83. UIAnimator
  84. --]]
  85. local tmp = Root:Find("UIAnimator").gameObject
  86. if tolua.getpeer(tmp) == nil then
  87. tolua.setpeer(tmp, {})
  88. end
  89. self.uIAnimator = tmp
  90. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  91. tmp.animator.logWarnings = false
  92. end
  93. ---@private
  94. function UIArtifactPoolView:InitGenerate__2(Root, data)
  95. --[[
  96. UIAnimator/Alpha
  97. --]]
  98. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.AnyBtn = tmp
  103. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  104. end
  105. ---@private
  106. function UIArtifactPoolView:InitGenerate__3(Root, data)
  107. --[[
  108. UIAnimator/Window
  109. --]]
  110. local tmp = Root:Find("UIAnimator/Window").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.window = tmp
  115. end
  116. ---@private
  117. function UIArtifactPoolView:InitGenerate__4(Root, data)
  118. --[[
  119. UIAnimator/Window/Bg/Opend
  120. --]]
  121. local tmp = Root:Find("UIAnimator/Window/Bg/Opend").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.opend = tmp
  126. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  127. end
  128. ---@private
  129. function UIArtifactPoolView:InitGenerate__5(Root, data)
  130. --[[
  131. UIAnimator/Window/Bg/Opend/Viewport/Content/IconItem
  132. --]]
  133. local tmp = Root:Find("UIAnimator/Window/Bg/Opend/Viewport/Content/IconItem").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.iconitem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  138. self.iconitem.prefabName = "IconItem"
  139. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  140. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  141. end
  142. ---@private
  143. function UIArtifactPoolView:InitGenerate__6(Root, data)
  144. --[[
  145. UIAnimator/Window/Bg/Opend/Title/Text
  146. --]]
  147. local tmp = Root:Find("UIAnimator/Window/Bg/Opend/Title/Text").gameObject
  148. if tolua.getpeer(tmp) == nil then
  149. tolua.setpeer(tmp, {})
  150. end
  151. self.opend.text = tmp
  152. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  153. end
  154. ---@private
  155. function UIArtifactPoolView:InitGenerate__7(Root, data)
  156. --[[
  157. UIAnimator/Window/Bg/Next
  158. --]]
  159. local tmp = Root:Find("UIAnimator/Window/Bg/Next").gameObject
  160. if tolua.getpeer(tmp) == nil then
  161. tolua.setpeer(tmp, {})
  162. end
  163. self.next = tmp
  164. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  165. end
  166. ---@private
  167. function UIArtifactPoolView:InitGenerate__8(Root, data)
  168. --[[
  169. UIAnimator/Window/Bg/Next/Viewport/Content/IconItem
  170. --]]
  171. local tmp = Root:Find("UIAnimator/Window/Bg/Next/Viewport/Content/IconItem").gameObject
  172. if tolua.getpeer(tmp) == nil then
  173. tolua.setpeer(tmp, {})
  174. end
  175. self.iconitem1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  176. self.iconitem1.prefabName = "IconItem"
  177. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  178. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  179. end
  180. ---@private
  181. function UIArtifactPoolView:InitGenerate__9(Root, data)
  182. --[[
  183. UIAnimator/Window/Bg/Next/Title/Text
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/Bg/Next/Title/Text").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.next.text = tmp
  190. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  191. end
  192. ---@private
  193. function UIArtifactPoolView:InitGenerate__10(Root, data)
  194. --[[
  195. UIAnimator/Window/Bg/BottomBox
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.bottomBox = tmp
  202. end
  203. ---@private
  204. function UIArtifactPoolView:InitGenerate__11(Root, data)
  205. --[[
  206. UIAnimator/Window/Bg/BottomBox/Notice
  207. --]]
  208. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/Notice").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.notice = tmp
  213. end
  214. ---@private
  215. function UIArtifactPoolView:InitGenerate__12(Root, data)
  216. --[[
  217. UIAnimator/Window/Bg/BottomBox/Notice/TalkBox/Text
  218. --]]
  219. local tmp = Root:Find("UIAnimator/Window/Bg/BottomBox/Notice/TalkBox/Text").gameObject
  220. if tolua.getpeer(tmp) == nil then
  221. tolua.setpeer(tmp, {})
  222. end
  223. self.notice.text = tmp
  224. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  225. end
  226. ---@private
  227. function UIArtifactPoolView:InitGenerate__13(Root, data)
  228. --[[
  229. UIAnimator/Window/Bg/BtnClose
  230. --]]
  231. local tmp = Root:Find("UIAnimator/Window/Bg/BtnClose").gameObject
  232. if tolua.getpeer(tmp) == nil then
  233. tolua.setpeer(tmp, {})
  234. end
  235. self.btnClose = tmp
  236. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  237. end
  238. ---@private
  239. function UIArtifactPoolView:GenerateDestroy()
  240. if tolua.getpeer(self.notice.text) ~= nil then
  241. tolua.setpeer(self.notice.text, nil)
  242. end
  243. if tolua.getpeer(self.next.text) ~= nil then
  244. tolua.setpeer(self.next.text, nil)
  245. end
  246. if tolua.getpeer(self.opend.text) ~= nil then
  247. tolua.setpeer(self.opend.text, nil)
  248. end
  249. if tolua.getpeer(self.uIAnimator) ~= nil then
  250. tolua.setpeer(self.uIAnimator, nil)
  251. end
  252. self.uIAnimator = nil
  253. if tolua.getpeer(self.AnyBtn) ~= nil then
  254. tolua.setpeer(self.AnyBtn, nil)
  255. end
  256. self.AnyBtn = nil
  257. if tolua.getpeer(self.window) ~= nil then
  258. tolua.setpeer(self.window, nil)
  259. end
  260. self.window = nil
  261. if tolua.getpeer(self.opend) ~= nil then
  262. tolua.setpeer(self.opend, nil)
  263. end
  264. self.opend = nil
  265. if self.iconitem.GenerateDestroy ~= nil then
  266. self.iconitem:GenerateDestroy()
  267. end
  268. if tolua.getpeer(self.iconitem) ~= nil then
  269. tolua.setpeer(self.iconitem, nil)
  270. end
  271. self.iconitem = nil
  272. if tolua.getpeer(self.next) ~= nil then
  273. tolua.setpeer(self.next, nil)
  274. end
  275. self.next = nil
  276. if self.iconitem1.GenerateDestroy ~= nil then
  277. self.iconitem1:GenerateDestroy()
  278. end
  279. if tolua.getpeer(self.iconitem1) ~= nil then
  280. tolua.setpeer(self.iconitem1, nil)
  281. end
  282. self.iconitem1 = nil
  283. if tolua.getpeer(self.bottomBox) ~= nil then
  284. tolua.setpeer(self.bottomBox, nil)
  285. end
  286. self.bottomBox = nil
  287. if tolua.getpeer(self.notice) ~= nil then
  288. tolua.setpeer(self.notice, nil)
  289. end
  290. self.notice = nil
  291. if tolua.getpeer(self.btnClose) ~= nil then
  292. tolua.setpeer(self.btnClose, nil)
  293. end
  294. self.btnClose = nil
  295. self.transform = nil
  296. self.gameObject = nil
  297. self.inited = false
  298. end
  299. return UIArtifactPoolView