UIRuneShopBuyTipsView_Generate.lua 8.4 KB

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