UIBattleWinView_Generate.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. ---@class UIBattleWin__Generate_drop_text
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIBattleWin__Generate_drop
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UIBattleWin__Generate_drop_text
  7. ---@class UIBattleWin__Generate_coin_text
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIBattleWin__Generate_coin
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UIBattleWin__Generate_coin_text
  13. ---@class UIBattleWin__Generate_expJob_text
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UIBattleWin__Generate_expJob
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UIBattleWin__Generate_expJob_text
  19. ---@class UIBattleWin__Generate_expParter_text
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIBattleWin__Generate_expParter
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public text UIBattleWin__Generate_expParter_text
  25. ---@class UIBattleWin__Generate_zeny_text
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public text UnityEngine.UI.Text
  28. ---@class UIBattleWin__Generate_zeny
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UIBattleWin__Generate_zeny_text
  31. ---@class UIBattleWin__Generate_expBase_text
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public text UnityEngine.UI.Text
  34. ---@class UIBattleWin__Generate_expBase
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UIBattleWin__Generate_expBase_text
  37. ---@class UIBattleWin__Generate_bigMap_linePath
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public uIBigMapLine UIBigMapLine
  40. ---@class UIBattleWin__Generate_bigMap_bottomImage
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public rectTransform UnityEngine.RectTransform
  43. ---@field public image UnityEngine.UI.Image
  44. ---@class UIBattleWin__Generate_bigMap_content
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public rectTransform UnityEngine.RectTransform
  47. ---@class UIBattleWin__Generate_bigMap
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public scrollRect UnityEngine.UI.ScrollRect
  50. ---@field public content UIBattleWin__Generate_bigMap_content
  51. ---@field public bottomImage UIBattleWin__Generate_bigMap_bottomImage
  52. ---@field public linePath UIBattleWin__Generate_bigMap_linePath
  53. ---@field public smallPoints UnityEngine.GameObject
  54. ---@field public bigPoints UnityEngine.GameObject
  55. ---@field public startPoint UnityEngine.GameObject
  56. ---@field public storyPoints UnityEngine.GameObject
  57. ---@field public oneRank UnityEngine.GameObject
  58. ---@field public selfContainer UnityEngine.GameObject
  59. ---@class UIBattleWin__Generate_AnyBtn
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public button UnityEngine.UI.Button
  62. ---@class UIBattleWin__Generate
  63. ---@field private gameObject UnityEngine.GameObject
  64. ---@field private transform UnityEngine.Transform
  65. ---@field private uIAnimator UnityEngine.GameObject
  66. ---@field private AnyBtn UIBattleWin__Generate_AnyBtn
  67. ---@field private window UnityEngine.GameObject
  68. ---@field private bigMap UIBattleWin__Generate_bigMap
  69. ---@field private expBase UIBattleWin__Generate_expBase
  70. ---@field private zeny UIBattleWin__Generate_zeny
  71. ---@field private expParter UIBattleWin__Generate_expParter
  72. ---@field private expJob UIBattleWin__Generate_expJob
  73. ---@field private coin UIBattleWin__Generate_coin
  74. ---@field private drop UIBattleWin__Generate_drop
  75. local UIBattleWinView = class("UIBattleWinView", require("UIViewBase"))
  76. function UIBattleWinView:ctor()
  77. end
  78. ---@private
  79. function UIBattleWinView:SetActive(result)
  80. self.gameObject:SetActive(result)
  81. end
  82. ---@private
  83. function UIBattleWinView:InitGenerate(Root, data)
  84. self.transform = Root
  85. self.inited = true
  86. if self.super.Init then
  87. self.super.Init(self)
  88. end
  89. local tmp
  90. self:InitGenerate__1(Root,data)
  91. self:InitGenerate__2(Root,data)
  92. self:InitGenerate__3(Root,data)
  93. self:InitGenerate__4(Root,data)
  94. self:InitGenerate__5(Root,data)
  95. self:InitGenerate__6(Root,data)
  96. self:InitGenerate__7(Root,data)
  97. self:InitGenerate__8(Root,data)
  98. self:InitGenerate__9(Root,data)
  99. self:InitGenerate__10(Root,data)
  100. self:InitGenerate__11(Root,data)
  101. self:InitGenerate__12(Root,data)
  102. self:InitGenerate__13(Root,data)
  103. self:InitGenerate__14(Root,data)
  104. self:InitGenerate__15(Root,data)
  105. self:InitGenerate__16(Root,data)
  106. self:InitGenerate__17(Root,data)
  107. self:InitGenerate__18(Root,data)
  108. self:InitGenerate__19(Root,data)
  109. self:InitGenerate__20(Root,data)
  110. self:InitGenerate__21(Root,data)
  111. self:InitGenerate__22(Root,data)
  112. self:InitGenerate__23(Root,data)
  113. self:InitGenerate__24(Root,data)
  114. self:InitGenerate__25(Root,data)
  115. end
  116. ---@private
  117. function UIBattleWinView:InitGenerate__1(Root, data)
  118. --[[
  119. UIAnimator
  120. --]]
  121. local tmp = Root:Find("UIAnimator").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.uIAnimator = tmp
  126. end
  127. ---@private
  128. function UIBattleWinView:InitGenerate__2(Root, data)
  129. --[[
  130. UIAnimator/Alpha
  131. --]]
  132. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.AnyBtn = tmp
  137. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  138. end
  139. ---@private
  140. function UIBattleWinView:InitGenerate__3(Root, data)
  141. --[[
  142. UIAnimator/Window
  143. --]]
  144. local tmp = Root:Find("UIAnimator/Window").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.window = tmp
  149. end
  150. ---@private
  151. function UIBattleWinView:InitGenerate__4(Root, data)
  152. --[[
  153. UIAnimator/Window/BG/Map/Map/BigMap
  154. --]]
  155. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap").gameObject
  156. if tolua.getpeer(tmp) == nil then
  157. tolua.setpeer(tmp, {})
  158. end
  159. self.bigMap = tmp
  160. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  161. end
  162. ---@private
  163. function UIBattleWinView:InitGenerate__5(Root, data)
  164. --[[
  165. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content
  166. --]]
  167. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.bigMap.content = tmp
  172. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  173. end
  174. ---@private
  175. function UIBattleWinView:InitGenerate__6(Root, data)
  176. --[[
  177. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/BottomImage
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/BottomImage").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.bigMap.bottomImage = tmp
  184. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  185. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  186. end
  187. ---@private
  188. function UIBattleWinView:InitGenerate__7(Root, data)
  189. --[[
  190. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/LinePath
  191. --]]
  192. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/LinePath").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.bigMap.linePath = tmp
  197. tmp.uIBigMapLine = tmp:GetComponent(Enum.TypeInfo.UIBigMapLine)
  198. end
  199. ---@private
  200. function UIBattleWinView:InitGenerate__8(Root, data)
  201. --[[
  202. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/SmallPoints
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/SmallPoints").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.bigMap.smallPoints = tmp
  209. end
  210. ---@private
  211. function UIBattleWinView:InitGenerate__9(Root, data)
  212. --[[
  213. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/BigPoints
  214. --]]
  215. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/BigPoints").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.bigMap.bigPoints = tmp
  220. end
  221. ---@private
  222. function UIBattleWinView:InitGenerate__10(Root, data)
  223. --[[
  224. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/StartPoint
  225. --]]
  226. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/StartPoint").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.bigMap.startPoint = tmp
  231. end
  232. ---@private
  233. function UIBattleWinView:InitGenerate__11(Root, data)
  234. --[[
  235. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/StoryPoints
  236. --]]
  237. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/StoryPoints").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.bigMap.storyPoints = tmp
  242. end
  243. ---@private
  244. function UIBattleWinView:InitGenerate__12(Root, data)
  245. --[[
  246. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/OneRank
  247. --]]
  248. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/OneRank").gameObject
  249. if tolua.getpeer(tmp) == nil then
  250. tolua.setpeer(tmp, {})
  251. end
  252. self.bigMap.oneRank = tmp
  253. end
  254. ---@private
  255. function UIBattleWinView:InitGenerate__13(Root, data)
  256. --[[
  257. UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/SelfContainer
  258. --]]
  259. local tmp = Root:Find("UIAnimator/Window/BG/Map/Map/BigMap/Viewport/Content/SelfContainer").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.bigMap.selfContainer = tmp
  264. end
  265. ---@private
  266. function UIBattleWinView:InitGenerate__14(Root, data)
  267. --[[
  268. UIAnimator/Window/BG/Coinreward/Group/ExpBase
  269. --]]
  270. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpBase").gameObject
  271. if tolua.getpeer(tmp) == nil then
  272. tolua.setpeer(tmp, {})
  273. end
  274. self.expBase = tmp
  275. end
  276. ---@private
  277. function UIBattleWinView:InitGenerate__15(Root, data)
  278. --[[
  279. UIAnimator/Window/BG/Coinreward/Group/ExpBase/Text
  280. --]]
  281. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpBase/Text").gameObject
  282. if tolua.getpeer(tmp) == nil then
  283. tolua.setpeer(tmp, {})
  284. end
  285. self.expBase.text = tmp
  286. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  287. end
  288. ---@private
  289. function UIBattleWinView:InitGenerate__16(Root, data)
  290. --[[
  291. UIAnimator/Window/BG/Coinreward/Group/Zeny
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Zeny").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.zeny = tmp
  298. end
  299. ---@private
  300. function UIBattleWinView:InitGenerate__17(Root, data)
  301. --[[
  302. UIAnimator/Window/BG/Coinreward/Group/Zeny/Text
  303. --]]
  304. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Zeny/Text").gameObject
  305. if tolua.getpeer(tmp) == nil then
  306. tolua.setpeer(tmp, {})
  307. end
  308. self.zeny.text = tmp
  309. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  310. end
  311. ---@private
  312. function UIBattleWinView:InitGenerate__18(Root, data)
  313. --[[
  314. UIAnimator/Window/BG/Coinreward/Group/ExpParter
  315. --]]
  316. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpParter").gameObject
  317. if tolua.getpeer(tmp) == nil then
  318. tolua.setpeer(tmp, {})
  319. end
  320. self.expParter = tmp
  321. end
  322. ---@private
  323. function UIBattleWinView:InitGenerate__19(Root, data)
  324. --[[
  325. UIAnimator/Window/BG/Coinreward/Group/ExpParter/Text
  326. --]]
  327. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpParter/Text").gameObject
  328. if tolua.getpeer(tmp) == nil then
  329. tolua.setpeer(tmp, {})
  330. end
  331. self.expParter.text = tmp
  332. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  333. end
  334. ---@private
  335. function UIBattleWinView:InitGenerate__20(Root, data)
  336. --[[
  337. UIAnimator/Window/BG/Coinreward/Group/ExpJob
  338. --]]
  339. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpJob").gameObject
  340. if tolua.getpeer(tmp) == nil then
  341. tolua.setpeer(tmp, {})
  342. end
  343. self.expJob = tmp
  344. end
  345. ---@private
  346. function UIBattleWinView:InitGenerate__21(Root, data)
  347. --[[
  348. UIAnimator/Window/BG/Coinreward/Group/ExpJob/Text
  349. --]]
  350. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/ExpJob/Text").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.expJob.text = tmp
  355. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  356. end
  357. ---@private
  358. function UIBattleWinView:InitGenerate__22(Root, data)
  359. --[[
  360. UIAnimator/Window/BG/Coinreward/Group/Coin
  361. --]]
  362. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Coin").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.coin = tmp
  367. end
  368. ---@private
  369. function UIBattleWinView:InitGenerate__23(Root, data)
  370. --[[
  371. UIAnimator/Window/BG/Coinreward/Group/Coin/Text
  372. --]]
  373. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Coin/Text").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.coin.text = tmp
  378. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  379. end
  380. ---@private
  381. function UIBattleWinView:InitGenerate__24(Root, data)
  382. --[[
  383. UIAnimator/Window/BG/Coinreward/Group/Drop
  384. --]]
  385. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Drop").gameObject
  386. if tolua.getpeer(tmp) == nil then
  387. tolua.setpeer(tmp, {})
  388. end
  389. self.drop = tmp
  390. end
  391. ---@private
  392. function UIBattleWinView:InitGenerate__25(Root, data)
  393. --[[
  394. UIAnimator/Window/BG/Coinreward/Group/Drop/Text
  395. --]]
  396. local tmp = Root:Find("UIAnimator/Window/BG/Coinreward/Group/Drop/Text").gameObject
  397. if tolua.getpeer(tmp) == nil then
  398. tolua.setpeer(tmp, {})
  399. end
  400. self.drop.text = tmp
  401. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  402. end
  403. ---@private
  404. function UIBattleWinView:GenerateDestroy()
  405. if tolua.getpeer(self.drop.text) ~= nil then
  406. tolua.setpeer(self.drop.text, nil)
  407. end
  408. if tolua.getpeer(self.coin.text) ~= nil then
  409. tolua.setpeer(self.coin.text, nil)
  410. end
  411. if tolua.getpeer(self.expJob.text) ~= nil then
  412. tolua.setpeer(self.expJob.text, nil)
  413. end
  414. if tolua.getpeer(self.expParter.text) ~= nil then
  415. tolua.setpeer(self.expParter.text, nil)
  416. end
  417. if tolua.getpeer(self.zeny.text) ~= nil then
  418. tolua.setpeer(self.zeny.text, nil)
  419. end
  420. if tolua.getpeer(self.expBase.text) ~= nil then
  421. tolua.setpeer(self.expBase.text, nil)
  422. end
  423. if tolua.getpeer(self.bigMap.selfContainer) ~= nil then
  424. tolua.setpeer(self.bigMap.selfContainer, nil)
  425. end
  426. if tolua.getpeer(self.bigMap.oneRank) ~= nil then
  427. tolua.setpeer(self.bigMap.oneRank, nil)
  428. end
  429. if tolua.getpeer(self.bigMap.storyPoints) ~= nil then
  430. tolua.setpeer(self.bigMap.storyPoints, nil)
  431. end
  432. if tolua.getpeer(self.bigMap.startPoint) ~= nil then
  433. tolua.setpeer(self.bigMap.startPoint, nil)
  434. end
  435. if tolua.getpeer(self.bigMap.bigPoints) ~= nil then
  436. tolua.setpeer(self.bigMap.bigPoints, nil)
  437. end
  438. if tolua.getpeer(self.bigMap.smallPoints) ~= nil then
  439. tolua.setpeer(self.bigMap.smallPoints, nil)
  440. end
  441. if tolua.getpeer(self.bigMap.linePath) ~= nil then
  442. tolua.setpeer(self.bigMap.linePath, nil)
  443. end
  444. if tolua.getpeer(self.bigMap.bottomImage) ~= nil then
  445. tolua.setpeer(self.bigMap.bottomImage, nil)
  446. end
  447. if tolua.getpeer(self.bigMap.content) ~= nil then
  448. tolua.setpeer(self.bigMap.content, nil)
  449. end
  450. if tolua.getpeer(self.uIAnimator) ~= nil then
  451. tolua.setpeer(self.uIAnimator, nil)
  452. end
  453. self.uIAnimator = nil
  454. if tolua.getpeer(self.AnyBtn) ~= nil then
  455. tolua.setpeer(self.AnyBtn, nil)
  456. end
  457. self.AnyBtn = nil
  458. if tolua.getpeer(self.window) ~= nil then
  459. tolua.setpeer(self.window, nil)
  460. end
  461. self.window = nil
  462. if tolua.getpeer(self.bigMap) ~= nil then
  463. tolua.setpeer(self.bigMap, nil)
  464. end
  465. self.bigMap = nil
  466. if tolua.getpeer(self.expBase) ~= nil then
  467. tolua.setpeer(self.expBase, nil)
  468. end
  469. self.expBase = nil
  470. if tolua.getpeer(self.zeny) ~= nil then
  471. tolua.setpeer(self.zeny, nil)
  472. end
  473. self.zeny = nil
  474. if tolua.getpeer(self.expParter) ~= nil then
  475. tolua.setpeer(self.expParter, nil)
  476. end
  477. self.expParter = nil
  478. if tolua.getpeer(self.expJob) ~= nil then
  479. tolua.setpeer(self.expJob, nil)
  480. end
  481. self.expJob = nil
  482. if tolua.getpeer(self.coin) ~= nil then
  483. tolua.setpeer(self.coin, nil)
  484. end
  485. self.coin = nil
  486. if tolua.getpeer(self.drop) ~= nil then
  487. tolua.setpeer(self.drop, nil)
  488. end
  489. self.drop = nil
  490. self.transform = nil
  491. self.gameObject = nil
  492. self.inited = false
  493. end
  494. return UIBattleWinView