UIExchangeView_Generate.lua 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. ---@class UIExchange__Generate_item4_iconSmallItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public layoutElement UnityEngine.UI.LayoutElement
  5. ---@class UIExchange__Generate_item4_btnExchange
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public button UnityEngine.UI.Button
  8. ---@class UIExchange__Generate_item4_num
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public text UnityEngine.UI.Text
  11. ---@class UIExchange__Generate_item4
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public num UIExchange__Generate_item4_num
  14. ---@field public btnExchange UIExchange__Generate_item4_btnExchange
  15. ---@field public iconSmallItem UIExchange__Generate_item4_iconSmallItem
  16. ---@class UIExchange__Generate_item3_iconSmallItem
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public rectTransform UnityEngine.RectTransform
  19. ---@field public layoutElement UnityEngine.UI.LayoutElement
  20. ---@class UIExchange__Generate_item3_btnExchange
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public button UnityEngine.UI.Button
  23. ---@class UIExchange__Generate_item3_num
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public text UnityEngine.UI.Text
  26. ---@class UIExchange__Generate_item3
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public num UIExchange__Generate_item3_num
  29. ---@field public btnExchange UIExchange__Generate_item3_btnExchange
  30. ---@field public iconSmallItem UIExchange__Generate_item3_iconSmallItem
  31. ---@class UIExchange__Generate_item2_iconSmallItem
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public rectTransform UnityEngine.RectTransform
  34. ---@field public layoutElement UnityEngine.UI.LayoutElement
  35. ---@class UIExchange__Generate_item2_btnExchange
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public button UnityEngine.UI.Button
  38. ---@class UIExchange__Generate_item2_num
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public text UnityEngine.UI.Text
  41. ---@class UIExchange__Generate_item2
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public num UIExchange__Generate_item2_num
  44. ---@field public btnExchange UIExchange__Generate_item2_btnExchange
  45. ---@field public iconSmallItem UIExchange__Generate_item2_iconSmallItem
  46. ---@class UIExchange__Generate_item1_iconSmallItem
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public rectTransform UnityEngine.RectTransform
  49. ---@field public layoutElement UnityEngine.UI.LayoutElement
  50. ---@class UIExchange__Generate_item1_btnExchange
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public button UnityEngine.UI.Button
  53. ---@class UIExchange__Generate_item1_num
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public text UnityEngine.UI.Text
  56. ---@class UIExchange__Generate_item1
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public num UIExchange__Generate_item1_num
  59. ---@field public btnExchange UIExchange__Generate_item1_btnExchange
  60. ---@field public iconSmallItem UIExchange__Generate_item1_iconSmallItem
  61. ---@class UIExchange__Generate_next_num
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public text UnityEngine.UI.Text
  64. ---@class UIExchange__Generate_next
  65. ---@field public gameObject UnityEngine.GameObject
  66. ---@field public num UIExchange__Generate_next_num
  67. ---@class UIExchange__Generate_myScore_num
  68. ---@field public gameObject UnityEngine.GameObject
  69. ---@field public text UnityEngine.UI.Text
  70. ---@class UIExchange__Generate_myScore
  71. ---@field public gameObject UnityEngine.GameObject
  72. ---@field public num UIExchange__Generate_myScore_num
  73. ---@class UIExchange__Generate_reward_num
  74. ---@field public gameObject UnityEngine.GameObject
  75. ---@field public uILocalizeScript UILocalizeScript
  76. ---@class UIExchange__Generate_reward_icon
  77. ---@field public gameObject UnityEngine.GameObject
  78. ---@field public image UnityEngine.UI.Image
  79. ---@class UIExchange__Generate_reward
  80. ---@field public gameObject UnityEngine.GameObject
  81. ---@field public icon UIExchange__Generate_reward_icon
  82. ---@field public num UIExchange__Generate_reward_num
  83. ---@class UIExchange__Generate_collection_num
  84. ---@field public gameObject UnityEngine.GameObject
  85. ---@field public uILocalizeScript UILocalizeScript
  86. ---@class UIExchange__Generate_collection_text
  87. ---@field public gameObject UnityEngine.GameObject
  88. ---@field public uILocalizeScript UILocalizeScript
  89. ---@class UIExchange__Generate_collection
  90. ---@field public gameObject UnityEngine.GameObject
  91. ---@field public text UIExchange__Generate_collection_text
  92. ---@field public num UIExchange__Generate_collection_num
  93. ---@class UIExchange__Generate_btnClose
  94. ---@field public gameObject UnityEngine.GameObject
  95. ---@field public button UnityEngine.UI.Button
  96. ---@class UIExchange__Generate_AnyBtn
  97. ---@field public gameObject UnityEngine.GameObject
  98. ---@field public button UnityEngine.UI.Button
  99. ---@class UIExchange__Generate_uIAnimator
  100. ---@field public gameObject UnityEngine.GameObject
  101. ---@field public animator UnityEngine.Animator
  102. ---@class UIExchange__Generate
  103. ---@field private gameObject UnityEngine.GameObject
  104. ---@field private transform UnityEngine.Transform
  105. ---@field private uIAnimator UIExchange__Generate_uIAnimator
  106. ---@field private AnyBtn UIExchange__Generate_AnyBtn
  107. ---@field private btnClose UIExchange__Generate_btnClose
  108. ---@field private collection UIExchange__Generate_collection
  109. ---@field private reward UIExchange__Generate_reward
  110. ---@field private myScore UIExchange__Generate_myScore
  111. ---@field private next UIExchange__Generate_next
  112. ---@field private exchangeBox UnityEngine.GameObject
  113. ---@field private item1 UIExchange__Generate_item1
  114. ---@field private item2 UIExchange__Generate_item2
  115. ---@field private item3 UIExchange__Generate_item3
  116. ---@field private item4 UIExchange__Generate_item4
  117. local UIExchangeView = class("UIExchangeView", require("UIViewBase"))
  118. function UIExchangeView:ctor()
  119. end
  120. ---@private
  121. function UIExchangeView:SetActive(result)
  122. self.gameObject:SetActive(result)
  123. end
  124. ---@private
  125. function UIExchangeView:InitGenerate(Root, data)
  126. self.transform = Root
  127. self.inited = true
  128. if self.super.Init then
  129. self.super.Init(self)
  130. end
  131. local tmp
  132. self:InitGenerate__1(Root,data)
  133. self:InitGenerate__2(Root,data)
  134. self:InitGenerate__3(Root,data)
  135. self:InitGenerate__4(Root,data)
  136. self:InitGenerate__5(Root,data)
  137. self:InitGenerate__6(Root,data)
  138. self:InitGenerate__7(Root,data)
  139. self:InitGenerate__8(Root,data)
  140. self:InitGenerate__9(Root,data)
  141. self:InitGenerate__10(Root,data)
  142. self:InitGenerate__11(Root,data)
  143. self:InitGenerate__12(Root,data)
  144. self:InitGenerate__13(Root,data)
  145. self:InitGenerate__14(Root,data)
  146. self:InitGenerate__15(Root,data)
  147. self:InitGenerate__16(Root,data)
  148. self:InitGenerate__17(Root,data)
  149. self:InitGenerate__18(Root,data)
  150. self:InitGenerate__19(Root,data)
  151. self:InitGenerate__20(Root,data)
  152. self:InitGenerate__21(Root,data)
  153. self:InitGenerate__22(Root,data)
  154. self:InitGenerate__23(Root,data)
  155. self:InitGenerate__24(Root,data)
  156. self:InitGenerate__25(Root,data)
  157. self:InitGenerate__26(Root,data)
  158. self:InitGenerate__27(Root,data)
  159. self:InitGenerate__28(Root,data)
  160. self:InitGenerate__29(Root,data)
  161. self:InitGenerate__30(Root,data)
  162. end
  163. ---@private
  164. function UIExchangeView:InitGenerate__1(Root, data)
  165. --[[
  166. UIAnimator
  167. --]]
  168. local tmp = Root:Find("UIAnimator").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.uIAnimator = tmp
  173. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  174. tmp.animator.logWarnings = false
  175. end
  176. ---@private
  177. function UIExchangeView:InitGenerate__2(Root, data)
  178. --[[
  179. UIAnimator/Alpha
  180. --]]
  181. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  182. if tolua.getpeer(tmp) == nil then
  183. tolua.setpeer(tmp, {})
  184. end
  185. self.AnyBtn = tmp
  186. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  187. end
  188. ---@private
  189. function UIExchangeView:InitGenerate__3(Root, data)
  190. --[[
  191. UIAnimator/Window/BG/BtnClose
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/BG/BtnClose").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.btnClose = tmp
  198. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  199. end
  200. ---@private
  201. function UIExchangeView:InitGenerate__4(Root, data)
  202. --[[
  203. UIAnimator/Window/BG/ScoreBox/Collection
  204. --]]
  205. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Collection").gameObject
  206. if tolua.getpeer(tmp) == nil then
  207. tolua.setpeer(tmp, {})
  208. end
  209. self.collection = tmp
  210. end
  211. ---@private
  212. function UIExchangeView:InitGenerate__5(Root, data)
  213. --[[
  214. UIAnimator/Window/BG/ScoreBox/Collection/Text
  215. --]]
  216. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Collection/Text").gameObject
  217. if tolua.getpeer(tmp) == nil then
  218. tolua.setpeer(tmp, {})
  219. end
  220. self.collection.text = tmp
  221. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  222. end
  223. ---@private
  224. function UIExchangeView:InitGenerate__6(Root, data)
  225. --[[
  226. UIAnimator/Window/BG/ScoreBox/Collection/Num
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Collection/Num").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.collection.num = tmp
  233. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  234. end
  235. ---@private
  236. function UIExchangeView:InitGenerate__7(Root, data)
  237. --[[
  238. UIAnimator/Window/BG/ScoreBox/Reward
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Reward").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.reward = tmp
  245. end
  246. ---@private
  247. function UIExchangeView:InitGenerate__8(Root, data)
  248. --[[
  249. UIAnimator/Window/BG/ScoreBox/Reward/icon
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Reward/icon").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.reward.icon = tmp
  256. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  257. end
  258. ---@private
  259. function UIExchangeView:InitGenerate__9(Root, data)
  260. --[[
  261. UIAnimator/Window/BG/ScoreBox/Reward/Num
  262. --]]
  263. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Reward/Num").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.reward.num = tmp
  268. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  269. end
  270. ---@private
  271. function UIExchangeView:InitGenerate__10(Root, data)
  272. --[[
  273. UIAnimator/Window/BG/ScoreBox/MyScore
  274. --]]
  275. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/MyScore").gameObject
  276. if tolua.getpeer(tmp) == nil then
  277. tolua.setpeer(tmp, {})
  278. end
  279. self.myScore = tmp
  280. end
  281. ---@private
  282. function UIExchangeView:InitGenerate__11(Root, data)
  283. --[[
  284. UIAnimator/Window/BG/ScoreBox/MyScore/Num
  285. --]]
  286. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/MyScore/Num").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.myScore.num = tmp
  291. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  292. end
  293. ---@private
  294. function UIExchangeView:InitGenerate__12(Root, data)
  295. --[[
  296. UIAnimator/Window/BG/ScoreBox/Next
  297. --]]
  298. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Next").gameObject
  299. if tolua.getpeer(tmp) == nil then
  300. tolua.setpeer(tmp, {})
  301. end
  302. self.next = tmp
  303. end
  304. ---@private
  305. function UIExchangeView:InitGenerate__13(Root, data)
  306. --[[
  307. UIAnimator/Window/BG/ScoreBox/Next/Num
  308. --]]
  309. local tmp = Root:Find("UIAnimator/Window/BG/ScoreBox/Next/Num").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.next.num = tmp
  314. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  315. end
  316. ---@private
  317. function UIExchangeView:InitGenerate__14(Root, data)
  318. --[[
  319. UIAnimator/Window/BG/ExchangeBox
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.exchangeBox = tmp
  326. end
  327. ---@private
  328. function UIExchangeView:InitGenerate__15(Root, data)
  329. --[[
  330. UIAnimator/Window/BG/ExchangeBox/Item1
  331. --]]
  332. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item1").gameObject
  333. if tolua.getpeer(tmp) == nil then
  334. tolua.setpeer(tmp, {})
  335. end
  336. self.item1 = tmp
  337. end
  338. ---@private
  339. function UIExchangeView:InitGenerate__16(Root, data)
  340. --[[
  341. UIAnimator/Window/BG/ExchangeBox/Item1/Num
  342. --]]
  343. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item1/Num").gameObject
  344. if tolua.getpeer(tmp) == nil then
  345. tolua.setpeer(tmp, {})
  346. end
  347. self.item1.num = tmp
  348. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  349. end
  350. ---@private
  351. function UIExchangeView:InitGenerate__17(Root, data)
  352. --[[
  353. UIAnimator/Window/BG/ExchangeBox/Item1/BtnExchange
  354. --]]
  355. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item1/BtnExchange").gameObject
  356. if tolua.getpeer(tmp) == nil then
  357. tolua.setpeer(tmp, {})
  358. end
  359. self.item1.btnExchange = tmp
  360. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  361. end
  362. ---@private
  363. function UIExchangeView:InitGenerate__18(Root, data)
  364. --[[
  365. UIAnimator/Window/BG/ExchangeBox/Item1/Icon/IconSmallItem
  366. --]]
  367. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item1/Icon/IconSmallItem").gameObject
  368. if tolua.getpeer(tmp) == nil then
  369. tolua.setpeer(tmp, {})
  370. end
  371. self.item1.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  372. self.item1.iconSmallItem.prefabName = "IconItem"
  373. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  374. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  375. end
  376. ---@private
  377. function UIExchangeView:InitGenerate__19(Root, data)
  378. --[[
  379. UIAnimator/Window/BG/ExchangeBox/Item2
  380. --]]
  381. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item2").gameObject
  382. if tolua.getpeer(tmp) == nil then
  383. tolua.setpeer(tmp, {})
  384. end
  385. self.item2 = tmp
  386. end
  387. ---@private
  388. function UIExchangeView:InitGenerate__20(Root, data)
  389. --[[
  390. UIAnimator/Window/BG/ExchangeBox/Item2/Num
  391. --]]
  392. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item2/Num").gameObject
  393. if tolua.getpeer(tmp) == nil then
  394. tolua.setpeer(tmp, {})
  395. end
  396. self.item2.num = tmp
  397. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  398. end
  399. ---@private
  400. function UIExchangeView:InitGenerate__21(Root, data)
  401. --[[
  402. UIAnimator/Window/BG/ExchangeBox/Item2/BtnExchange
  403. --]]
  404. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item2/BtnExchange").gameObject
  405. if tolua.getpeer(tmp) == nil then
  406. tolua.setpeer(tmp, {})
  407. end
  408. self.item2.btnExchange = tmp
  409. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  410. end
  411. ---@private
  412. function UIExchangeView:InitGenerate__22(Root, data)
  413. --[[
  414. UIAnimator/Window/BG/ExchangeBox/Item2/Icon/IconSmallItem
  415. --]]
  416. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item2/Icon/IconSmallItem").gameObject
  417. if tolua.getpeer(tmp) == nil then
  418. tolua.setpeer(tmp, {})
  419. end
  420. self.item2.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  421. self.item2.iconSmallItem.prefabName = "IconItem"
  422. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  423. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  424. end
  425. ---@private
  426. function UIExchangeView:InitGenerate__23(Root, data)
  427. --[[
  428. UIAnimator/Window/BG/ExchangeBox/Item3
  429. --]]
  430. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item3").gameObject
  431. if tolua.getpeer(tmp) == nil then
  432. tolua.setpeer(tmp, {})
  433. end
  434. self.item3 = tmp
  435. end
  436. ---@private
  437. function UIExchangeView:InitGenerate__24(Root, data)
  438. --[[
  439. UIAnimator/Window/BG/ExchangeBox/Item3/Num
  440. --]]
  441. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item3/Num").gameObject
  442. if tolua.getpeer(tmp) == nil then
  443. tolua.setpeer(tmp, {})
  444. end
  445. self.item3.num = tmp
  446. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  447. end
  448. ---@private
  449. function UIExchangeView:InitGenerate__25(Root, data)
  450. --[[
  451. UIAnimator/Window/BG/ExchangeBox/Item3/BtnExchange
  452. --]]
  453. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item3/BtnExchange").gameObject
  454. if tolua.getpeer(tmp) == nil then
  455. tolua.setpeer(tmp, {})
  456. end
  457. self.item3.btnExchange = tmp
  458. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  459. end
  460. ---@private
  461. function UIExchangeView:InitGenerate__26(Root, data)
  462. --[[
  463. UIAnimator/Window/BG/ExchangeBox/Item3/Icon/IconSmallItem
  464. --]]
  465. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item3/Icon/IconSmallItem").gameObject
  466. if tolua.getpeer(tmp) == nil then
  467. tolua.setpeer(tmp, {})
  468. end
  469. self.item3.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  470. self.item3.iconSmallItem.prefabName = "IconItem"
  471. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  472. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  473. end
  474. ---@private
  475. function UIExchangeView:InitGenerate__27(Root, data)
  476. --[[
  477. UIAnimator/Window/BG/ExchangeBox/Item4
  478. --]]
  479. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item4").gameObject
  480. if tolua.getpeer(tmp) == nil then
  481. tolua.setpeer(tmp, {})
  482. end
  483. self.item4 = tmp
  484. end
  485. ---@private
  486. function UIExchangeView:InitGenerate__28(Root, data)
  487. --[[
  488. UIAnimator/Window/BG/ExchangeBox/Item4/Num
  489. --]]
  490. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item4/Num").gameObject
  491. if tolua.getpeer(tmp) == nil then
  492. tolua.setpeer(tmp, {})
  493. end
  494. self.item4.num = tmp
  495. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  496. end
  497. ---@private
  498. function UIExchangeView:InitGenerate__29(Root, data)
  499. --[[
  500. UIAnimator/Window/BG/ExchangeBox/Item4/BtnExchange
  501. --]]
  502. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item4/BtnExchange").gameObject
  503. if tolua.getpeer(tmp) == nil then
  504. tolua.setpeer(tmp, {})
  505. end
  506. self.item4.btnExchange = tmp
  507. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  508. end
  509. ---@private
  510. function UIExchangeView:InitGenerate__30(Root, data)
  511. --[[
  512. UIAnimator/Window/BG/ExchangeBox/Item4/Icon/IconSmallItem
  513. --]]
  514. local tmp = Root:Find("UIAnimator/Window/BG/ExchangeBox/Item4/Icon/IconSmallItem").gameObject
  515. if tolua.getpeer(tmp) == nil then
  516. tolua.setpeer(tmp, {})
  517. end
  518. self.item4.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  519. self.item4.iconSmallItem.prefabName = "IconItem"
  520. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  521. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  522. end
  523. ---@private
  524. function UIExchangeView:GenerateDestroy()
  525. if self.item4.iconSmallItem.GenerateDestroy ~= nil then
  526. self.item4.iconSmallItem:GenerateDestroy()
  527. end
  528. if tolua.getpeer(self.item4.iconSmallItem) ~= nil then
  529. tolua.setpeer(self.item4.iconSmallItem, nil)
  530. end
  531. if tolua.getpeer(self.item4.btnExchange) ~= nil then
  532. tolua.setpeer(self.item4.btnExchange, nil)
  533. end
  534. if tolua.getpeer(self.item4.num) ~= nil then
  535. tolua.setpeer(self.item4.num, nil)
  536. end
  537. if self.item3.iconSmallItem.GenerateDestroy ~= nil then
  538. self.item3.iconSmallItem:GenerateDestroy()
  539. end
  540. if tolua.getpeer(self.item3.iconSmallItem) ~= nil then
  541. tolua.setpeer(self.item3.iconSmallItem, nil)
  542. end
  543. if tolua.getpeer(self.item3.btnExchange) ~= nil then
  544. tolua.setpeer(self.item3.btnExchange, nil)
  545. end
  546. if tolua.getpeer(self.item3.num) ~= nil then
  547. tolua.setpeer(self.item3.num, nil)
  548. end
  549. if self.item2.iconSmallItem.GenerateDestroy ~= nil then
  550. self.item2.iconSmallItem:GenerateDestroy()
  551. end
  552. if tolua.getpeer(self.item2.iconSmallItem) ~= nil then
  553. tolua.setpeer(self.item2.iconSmallItem, nil)
  554. end
  555. if tolua.getpeer(self.item2.btnExchange) ~= nil then
  556. tolua.setpeer(self.item2.btnExchange, nil)
  557. end
  558. if tolua.getpeer(self.item2.num) ~= nil then
  559. tolua.setpeer(self.item2.num, nil)
  560. end
  561. if self.item1.iconSmallItem.GenerateDestroy ~= nil then
  562. self.item1.iconSmallItem:GenerateDestroy()
  563. end
  564. if tolua.getpeer(self.item1.iconSmallItem) ~= nil then
  565. tolua.setpeer(self.item1.iconSmallItem, nil)
  566. end
  567. if tolua.getpeer(self.item1.btnExchange) ~= nil then
  568. tolua.setpeer(self.item1.btnExchange, nil)
  569. end
  570. if tolua.getpeer(self.item1.num) ~= nil then
  571. tolua.setpeer(self.item1.num, nil)
  572. end
  573. if tolua.getpeer(self.next.num) ~= nil then
  574. tolua.setpeer(self.next.num, nil)
  575. end
  576. if tolua.getpeer(self.myScore.num) ~= nil then
  577. tolua.setpeer(self.myScore.num, nil)
  578. end
  579. if tolua.getpeer(self.reward.num) ~= nil then
  580. tolua.setpeer(self.reward.num, nil)
  581. end
  582. if tolua.getpeer(self.reward.icon) ~= nil then
  583. tolua.setpeer(self.reward.icon, nil)
  584. end
  585. if tolua.getpeer(self.collection.num) ~= nil then
  586. tolua.setpeer(self.collection.num, nil)
  587. end
  588. if tolua.getpeer(self.collection.text) ~= nil then
  589. tolua.setpeer(self.collection.text, nil)
  590. end
  591. if tolua.getpeer(self.uIAnimator) ~= nil then
  592. tolua.setpeer(self.uIAnimator, nil)
  593. end
  594. self.uIAnimator = nil
  595. if tolua.getpeer(self.AnyBtn) ~= nil then
  596. tolua.setpeer(self.AnyBtn, nil)
  597. end
  598. self.AnyBtn = nil
  599. if tolua.getpeer(self.btnClose) ~= nil then
  600. tolua.setpeer(self.btnClose, nil)
  601. end
  602. self.btnClose = nil
  603. if tolua.getpeer(self.collection) ~= nil then
  604. tolua.setpeer(self.collection, nil)
  605. end
  606. self.collection = nil
  607. if tolua.getpeer(self.reward) ~= nil then
  608. tolua.setpeer(self.reward, nil)
  609. end
  610. self.reward = nil
  611. if tolua.getpeer(self.myScore) ~= nil then
  612. tolua.setpeer(self.myScore, nil)
  613. end
  614. self.myScore = nil
  615. if tolua.getpeer(self.next) ~= nil then
  616. tolua.setpeer(self.next, nil)
  617. end
  618. self.next = nil
  619. if tolua.getpeer(self.exchangeBox) ~= nil then
  620. tolua.setpeer(self.exchangeBox, nil)
  621. end
  622. self.exchangeBox = nil
  623. if tolua.getpeer(self.item1) ~= nil then
  624. tolua.setpeer(self.item1, nil)
  625. end
  626. self.item1 = nil
  627. if tolua.getpeer(self.item2) ~= nil then
  628. tolua.setpeer(self.item2, nil)
  629. end
  630. self.item2 = nil
  631. if tolua.getpeer(self.item3) ~= nil then
  632. tolua.setpeer(self.item3, nil)
  633. end
  634. self.item3 = nil
  635. if tolua.getpeer(self.item4) ~= nil then
  636. tolua.setpeer(self.item4, nil)
  637. end
  638. self.item4 = nil
  639. self.transform = nil
  640. self.gameObject = nil
  641. self.inited = false
  642. end
  643. return UIExchangeView