UIShopBuyTips1_Generate.lua 8.2 KB

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