UICardEquipListView_Generate.lua 7.2 KB

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