ExchangeItem_Generate.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. ---@class ExchangeItem__Generate_number
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text TMPro.TextMeshProUGUI
  4. ---@class ExchangeItem__Generate_dscReminder
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class ExchangeItem__Generate_textR
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class ExchangeItem__Generate_button
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class ExchangeItem__Generate_reward_iconSmallItem2
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@field public layoutElement UnityEngine.UI.LayoutElement
  17. ---@class ExchangeItem__Generate_numberReward
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public text UnityEngine.UI.Text
  20. ---@class ExchangeItem__Generate_reward
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public iconSmallItem2 ExchangeItem__Generate_reward_iconSmallItem2
  23. ---@class ExchangeItem__Generate_text4
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public text UnityEngine.UI.Text
  26. ---@class ExchangeItem__Generate_coastItem3_iconSmallItem1
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public rectTransform UnityEngine.RectTransform
  29. ---@field public layoutElement UnityEngine.UI.LayoutElement
  30. ---@class ExchangeItem__Generate_coastItem3
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public button UnityEngine.UI.Button
  33. ---@field public iconSmallItem1 ExchangeItem__Generate_coastItem3_iconSmallItem1
  34. ---@class ExchangeItem__Generate_text3
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class ExchangeItem__Generate_coastItem2_iconSmallItem1
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public rectTransform UnityEngine.RectTransform
  40. ---@field public layoutElement UnityEngine.UI.LayoutElement
  41. ---@class ExchangeItem__Generate_coastItem2
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public button UnityEngine.UI.Button
  44. ---@field public iconSmallItem1 ExchangeItem__Generate_coastItem2_iconSmallItem1
  45. ---@class ExchangeItem__Generate_text2
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public text UnityEngine.UI.Text
  48. ---@class ExchangeItem__Generate_coastItem1_iconSmallItem1
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public rectTransform UnityEngine.RectTransform
  51. ---@field public layoutElement UnityEngine.UI.LayoutElement
  52. ---@class ExchangeItem__Generate_coastItem1
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public button UnityEngine.UI.Button
  55. ---@field public iconSmallItem1 ExchangeItem__Generate_coastItem1_iconSmallItem1
  56. ---@class ExchangeItem__Generate_text1
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public text UnityEngine.UI.Text
  59. ---@class ExchangeItem__Generate_coastItem0_iconSmallItem1
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public rectTransform UnityEngine.RectTransform
  62. ---@field public layoutElement UnityEngine.UI.LayoutElement
  63. ---@class ExchangeItem__Generate_coastItem0
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public button UnityEngine.UI.Button
  66. ---@field public iconSmallItem1 ExchangeItem__Generate_coastItem0_iconSmallItem1
  67. ---@class ExchangeItem__Generate_coast
  68. ---@field public gameObject UnityEngine.GameObject
  69. ---@field public scrollRect UnityEngine.UI.ScrollRect
  70. ---@class ExchangeItem__Generate
  71. ---@field private gameObject UnityEngine.GameObject
  72. ---@field private transform UnityEngine.Transform
  73. ---@field private rectTransform UnityEngine.RectTransform
  74. ---@field private coast ExchangeItem__Generate_coast
  75. ---@field private coastItem0 ExchangeItem__Generate_coastItem0
  76. ---@field private text1 ExchangeItem__Generate_text1
  77. ---@field private coastItem1 ExchangeItem__Generate_coastItem1
  78. ---@field private text2 ExchangeItem__Generate_text2
  79. ---@field private coastItem2 ExchangeItem__Generate_coastItem2
  80. ---@field private text3 ExchangeItem__Generate_text3
  81. ---@field private coastItem3 ExchangeItem__Generate_coastItem3
  82. ---@field private text4 ExchangeItem__Generate_text4
  83. ---@field private reward ExchangeItem__Generate_reward
  84. ---@field private numberReward ExchangeItem__Generate_numberReward
  85. ---@field private button ExchangeItem__Generate_button
  86. ---@field private textR ExchangeItem__Generate_textR
  87. ---@field private uIRedPointRP UnityEngine.GameObject
  88. ---@field private dscReminder ExchangeItem__Generate_dscReminder
  89. ---@field private checkmark UnityEngine.GameObject
  90. ---@field private mask UnityEngine.GameObject
  91. ---@field private labelReceived UnityEngine.GameObject
  92. ---@field private serverLimit UnityEngine.GameObject
  93. ---@field private green UnityEngine.GameObject
  94. ---@field private red UnityEngine.GameObject
  95. ---@field private number ExchangeItem__Generate_number
  96. local ExchangeItemView = class("ExchangeItemView")
  97. function ExchangeItemView:ctor()
  98. end
  99. ---@private
  100. function ExchangeItemView:SetActive(result)
  101. self.gameObject:SetActive(result)
  102. end
  103. ---@private
  104. function ExchangeItemView:InitGenerate(Root, data)
  105. self.transform = Root
  106. self.inited = true
  107. local tmp
  108. self:InitGenerate__1(Root,data)
  109. self:InitGenerate__2(Root,data)
  110. self:InitGenerate__3(Root,data)
  111. self:InitGenerate__4(Root,data)
  112. self:InitGenerate__5(Root,data)
  113. self:InitGenerate__6(Root,data)
  114. self:InitGenerate__7(Root,data)
  115. self:InitGenerate__8(Root,data)
  116. self:InitGenerate__9(Root,data)
  117. self:InitGenerate__10(Root,data)
  118. self:InitGenerate__11(Root,data)
  119. self:InitGenerate__12(Root,data)
  120. self:InitGenerate__13(Root,data)
  121. self:InitGenerate__14(Root,data)
  122. self:InitGenerate__15(Root,data)
  123. self:InitGenerate__16(Root,data)
  124. self:InitGenerate__17(Root,data)
  125. self:InitGenerate__18(Root,data)
  126. self:InitGenerate__19(Root,data)
  127. self:InitGenerate__20(Root,data)
  128. self:InitGenerate__21(Root,data)
  129. self:InitGenerate__22(Root,data)
  130. self:InitGenerate__23(Root,data)
  131. self:InitGenerate__24(Root,data)
  132. self:InitGenerate__25(Root,data)
  133. self:InitGenerate__26(Root,data)
  134. self:InitGenerate__27(Root,data)
  135. self:InitGenerate__28(Root,data)
  136. end
  137. ---@private
  138. function ExchangeItemView:InitGenerate__1(Root, data)
  139. --[[
  140. Root
  141. --]]
  142. self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
  143. end
  144. ---@private
  145. function ExchangeItemView:InitGenerate__2(Root, data)
  146. --[[
  147. Coast
  148. --]]
  149. local tmp = Root:Find("Coast").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.coast = tmp
  154. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  155. end
  156. ---@private
  157. function ExchangeItemView:InitGenerate__3(Root, data)
  158. --[[
  159. Coast/Viewport/Content/CoastItem0
  160. --]]
  161. local tmp = Root:Find("Coast/Viewport/Content/CoastItem0").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.coastItem0 = tmp
  166. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  167. end
  168. ---@private
  169. function ExchangeItemView:InitGenerate__4(Root, data)
  170. --[[
  171. Coast/Viewport/Content/CoastItem0/icon/IconSmallItem1
  172. --]]
  173. local tmp = Root:Find("Coast/Viewport/Content/CoastItem0/icon/IconSmallItem1").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.coastItem0.iconSmallItem1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  178. self.coastItem0.iconSmallItem1.prefabName = "IconItem"
  179. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  180. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  181. end
  182. ---@private
  183. function ExchangeItemView:InitGenerate__5(Root, data)
  184. --[[
  185. Coast/Viewport/Content/CoastItem0/Number/Text1
  186. --]]
  187. local tmp = Root:Find("Coast/Viewport/Content/CoastItem0/Number/Text1").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.text1 = tmp
  192. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  193. end
  194. ---@private
  195. function ExchangeItemView:InitGenerate__6(Root, data)
  196. --[[
  197. Coast/Viewport/Content/CoastItem1
  198. --]]
  199. local tmp = Root:Find("Coast/Viewport/Content/CoastItem1").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.coastItem1 = tmp
  204. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  205. end
  206. ---@private
  207. function ExchangeItemView:InitGenerate__7(Root, data)
  208. --[[
  209. Coast/Viewport/Content/CoastItem1/icon/IconSmallItem1
  210. --]]
  211. local tmp = Root:Find("Coast/Viewport/Content/CoastItem1/icon/IconSmallItem1").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.coastItem1.iconSmallItem1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  216. self.coastItem1.iconSmallItem1.prefabName = "IconItem"
  217. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  218. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  219. end
  220. ---@private
  221. function ExchangeItemView:InitGenerate__8(Root, data)
  222. --[[
  223. Coast/Viewport/Content/CoastItem1/Number/Text2
  224. --]]
  225. local tmp = Root:Find("Coast/Viewport/Content/CoastItem1/Number/Text2").gameObject
  226. if tolua.getpeer(tmp) == nil then
  227. tolua.setpeer(tmp, {})
  228. end
  229. self.text2 = tmp
  230. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  231. end
  232. ---@private
  233. function ExchangeItemView:InitGenerate__9(Root, data)
  234. --[[
  235. Coast/Viewport/Content/CoastItem2
  236. --]]
  237. local tmp = Root:Find("Coast/Viewport/Content/CoastItem2").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.coastItem2 = tmp
  242. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  243. end
  244. ---@private
  245. function ExchangeItemView:InitGenerate__10(Root, data)
  246. --[[
  247. Coast/Viewport/Content/CoastItem2/icon/IconSmallItem1
  248. --]]
  249. local tmp = Root:Find("Coast/Viewport/Content/CoastItem2/icon/IconSmallItem1").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.coastItem2.iconSmallItem1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  254. self.coastItem2.iconSmallItem1.prefabName = "IconItem"
  255. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  256. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  257. end
  258. ---@private
  259. function ExchangeItemView:InitGenerate__11(Root, data)
  260. --[[
  261. Coast/Viewport/Content/CoastItem2/Number/Text3
  262. --]]
  263. local tmp = Root:Find("Coast/Viewport/Content/CoastItem2/Number/Text3").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.text3 = tmp
  268. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  269. end
  270. ---@private
  271. function ExchangeItemView:InitGenerate__12(Root, data)
  272. --[[
  273. Coast/Viewport/Content/CoastItem3
  274. --]]
  275. local tmp = Root:Find("Coast/Viewport/Content/CoastItem3").gameObject
  276. if tolua.getpeer(tmp) == nil then
  277. tolua.setpeer(tmp, {})
  278. end
  279. self.coastItem3 = tmp
  280. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  281. end
  282. ---@private
  283. function ExchangeItemView:InitGenerate__13(Root, data)
  284. --[[
  285. Coast/Viewport/Content/CoastItem3/icon/IconSmallItem1
  286. --]]
  287. local tmp = Root:Find("Coast/Viewport/Content/CoastItem3/icon/IconSmallItem1").gameObject
  288. if tolua.getpeer(tmp) == nil then
  289. tolua.setpeer(tmp, {})
  290. end
  291. self.coastItem3.iconSmallItem1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  292. self.coastItem3.iconSmallItem1.prefabName = "IconItem"
  293. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  294. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  295. end
  296. ---@private
  297. function ExchangeItemView:InitGenerate__14(Root, data)
  298. --[[
  299. Coast/Viewport/Content/CoastItem3/Number/Text4
  300. --]]
  301. local tmp = Root:Find("Coast/Viewport/Content/CoastItem3/Number/Text4").gameObject
  302. if tolua.getpeer(tmp) == nil then
  303. tolua.setpeer(tmp, {})
  304. end
  305. self.text4 = tmp
  306. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  307. end
  308. ---@private
  309. function ExchangeItemView:InitGenerate__15(Root, data)
  310. --[[
  311. Reward
  312. --]]
  313. local tmp = Root:Find("Reward").gameObject
  314. if tolua.getpeer(tmp) == nil then
  315. tolua.setpeer(tmp, {})
  316. end
  317. self.reward = tmp
  318. end
  319. ---@private
  320. function ExchangeItemView:InitGenerate__16(Root, data)
  321. --[[
  322. Reward/Limit/NumberReward
  323. --]]
  324. local tmp = Root:Find("Reward/Limit/NumberReward").gameObject
  325. if tolua.getpeer(tmp) == nil then
  326. tolua.setpeer(tmp, {})
  327. end
  328. self.numberReward = tmp
  329. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  330. end
  331. ---@private
  332. function ExchangeItemView:InitGenerate__17(Root, data)
  333. --[[
  334. Reward/IconSmallItem2
  335. --]]
  336. local tmp = Root:Find("Reward/IconSmallItem2").gameObject
  337. if tolua.getpeer(tmp) == nil then
  338. tolua.setpeer(tmp, {})
  339. end
  340. self.reward.iconSmallItem2 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  341. self.reward.iconSmallItem2.prefabName = "IconItem"
  342. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  343. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  344. end
  345. ---@private
  346. function ExchangeItemView:InitGenerate__18(Root, data)
  347. --[[
  348. Reward/Button
  349. --]]
  350. local tmp = Root:Find("Reward/Button").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.button = tmp
  355. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  356. end
  357. ---@private
  358. function ExchangeItemView:InitGenerate__19(Root, data)
  359. --[[
  360. Reward/Button/TextR
  361. --]]
  362. local tmp = Root:Find("Reward/Button/TextR").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.textR = tmp
  367. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  368. end
  369. ---@private
  370. function ExchangeItemView:InitGenerate__20(Root, data)
  371. --[[
  372. Reward/Button/UIRedPointRP
  373. --]]
  374. local tmp = Root:Find("Reward/Button/UIRedPointRP").gameObject
  375. if tolua.getpeer(tmp) == nil then
  376. tolua.setpeer(tmp, {})
  377. end
  378. self.uIRedPointRP = tmp
  379. end
  380. ---@private
  381. function ExchangeItemView:InitGenerate__21(Root, data)
  382. --[[
  383. DscReminder
  384. --]]
  385. local tmp = Root:Find("DscReminder").gameObject
  386. if tolua.getpeer(tmp) == nil then
  387. tolua.setpeer(tmp, {})
  388. end
  389. self.dscReminder = tmp
  390. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  391. end
  392. ---@private
  393. function ExchangeItemView:InitGenerate__22(Root, data)
  394. --[[
  395. DscReminder/Checkmark
  396. --]]
  397. local tmp = Root:Find("DscReminder/Checkmark").gameObject
  398. if tolua.getpeer(tmp) == nil then
  399. tolua.setpeer(tmp, {})
  400. end
  401. self.checkmark = tmp
  402. end
  403. ---@private
  404. function ExchangeItemView:InitGenerate__23(Root, data)
  405. --[[
  406. Mask
  407. --]]
  408. local tmp = Root:Find("Mask").gameObject
  409. if tolua.getpeer(tmp) == nil then
  410. tolua.setpeer(tmp, {})
  411. end
  412. self.mask = tmp
  413. end
  414. ---@private
  415. function ExchangeItemView:InitGenerate__24(Root, data)
  416. --[[
  417. Mask/LabelReceived
  418. --]]
  419. local tmp = Root:Find("Mask/LabelReceived").gameObject
  420. if tolua.getpeer(tmp) == nil then
  421. tolua.setpeer(tmp, {})
  422. end
  423. self.labelReceived = tmp
  424. end
  425. ---@private
  426. function ExchangeItemView:InitGenerate__25(Root, data)
  427. --[[
  428. ServerLimit
  429. --]]
  430. local tmp = Root:Find("ServerLimit").gameObject
  431. if tolua.getpeer(tmp) == nil then
  432. tolua.setpeer(tmp, {})
  433. end
  434. self.serverLimit = tmp
  435. end
  436. ---@private
  437. function ExchangeItemView:InitGenerate__26(Root, data)
  438. --[[
  439. ServerLimit/Green
  440. --]]
  441. local tmp = Root:Find("ServerLimit/Green").gameObject
  442. if tolua.getpeer(tmp) == nil then
  443. tolua.setpeer(tmp, {})
  444. end
  445. self.green = tmp
  446. end
  447. ---@private
  448. function ExchangeItemView:InitGenerate__27(Root, data)
  449. --[[
  450. ServerLimit/Red
  451. --]]
  452. local tmp = Root:Find("ServerLimit/Red").gameObject
  453. if tolua.getpeer(tmp) == nil then
  454. tolua.setpeer(tmp, {})
  455. end
  456. self.red = tmp
  457. end
  458. ---@private
  459. function ExchangeItemView:InitGenerate__28(Root, data)
  460. --[[
  461. ServerLimit/Number
  462. --]]
  463. local tmp = Root:Find("ServerLimit/Number").gameObject
  464. if tolua.getpeer(tmp) == nil then
  465. tolua.setpeer(tmp, {})
  466. end
  467. self.number = tmp
  468. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  469. end
  470. ---@private
  471. function ExchangeItemView:GenerateDestroy()
  472. if self.reward.iconSmallItem2.GenerateDestroy ~= nil then
  473. self.reward.iconSmallItem2:GenerateDestroy()
  474. end
  475. if tolua.getpeer(self.reward.iconSmallItem2) ~= nil then
  476. tolua.setpeer(self.reward.iconSmallItem2, nil)
  477. end
  478. if self.coastItem3.iconSmallItem1.GenerateDestroy ~= nil then
  479. self.coastItem3.iconSmallItem1:GenerateDestroy()
  480. end
  481. if tolua.getpeer(self.coastItem3.iconSmallItem1) ~= nil then
  482. tolua.setpeer(self.coastItem3.iconSmallItem1, nil)
  483. end
  484. if self.coastItem2.iconSmallItem1.GenerateDestroy ~= nil then
  485. self.coastItem2.iconSmallItem1:GenerateDestroy()
  486. end
  487. if tolua.getpeer(self.coastItem2.iconSmallItem1) ~= nil then
  488. tolua.setpeer(self.coastItem2.iconSmallItem1, nil)
  489. end
  490. if self.coastItem1.iconSmallItem1.GenerateDestroy ~= nil then
  491. self.coastItem1.iconSmallItem1:GenerateDestroy()
  492. end
  493. if tolua.getpeer(self.coastItem1.iconSmallItem1) ~= nil then
  494. tolua.setpeer(self.coastItem1.iconSmallItem1, nil)
  495. end
  496. if self.coastItem0.iconSmallItem1.GenerateDestroy ~= nil then
  497. self.coastItem0.iconSmallItem1:GenerateDestroy()
  498. end
  499. if tolua.getpeer(self.coastItem0.iconSmallItem1) ~= nil then
  500. tolua.setpeer(self.coastItem0.iconSmallItem1, nil)
  501. end
  502. if tolua.getpeer(self.coast) ~= nil then
  503. tolua.setpeer(self.coast, nil)
  504. end
  505. self.coast = nil
  506. if tolua.getpeer(self.coastItem0) ~= nil then
  507. tolua.setpeer(self.coastItem0, nil)
  508. end
  509. self.coastItem0 = nil
  510. if tolua.getpeer(self.text1) ~= nil then
  511. tolua.setpeer(self.text1, nil)
  512. end
  513. self.text1 = nil
  514. if tolua.getpeer(self.coastItem1) ~= nil then
  515. tolua.setpeer(self.coastItem1, nil)
  516. end
  517. self.coastItem1 = nil
  518. if tolua.getpeer(self.text2) ~= nil then
  519. tolua.setpeer(self.text2, nil)
  520. end
  521. self.text2 = nil
  522. if tolua.getpeer(self.coastItem2) ~= nil then
  523. tolua.setpeer(self.coastItem2, nil)
  524. end
  525. self.coastItem2 = nil
  526. if tolua.getpeer(self.text3) ~= nil then
  527. tolua.setpeer(self.text3, nil)
  528. end
  529. self.text3 = nil
  530. if tolua.getpeer(self.coastItem3) ~= nil then
  531. tolua.setpeer(self.coastItem3, nil)
  532. end
  533. self.coastItem3 = nil
  534. if tolua.getpeer(self.text4) ~= nil then
  535. tolua.setpeer(self.text4, nil)
  536. end
  537. self.text4 = nil
  538. if tolua.getpeer(self.reward) ~= nil then
  539. tolua.setpeer(self.reward, nil)
  540. end
  541. self.reward = nil
  542. if tolua.getpeer(self.numberReward) ~= nil then
  543. tolua.setpeer(self.numberReward, nil)
  544. end
  545. self.numberReward = nil
  546. if tolua.getpeer(self.button) ~= nil then
  547. tolua.setpeer(self.button, nil)
  548. end
  549. self.button = nil
  550. if tolua.getpeer(self.textR) ~= nil then
  551. tolua.setpeer(self.textR, nil)
  552. end
  553. self.textR = nil
  554. if tolua.getpeer(self.uIRedPointRP) ~= nil then
  555. tolua.setpeer(self.uIRedPointRP, nil)
  556. end
  557. self.uIRedPointRP = nil
  558. if tolua.getpeer(self.dscReminder) ~= nil then
  559. tolua.setpeer(self.dscReminder, nil)
  560. end
  561. self.dscReminder = nil
  562. if tolua.getpeer(self.checkmark) ~= nil then
  563. tolua.setpeer(self.checkmark, nil)
  564. end
  565. self.checkmark = nil
  566. if tolua.getpeer(self.mask) ~= nil then
  567. tolua.setpeer(self.mask, nil)
  568. end
  569. self.mask = nil
  570. if tolua.getpeer(self.labelReceived) ~= nil then
  571. tolua.setpeer(self.labelReceived, nil)
  572. end
  573. self.labelReceived = nil
  574. if tolua.getpeer(self.serverLimit) ~= nil then
  575. tolua.setpeer(self.serverLimit, nil)
  576. end
  577. self.serverLimit = nil
  578. if tolua.getpeer(self.green) ~= nil then
  579. tolua.setpeer(self.green, nil)
  580. end
  581. self.green = nil
  582. if tolua.getpeer(self.red) ~= nil then
  583. tolua.setpeer(self.red, nil)
  584. end
  585. self.red = nil
  586. if tolua.getpeer(self.number) ~= nil then
  587. tolua.setpeer(self.number, nil)
  588. end
  589. self.number = nil
  590. self.transform = nil
  591. self.gameObject = nil
  592. self.inited = false
  593. end
  594. return ExchangeItemView