BattleStatistics_Generate.lua 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. ---@class BattleStatistics__Generate_btnQuit
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class BattleStatistics__Generate_targetPoint
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public rectTransform UnityEngine.RectTransform
  7. ---@class BattleStatistics__Generate_speedtime_time
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class BattleStatistics__Generate_speedtime
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public time BattleStatistics__Generate_speedtime_time
  13. ---@class BattleStatistics__Generate_btnSpeed
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@field public speed1 UnityEngine.GameObject
  17. ---@field public speed2 UnityEngine.GameObject
  18. ---@class BattleStatistics__Generate_hideBtn
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public button UnityEngine.UI.Button
  21. ---@class BattleStatistics__Generate_viewDetailBtn
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public button UnityEngine.UI.Button
  24. ---@class BattleStatistics__Generate_playerNode4_progress
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public image UnityEngine.UI.Image
  27. ---@class BattleStatistics__Generate_playerNode4_totalProgress
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public image UnityEngine.UI.Image
  30. ---@class BattleStatistics__Generate_playerNode4_percent
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public text UnityEngine.UI.Text
  33. ---@class BattleStatistics__Generate_playerNode4_jobIcon
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public image UnityEngine.UI.Image
  36. ---@class BattleStatistics__Generate_playerNode4_playerName
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public text UnityEngine.UI.Text
  39. ---@class BattleStatistics__Generate_playerNode4
  40. ---@field public gameObject UnityEngine.GameObject
  41. ---@field public playerName BattleStatistics__Generate_playerNode4_playerName
  42. ---@field public jobIcon BattleStatistics__Generate_playerNode4_jobIcon
  43. ---@field public percent BattleStatistics__Generate_playerNode4_percent
  44. ---@field public totalProgress BattleStatistics__Generate_playerNode4_totalProgress
  45. ---@field public progress BattleStatistics__Generate_playerNode4_progress
  46. ---@class BattleStatistics__Generate_playerNode3_progress
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public image UnityEngine.UI.Image
  49. ---@class BattleStatistics__Generate_playerNode3_totalProgress
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public image UnityEngine.UI.Image
  52. ---@class BattleStatistics__Generate_playerNode3_percent
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public text UnityEngine.UI.Text
  55. ---@class BattleStatistics__Generate_playerNode3_jobIcon
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public image UnityEngine.UI.Image
  58. ---@class BattleStatistics__Generate_playerNode3_playerName
  59. ---@field public gameObject UnityEngine.GameObject
  60. ---@field public text UnityEngine.UI.Text
  61. ---@class BattleStatistics__Generate_playerNode3
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public playerName BattleStatistics__Generate_playerNode3_playerName
  64. ---@field public jobIcon BattleStatistics__Generate_playerNode3_jobIcon
  65. ---@field public percent BattleStatistics__Generate_playerNode3_percent
  66. ---@field public totalProgress BattleStatistics__Generate_playerNode3_totalProgress
  67. ---@field public progress BattleStatistics__Generate_playerNode3_progress
  68. ---@class BattleStatistics__Generate_playerNode2_progress
  69. ---@field public gameObject UnityEngine.GameObject
  70. ---@field public image UnityEngine.UI.Image
  71. ---@class BattleStatistics__Generate_playerNode2_totalProgress
  72. ---@field public gameObject UnityEngine.GameObject
  73. ---@field public image UnityEngine.UI.Image
  74. ---@class BattleStatistics__Generate_playerNode2_percent
  75. ---@field public gameObject UnityEngine.GameObject
  76. ---@field public text UnityEngine.UI.Text
  77. ---@class BattleStatistics__Generate_playerNode2_jobIcon
  78. ---@field public gameObject UnityEngine.GameObject
  79. ---@field public image UnityEngine.UI.Image
  80. ---@class BattleStatistics__Generate_playerNode2_playerName
  81. ---@field public gameObject UnityEngine.GameObject
  82. ---@field public text UnityEngine.UI.Text
  83. ---@class BattleStatistics__Generate_playerNode2
  84. ---@field public gameObject UnityEngine.GameObject
  85. ---@field public playerName BattleStatistics__Generate_playerNode2_playerName
  86. ---@field public jobIcon BattleStatistics__Generate_playerNode2_jobIcon
  87. ---@field public percent BattleStatistics__Generate_playerNode2_percent
  88. ---@field public totalProgress BattleStatistics__Generate_playerNode2_totalProgress
  89. ---@field public progress BattleStatistics__Generate_playerNode2_progress
  90. ---@class BattleStatistics__Generate_playerNode1_progress
  91. ---@field public gameObject UnityEngine.GameObject
  92. ---@field public image UnityEngine.UI.Image
  93. ---@class BattleStatistics__Generate_playerNode1_totalProgress
  94. ---@field public gameObject UnityEngine.GameObject
  95. ---@field public image UnityEngine.UI.Image
  96. ---@class BattleStatistics__Generate_playerNode1_percent
  97. ---@field public gameObject UnityEngine.GameObject
  98. ---@field public text UnityEngine.UI.Text
  99. ---@class BattleStatistics__Generate_playerNode1_jobIcon
  100. ---@field public gameObject UnityEngine.GameObject
  101. ---@field public image UnityEngine.UI.Image
  102. ---@class BattleStatistics__Generate_playerNode1_playerName
  103. ---@field public gameObject UnityEngine.GameObject
  104. ---@field public text UnityEngine.UI.Text
  105. ---@class BattleStatistics__Generate_playerNode1
  106. ---@field public gameObject UnityEngine.GameObject
  107. ---@field public playerName BattleStatistics__Generate_playerNode1_playerName
  108. ---@field public jobIcon BattleStatistics__Generate_playerNode1_jobIcon
  109. ---@field public percent BattleStatistics__Generate_playerNode1_percent
  110. ---@field public totalProgress BattleStatistics__Generate_playerNode1_totalProgress
  111. ---@field public progress BattleStatistics__Generate_playerNode1_progress
  112. ---@class BattleStatistics__Generate_battleCountAnim
  113. ---@field public gameObject UnityEngine.GameObject
  114. ---@field public animator UnityEngine.Animator
  115. ---@class BattleStatistics__Generate
  116. ---@field private gameObject UnityEngine.GameObject
  117. ---@field private transform UnityEngine.Transform
  118. ---@field private canvas UnityEngine.Canvas
  119. ---@field private battleCountAnim BattleStatistics__Generate_battleCountAnim
  120. ---@field private playerNode1 BattleStatistics__Generate_playerNode1
  121. ---@field private playerNode2 BattleStatistics__Generate_playerNode2
  122. ---@field private playerNode3 BattleStatistics__Generate_playerNode3
  123. ---@field private playerNode4 BattleStatistics__Generate_playerNode4
  124. ---@field private viewDetailBtn BattleStatistics__Generate_viewDetailBtn
  125. ---@field private hideBtn BattleStatistics__Generate_hideBtn
  126. ---@field private btnSpeed BattleStatistics__Generate_btnSpeed
  127. ---@field private speedtime BattleStatistics__Generate_speedtime
  128. ---@field private targetPoint BattleStatistics__Generate_targetPoint
  129. ---@field private btnQuit BattleStatistics__Generate_btnQuit
  130. local BattleStatisticsView = class("BattleStatisticsView")
  131. function BattleStatisticsView:ctor()
  132. end
  133. ---@private
  134. function BattleStatisticsView:SetActive(result)
  135. self.gameObject:SetActive(result)
  136. end
  137. ---@private
  138. function BattleStatisticsView:InitGenerate(Root, data)
  139. self.transform = Root
  140. self.inited = true
  141. local tmp
  142. self:InitGenerate__1(Root,data)
  143. self:InitGenerate__2(Root,data)
  144. self:InitGenerate__3(Root,data)
  145. self:InitGenerate__4(Root,data)
  146. self:InitGenerate__5(Root,data)
  147. self:InitGenerate__6(Root,data)
  148. self:InitGenerate__7(Root,data)
  149. self:InitGenerate__8(Root,data)
  150. self:InitGenerate__9(Root,data)
  151. self:InitGenerate__10(Root,data)
  152. self:InitGenerate__11(Root,data)
  153. self:InitGenerate__12(Root,data)
  154. self:InitGenerate__13(Root,data)
  155. self:InitGenerate__14(Root,data)
  156. self:InitGenerate__15(Root,data)
  157. self:InitGenerate__16(Root,data)
  158. self:InitGenerate__17(Root,data)
  159. self:InitGenerate__18(Root,data)
  160. self:InitGenerate__19(Root,data)
  161. self:InitGenerate__20(Root,data)
  162. self:InitGenerate__21(Root,data)
  163. self:InitGenerate__22(Root,data)
  164. self:InitGenerate__23(Root,data)
  165. self:InitGenerate__24(Root,data)
  166. self:InitGenerate__25(Root,data)
  167. self:InitGenerate__26(Root,data)
  168. self:InitGenerate__27(Root,data)
  169. self:InitGenerate__28(Root,data)
  170. self:InitGenerate__29(Root,data)
  171. self:InitGenerate__30(Root,data)
  172. self:InitGenerate__31(Root,data)
  173. self:InitGenerate__32(Root,data)
  174. self:InitGenerate__33(Root,data)
  175. self:InitGenerate__34(Root,data)
  176. self:InitGenerate__35(Root,data)
  177. end
  178. ---@private
  179. function BattleStatisticsView:InitGenerate__1(Root, data)
  180. --[[
  181. Root
  182. --]]
  183. self.canvas = Root:GetComponent(Enum.TypeInfo.Canvas)
  184. end
  185. ---@private
  186. function BattleStatisticsView:InitGenerate__2(Root, data)
  187. --[[
  188. BattleCountAnim
  189. --]]
  190. local tmp = Root:Find("BattleCountAnim").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.battleCountAnim = tmp
  195. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  196. tmp.animator.logWarnings = false
  197. end
  198. ---@private
  199. function BattleStatisticsView:InitGenerate__3(Root, data)
  200. --[[
  201. BattleCountAnim/Player1
  202. --]]
  203. local tmp = Root:Find("BattleCountAnim/Player1").gameObject
  204. if tolua.getpeer(tmp) == nil then
  205. tolua.setpeer(tmp, {})
  206. end
  207. self.playerNode1 = tmp
  208. end
  209. ---@private
  210. function BattleStatisticsView:InitGenerate__4(Root, data)
  211. --[[
  212. BattleCountAnim/Player1/Name
  213. --]]
  214. local tmp = Root:Find("BattleCountAnim/Player1/Name").gameObject
  215. if tolua.getpeer(tmp) == nil then
  216. tolua.setpeer(tmp, {})
  217. end
  218. self.playerNode1.playerName = tmp
  219. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  220. end
  221. ---@private
  222. function BattleStatisticsView:InitGenerate__5(Root, data)
  223. --[[
  224. BattleCountAnim/Player1/Icon
  225. --]]
  226. local tmp = Root:Find("BattleCountAnim/Player1/Icon").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.playerNode1.jobIcon = tmp
  231. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  232. end
  233. ---@private
  234. function BattleStatisticsView:InitGenerate__6(Root, data)
  235. --[[
  236. BattleCountAnim/Player1/Percentage
  237. --]]
  238. local tmp = Root:Find("BattleCountAnim/Player1/Percentage").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.playerNode1.percent = tmp
  243. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  244. end
  245. ---@private
  246. function BattleStatisticsView:InitGenerate__7(Root, data)
  247. --[[
  248. BattleCountAnim/Player1/Value/TotalSlider
  249. --]]
  250. local tmp = Root:Find("BattleCountAnim/Player1/Value/TotalSlider").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.playerNode1.totalProgress = tmp
  255. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  256. end
  257. ---@private
  258. function BattleStatisticsView:InitGenerate__8(Root, data)
  259. --[[
  260. BattleCountAnim/Player1/Value/Slider
  261. --]]
  262. local tmp = Root:Find("BattleCountAnim/Player1/Value/Slider").gameObject
  263. if tolua.getpeer(tmp) == nil then
  264. tolua.setpeer(tmp, {})
  265. end
  266. self.playerNode1.progress = tmp
  267. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  268. end
  269. ---@private
  270. function BattleStatisticsView:InitGenerate__9(Root, data)
  271. --[[
  272. BattleCountAnim/Player2
  273. --]]
  274. local tmp = Root:Find("BattleCountAnim/Player2").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.playerNode2 = tmp
  279. end
  280. ---@private
  281. function BattleStatisticsView:InitGenerate__10(Root, data)
  282. --[[
  283. BattleCountAnim/Player2/Name
  284. --]]
  285. local tmp = Root:Find("BattleCountAnim/Player2/Name").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.playerNode2.playerName = tmp
  290. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  291. end
  292. ---@private
  293. function BattleStatisticsView:InitGenerate__11(Root, data)
  294. --[[
  295. BattleCountAnim/Player2/Icon
  296. --]]
  297. local tmp = Root:Find("BattleCountAnim/Player2/Icon").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.playerNode2.jobIcon = tmp
  302. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  303. end
  304. ---@private
  305. function BattleStatisticsView:InitGenerate__12(Root, data)
  306. --[[
  307. BattleCountAnim/Player2/Percentage
  308. --]]
  309. local tmp = Root:Find("BattleCountAnim/Player2/Percentage").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.playerNode2.percent = tmp
  314. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  315. end
  316. ---@private
  317. function BattleStatisticsView:InitGenerate__13(Root, data)
  318. --[[
  319. BattleCountAnim/Player2/Value/TotalSlider
  320. --]]
  321. local tmp = Root:Find("BattleCountAnim/Player2/Value/TotalSlider").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.playerNode2.totalProgress = tmp
  326. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  327. end
  328. ---@private
  329. function BattleStatisticsView:InitGenerate__14(Root, data)
  330. --[[
  331. BattleCountAnim/Player2/Value/Slider
  332. --]]
  333. local tmp = Root:Find("BattleCountAnim/Player2/Value/Slider").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.playerNode2.progress = tmp
  338. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  339. end
  340. ---@private
  341. function BattleStatisticsView:InitGenerate__15(Root, data)
  342. --[[
  343. BattleCountAnim/Player3
  344. --]]
  345. local tmp = Root:Find("BattleCountAnim/Player3").gameObject
  346. if tolua.getpeer(tmp) == nil then
  347. tolua.setpeer(tmp, {})
  348. end
  349. self.playerNode3 = tmp
  350. end
  351. ---@private
  352. function BattleStatisticsView:InitGenerate__16(Root, data)
  353. --[[
  354. BattleCountAnim/Player3/Name
  355. --]]
  356. local tmp = Root:Find("BattleCountAnim/Player3/Name").gameObject
  357. if tolua.getpeer(tmp) == nil then
  358. tolua.setpeer(tmp, {})
  359. end
  360. self.playerNode3.playerName = tmp
  361. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  362. end
  363. ---@private
  364. function BattleStatisticsView:InitGenerate__17(Root, data)
  365. --[[
  366. BattleCountAnim/Player3/Icon
  367. --]]
  368. local tmp = Root:Find("BattleCountAnim/Player3/Icon").gameObject
  369. if tolua.getpeer(tmp) == nil then
  370. tolua.setpeer(tmp, {})
  371. end
  372. self.playerNode3.jobIcon = tmp
  373. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  374. end
  375. ---@private
  376. function BattleStatisticsView:InitGenerate__18(Root, data)
  377. --[[
  378. BattleCountAnim/Player3/Percentage
  379. --]]
  380. local tmp = Root:Find("BattleCountAnim/Player3/Percentage").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.playerNode3.percent = tmp
  385. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  386. end
  387. ---@private
  388. function BattleStatisticsView:InitGenerate__19(Root, data)
  389. --[[
  390. BattleCountAnim/Player3/Value/TotalSlider
  391. --]]
  392. local tmp = Root:Find("BattleCountAnim/Player3/Value/TotalSlider").gameObject
  393. if tolua.getpeer(tmp) == nil then
  394. tolua.setpeer(tmp, {})
  395. end
  396. self.playerNode3.totalProgress = tmp
  397. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  398. end
  399. ---@private
  400. function BattleStatisticsView:InitGenerate__20(Root, data)
  401. --[[
  402. BattleCountAnim/Player3/Value/Slider
  403. --]]
  404. local tmp = Root:Find("BattleCountAnim/Player3/Value/Slider").gameObject
  405. if tolua.getpeer(tmp) == nil then
  406. tolua.setpeer(tmp, {})
  407. end
  408. self.playerNode3.progress = tmp
  409. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  410. end
  411. ---@private
  412. function BattleStatisticsView:InitGenerate__21(Root, data)
  413. --[[
  414. BattleCountAnim/Player4
  415. --]]
  416. local tmp = Root:Find("BattleCountAnim/Player4").gameObject
  417. if tolua.getpeer(tmp) == nil then
  418. tolua.setpeer(tmp, {})
  419. end
  420. self.playerNode4 = tmp
  421. end
  422. ---@private
  423. function BattleStatisticsView:InitGenerate__22(Root, data)
  424. --[[
  425. BattleCountAnim/Player4/Name
  426. --]]
  427. local tmp = Root:Find("BattleCountAnim/Player4/Name").gameObject
  428. if tolua.getpeer(tmp) == nil then
  429. tolua.setpeer(tmp, {})
  430. end
  431. self.playerNode4.playerName = tmp
  432. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  433. end
  434. ---@private
  435. function BattleStatisticsView:InitGenerate__23(Root, data)
  436. --[[
  437. BattleCountAnim/Player4/Icon
  438. --]]
  439. local tmp = Root:Find("BattleCountAnim/Player4/Icon").gameObject
  440. if tolua.getpeer(tmp) == nil then
  441. tolua.setpeer(tmp, {})
  442. end
  443. self.playerNode4.jobIcon = tmp
  444. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  445. end
  446. ---@private
  447. function BattleStatisticsView:InitGenerate__24(Root, data)
  448. --[[
  449. BattleCountAnim/Player4/Percentage
  450. --]]
  451. local tmp = Root:Find("BattleCountAnim/Player4/Percentage").gameObject
  452. if tolua.getpeer(tmp) == nil then
  453. tolua.setpeer(tmp, {})
  454. end
  455. self.playerNode4.percent = tmp
  456. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  457. end
  458. ---@private
  459. function BattleStatisticsView:InitGenerate__25(Root, data)
  460. --[[
  461. BattleCountAnim/Player4/Value/TotalSlider
  462. --]]
  463. local tmp = Root:Find("BattleCountAnim/Player4/Value/TotalSlider").gameObject
  464. if tolua.getpeer(tmp) == nil then
  465. tolua.setpeer(tmp, {})
  466. end
  467. self.playerNode4.totalProgress = tmp
  468. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  469. end
  470. ---@private
  471. function BattleStatisticsView:InitGenerate__26(Root, data)
  472. --[[
  473. BattleCountAnim/Player4/Value/Slider
  474. --]]
  475. local tmp = Root:Find("BattleCountAnim/Player4/Value/Slider").gameObject
  476. if tolua.getpeer(tmp) == nil then
  477. tolua.setpeer(tmp, {})
  478. end
  479. self.playerNode4.progress = tmp
  480. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  481. end
  482. ---@private
  483. function BattleStatisticsView:InitGenerate__27(Root, data)
  484. --[[
  485. BattleCountAnim/ClickToMore/RaycastArea
  486. --]]
  487. local tmp = Root:Find("BattleCountAnim/ClickToMore/RaycastArea").gameObject
  488. if tolua.getpeer(tmp) == nil then
  489. tolua.setpeer(tmp, {})
  490. end
  491. self.viewDetailBtn = tmp
  492. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  493. end
  494. ---@private
  495. function BattleStatisticsView:InitGenerate__28(Root, data)
  496. --[[
  497. BattleCountAnim/Button
  498. --]]
  499. local tmp = Root:Find("BattleCountAnim/Button").gameObject
  500. if tolua.getpeer(tmp) == nil then
  501. tolua.setpeer(tmp, {})
  502. end
  503. self.hideBtn = tmp
  504. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  505. end
  506. ---@private
  507. function BattleStatisticsView:InitGenerate__29(Root, data)
  508. --[[
  509. BtnSpeed
  510. --]]
  511. local tmp = Root:Find("BtnSpeed").gameObject
  512. if tolua.getpeer(tmp) == nil then
  513. tolua.setpeer(tmp, {})
  514. end
  515. self.btnSpeed = tmp
  516. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  517. end
  518. ---@private
  519. function BattleStatisticsView:InitGenerate__30(Root, data)
  520. --[[
  521. BtnSpeed/speedtime
  522. --]]
  523. local tmp = Root:Find("BtnSpeed/speedtime").gameObject
  524. if tolua.getpeer(tmp) == nil then
  525. tolua.setpeer(tmp, {})
  526. end
  527. self.speedtime = tmp
  528. end
  529. ---@private
  530. function BattleStatisticsView:InitGenerate__31(Root, data)
  531. --[[
  532. BtnSpeed/speedtime/time
  533. --]]
  534. local tmp = Root:Find("BtnSpeed/speedtime/time").gameObject
  535. if tolua.getpeer(tmp) == nil then
  536. tolua.setpeer(tmp, {})
  537. end
  538. self.speedtime.time = tmp
  539. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  540. end
  541. ---@private
  542. function BattleStatisticsView:InitGenerate__32(Root, data)
  543. --[[
  544. BtnSpeed/Speed1
  545. --]]
  546. local tmp = Root:Find("BtnSpeed/Speed1").gameObject
  547. if tolua.getpeer(tmp) == nil then
  548. tolua.setpeer(tmp, {})
  549. end
  550. self.btnSpeed.speed1 = tmp
  551. end
  552. ---@private
  553. function BattleStatisticsView:InitGenerate__33(Root, data)
  554. --[[
  555. BtnSpeed/Speed2
  556. --]]
  557. local tmp = Root:Find("BtnSpeed/Speed2").gameObject
  558. if tolua.getpeer(tmp) == nil then
  559. tolua.setpeer(tmp, {})
  560. end
  561. self.btnSpeed.speed2 = tmp
  562. self.btnSpeed.speed2:SetActive(false)
  563. end
  564. ---@private
  565. function BattleStatisticsView:InitGenerate__34(Root, data)
  566. --[[
  567. TargetPoint
  568. --]]
  569. local tmp = Root:Find("TargetPoint").gameObject
  570. if tolua.getpeer(tmp) == nil then
  571. tolua.setpeer(tmp, {})
  572. end
  573. self.targetPoint = tmp
  574. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  575. end
  576. ---@private
  577. function BattleStatisticsView:InitGenerate__35(Root, data)
  578. --[[
  579. BtnQuit
  580. --]]
  581. local tmp = Root:Find("BtnQuit").gameObject
  582. if tolua.getpeer(tmp) == nil then
  583. tolua.setpeer(tmp, {})
  584. end
  585. self.btnQuit = tmp
  586. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  587. end
  588. ---@private
  589. function BattleStatisticsView:GenerateDestroy()
  590. if tolua.getpeer(self.btnSpeed.speed2) ~= nil then
  591. tolua.setpeer(self.btnSpeed.speed2, nil)
  592. end
  593. if tolua.getpeer(self.btnSpeed.speed1) ~= nil then
  594. tolua.setpeer(self.btnSpeed.speed1, nil)
  595. end
  596. if tolua.getpeer(self.speedtime.time) ~= nil then
  597. tolua.setpeer(self.speedtime.time, nil)
  598. end
  599. if tolua.getpeer(self.playerNode4.progress) ~= nil then
  600. tolua.setpeer(self.playerNode4.progress, nil)
  601. end
  602. if tolua.getpeer(self.playerNode4.totalProgress) ~= nil then
  603. tolua.setpeer(self.playerNode4.totalProgress, nil)
  604. end
  605. if tolua.getpeer(self.playerNode4.percent) ~= nil then
  606. tolua.setpeer(self.playerNode4.percent, nil)
  607. end
  608. if tolua.getpeer(self.playerNode4.jobIcon) ~= nil then
  609. tolua.setpeer(self.playerNode4.jobIcon, nil)
  610. end
  611. if tolua.getpeer(self.playerNode4.playerName) ~= nil then
  612. tolua.setpeer(self.playerNode4.playerName, nil)
  613. end
  614. if tolua.getpeer(self.playerNode3.progress) ~= nil then
  615. tolua.setpeer(self.playerNode3.progress, nil)
  616. end
  617. if tolua.getpeer(self.playerNode3.totalProgress) ~= nil then
  618. tolua.setpeer(self.playerNode3.totalProgress, nil)
  619. end
  620. if tolua.getpeer(self.playerNode3.percent) ~= nil then
  621. tolua.setpeer(self.playerNode3.percent, nil)
  622. end
  623. if tolua.getpeer(self.playerNode3.jobIcon) ~= nil then
  624. tolua.setpeer(self.playerNode3.jobIcon, nil)
  625. end
  626. if tolua.getpeer(self.playerNode3.playerName) ~= nil then
  627. tolua.setpeer(self.playerNode3.playerName, nil)
  628. end
  629. if tolua.getpeer(self.playerNode2.progress) ~= nil then
  630. tolua.setpeer(self.playerNode2.progress, nil)
  631. end
  632. if tolua.getpeer(self.playerNode2.totalProgress) ~= nil then
  633. tolua.setpeer(self.playerNode2.totalProgress, nil)
  634. end
  635. if tolua.getpeer(self.playerNode2.percent) ~= nil then
  636. tolua.setpeer(self.playerNode2.percent, nil)
  637. end
  638. if tolua.getpeer(self.playerNode2.jobIcon) ~= nil then
  639. tolua.setpeer(self.playerNode2.jobIcon, nil)
  640. end
  641. if tolua.getpeer(self.playerNode2.playerName) ~= nil then
  642. tolua.setpeer(self.playerNode2.playerName, nil)
  643. end
  644. if tolua.getpeer(self.playerNode1.progress) ~= nil then
  645. tolua.setpeer(self.playerNode1.progress, nil)
  646. end
  647. if tolua.getpeer(self.playerNode1.totalProgress) ~= nil then
  648. tolua.setpeer(self.playerNode1.totalProgress, nil)
  649. end
  650. if tolua.getpeer(self.playerNode1.percent) ~= nil then
  651. tolua.setpeer(self.playerNode1.percent, nil)
  652. end
  653. if tolua.getpeer(self.playerNode1.jobIcon) ~= nil then
  654. tolua.setpeer(self.playerNode1.jobIcon, nil)
  655. end
  656. if tolua.getpeer(self.playerNode1.playerName) ~= nil then
  657. tolua.setpeer(self.playerNode1.playerName, nil)
  658. end
  659. if tolua.getpeer(self.battleCountAnim) ~= nil then
  660. tolua.setpeer(self.battleCountAnim, nil)
  661. end
  662. self.battleCountAnim = nil
  663. if tolua.getpeer(self.playerNode1) ~= nil then
  664. tolua.setpeer(self.playerNode1, nil)
  665. end
  666. self.playerNode1 = nil
  667. if tolua.getpeer(self.playerNode2) ~= nil then
  668. tolua.setpeer(self.playerNode2, nil)
  669. end
  670. self.playerNode2 = nil
  671. if tolua.getpeer(self.playerNode3) ~= nil then
  672. tolua.setpeer(self.playerNode3, nil)
  673. end
  674. self.playerNode3 = nil
  675. if tolua.getpeer(self.playerNode4) ~= nil then
  676. tolua.setpeer(self.playerNode4, nil)
  677. end
  678. self.playerNode4 = nil
  679. if tolua.getpeer(self.viewDetailBtn) ~= nil then
  680. tolua.setpeer(self.viewDetailBtn, nil)
  681. end
  682. self.viewDetailBtn = nil
  683. if tolua.getpeer(self.hideBtn) ~= nil then
  684. tolua.setpeer(self.hideBtn, nil)
  685. end
  686. self.hideBtn = nil
  687. if tolua.getpeer(self.btnSpeed) ~= nil then
  688. tolua.setpeer(self.btnSpeed, nil)
  689. end
  690. self.btnSpeed = nil
  691. if tolua.getpeer(self.speedtime) ~= nil then
  692. tolua.setpeer(self.speedtime, nil)
  693. end
  694. self.speedtime = nil
  695. if tolua.getpeer(self.targetPoint) ~= nil then
  696. tolua.setpeer(self.targetPoint, nil)
  697. end
  698. self.targetPoint = nil
  699. if tolua.getpeer(self.btnQuit) ~= nil then
  700. tolua.setpeer(self.btnQuit, nil)
  701. end
  702. self.btnQuit = nil
  703. self.transform = nil
  704. self.gameObject = nil
  705. self.inited = false
  706. end
  707. return BattleStatisticsView