UIBattleReplayView_Generate.lua 13 KB

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