KeepSakeCollect_Generate.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. ---@class KeepSakeCollect__Generate_level
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public image UnityEngine.UI.Image
  4. ---@class KeepSakeCollect__Generate_cardLabel
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class KeepSakeCollect__Generate_frame
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class KeepSakeCollect__Generate_icon
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class KeepSakeCollect__Generate_bg
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public image UnityEngine.UI.Image
  16. ---@field public button UnityEngine.UI.Button
  17. ---@field public repeatButton UnityEngine.UI.RepeatButton
  18. ---@class KeepSakeCollect__Generate
  19. ---@field private gameObject UnityEngine.GameObject
  20. ---@field private transform UnityEngine.Transform
  21. ---@field private collectionIconItem UnityEngine.GameObject
  22. ---@field private bg KeepSakeCollect__Generate_bg
  23. ---@field private icon KeepSakeCollect__Generate_icon
  24. ---@field private frame KeepSakeCollect__Generate_frame
  25. ---@field private cardLabel KeepSakeCollect__Generate_cardLabel
  26. ---@field private level KeepSakeCollect__Generate_level
  27. ---@field private mask UnityEngine.GameObject
  28. ---@field private uIRedPointRP UnityEngine.GameObject
  29. local KeepSakeCollectView = class("KeepSakeCollectView")
  30. function KeepSakeCollectView:ctor()
  31. end
  32. ---@private
  33. function KeepSakeCollectView:SetActive(result)
  34. self.gameObject:SetActive(result)
  35. end
  36. ---@private
  37. function KeepSakeCollectView:InitGenerate(Root, data)
  38. self.transform = Root
  39. self.inited = true
  40. local tmp
  41. self:InitGenerate__1(Root,data)
  42. self:InitGenerate__2(Root,data)
  43. self:InitGenerate__3(Root,data)
  44. self:InitGenerate__4(Root,data)
  45. self:InitGenerate__5(Root,data)
  46. self:InitGenerate__6(Root,data)
  47. self:InitGenerate__7(Root,data)
  48. self:InitGenerate__8(Root,data)
  49. self:InitGenerate__9(Root,data)
  50. end
  51. ---@private
  52. function KeepSakeCollectView:InitGenerate__1(Root, data)
  53. --[[
  54. Root
  55. --]]
  56. end
  57. ---@private
  58. function KeepSakeCollectView:InitGenerate__2(Root, data)
  59. --[[
  60. CollectionIconItem
  61. --]]
  62. local tmp = Root:Find("CollectionIconItem").gameObject
  63. if tolua.getpeer(tmp) == nil then
  64. tolua.setpeer(tmp, {})
  65. end
  66. self.collectionIconItem = tmp
  67. end
  68. ---@private
  69. function KeepSakeCollectView:InitGenerate__3(Root, data)
  70. --[[
  71. CollectionIconItem/Bg
  72. --]]
  73. local tmp = Root:Find("CollectionIconItem/Bg").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.bg = tmp
  78. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  79. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  80. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  81. end
  82. ---@private
  83. function KeepSakeCollectView:InitGenerate__4(Root, data)
  84. --[[
  85. CollectionIconItem/Icon
  86. --]]
  87. local tmp = Root:Find("CollectionIconItem/Icon").gameObject
  88. if tolua.getpeer(tmp) == nil then
  89. tolua.setpeer(tmp, {})
  90. end
  91. self.icon = tmp
  92. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  93. end
  94. ---@private
  95. function KeepSakeCollectView:InitGenerate__5(Root, data)
  96. --[[
  97. CollectionIconItem/Frame
  98. --]]
  99. local tmp = Root:Find("CollectionIconItem/Frame").gameObject
  100. if tolua.getpeer(tmp) == nil then
  101. tolua.setpeer(tmp, {})
  102. end
  103. self.frame = tmp
  104. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  105. end
  106. ---@private
  107. function KeepSakeCollectView:InitGenerate__6(Root, data)
  108. --[[
  109. CollectionIconItem/CardLabel
  110. --]]
  111. local tmp = Root:Find("CollectionIconItem/CardLabel").gameObject
  112. if tolua.getpeer(tmp) == nil then
  113. tolua.setpeer(tmp, {})
  114. end
  115. self.cardLabel = tmp
  116. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  117. end
  118. ---@private
  119. function KeepSakeCollectView:InitGenerate__7(Root, data)
  120. --[[
  121. CollectionIconItem/Level
  122. --]]
  123. local tmp = Root:Find("CollectionIconItem/Level").gameObject
  124. if tolua.getpeer(tmp) == nil then
  125. tolua.setpeer(tmp, {})
  126. end
  127. self.level = tmp
  128. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  129. end
  130. ---@private
  131. function KeepSakeCollectView:InitGenerate__8(Root, data)
  132. --[[
  133. CollectionIconItem/Mask
  134. --]]
  135. local tmp = Root:Find("CollectionIconItem/Mask").gameObject
  136. if tolua.getpeer(tmp) == nil then
  137. tolua.setpeer(tmp, {})
  138. end
  139. self.mask = tmp
  140. end
  141. ---@private
  142. function KeepSakeCollectView:InitGenerate__9(Root, data)
  143. --[[
  144. UIRedPointRP
  145. --]]
  146. local tmp = Root:Find("UIRedPointRP").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.uIRedPointRP = tmp
  151. end
  152. ---@private
  153. function KeepSakeCollectView:GenerateDestroy()
  154. if tolua.getpeer(self.collectionIconItem) ~= nil then
  155. tolua.setpeer(self.collectionIconItem, nil)
  156. end
  157. self.collectionIconItem = nil
  158. if tolua.getpeer(self.bg) ~= nil then
  159. tolua.setpeer(self.bg, nil)
  160. end
  161. self.bg = nil
  162. if tolua.getpeer(self.icon) ~= nil then
  163. tolua.setpeer(self.icon, nil)
  164. end
  165. self.icon = nil
  166. if tolua.getpeer(self.frame) ~= nil then
  167. tolua.setpeer(self.frame, nil)
  168. end
  169. self.frame = nil
  170. if tolua.getpeer(self.cardLabel) ~= nil then
  171. tolua.setpeer(self.cardLabel, nil)
  172. end
  173. self.cardLabel = nil
  174. if tolua.getpeer(self.level) ~= nil then
  175. tolua.setpeer(self.level, nil)
  176. end
  177. self.level = nil
  178. if tolua.getpeer(self.mask) ~= nil then
  179. tolua.setpeer(self.mask, nil)
  180. end
  181. self.mask = nil
  182. if tolua.getpeer(self.uIRedPointRP) ~= nil then
  183. tolua.setpeer(self.uIRedPointRP, nil)
  184. end
  185. self.uIRedPointRP = nil
  186. self.transform = nil
  187. self.gameObject = nil
  188. self.inited = false
  189. end
  190. return KeepSakeCollectView