RuneShopLimitedItem_Generate.lua 7.5 KB

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