UIRuneShopGoldBuyTipsView_Generate.lua 9.0 KB

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