UIPayTips_Generate.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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")
  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. local tmp
  70. self:InitGenerate__1(Root,data)
  71. self:InitGenerate__2(Root,data)
  72. self:InitGenerate__3(Root,data)
  73. self:InitGenerate__4(Root,data)
  74. self:InitGenerate__5(Root,data)
  75. self:InitGenerate__6(Root,data)
  76. self:InitGenerate__7(Root,data)
  77. self:InitGenerate__8(Root,data)
  78. self:InitGenerate__9(Root,data)
  79. self:InitGenerate__10(Root,data)
  80. self:InitGenerate__11(Root,data)
  81. self:InitGenerate__12(Root,data)
  82. self:InitGenerate__13(Root,data)
  83. self:InitGenerate__14(Root,data)
  84. self:InitGenerate__15(Root,data)
  85. end
  86. ---@private
  87. function UIPayTipsView:InitGenerate__1(Root, data)
  88. --[[
  89. Root
  90. --]]
  91. end
  92. ---@private
  93. function UIPayTipsView:InitGenerate__2(Root, data)
  94. --[[
  95. UIAnimator
  96. --]]
  97. local tmp = Root:Find("UIAnimator").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.uIAnimator = tmp
  102. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  103. tmp.animator.logWarnings = false
  104. end
  105. ---@private
  106. function UIPayTipsView:InitGenerate__3(Root, data)
  107. --[[
  108. UIAnimator/Alpha
  109. --]]
  110. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.AnyBtn = tmp
  115. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  116. end
  117. ---@private
  118. function UIPayTipsView:InitGenerate__4(Root, data)
  119. --[[
  120. UIAnimator/Window/TextTitle
  121. --]]
  122. local tmp = Root:Find("UIAnimator/Window/TextTitle").gameObject
  123. if tolua.getpeer(tmp) == nil then
  124. tolua.setpeer(tmp, {})
  125. end
  126. self.textTitle = tmp
  127. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  128. end
  129. ---@private
  130. function UIPayTipsView:InitGenerate__5(Root, data)
  131. --[[
  132. UIAnimator/Window/BtnClose/BtnClose
  133. --]]
  134. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  135. if tolua.getpeer(tmp) == nil then
  136. tolua.setpeer(tmp, {})
  137. end
  138. self.btnClose = tmp
  139. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  140. end
  141. ---@private
  142. function UIPayTipsView:InitGenerate__6(Root, data)
  143. --[[
  144. UIAnimator/Window/Bottom/BtnDb
  145. --]]
  146. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.btnDb = tmp
  151. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  152. end
  153. ---@private
  154. function UIPayTipsView:InitGenerate__7(Root, data)
  155. --[[
  156. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice
  157. --]]
  158. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice").gameObject
  159. if tolua.getpeer(tmp) == nil then
  160. tolua.setpeer(tmp, {})
  161. end
  162. self.dbPrice = tmp
  163. end
  164. ---@private
  165. function UIPayTipsView:InitGenerate__8(Root, data)
  166. --[[
  167. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Icon
  168. --]]
  169. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Icon").gameObject
  170. if tolua.getpeer(tmp) == nil then
  171. tolua.setpeer(tmp, {})
  172. end
  173. self.dbPrice.icon = tmp
  174. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  175. end
  176. ---@private
  177. function UIPayTipsView:InitGenerate__9(Root, data)
  178. --[[
  179. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Currency
  180. --]]
  181. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Currency").gameObject
  182. if tolua.getpeer(tmp) == nil then
  183. tolua.setpeer(tmp, {})
  184. end
  185. self.dbPrice.currency = tmp
  186. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  187. end
  188. ---@private
  189. function UIPayTipsView:InitGenerate__10(Root, data)
  190. --[[
  191. UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Number
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnDb/Content/dbPrice/Number").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.dbPrice.number = tmp
  198. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  199. end
  200. ---@private
  201. function UIPayTipsView:InitGenerate__11(Root, data)
  202. --[[
  203. UIAnimator/Window/Bottom/BtnRmb
  204. --]]
  205. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb").gameObject
  206. if tolua.getpeer(tmp) == nil then
  207. tolua.setpeer(tmp, {})
  208. end
  209. self.btnRmb = tmp
  210. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  211. end
  212. ---@private
  213. function UIPayTipsView:InitGenerate__12(Root, data)
  214. --[[
  215. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice
  216. --]]
  217. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice").gameObject
  218. if tolua.getpeer(tmp) == nil then
  219. tolua.setpeer(tmp, {})
  220. end
  221. self.rmbPrice = tmp
  222. end
  223. ---@private
  224. function UIPayTipsView:InitGenerate__13(Root, data)
  225. --[[
  226. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Icon
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Icon").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.rmbPrice.icon = tmp
  233. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  234. end
  235. ---@private
  236. function UIPayTipsView:InitGenerate__14(Root, data)
  237. --[[
  238. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Currency
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Currency").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.rmbPrice.currency = tmp
  245. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  246. end
  247. ---@private
  248. function UIPayTipsView:InitGenerate__15(Root, data)
  249. --[[
  250. UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Number
  251. --]]
  252. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnRmb/Content/rmbPrice/Number").gameObject
  253. if tolua.getpeer(tmp) == nil then
  254. tolua.setpeer(tmp, {})
  255. end
  256. self.rmbPrice.number = tmp
  257. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  258. end
  259. ---@private
  260. function UIPayTipsView:GenerateDestroy()
  261. if tolua.getpeer(self.rmbPrice.number) ~= nil then
  262. tolua.setpeer(self.rmbPrice.number, nil)
  263. end
  264. if tolua.getpeer(self.rmbPrice.currency) ~= nil then
  265. tolua.setpeer(self.rmbPrice.currency, nil)
  266. end
  267. if tolua.getpeer(self.rmbPrice.icon) ~= nil then
  268. tolua.setpeer(self.rmbPrice.icon, nil)
  269. end
  270. if tolua.getpeer(self.dbPrice.number) ~= nil then
  271. tolua.setpeer(self.dbPrice.number, nil)
  272. end
  273. if tolua.getpeer(self.dbPrice.currency) ~= nil then
  274. tolua.setpeer(self.dbPrice.currency, nil)
  275. end
  276. if tolua.getpeer(self.dbPrice.icon) ~= nil then
  277. tolua.setpeer(self.dbPrice.icon, nil)
  278. end
  279. if tolua.getpeer(self.uIAnimator) ~= nil then
  280. tolua.setpeer(self.uIAnimator, nil)
  281. end
  282. self.uIAnimator = nil
  283. if tolua.getpeer(self.AnyBtn) ~= nil then
  284. tolua.setpeer(self.AnyBtn, nil)
  285. end
  286. self.AnyBtn = nil
  287. if tolua.getpeer(self.textTitle) ~= nil then
  288. tolua.setpeer(self.textTitle, nil)
  289. end
  290. self.textTitle = nil
  291. if tolua.getpeer(self.btnClose) ~= nil then
  292. tolua.setpeer(self.btnClose, nil)
  293. end
  294. self.btnClose = nil
  295. if tolua.getpeer(self.btnDb) ~= nil then
  296. tolua.setpeer(self.btnDb, nil)
  297. end
  298. self.btnDb = nil
  299. if tolua.getpeer(self.dbPrice) ~= nil then
  300. tolua.setpeer(self.dbPrice, nil)
  301. end
  302. self.dbPrice = nil
  303. if tolua.getpeer(self.btnRmb) ~= nil then
  304. tolua.setpeer(self.btnRmb, nil)
  305. end
  306. self.btnRmb = nil
  307. if tolua.getpeer(self.rmbPrice) ~= nil then
  308. tolua.setpeer(self.rmbPrice, nil)
  309. end
  310. self.rmbPrice = nil
  311. self.transform = nil
  312. self.gameObject = nil
  313. self.inited = false
  314. end
  315. return UIPayTipsView