CardIconBigItemNew_Generate.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. ---@class CardIconBigItemNew__Generate_cardName
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class CardIconBigItemNew__Generate_btnRemove
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@field public repeatButton UnityEngine.UI.RepeatButton
  8. ---@class CardIconBigItemNew__Generate_lock_text
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public uILocalizeScript UILocalizeScript
  11. ---@class CardIconBigItemNew__Generate_lock
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public text CardIconBigItemNew__Generate_lock_text
  14. ---@class CardIconBigItemNew__Generate_add
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class CardIconBigItemNew__Generate_bg
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public image UnityEngine.UI.Image
  20. ---@field public button UnityEngine.UI.Button
  21. ---@field public repeatButton UnityEngine.UI.RepeatButton
  22. ---@class CardIconBigItemNew__Generate
  23. ---@field private gameObject UnityEngine.GameObject
  24. ---@field private transform UnityEngine.Transform
  25. ---@field private bg CardIconBigItemNew__Generate_bg
  26. ---@field private iconItem UnityEngine.GameObject
  27. ---@field private mask UnityEngine.GameObject
  28. ---@field private selected UnityEngine.GameObject
  29. ---@field private add CardIconBigItemNew__Generate_add
  30. ---@field private lock CardIconBigItemNew__Generate_lock
  31. ---@field private lockLabel UnityEngine.GameObject
  32. ---@field private btnRemove CardIconBigItemNew__Generate_btnRemove
  33. ---@field private cardName CardIconBigItemNew__Generate_cardName
  34. local CardIconBigItemNewView = class("CardIconBigItemNewView")
  35. function CardIconBigItemNewView:ctor()
  36. end
  37. ---@private
  38. function CardIconBigItemNewView:SetActive(result)
  39. self.gameObject:SetActive(result)
  40. end
  41. ---@private
  42. function CardIconBigItemNewView:InitGenerate(Root, data)
  43. self.transform = Root
  44. self.inited = true
  45. local tmp
  46. self:InitGenerate__1(Root,data)
  47. self:InitGenerate__2(Root,data)
  48. self:InitGenerate__3(Root,data)
  49. self:InitGenerate__4(Root,data)
  50. self:InitGenerate__5(Root,data)
  51. self:InitGenerate__6(Root,data)
  52. self:InitGenerate__7(Root,data)
  53. self:InitGenerate__8(Root,data)
  54. self:InitGenerate__9(Root,data)
  55. self:InitGenerate__10(Root,data)
  56. self:InitGenerate__11(Root,data)
  57. end
  58. ---@private
  59. function CardIconBigItemNewView:InitGenerate__1(Root, data)
  60. --[[
  61. Root
  62. --]]
  63. end
  64. ---@private
  65. function CardIconBigItemNewView:InitGenerate__2(Root, data)
  66. --[[
  67. Bg
  68. --]]
  69. local tmp = Root:Find("Bg").gameObject
  70. if tolua.getpeer(tmp) == nil then
  71. tolua.setpeer(tmp, {})
  72. end
  73. self.bg = tmp
  74. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  75. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  76. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  77. end
  78. ---@private
  79. function CardIconBigItemNewView:InitGenerate__3(Root, data)
  80. --[[
  81. IconItem
  82. --]]
  83. local tmp = Root:Find("IconItem").gameObject
  84. if tolua.getpeer(tmp) == nil then
  85. tolua.setpeer(tmp, {})
  86. end
  87. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  88. self.iconItem.prefabName = "IconItem"
  89. end
  90. ---@private
  91. function CardIconBigItemNewView:InitGenerate__4(Root, data)
  92. --[[
  93. Mask
  94. --]]
  95. local tmp = Root:Find("Mask").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.mask = tmp
  100. end
  101. ---@private
  102. function CardIconBigItemNewView:InitGenerate__5(Root, data)
  103. --[[
  104. Selected
  105. --]]
  106. local tmp = Root:Find("Selected").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.selected = tmp
  111. end
  112. ---@private
  113. function CardIconBigItemNewView:InitGenerate__6(Root, data)
  114. --[[
  115. Add
  116. --]]
  117. local tmp = Root:Find("Add").gameObject
  118. if tolua.getpeer(tmp) == nil then
  119. tolua.setpeer(tmp, {})
  120. end
  121. self.add = tmp
  122. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  123. end
  124. ---@private
  125. function CardIconBigItemNewView:InitGenerate__7(Root, data)
  126. --[[
  127. Lock
  128. --]]
  129. local tmp = Root:Find("Lock").gameObject
  130. if tolua.getpeer(tmp) == nil then
  131. tolua.setpeer(tmp, {})
  132. end
  133. self.lock = tmp
  134. end
  135. ---@private
  136. function CardIconBigItemNewView:InitGenerate__8(Root, data)
  137. --[[
  138. Lock/LockLabel
  139. --]]
  140. local tmp = Root:Find("Lock/LockLabel").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.lockLabel = tmp
  145. end
  146. ---@private
  147. function CardIconBigItemNewView:InitGenerate__9(Root, data)
  148. --[[
  149. Lock/LockLabel/Text
  150. --]]
  151. local tmp = Root:Find("Lock/LockLabel/Text").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.lock.text = tmp
  156. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  157. end
  158. ---@private
  159. function CardIconBigItemNewView:InitGenerate__10(Root, data)
  160. --[[
  161. BtnRemove
  162. --]]
  163. local tmp = Root:Find("BtnRemove").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.btnRemove = tmp
  168. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  169. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  170. end
  171. ---@private
  172. function CardIconBigItemNewView:InitGenerate__11(Root, data)
  173. --[[
  174. Name
  175. --]]
  176. local tmp = Root:Find("Name").gameObject
  177. if tolua.getpeer(tmp) == nil then
  178. tolua.setpeer(tmp, {})
  179. end
  180. self.cardName = tmp
  181. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  182. end
  183. ---@private
  184. function CardIconBigItemNewView:GenerateDestroy()
  185. if tolua.getpeer(self.lock.text) ~= nil then
  186. tolua.setpeer(self.lock.text, nil)
  187. end
  188. if tolua.getpeer(self.bg) ~= nil then
  189. tolua.setpeer(self.bg, nil)
  190. end
  191. self.bg = nil
  192. if self.iconItem.GenerateDestroy ~= nil then
  193. self.iconItem:GenerateDestroy()
  194. end
  195. if tolua.getpeer(self.iconItem) ~= nil then
  196. tolua.setpeer(self.iconItem, nil)
  197. end
  198. self.iconItem = nil
  199. if tolua.getpeer(self.mask) ~= nil then
  200. tolua.setpeer(self.mask, nil)
  201. end
  202. self.mask = nil
  203. if tolua.getpeer(self.selected) ~= nil then
  204. tolua.setpeer(self.selected, nil)
  205. end
  206. self.selected = nil
  207. if tolua.getpeer(self.add) ~= nil then
  208. tolua.setpeer(self.add, nil)
  209. end
  210. self.add = nil
  211. if tolua.getpeer(self.lock) ~= nil then
  212. tolua.setpeer(self.lock, nil)
  213. end
  214. self.lock = nil
  215. if tolua.getpeer(self.lockLabel) ~= nil then
  216. tolua.setpeer(self.lockLabel, nil)
  217. end
  218. self.lockLabel = nil
  219. if tolua.getpeer(self.btnRemove) ~= nil then
  220. tolua.setpeer(self.btnRemove, nil)
  221. end
  222. self.btnRemove = nil
  223. if tolua.getpeer(self.cardName) ~= nil then
  224. tolua.setpeer(self.cardName, nil)
  225. end
  226. self.cardName = nil
  227. self.transform = nil
  228. self.gameObject = nil
  229. self.inited = false
  230. end
  231. return CardIconBigItemNewView