UIShopGoldBuyTips_Generate.lua 8.8 KB

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