UIPayTipsView_Generate.lua 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. ---@class UIPayTips__Generate_rmbPrice_number
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIPayTips__Generate_rmbPrice_currency
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIPayTips__Generate_rmbPrice_icon
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIPayTips__Generate_rmbPrice
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public icon UIPayTips__Generate_rmbPrice_icon
  13. ---@field public currency UIPayTips__Generate_rmbPrice_currency
  14. ---@field public number UIPayTips__Generate_rmbPrice_number
  15. ---@class UIPayTips__Generate_btnRmb
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public button UnityEngine.UI.Button
  18. ---@class UIPayTips__Generate_dbPrice_number
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public text UnityEngine.UI.Text
  21. ---@class UIPayTips__Generate_dbPrice_currency
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public text TMPro.TextMeshProUGUI
  24. ---@class UIPayTips__Generate_dbPrice_icon
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public image UnityEngine.UI.Image
  27. ---@class UIPayTips__Generate_dbPrice
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public icon UIPayTips__Generate_dbPrice_icon
  30. ---@field public currency UIPayTips__Generate_dbPrice_currency
  31. ---@field public number UIPayTips__Generate_dbPrice_number
  32. ---@class UIPayTips__Generate_btnDb
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public button UnityEngine.UI.Button
  35. ---@class UIPayTips__Generate_btnClose
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public button UnityEngine.UI.Button
  38. ---@class UIPayTips__Generate_textTitle
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public text TMPro.TextMeshProUGUI
  41. ---@class UIPayTips__Generate_AnyBtn
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public button UnityEngine.UI.Button
  44. ---@class UIPayTips__Generate_uIAnimator
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public animator UnityEngine.Animator
  47. ---@class UIPayTips__Generate
  48. ---@field private gameObject UnityEngine.GameObject
  49. ---@field private transform UnityEngine.Transform
  50. ---@field private uIAnimator UIPayTips__Generate_uIAnimator
  51. ---@field private AnyBtn UIPayTips__Generate_AnyBtn
  52. ---@field private textTitle UIPayTips__Generate_textTitle
  53. ---@field private btnClose UIPayTips__Generate_btnClose
  54. ---@field private btnDb UIPayTips__Generate_btnDb
  55. ---@field private dbPrice UIPayTips__Generate_dbPrice
  56. ---@field private btnRmb UIPayTips__Generate_btnRmb
  57. ---@field private rmbPrice UIPayTips__Generate_rmbPrice
  58. local UIPayTipsView = class("UIPayTipsView", require("UIViewBase"))
  59. function UIPayTipsView:ctor()
  60. end
  61. ---@private
  62. function UIPayTipsView:SetActive(result)
  63. self.gameObject:SetActive(result)
  64. end
  65. ---@private
  66. function UIPayTipsView:InitGenerate(Root, data)
  67. self.transform = Root
  68. self.inited = true
  69. if self.super.Init then
  70. self.super.Init(self)
  71. end
  72. local tmp
  73. self:InitGenerate__1(Root,data)
  74. self:InitGenerate__2(Root,data)
  75. self:InitGenerate__3(Root,data)
  76. self:InitGenerate__4(Root,data)
  77. self:InitGenerate__5(Root,data)
  78. self:InitGenerate__6(Root,data)
  79. self:InitGenerate__7(Root,data)
  80. self:InitGenerate__8(Root,data)
  81. self:InitGenerate__9(Root,data)
  82. self:InitGenerate__10(Root,data)
  83. self:InitGenerate__11(Root,data)
  84. self:InitGenerate__12(Root,data)
  85. self:InitGenerate__13(Root,data)
  86. self:InitGenerate__14(Root,data)
  87. self:InitGenerate__15(Root,data)
  88. end
  89. ---@private
  90. function UIPayTipsView:InitGenerate__1(Root, data)
  91. --[[
  92. Root
  93. --]]
  94. end
  95. ---@private
  96. function UIPayTipsView:InitGenerate__2(Root, data)
  97. --[[
  98. UIAnimator
  99. --]]
  100. local tmp = Root:Find("UIAnimator").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.uIAnimator = tmp
  105. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  106. tmp.animator.logWarnings = false
  107. end
  108. ---@private
  109. function UIPayTipsView:InitGenerate__3(Root, data)
  110. --[[
  111. UIAnimator/Alpha
  112. --]]
  113. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  114. if tolua.getpeer(tmp) == nil then
  115. tolua.setpeer(tmp, {})
  116. end
  117. self.AnyBtn = tmp
  118. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  119. end
  120. ---@private
  121. function UIPayTipsView:InitGenerate__4(Root, data)
  122. --[[
  123. UIAnimator/Window/TextTitle
  124. --]]
  125. local tmp = Root:Find("UIAnimator/Window/TextTitle").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.textTitle = tmp
  130. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  131. end
  132. ---@private
  133. function UIPayTipsView:InitGenerate__5(Root, data)
  134. --[[
  135. UIAnimator/Window/BtnClose/BtnClose
  136. --]]
  137. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.btnClose = tmp
  142. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  143. end
  144. ---@private
  145. function UIPayTipsView:InitGenerate__6(Root, data)
  146. --[[
  147. UIAnimator/Window/Bottom/BtnDb
  148. --]]
  149. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.btnDb = tmp
  154. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  155. end
  156. ---@private
  157. function UIPayTipsView:InitGenerate__7(Root, data)
  158. --[[
  159. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice
  160. --]]
  161. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.dbPrice = tmp
  166. end
  167. ---@private
  168. function UIPayTipsView:InitGenerate__8(Root, data)
  169. --[[
  170. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Icon
  171. --]]
  172. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Icon").gameObject
  173. if tolua.getpeer(tmp) == nil then
  174. tolua.setpeer(tmp, {})
  175. end
  176. self.dbPrice.icon = tmp
  177. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  178. end
  179. ---@private
  180. function UIPayTipsView:InitGenerate__9(Root, data)
  181. --[[
  182. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Currency
  183. --]]
  184. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Currency").gameObject
  185. if tolua.getpeer(tmp) == nil then
  186. tolua.setpeer(tmp, {})
  187. end
  188. self.dbPrice.currency = tmp
  189. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  190. end
  191. ---@private
  192. function UIPayTipsView:InitGenerate__10(Root, data)
  193. --[[
  194. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Number
  195. --]]
  196. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Number").gameObject
  197. if tolua.getpeer(tmp) == nil then
  198. tolua.setpeer(tmp, {})
  199. end
  200. self.dbPrice.number = tmp
  201. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  202. end
  203. ---@private
  204. function UIPayTipsView:InitGenerate__11(Root, data)
  205. --[[
  206. UIAnimator/Window/Bottom/BtnRmb
  207. --]]
  208. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.btnRmb = tmp
  213. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  214. end
  215. ---@private
  216. function UIPayTipsView:InitGenerate__12(Root, data)
  217. --[[
  218. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice
  219. --]]
  220. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice").gameObject
  221. if tolua.getpeer(tmp) == nil then
  222. tolua.setpeer(tmp, {})
  223. end
  224. self.rmbPrice = tmp
  225. end
  226. ---@private
  227. function UIPayTipsView:InitGenerate__13(Root, data)
  228. --[[
  229. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Icon
  230. --]]
  231. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Icon").gameObject
  232. if tolua.getpeer(tmp) == nil then
  233. tolua.setpeer(tmp, {})
  234. end
  235. self.rmbPrice.icon = tmp
  236. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  237. end
  238. ---@private
  239. function UIPayTipsView:InitGenerate__14(Root, data)
  240. --[[
  241. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Currency
  242. --]]
  243. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Currency").gameObject
  244. if tolua.getpeer(tmp) == nil then
  245. tolua.setpeer(tmp, {})
  246. end
  247. self.rmbPrice.currency = tmp
  248. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  249. end
  250. ---@private
  251. function UIPayTipsView:InitGenerate__15(Root, data)
  252. --[[
  253. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Number
  254. --]]
  255. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Number").gameObject
  256. if tolua.getpeer(tmp) == nil then
  257. tolua.setpeer(tmp, {})
  258. end
  259. self.rmbPrice.number = tmp
  260. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  261. end
  262. ---@private
  263. function UIPayTipsView:GenerateDestroy()
  264. if tolua.getpeer(self.rmbPrice.number) ~= nil then
  265. tolua.setpeer(self.rmbPrice.number, nil)
  266. end
  267. if tolua.getpeer(self.rmbPrice.currency) ~= nil then
  268. tolua.setpeer(self.rmbPrice.currency, nil)
  269. end
  270. if tolua.getpeer(self.rmbPrice.icon) ~= nil then
  271. tolua.setpeer(self.rmbPrice.icon, nil)
  272. end
  273. if tolua.getpeer(self.dbPrice.number) ~= nil then
  274. tolua.setpeer(self.dbPrice.number, nil)
  275. end
  276. if tolua.getpeer(self.dbPrice.currency) ~= nil then
  277. tolua.setpeer(self.dbPrice.currency, nil)
  278. end
  279. if tolua.getpeer(self.dbPrice.icon) ~= nil then
  280. tolua.setpeer(self.dbPrice.icon, nil)
  281. end
  282. if tolua.getpeer(self.uIAnimator) ~= nil then
  283. tolua.setpeer(self.uIAnimator, nil)
  284. end
  285. self.uIAnimator = nil
  286. if tolua.getpeer(self.AnyBtn) ~= nil then
  287. tolua.setpeer(self.AnyBtn, nil)
  288. end
  289. self.AnyBtn = nil
  290. if tolua.getpeer(self.textTitle) ~= nil then
  291. tolua.setpeer(self.textTitle, nil)
  292. end
  293. self.textTitle = nil
  294. if tolua.getpeer(self.btnClose) ~= nil then
  295. tolua.setpeer(self.btnClose, nil)
  296. end
  297. self.btnClose = nil
  298. if tolua.getpeer(self.btnDb) ~= nil then
  299. tolua.setpeer(self.btnDb, nil)
  300. end
  301. self.btnDb = nil
  302. if tolua.getpeer(self.dbPrice) ~= nil then
  303. tolua.setpeer(self.dbPrice, nil)
  304. end
  305. self.dbPrice = nil
  306. if tolua.getpeer(self.btnRmb) ~= nil then
  307. tolua.setpeer(self.btnRmb, nil)
  308. end
  309. self.btnRmb = nil
  310. if tolua.getpeer(self.rmbPrice) ~= nil then
  311. tolua.setpeer(self.rmbPrice, nil)
  312. end
  313. self.rmbPrice = nil
  314. self.transform = nil
  315. self.gameObject = nil
  316. self.inited = false
  317. end
  318. return UIPayTipsView