UIPayTipsView_Generate.lua 12 KB

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