UIPetStampListView_Generate.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. ---@class UIPetStampList__Generate_equipListItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public layoutElement UnityEngine.UI.LayoutElement
  5. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  6. ---@class UIPetStampList__Generate_scrollView
  7. ---@field public gameObject UnityEngine.GameObject
  8. ---@field public loopListView SuperScrollView.LoopListView
  9. ---@class UIPetStampList__Generate_btnDown
  10. ---@field public gameObject UnityEngine.GameObject
  11. ---@field public button UnityEngine.UI.Button
  12. ---@class UIPetStampList__Generate_btnChange
  13. ---@field public gameObject UnityEngine.GameObject
  14. ---@field public button UnityEngine.UI.Button
  15. ---@class UIPetStampList__Generate_topItem_textName
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public uILocalizeScript UILocalizeScript
  18. ---@class UIPetStampList__Generate_iconItem
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public rectTransform UnityEngine.RectTransform
  21. ---@field public layoutElement UnityEngine.UI.LayoutElement
  22. ---@class UIPetStampList__Generate_topItem
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public textName UIPetStampList__Generate_topItem_textName
  25. ---@field public grid UnityEngine.GameObject
  26. ---@class UIPetStampList__Generate_btnClose
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UIPetStampList__Generate_AnyBtn
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public button UnityEngine.UI.Button
  32. ---@class UIPetStampList__Generate_uIAnimator
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public animator UnityEngine.Animator
  35. ---@class UIPetStampList__Generate
  36. ---@field private gameObject UnityEngine.GameObject
  37. ---@field private transform UnityEngine.Transform
  38. ---@field private uIAnimator UIPetStampList__Generate_uIAnimator
  39. ---@field private AnyBtn UIPetStampList__Generate_AnyBtn
  40. ---@field private window UnityEngine.GameObject
  41. ---@field private btnClose UIPetStampList__Generate_btnClose
  42. ---@field private topItem UIPetStampList__Generate_topItem
  43. ---@field private equipListEquippedItem UnityEngine.GameObject
  44. ---@field private contentItem UnityEngine.GameObject
  45. ---@field private iconItem UIPetStampList__Generate_iconItem
  46. ---@field private equipBaseAttrItem UnityEngine.GameObject
  47. ---@field private equiped UnityEngine.GameObject
  48. ---@field private btnChange UIPetStampList__Generate_btnChange
  49. ---@field private btnDown UIPetStampList__Generate_btnDown
  50. ---@field private equipBlank UnityEngine.GameObject
  51. ---@field private scrollView UIPetStampList__Generate_scrollView
  52. ---@field private equipListItem UIPetStampList__Generate_equipListItem
  53. local UIPetStampListView = class("UIPetStampListView", require("UIViewBase"))
  54. function UIPetStampListView:ctor()
  55. end
  56. ---@private
  57. function UIPetStampListView:SetActive(result)
  58. self.gameObject:SetActive(result)
  59. end
  60. ---@private
  61. function UIPetStampListView:InitGenerate(Root, data)
  62. self.transform = Root
  63. self.inited = true
  64. if self.super.Init then
  65. self.super.Init(self)
  66. end
  67. local tmp
  68. self:InitGenerate__1(Root,data)
  69. self:InitGenerate__2(Root,data)
  70. self:InitGenerate__3(Root,data)
  71. self:InitGenerate__4(Root,data)
  72. self:InitGenerate__5(Root,data)
  73. self:InitGenerate__6(Root,data)
  74. self:InitGenerate__7(Root,data)
  75. self:InitGenerate__8(Root,data)
  76. self:InitGenerate__9(Root,data)
  77. self:InitGenerate__10(Root,data)
  78. self:InitGenerate__11(Root,data)
  79. self:InitGenerate__12(Root,data)
  80. self:InitGenerate__13(Root,data)
  81. self:InitGenerate__14(Root,data)
  82. self:InitGenerate__15(Root,data)
  83. self:InitGenerate__16(Root,data)
  84. self:InitGenerate__17(Root,data)
  85. self:InitGenerate__18(Root,data)
  86. end
  87. ---@private
  88. function UIPetStampListView:InitGenerate__1(Root, data)
  89. --[[
  90. Root
  91. --]]
  92. end
  93. ---@private
  94. function UIPetStampListView:InitGenerate__2(Root, data)
  95. --[[
  96. UIAnimator
  97. --]]
  98. local tmp = Root:Find("UIAnimator").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.uIAnimator = tmp
  103. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  104. tmp.animator.logWarnings = false
  105. end
  106. ---@private
  107. function UIPetStampListView:InitGenerate__3(Root, data)
  108. --[[
  109. UIAnimator/Alpha
  110. --]]
  111. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  112. if tolua.getpeer(tmp) == nil then
  113. tolua.setpeer(tmp, {})
  114. end
  115. self.AnyBtn = tmp
  116. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  117. end
  118. ---@private
  119. function UIPetStampListView:InitGenerate__4(Root, data)
  120. --[[
  121. UIAnimator/Window
  122. --]]
  123. local tmp = Root:Find("UIAnimator/Window").gameObject
  124. if tolua.getpeer(tmp) == nil then
  125. tolua.setpeer(tmp, {})
  126. end
  127. self.window = tmp
  128. end
  129. ---@private
  130. function UIPetStampListView:InitGenerate__5(Root, data)
  131. --[[
  132. UIAnimator/Window/Bg/CloseBox/BtnClose
  133. --]]
  134. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  135. if tolua.getpeer(tmp) == nil then
  136. tolua.setpeer(tmp, {})
  137. end
  138. self.btnClose = tmp
  139. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  140. end
  141. ---@private
  142. function UIPetStampListView:InitGenerate__6(Root, data)
  143. --[[
  144. UIAnimator/Window/Bg/TopItem
  145. --]]
  146. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.topItem = tmp
  151. end
  152. ---@private
  153. function UIPetStampListView:InitGenerate__7(Root, data)
  154. --[[
  155. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem
  156. --]]
  157. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem").gameObject
  158. if tolua.getpeer(tmp) == nil then
  159. tolua.setpeer(tmp, {})
  160. end
  161. self.equipListEquippedItem = tmp
  162. end
  163. ---@private
  164. function UIPetStampListView:InitGenerate__8(Root, data)
  165. --[[
  166. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem
  167. --]]
  168. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.contentItem = tmp
  173. end
  174. ---@private
  175. function UIPetStampListView:InitGenerate__9(Root, data)
  176. --[[
  177. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem/IconItem
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem/IconItem").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  184. self.iconItem.prefabName = "IconItem"
  185. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  186. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  187. end
  188. ---@private
  189. function UIPetStampListView:InitGenerate__10(Root, data)
  190. --[[
  191. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/TextName
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/TextName").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.topItem.textName = tmp
  198. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  199. end
  200. ---@private
  201. function UIPetStampListView:InitGenerate__11(Root, data)
  202. --[[
  203. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/EquipBaseAttrItem
  204. --]]
  205. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/EquipBaseAttrItem").gameObject
  206. if tolua.getpeer(tmp) == nil then
  207. tolua.setpeer(tmp, {})
  208. end
  209. self.equipBaseAttrItem = CommonUtil.BindGridViewItem2LuaStatic("EquipBaseAttrItem", tmp)
  210. self.equipBaseAttrItem.prefabName = "EquipBaseAttrItem"
  211. end
  212. ---@private
  213. function UIPetStampListView:InitGenerate__12(Root, data)
  214. --[[
  215. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/Grid
  216. --]]
  217. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/Grid").gameObject
  218. if tolua.getpeer(tmp) == nil then
  219. tolua.setpeer(tmp, {})
  220. end
  221. self.topItem.grid = tmp
  222. end
  223. ---@private
  224. function UIPetStampListView:InitGenerate__13(Root, data)
  225. --[[
  226. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/Equiped
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/Equiped").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.equiped = tmp
  233. end
  234. ---@private
  235. function UIPetStampListView:InitGenerate__14(Root, data)
  236. --[[
  237. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnChange
  238. --]]
  239. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnChange").gameObject
  240. if tolua.getpeer(tmp) == nil then
  241. tolua.setpeer(tmp, {})
  242. end
  243. self.btnChange = tmp
  244. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  245. end
  246. ---@private
  247. function UIPetStampListView:InitGenerate__15(Root, data)
  248. --[[
  249. UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnDown
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnDown").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.btnDown = tmp
  256. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  257. end
  258. ---@private
  259. function UIPetStampListView:InitGenerate__16(Root, data)
  260. --[[
  261. UIAnimator/Window/Bg/TopItem/EquipBlank
  262. --]]
  263. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipBlank").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.equipBlank = tmp
  268. end
  269. ---@private
  270. function UIPetStampListView:InitGenerate__17(Root, data)
  271. --[[
  272. UIAnimator/Window/Bg/ScrollView
  273. --]]
  274. local tmp = Root:Find("UIAnimator/Window/Bg/ScrollView").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.scrollView = tmp
  279. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  280. end
  281. ---@private
  282. function UIPetStampListView:InitGenerate__18(Root, data)
  283. --[[
  284. UIAnimator/Window/Bg/ScrollView/Viewport/Content/EquipListItem
  285. --]]
  286. local tmp = Root:Find("UIAnimator/Window/Bg/ScrollView/Viewport/Content/EquipListItem").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.equipListItem = CommonUtil.BindGridViewItem2LuaStatic("EquipListItem", tmp)
  291. self.equipListItem.prefabName = "EquipListItem"
  292. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  293. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  294. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  295. end
  296. ---@private
  297. function UIPetStampListView:GenerateDestroy()
  298. if tolua.getpeer(self.topItem.grid) ~= nil then
  299. tolua.setpeer(self.topItem.grid, nil)
  300. end
  301. if tolua.getpeer(self.topItem.textName) ~= nil then
  302. tolua.setpeer(self.topItem.textName, nil)
  303. end
  304. if tolua.getpeer(self.uIAnimator) ~= nil then
  305. tolua.setpeer(self.uIAnimator, nil)
  306. end
  307. self.uIAnimator = nil
  308. if tolua.getpeer(self.AnyBtn) ~= nil then
  309. tolua.setpeer(self.AnyBtn, nil)
  310. end
  311. self.AnyBtn = nil
  312. if tolua.getpeer(self.window) ~= nil then
  313. tolua.setpeer(self.window, nil)
  314. end
  315. self.window = nil
  316. if tolua.getpeer(self.btnClose) ~= nil then
  317. tolua.setpeer(self.btnClose, nil)
  318. end
  319. self.btnClose = nil
  320. if tolua.getpeer(self.topItem) ~= nil then
  321. tolua.setpeer(self.topItem, nil)
  322. end
  323. self.topItem = nil
  324. if tolua.getpeer(self.equipListEquippedItem) ~= nil then
  325. tolua.setpeer(self.equipListEquippedItem, nil)
  326. end
  327. self.equipListEquippedItem = nil
  328. if tolua.getpeer(self.contentItem) ~= nil then
  329. tolua.setpeer(self.contentItem, nil)
  330. end
  331. self.contentItem = nil
  332. if self.iconItem.GenerateDestroy ~= nil then
  333. self.iconItem:GenerateDestroy()
  334. end
  335. if tolua.getpeer(self.iconItem) ~= nil then
  336. tolua.setpeer(self.iconItem, nil)
  337. end
  338. self.iconItem = nil
  339. if self.equipBaseAttrItem.GenerateDestroy ~= nil then
  340. self.equipBaseAttrItem:GenerateDestroy()
  341. end
  342. if tolua.getpeer(self.equipBaseAttrItem) ~= nil then
  343. tolua.setpeer(self.equipBaseAttrItem, nil)
  344. end
  345. self.equipBaseAttrItem = nil
  346. if tolua.getpeer(self.equiped) ~= nil then
  347. tolua.setpeer(self.equiped, nil)
  348. end
  349. self.equiped = nil
  350. if tolua.getpeer(self.btnChange) ~= nil then
  351. tolua.setpeer(self.btnChange, nil)
  352. end
  353. self.btnChange = nil
  354. if tolua.getpeer(self.btnDown) ~= nil then
  355. tolua.setpeer(self.btnDown, nil)
  356. end
  357. self.btnDown = nil
  358. if tolua.getpeer(self.equipBlank) ~= nil then
  359. tolua.setpeer(self.equipBlank, nil)
  360. end
  361. self.equipBlank = nil
  362. if tolua.getpeer(self.scrollView) ~= nil then
  363. tolua.setpeer(self.scrollView, nil)
  364. end
  365. self.scrollView = nil
  366. if self.equipListItem.GenerateDestroy ~= nil then
  367. self.equipListItem:GenerateDestroy()
  368. end
  369. if tolua.getpeer(self.equipListItem) ~= nil then
  370. tolua.setpeer(self.equipListItem, nil)
  371. end
  372. self.equipListItem = nil
  373. self.transform = nil
  374. self.gameObject = nil
  375. self.inited = false
  376. end
  377. return UIPetStampListView