UIDojoBattleWinView_Generate.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. ---@class UIDojoBattleWin__Generate_winCount
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text TMPro.TextMeshProUGUI
  4. ---@class UIDojoBattleWin__Generate_deltaScoreText
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIDojoBattleWin__Generate_newScoreText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIDojoBattleWin__Generate_oldScoreText
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UIDojoBattleWin__Generate_CruiseVipTag_number
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text TMPro.TextMeshProUGUI
  16. ---@class UIDojoBattleWin__Generate_CruiseVipTag_icon
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public image UnityEngine.UI.Image
  19. ---@class UIDojoBattleWin__Generate_CruiseVipTag
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public icon UIDojoBattleWin__Generate_CruiseVipTag_icon
  22. ---@field public number UIDojoBattleWin__Generate_CruiseVipTag_number
  23. ---@class UIDojoBattleWin__Generate_CruiseLbl
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public text UnityEngine.UI.Text
  26. ---@class UIDojoBattleWin__Generate_ZenyLbl
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public text UnityEngine.UI.Text
  29. ---@class UIDojoBattleWin__Generate_AnyBtn
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public button UnityEngine.UI.Button
  32. ---@class UIDojoBattleWin__Generate
  33. ---@field private gameObject UnityEngine.GameObject
  34. ---@field private transform UnityEngine.Transform
  35. ---@field private popWinAnim UnityEngine.GameObject
  36. ---@field private AnyBtn UIDojoBattleWin__Generate_AnyBtn
  37. ---@field private window UnityEngine.GameObject
  38. ---@field private ZenyLbl UIDojoBattleWin__Generate_ZenyLbl
  39. ---@field private CruiseLbl UIDojoBattleWin__Generate_CruiseLbl
  40. ---@field private CruiseVipTag UIDojoBattleWin__Generate_CruiseVipTag
  41. ---@field private oldScoreText UIDojoBattleWin__Generate_oldScoreText
  42. ---@field private newScoreText UIDojoBattleWin__Generate_newScoreText
  43. ---@field private deltaScoreText UIDojoBattleWin__Generate_deltaScoreText
  44. ---@field private winNode UnityEngine.GameObject
  45. ---@field private winBg1 UnityEngine.GameObject
  46. ---@field private winBg2 UnityEngine.GameObject
  47. ---@field private winBg3 UnityEngine.GameObject
  48. ---@field private winCount UIDojoBattleWin__Generate_winCount
  49. local UIDojoBattleWinView = class("UIDojoBattleWinView", require("UIViewBase"))
  50. function UIDojoBattleWinView:ctor()
  51. end
  52. ---@private
  53. function UIDojoBattleWinView:SetActive(result)
  54. self.gameObject:SetActive(result)
  55. end
  56. ---@private
  57. function UIDojoBattleWinView:InitGenerate(Root, data)
  58. self.transform = Root
  59. self.inited = true
  60. if self.super.Init then
  61. self.super.Init(self)
  62. end
  63. local tmp
  64. self:InitGenerate__1(Root,data)
  65. self:InitGenerate__2(Root,data)
  66. self:InitGenerate__3(Root,data)
  67. self:InitGenerate__4(Root,data)
  68. self:InitGenerate__5(Root,data)
  69. self:InitGenerate__6(Root,data)
  70. self:InitGenerate__7(Root,data)
  71. self:InitGenerate__8(Root,data)
  72. self:InitGenerate__9(Root,data)
  73. self:InitGenerate__10(Root,data)
  74. self:InitGenerate__11(Root,data)
  75. self:InitGenerate__12(Root,data)
  76. self:InitGenerate__13(Root,data)
  77. self:InitGenerate__14(Root,data)
  78. self:InitGenerate__15(Root,data)
  79. self:InitGenerate__16(Root,data)
  80. end
  81. ---@private
  82. function UIDojoBattleWinView:InitGenerate__1(Root, data)
  83. --[[
  84. PopWinAnim
  85. --]]
  86. local tmp = Root:Find("PopWinAnim").gameObject
  87. if tolua.getpeer(tmp) == nil then
  88. tolua.setpeer(tmp, {})
  89. end
  90. self.popWinAnim = tmp
  91. end
  92. ---@private
  93. function UIDojoBattleWinView:InitGenerate__2(Root, data)
  94. --[[
  95. PopWinAnim/Alpha
  96. --]]
  97. local tmp = Root:Find("PopWinAnim/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 UIDojoBattleWinView:InitGenerate__3(Root, data)
  106. --[[
  107. PopWinAnim/Window
  108. --]]
  109. local tmp = Root:Find("PopWinAnim/Window").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.window = tmp
  114. end
  115. ---@private
  116. function UIDojoBattleWinView:InitGenerate__4(Root, data)
  117. --[[
  118. PopWinAnim/Window/BG/ReceiveRes/Zeny/Text
  119. --]]
  120. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Zeny/Text").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.ZenyLbl = tmp
  125. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  126. end
  127. ---@private
  128. function UIDojoBattleWinView:InitGenerate__5(Root, data)
  129. --[[
  130. PopWinAnim/Window/BG/ReceiveRes/Cruise/Text
  131. --]]
  132. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/Text").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.CruiseLbl = tmp
  137. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  138. end
  139. ---@private
  140. function UIDojoBattleWinView:InitGenerate__6(Root, data)
  141. --[[
  142. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag
  143. --]]
  144. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.CruiseVipTag = tmp
  149. end
  150. ---@private
  151. function UIDojoBattleWinView:InitGenerate__7(Root, data)
  152. --[[
  153. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Icon
  154. --]]
  155. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Icon").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.CruiseVipTag.icon = tmp
  160. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  161. end
  162. ---@private
  163. function UIDojoBattleWinView:InitGenerate__8(Root, data)
  164. --[[
  165. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Number
  166. --]]
  167. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Number").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.CruiseVipTag.number = tmp
  172. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  173. end
  174. ---@private
  175. function UIDojoBattleWinView:InitGenerate__9(Root, data)
  176. --[[
  177. PopWinAnim/Window/BG/ReceiveRes/Score/Val
  178. --]]
  179. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/Val").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.oldScoreText = tmp
  184. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  185. end
  186. ---@private
  187. function UIDojoBattleWinView:InitGenerate__10(Root, data)
  188. --[[
  189. PopWinAnim/Window/BG/ReceiveRes/Score/NewVal
  190. --]]
  191. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/NewVal").gameObject
  192. if tolua.getpeer(tmp) == nil then
  193. tolua.setpeer(tmp, {})
  194. end
  195. self.newScoreText = tmp
  196. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  197. end
  198. ---@private
  199. function UIDojoBattleWinView:InitGenerate__11(Root, data)
  200. --[[
  201. PopWinAnim/Window/BG/ReceiveRes/Score/AddVal
  202. --]]
  203. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/AddVal").gameObject
  204. if tolua.getpeer(tmp) == nil then
  205. tolua.setpeer(tmp, {})
  206. end
  207. self.deltaScoreText = tmp
  208. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  209. end
  210. ---@private
  211. function UIDojoBattleWinView:InitGenerate__12(Root, data)
  212. --[[
  213. PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak
  214. --]]
  215. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.winNode = tmp
  220. end
  221. ---@private
  222. function UIDojoBattleWinView:InitGenerate__13(Root, data)
  223. --[[
  224. PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic01
  225. --]]
  226. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic01").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.winBg1 = tmp
  231. end
  232. ---@private
  233. function UIDojoBattleWinView:InitGenerate__14(Root, data)
  234. --[[
  235. PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic02
  236. --]]
  237. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic02").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.winBg2 = tmp
  242. end
  243. ---@private
  244. function UIDojoBattleWinView:InitGenerate__15(Root, data)
  245. --[[
  246. PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic03
  247. --]]
  248. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Pic03").gameObject
  249. if tolua.getpeer(tmp) == nil then
  250. tolua.setpeer(tmp, {})
  251. end
  252. self.winBg3 = tmp
  253. end
  254. ---@private
  255. function UIDojoBattleWinView:InitGenerate__16(Root, data)
  256. --[[
  257. PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Number
  258. --]]
  259. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/WinningStreak/Number").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.winCount = tmp
  264. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  265. end
  266. ---@private
  267. function UIDojoBattleWinView:GenerateDestroy()
  268. if tolua.getpeer(self.CruiseVipTag.number) ~= nil then
  269. tolua.setpeer(self.CruiseVipTag.number, nil)
  270. end
  271. if tolua.getpeer(self.CruiseVipTag.icon) ~= nil then
  272. tolua.setpeer(self.CruiseVipTag.icon, nil)
  273. end
  274. if tolua.getpeer(self.popWinAnim) ~= nil then
  275. tolua.setpeer(self.popWinAnim, nil)
  276. end
  277. self.popWinAnim = nil
  278. if tolua.getpeer(self.AnyBtn) ~= nil then
  279. tolua.setpeer(self.AnyBtn, nil)
  280. end
  281. self.AnyBtn = nil
  282. if tolua.getpeer(self.window) ~= nil then
  283. tolua.setpeer(self.window, nil)
  284. end
  285. self.window = nil
  286. if tolua.getpeer(self.ZenyLbl) ~= nil then
  287. tolua.setpeer(self.ZenyLbl, nil)
  288. end
  289. self.ZenyLbl = nil
  290. if tolua.getpeer(self.CruiseLbl) ~= nil then
  291. tolua.setpeer(self.CruiseLbl, nil)
  292. end
  293. self.CruiseLbl = nil
  294. if tolua.getpeer(self.CruiseVipTag) ~= nil then
  295. tolua.setpeer(self.CruiseVipTag, nil)
  296. end
  297. self.CruiseVipTag = nil
  298. if tolua.getpeer(self.oldScoreText) ~= nil then
  299. tolua.setpeer(self.oldScoreText, nil)
  300. end
  301. self.oldScoreText = nil
  302. if tolua.getpeer(self.newScoreText) ~= nil then
  303. tolua.setpeer(self.newScoreText, nil)
  304. end
  305. self.newScoreText = nil
  306. if tolua.getpeer(self.deltaScoreText) ~= nil then
  307. tolua.setpeer(self.deltaScoreText, nil)
  308. end
  309. self.deltaScoreText = nil
  310. if tolua.getpeer(self.winNode) ~= nil then
  311. tolua.setpeer(self.winNode, nil)
  312. end
  313. self.winNode = nil
  314. if tolua.getpeer(self.winBg1) ~= nil then
  315. tolua.setpeer(self.winBg1, nil)
  316. end
  317. self.winBg1 = nil
  318. if tolua.getpeer(self.winBg2) ~= nil then
  319. tolua.setpeer(self.winBg2, nil)
  320. end
  321. self.winBg2 = nil
  322. if tolua.getpeer(self.winBg3) ~= nil then
  323. tolua.setpeer(self.winBg3, nil)
  324. end
  325. self.winBg3 = nil
  326. if tolua.getpeer(self.winCount) ~= nil then
  327. tolua.setpeer(self.winCount, nil)
  328. end
  329. self.winCount = nil
  330. self.transform = nil
  331. self.gameObject = nil
  332. self.inited = false
  333. end
  334. return UIDojoBattleWinView