UIDojo2DView_Generate.lua 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. ---@class UIDojo2D__Generate_fighterPowerText
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIDojo2D__Generate_nextSeasonTimeText
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIDojo2D__Generate_matchBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIDojo2D__Generate_buyTimesBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIDojo2D__Generate_leftTimesText
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UIDojo2D__Generate_backBtn
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIDojo2D__Generate_hero6
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public rectTransform UnityEngine.RectTransform
  22. ---@class UIDojo2D__Generate_hero5
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public rectTransform UnityEngine.RectTransform
  25. ---@class UIDojo2D__Generate_hero4
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public rectTransform UnityEngine.RectTransform
  28. ---@class UIDojo2D__Generate_hero3
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public rectTransform UnityEngine.RectTransform
  31. ---@class UIDojo2D__Generate_hero2
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public rectTransform UnityEngine.RectTransform
  34. ---@class UIDojo2D__Generate_hero1
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public rectTransform UnityEngine.RectTransform
  37. ---@class UIDojo2D__Generate_playRuleBtn
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIDojo2D__Generate_leftRewardTimesText
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public text UnityEngine.UI.Text
  43. ---@class UIDojo2D__Generate_seasonEndTimeText_lbl
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public text UnityEngine.UI.Text
  46. ---@class UIDojo2D__Generate_seasonEndTimeText
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public text UnityEngine.UI.Text
  49. ---@field public lbl UIDojo2D__Generate_seasonEndTimeText_lbl
  50. ---@class UIDojo2D__Generate_scoreSlider
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public slider UnityEngine.UI.Slider
  53. ---@class UIDojo2D__Generate_curRankScoreText
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public text UnityEngine.UI.Text
  56. ---@class UIDojo2D__Generate_rewardItemName
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public text UnityEngine.UI.Text
  59. ---@class UIDojo2D__Generate_rewardItem
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public rectTransform UnityEngine.RectTransform
  62. ---@field public layoutElement UnityEngine.UI.LayoutElement
  63. ---@class UIDojo2D__Generate_rewardIcon
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public button UnityEngine.UI.Button
  66. ---@class UIDojo2D__Generate_winRateText
  67. ---@field public gameObject UnityEngine.GameObject
  68. ---@field public text TMPro.TextMeshProUGUI
  69. ---@class UIDojo2D__Generate_rankIcon
  70. ---@field public gameObject UnityEngine.GameObject
  71. ---@field public image UnityEngine.UI.Image
  72. ---@class UIDojo2D__Generate_rankName
  73. ---@field public gameObject UnityEngine.GameObject
  74. ---@field public text UnityEngine.UI.Text
  75. ---@class UIDojo2D__Generate_skillBtn
  76. ---@field public gameObject UnityEngine.GameObject
  77. ---@field public button UnityEngine.UI.Button
  78. ---@class UIDojo2D__Generate_shopBtn
  79. ---@field public gameObject UnityEngine.GameObject
  80. ---@field public button UnityEngine.UI.Button
  81. ---@class UIDojo2D__Generate_rankBtn
  82. ---@field public gameObject UnityEngine.GameObject
  83. ---@field public button UnityEngine.UI.Button
  84. ---@class UIDojo2D__Generate_battleReportBtn
  85. ---@field public gameObject UnityEngine.GameObject
  86. ---@field public button UnityEngine.UI.Button
  87. ---@class UIDojo2D__Generate
  88. ---@field private gameObject UnityEngine.GameObject
  89. ---@field private transform UnityEngine.Transform
  90. ---@field private selectedHero2 UnityEngine.GameObject
  91. ---@field private selectedHero3 UnityEngine.GameObject
  92. ---@field private selectedHero1 UnityEngine.GameObject
  93. ---@field private selectedHero4 UnityEngine.GameObject
  94. ---@field private battleReportBtn UIDojo2D__Generate_battleReportBtn
  95. ---@field private rankBtn UIDojo2D__Generate_rankBtn
  96. ---@field private shopBtn UIDojo2D__Generate_shopBtn
  97. ---@field private skillBtn UIDojo2D__Generate_skillBtn
  98. ---@field private rankName UIDojo2D__Generate_rankName
  99. ---@field private rankIcon UIDojo2D__Generate_rankIcon
  100. ---@field private winRateText UIDojo2D__Generate_winRateText
  101. ---@field private rewardIcon UIDojo2D__Generate_rewardIcon
  102. ---@field private rewardItem UIDojo2D__Generate_rewardItem
  103. ---@field private rewardItemName UIDojo2D__Generate_rewardItemName
  104. ---@field private curRankScoreText UIDojo2D__Generate_curRankScoreText
  105. ---@field private scoreSlider UIDojo2D__Generate_scoreSlider
  106. ---@field private seasonEndTimeText UIDojo2D__Generate_seasonEndTimeText
  107. ---@field private leftRewardTimesText UIDojo2D__Generate_leftRewardTimesText
  108. ---@field private playRuleBtn UIDojo2D__Generate_playRuleBtn
  109. ---@field private roleList UnityEngine.GameObject
  110. ---@field private roleListAnim UnityEngine.GameObject
  111. ---@field private hero1 UIDojo2D__Generate_hero1
  112. ---@field private hero2 UIDojo2D__Generate_hero2
  113. ---@field private hero3 UIDojo2D__Generate_hero3
  114. ---@field private hero4 UIDojo2D__Generate_hero4
  115. ---@field private hero5 UIDojo2D__Generate_hero5
  116. ---@field private hero6 UIDojo2D__Generate_hero6
  117. ---@field private backBtn UIDojo2D__Generate_backBtn
  118. ---@field private curSeasonNode UnityEngine.GameObject
  119. ---@field private leftTimesText UIDojo2D__Generate_leftTimesText
  120. ---@field private buyTimesBtn UIDojo2D__Generate_buyTimesBtn
  121. ---@field private matchBtn UIDojo2D__Generate_matchBtn
  122. ---@field private nextSeasonNode UnityEngine.GameObject
  123. ---@field private nextSeasonTimeText UIDojo2D__Generate_nextSeasonTimeText
  124. ---@field private fighterPowerText UIDojo2D__Generate_fighterPowerText
  125. local UIDojo2DView = class("UIDojo2DView", require("UIViewBase"))
  126. function UIDojo2DView:ctor()
  127. end
  128. ---@private
  129. function UIDojo2DView:SetActive(result)
  130. self.gameObject:SetActive(result)
  131. end
  132. ---@private
  133. function UIDojo2DView:InitGenerate(Root, data)
  134. self.transform = Root
  135. self.inited = true
  136. if self.super.Init then
  137. self.super.Init(self)
  138. end
  139. local tmp
  140. self:InitGenerate__1(Root,data)
  141. self:InitGenerate__2(Root,data)
  142. self:InitGenerate__3(Root,data)
  143. self:InitGenerate__4(Root,data)
  144. self:InitGenerate__5(Root,data)
  145. self:InitGenerate__6(Root,data)
  146. self:InitGenerate__7(Root,data)
  147. self:InitGenerate__8(Root,data)
  148. self:InitGenerate__9(Root,data)
  149. self:InitGenerate__10(Root,data)
  150. self:InitGenerate__11(Root,data)
  151. self:InitGenerate__12(Root,data)
  152. self:InitGenerate__13(Root,data)
  153. self:InitGenerate__14(Root,data)
  154. self:InitGenerate__15(Root,data)
  155. self:InitGenerate__16(Root,data)
  156. self:InitGenerate__17(Root,data)
  157. self:InitGenerate__18(Root,data)
  158. self:InitGenerate__19(Root,data)
  159. self:InitGenerate__20(Root,data)
  160. self:InitGenerate__21(Root,data)
  161. self:InitGenerate__22(Root,data)
  162. self:InitGenerate__23(Root,data)
  163. self:InitGenerate__24(Root,data)
  164. self:InitGenerate__25(Root,data)
  165. self:InitGenerate__26(Root,data)
  166. self:InitGenerate__27(Root,data)
  167. self:InitGenerate__28(Root,data)
  168. self:InitGenerate__29(Root,data)
  169. self:InitGenerate__30(Root,data)
  170. self:InitGenerate__31(Root,data)
  171. self:InitGenerate__32(Root,data)
  172. self:InitGenerate__33(Root,data)
  173. self:InitGenerate__34(Root,data)
  174. self:InitGenerate__35(Root,data)
  175. self:InitGenerate__36(Root,data)
  176. end
  177. ---@private
  178. function UIDojo2DView:InitGenerate__1(Root, data)
  179. --[[
  180. CenterView/Character2
  181. --]]
  182. local tmp = Root:Find("CenterView/Character2").gameObject
  183. if tolua.getpeer(tmp) == nil then
  184. tolua.setpeer(tmp, {})
  185. end
  186. self.selectedHero2 = tmp
  187. end
  188. ---@private
  189. function UIDojo2DView:InitGenerate__2(Root, data)
  190. --[[
  191. CenterView/Character3
  192. --]]
  193. local tmp = Root:Find("CenterView/Character3").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.selectedHero3 = tmp
  198. end
  199. ---@private
  200. function UIDojo2DView:InitGenerate__3(Root, data)
  201. --[[
  202. CenterView/Character1
  203. --]]
  204. local tmp = Root:Find("CenterView/Character1").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.selectedHero1 = tmp
  209. end
  210. ---@private
  211. function UIDojo2DView:InitGenerate__4(Root, data)
  212. --[[
  213. CenterView/Character4
  214. --]]
  215. local tmp = Root:Find("CenterView/Character4").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.selectedHero4 = tmp
  220. end
  221. ---@private
  222. function UIDojo2DView:InitGenerate__5(Root, data)
  223. --[[
  224. TopView/BtnGroup/BattleReportBtn
  225. --]]
  226. local tmp = Root:Find("TopView/BtnGroup/BattleReportBtn").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.battleReportBtn = tmp
  231. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  232. end
  233. ---@private
  234. function UIDojo2DView:InitGenerate__6(Root, data)
  235. --[[
  236. TopView/BtnGroup/RankBtn
  237. --]]
  238. local tmp = Root:Find("TopView/BtnGroup/RankBtn").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.rankBtn = tmp
  243. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  244. end
  245. ---@private
  246. function UIDojo2DView:InitGenerate__7(Root, data)
  247. --[[
  248. TopView/BtnGroup/ShopBtn
  249. --]]
  250. local tmp = Root:Find("TopView/BtnGroup/ShopBtn").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.shopBtn = tmp
  255. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  256. end
  257. ---@private
  258. function UIDojo2DView:InitGenerate__8(Root, data)
  259. --[[
  260. TopView/BtnGroup/SkillBtn
  261. --]]
  262. local tmp = Root:Find("TopView/BtnGroup/SkillBtn").gameObject
  263. if tolua.getpeer(tmp) == nil then
  264. tolua.setpeer(tmp, {})
  265. end
  266. self.skillBtn = tmp
  267. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  268. end
  269. ---@private
  270. function UIDojo2DView:InitGenerate__9(Root, data)
  271. --[[
  272. TopView/BattleInfo/RankInfo/RankName
  273. --]]
  274. local tmp = Root:Find("TopView/BattleInfo/RankInfo/RankName").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.rankName = tmp
  279. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  280. end
  281. ---@private
  282. function UIDojo2DView:InitGenerate__10(Root, data)
  283. --[[
  284. TopView/BattleInfo/RankInfo/RankIcon
  285. --]]
  286. local tmp = Root:Find("TopView/BattleInfo/RankInfo/RankIcon").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.rankIcon = tmp
  291. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  292. end
  293. ---@private
  294. function UIDojo2DView:InitGenerate__11(Root, data)
  295. --[[
  296. TopView/BattleInfo/RankInfo/WinRate/Val
  297. --]]
  298. local tmp = Root:Find("TopView/BattleInfo/RankInfo/WinRate/Val").gameObject
  299. if tolua.getpeer(tmp) == nil then
  300. tolua.setpeer(tmp, {})
  301. end
  302. self.winRateText = tmp
  303. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  304. end
  305. ---@private
  306. function UIDojo2DView:InitGenerate__12(Root, data)
  307. --[[
  308. TopView/BattleInfo/Left/RewardIcon
  309. --]]
  310. local tmp = Root:Find("TopView/BattleInfo/Left/RewardIcon").gameObject
  311. if tolua.getpeer(tmp) == nil then
  312. tolua.setpeer(tmp, {})
  313. end
  314. self.rewardIcon = tmp
  315. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  316. end
  317. ---@private
  318. function UIDojo2DView:InitGenerate__13(Root, data)
  319. --[[
  320. TopView/BattleInfo/Left/IconSmallItem
  321. --]]
  322. local tmp = Root:Find("TopView/BattleInfo/Left/IconSmallItem").gameObject
  323. if tolua.getpeer(tmp) == nil then
  324. tolua.setpeer(tmp, {})
  325. end
  326. self.rewardItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  327. self.rewardItem.prefabName = "IconItem"
  328. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  329. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  330. end
  331. ---@private
  332. function UIDojo2DView:InitGenerate__14(Root, data)
  333. --[[
  334. TopView/BattleInfo/Left/ItemName
  335. --]]
  336. local tmp = Root:Find("TopView/BattleInfo/Left/ItemName").gameObject
  337. if tolua.getpeer(tmp) == nil then
  338. tolua.setpeer(tmp, {})
  339. end
  340. self.rewardItemName = tmp
  341. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  342. end
  343. ---@private
  344. function UIDojo2DView:InitGenerate__15(Root, data)
  345. --[[
  346. TopView/BattleInfo/Right/RankScore/Val
  347. --]]
  348. local tmp = Root:Find("TopView/BattleInfo/Right/RankScore/Val").gameObject
  349. if tolua.getpeer(tmp) == nil then
  350. tolua.setpeer(tmp, {})
  351. end
  352. self.curRankScoreText = tmp
  353. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  354. end
  355. ---@private
  356. function UIDojo2DView:InitGenerate__16(Root, data)
  357. --[[
  358. TopView/BattleInfo/Right/RankScore/Slider
  359. --]]
  360. local tmp = Root:Find("TopView/BattleInfo/Right/RankScore/Slider").gameObject
  361. if tolua.getpeer(tmp) == nil then
  362. tolua.setpeer(tmp, {})
  363. end
  364. self.scoreSlider = tmp
  365. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  366. end
  367. ---@private
  368. function UIDojo2DView:InitGenerate__17(Root, data)
  369. --[[
  370. TopView/BattleInfo/Right/RankTime/timeTxt/Val
  371. --]]
  372. local tmp = Root:Find("TopView/BattleInfo/Right/RankTime/timeTxt/Val").gameObject
  373. if tolua.getpeer(tmp) == nil then
  374. tolua.setpeer(tmp, {})
  375. end
  376. self.seasonEndTimeText = tmp
  377. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  378. end
  379. ---@private
  380. function UIDojo2DView:InitGenerate__18(Root, data)
  381. --[[
  382. TopView/BattleInfo/Right/RankTime/timeTxt/Lbl
  383. --]]
  384. local tmp = Root:Find("TopView/BattleInfo/Right/RankTime/timeTxt/Lbl").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.seasonEndTimeText.lbl = tmp
  389. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  390. end
  391. ---@private
  392. function UIDojo2DView:InitGenerate__19(Root, data)
  393. --[[
  394. TopView/LeftRewardTimes
  395. --]]
  396. local tmp = Root:Find("TopView/LeftRewardTimes").gameObject
  397. if tolua.getpeer(tmp) == nil then
  398. tolua.setpeer(tmp, {})
  399. end
  400. self.leftRewardTimesText = tmp
  401. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  402. end
  403. ---@private
  404. function UIDojo2DView:InitGenerate__20(Root, data)
  405. --[[
  406. TopView/BtnPlayRule
  407. --]]
  408. local tmp = Root:Find("TopView/BtnPlayRule").gameObject
  409. if tolua.getpeer(tmp) == nil then
  410. tolua.setpeer(tmp, {})
  411. end
  412. self.playRuleBtn = tmp
  413. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  414. end
  415. ---@private
  416. function UIDojo2DView:InitGenerate__21(Root, data)
  417. --[[
  418. BottomView/RoleList
  419. --]]
  420. local tmp = Root:Find("BottomView/RoleList").gameObject
  421. if tolua.getpeer(tmp) == nil then
  422. tolua.setpeer(tmp, {})
  423. end
  424. self.roleList = tmp
  425. end
  426. ---@private
  427. function UIDojo2DView:InitGenerate__22(Root, data)
  428. --[[
  429. BottomView/RoleList/RoleListAnim
  430. --]]
  431. local tmp = Root:Find("BottomView/RoleList/RoleListAnim").gameObject
  432. if tolua.getpeer(tmp) == nil then
  433. tolua.setpeer(tmp, {})
  434. end
  435. self.roleListAnim = tmp
  436. end
  437. ---@private
  438. function UIDojo2DView:InitGenerate__23(Root, data)
  439. --[[
  440. BottomView/RoleList/RoleListAnim/Role1
  441. --]]
  442. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role1").gameObject
  443. if tolua.getpeer(tmp) == nil then
  444. tolua.setpeer(tmp, {})
  445. end
  446. self.hero1 = tmp
  447. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  448. end
  449. ---@private
  450. function UIDojo2DView:InitGenerate__24(Root, data)
  451. --[[
  452. BottomView/RoleList/RoleListAnim/Role2
  453. --]]
  454. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role2").gameObject
  455. if tolua.getpeer(tmp) == nil then
  456. tolua.setpeer(tmp, {})
  457. end
  458. self.hero2 = tmp
  459. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  460. end
  461. ---@private
  462. function UIDojo2DView:InitGenerate__25(Root, data)
  463. --[[
  464. BottomView/RoleList/RoleListAnim/Role3
  465. --]]
  466. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role3").gameObject
  467. if tolua.getpeer(tmp) == nil then
  468. tolua.setpeer(tmp, {})
  469. end
  470. self.hero3 = tmp
  471. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  472. end
  473. ---@private
  474. function UIDojo2DView:InitGenerate__26(Root, data)
  475. --[[
  476. BottomView/RoleList/RoleListAnim/Role4
  477. --]]
  478. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role4").gameObject
  479. if tolua.getpeer(tmp) == nil then
  480. tolua.setpeer(tmp, {})
  481. end
  482. self.hero4 = tmp
  483. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  484. end
  485. ---@private
  486. function UIDojo2DView:InitGenerate__27(Root, data)
  487. --[[
  488. BottomView/RoleList/RoleListAnim/Role5
  489. --]]
  490. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role5").gameObject
  491. if tolua.getpeer(tmp) == nil then
  492. tolua.setpeer(tmp, {})
  493. end
  494. self.hero5 = tmp
  495. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  496. end
  497. ---@private
  498. function UIDojo2DView:InitGenerate__28(Root, data)
  499. --[[
  500. BottomView/RoleList/RoleListAnim/Role6
  501. --]]
  502. local tmp = Root:Find("BottomView/RoleList/RoleListAnim/Role6").gameObject
  503. if tolua.getpeer(tmp) == nil then
  504. tolua.setpeer(tmp, {})
  505. end
  506. self.hero6 = tmp
  507. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  508. end
  509. ---@private
  510. function UIDojo2DView:InitGenerate__29(Root, data)
  511. --[[
  512. BottomView/BtnBack
  513. --]]
  514. local tmp = Root:Find("BottomView/BtnBack").gameObject
  515. if tolua.getpeer(tmp) == nil then
  516. tolua.setpeer(tmp, {})
  517. end
  518. self.backBtn = tmp
  519. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  520. end
  521. ---@private
  522. function UIDojo2DView:InitGenerate__30(Root, data)
  523. --[[
  524. BottomView/SeasonInfo
  525. --]]
  526. local tmp = Root:Find("BottomView/SeasonInfo").gameObject
  527. if tolua.getpeer(tmp) == nil then
  528. tolua.setpeer(tmp, {})
  529. end
  530. self.curSeasonNode = tmp
  531. end
  532. ---@private
  533. function UIDojo2DView:InitGenerate__31(Root, data)
  534. --[[
  535. BottomView/SeasonInfo/LeftTimes/Val
  536. --]]
  537. local tmp = Root:Find("BottomView/SeasonInfo/LeftTimes/Val").gameObject
  538. if tolua.getpeer(tmp) == nil then
  539. tolua.setpeer(tmp, {})
  540. end
  541. self.leftTimesText = tmp
  542. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  543. end
  544. ---@private
  545. function UIDojo2DView:InitGenerate__32(Root, data)
  546. --[[
  547. BottomView/SeasonInfo/LeftTimes/AddBtn
  548. --]]
  549. local tmp = Root:Find("BottomView/SeasonInfo/LeftTimes/AddBtn").gameObject
  550. if tolua.getpeer(tmp) == nil then
  551. tolua.setpeer(tmp, {})
  552. end
  553. self.buyTimesBtn = tmp
  554. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  555. end
  556. ---@private
  557. function UIDojo2DView:InitGenerate__33(Root, data)
  558. --[[
  559. BottomView/SeasonInfo/MatchBtn
  560. --]]
  561. local tmp = Root:Find("BottomView/SeasonInfo/MatchBtn").gameObject
  562. if tolua.getpeer(tmp) == nil then
  563. tolua.setpeer(tmp, {})
  564. end
  565. self.matchBtn = tmp
  566. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  567. end
  568. ---@private
  569. function UIDojo2DView:InitGenerate__34(Root, data)
  570. --[[
  571. BottomView/NextSeasonInfo
  572. --]]
  573. local tmp = Root:Find("BottomView/NextSeasonInfo").gameObject
  574. if tolua.getpeer(tmp) == nil then
  575. tolua.setpeer(tmp, {})
  576. end
  577. self.nextSeasonNode = tmp
  578. end
  579. ---@private
  580. function UIDojo2DView:InitGenerate__35(Root, data)
  581. --[[
  582. BottomView/NextSeasonInfo/Time
  583. --]]
  584. local tmp = Root:Find("BottomView/NextSeasonInfo/Time").gameObject
  585. if tolua.getpeer(tmp) == nil then
  586. tolua.setpeer(tmp, {})
  587. end
  588. self.nextSeasonTimeText = tmp
  589. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  590. end
  591. ---@private
  592. function UIDojo2DView:InitGenerate__36(Root, data)
  593. --[[
  594. BottomView/FightPowerInfo/Val
  595. --]]
  596. local tmp = Root:Find("BottomView/FightPowerInfo/Val").gameObject
  597. if tolua.getpeer(tmp) == nil then
  598. tolua.setpeer(tmp, {})
  599. end
  600. self.fighterPowerText = tmp
  601. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  602. end
  603. ---@private
  604. function UIDojo2DView:GenerateDestroy()
  605. if tolua.getpeer(self.seasonEndTimeText.lbl) ~= nil then
  606. tolua.setpeer(self.seasonEndTimeText.lbl, nil)
  607. end
  608. if tolua.getpeer(self.selectedHero2) ~= nil then
  609. tolua.setpeer(self.selectedHero2, nil)
  610. end
  611. self.selectedHero2 = nil
  612. if tolua.getpeer(self.selectedHero3) ~= nil then
  613. tolua.setpeer(self.selectedHero3, nil)
  614. end
  615. self.selectedHero3 = nil
  616. if tolua.getpeer(self.selectedHero1) ~= nil then
  617. tolua.setpeer(self.selectedHero1, nil)
  618. end
  619. self.selectedHero1 = nil
  620. if tolua.getpeer(self.selectedHero4) ~= nil then
  621. tolua.setpeer(self.selectedHero4, nil)
  622. end
  623. self.selectedHero4 = nil
  624. if tolua.getpeer(self.battleReportBtn) ~= nil then
  625. tolua.setpeer(self.battleReportBtn, nil)
  626. end
  627. self.battleReportBtn = nil
  628. if tolua.getpeer(self.rankBtn) ~= nil then
  629. tolua.setpeer(self.rankBtn, nil)
  630. end
  631. self.rankBtn = nil
  632. if tolua.getpeer(self.shopBtn) ~= nil then
  633. tolua.setpeer(self.shopBtn, nil)
  634. end
  635. self.shopBtn = nil
  636. if tolua.getpeer(self.skillBtn) ~= nil then
  637. tolua.setpeer(self.skillBtn, nil)
  638. end
  639. self.skillBtn = nil
  640. if tolua.getpeer(self.rankName) ~= nil then
  641. tolua.setpeer(self.rankName, nil)
  642. end
  643. self.rankName = nil
  644. if tolua.getpeer(self.rankIcon) ~= nil then
  645. tolua.setpeer(self.rankIcon, nil)
  646. end
  647. self.rankIcon = nil
  648. if tolua.getpeer(self.winRateText) ~= nil then
  649. tolua.setpeer(self.winRateText, nil)
  650. end
  651. self.winRateText = nil
  652. if tolua.getpeer(self.rewardIcon) ~= nil then
  653. tolua.setpeer(self.rewardIcon, nil)
  654. end
  655. self.rewardIcon = nil
  656. if self.rewardItem.GenerateDestroy ~= nil then
  657. self.rewardItem:GenerateDestroy()
  658. end
  659. if tolua.getpeer(self.rewardItem) ~= nil then
  660. tolua.setpeer(self.rewardItem, nil)
  661. end
  662. self.rewardItem = nil
  663. if tolua.getpeer(self.rewardItemName) ~= nil then
  664. tolua.setpeer(self.rewardItemName, nil)
  665. end
  666. self.rewardItemName = nil
  667. if tolua.getpeer(self.curRankScoreText) ~= nil then
  668. tolua.setpeer(self.curRankScoreText, nil)
  669. end
  670. self.curRankScoreText = nil
  671. if tolua.getpeer(self.scoreSlider) ~= nil then
  672. tolua.setpeer(self.scoreSlider, nil)
  673. end
  674. self.scoreSlider = nil
  675. if tolua.getpeer(self.seasonEndTimeText) ~= nil then
  676. tolua.setpeer(self.seasonEndTimeText, nil)
  677. end
  678. self.seasonEndTimeText = nil
  679. if tolua.getpeer(self.leftRewardTimesText) ~= nil then
  680. tolua.setpeer(self.leftRewardTimesText, nil)
  681. end
  682. self.leftRewardTimesText = nil
  683. if tolua.getpeer(self.playRuleBtn) ~= nil then
  684. tolua.setpeer(self.playRuleBtn, nil)
  685. end
  686. self.playRuleBtn = nil
  687. if tolua.getpeer(self.roleList) ~= nil then
  688. tolua.setpeer(self.roleList, nil)
  689. end
  690. self.roleList = nil
  691. if tolua.getpeer(self.roleListAnim) ~= nil then
  692. tolua.setpeer(self.roleListAnim, nil)
  693. end
  694. self.roleListAnim = nil
  695. if tolua.getpeer(self.hero1) ~= nil then
  696. tolua.setpeer(self.hero1, nil)
  697. end
  698. self.hero1 = nil
  699. if tolua.getpeer(self.hero2) ~= nil then
  700. tolua.setpeer(self.hero2, nil)
  701. end
  702. self.hero2 = nil
  703. if tolua.getpeer(self.hero3) ~= nil then
  704. tolua.setpeer(self.hero3, nil)
  705. end
  706. self.hero3 = nil
  707. if tolua.getpeer(self.hero4) ~= nil then
  708. tolua.setpeer(self.hero4, nil)
  709. end
  710. self.hero4 = nil
  711. if tolua.getpeer(self.hero5) ~= nil then
  712. tolua.setpeer(self.hero5, nil)
  713. end
  714. self.hero5 = nil
  715. if tolua.getpeer(self.hero6) ~= nil then
  716. tolua.setpeer(self.hero6, nil)
  717. end
  718. self.hero6 = nil
  719. if tolua.getpeer(self.backBtn) ~= nil then
  720. tolua.setpeer(self.backBtn, nil)
  721. end
  722. self.backBtn = nil
  723. if tolua.getpeer(self.curSeasonNode) ~= nil then
  724. tolua.setpeer(self.curSeasonNode, nil)
  725. end
  726. self.curSeasonNode = nil
  727. if tolua.getpeer(self.leftTimesText) ~= nil then
  728. tolua.setpeer(self.leftTimesText, nil)
  729. end
  730. self.leftTimesText = nil
  731. if tolua.getpeer(self.buyTimesBtn) ~= nil then
  732. tolua.setpeer(self.buyTimesBtn, nil)
  733. end
  734. self.buyTimesBtn = nil
  735. if tolua.getpeer(self.matchBtn) ~= nil then
  736. tolua.setpeer(self.matchBtn, nil)
  737. end
  738. self.matchBtn = nil
  739. if tolua.getpeer(self.nextSeasonNode) ~= nil then
  740. tolua.setpeer(self.nextSeasonNode, nil)
  741. end
  742. self.nextSeasonNode = nil
  743. if tolua.getpeer(self.nextSeasonTimeText) ~= nil then
  744. tolua.setpeer(self.nextSeasonTimeText, nil)
  745. end
  746. self.nextSeasonTimeText = nil
  747. if tolua.getpeer(self.fighterPowerText) ~= nil then
  748. tolua.setpeer(self.fighterPowerText, nil)
  749. end
  750. self.fighterPowerText = nil
  751. self.transform = nil
  752. self.gameObject = nil
  753. self.inited = false
  754. end
  755. return UIDojo2DView