UIFashionComposeView_Generate.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. ---@class UIFashionCompose__Generate_composeBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIFashionCompose__Generate_consume4_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIFashionCompose__Generate_Item4
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public rectTransform UnityEngine.RectTransform
  10. ---@field public layoutElement UnityEngine.UI.LayoutElement
  11. ---@class UIFashionCompose__Generate_consume4
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public rectTransform UnityEngine.RectTransform
  14. ---@field public text UIFashionCompose__Generate_consume4_text
  15. ---@class UIFashionCompose__Generate_consume3_text
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public text UnityEngine.UI.Text
  18. ---@class UIFashionCompose__Generate_Item3
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public rectTransform UnityEngine.RectTransform
  21. ---@field public layoutElement UnityEngine.UI.LayoutElement
  22. ---@class UIFashionCompose__Generate_consume3
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public rectTransform UnityEngine.RectTransform
  25. ---@field public text UIFashionCompose__Generate_consume3_text
  26. ---@class UIFashionCompose__Generate_consume2_text
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public text UnityEngine.UI.Text
  29. ---@class UIFashionCompose__Generate_Item2
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public rectTransform UnityEngine.RectTransform
  32. ---@field public layoutElement UnityEngine.UI.LayoutElement
  33. ---@class UIFashionCompose__Generate_consume2
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public rectTransform UnityEngine.RectTransform
  36. ---@field public text UIFashionCompose__Generate_consume2_text
  37. ---@class UIFashionCompose__Generate_consume1_text
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public text UnityEngine.UI.Text
  40. ---@class UIFashionCompose__Generate_Item1
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public rectTransform UnityEngine.RectTransform
  43. ---@field public layoutElement UnityEngine.UI.LayoutElement
  44. ---@class UIFashionCompose__Generate_consume1
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public rectTransform UnityEngine.RectTransform
  47. ---@field public text UIFashionCompose__Generate_consume1_text
  48. ---@class UIFashionCompose__Generate_nameTxt
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public text UnityEngine.UI.Text
  51. ---@class UIFashionCompose__Generate_rawImage
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public rawImage UnityEngine.UI.RawImage
  54. ---@class UIFashionCompose__Generate_coinZ_text
  55. ---@field public gameObject UnityEngine.GameObject
  56. ---@field public text UnityEngine.UI.Text
  57. ---@class UIFashionCompose__Generate_coinZ
  58. ---@field public gameObject UnityEngine.GameObject
  59. ---@field public rectTransform UnityEngine.RectTransform
  60. ---@field public coinIcon UnityEngine.GameObject
  61. ---@field public diamondIcon UnityEngine.GameObject
  62. ---@field public text UIFashionCompose__Generate_coinZ_text
  63. ---@class UIFashionCompose__Generate_btnClose
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public button UnityEngine.UI.Button
  66. ---@class UIFashionCompose__Generate_window
  67. ---@field public gameObject UnityEngine.GameObject
  68. ---@field public animator UnityEngine.Animator
  69. ---@class UIFashionCompose__Generate_AnyBtn
  70. ---@field public gameObject UnityEngine.GameObject
  71. ---@field public button UnityEngine.UI.Button
  72. ---@class UIFashionCompose__Generate_uIAnimator
  73. ---@field public gameObject UnityEngine.GameObject
  74. ---@field public animator UnityEngine.Animator
  75. ---@class UIFashionCompose__Generate
  76. ---@field private gameObject UnityEngine.GameObject
  77. ---@field private transform UnityEngine.Transform
  78. ---@field private uIAnimator UIFashionCompose__Generate_uIAnimator
  79. ---@field private AnyBtn UIFashionCompose__Generate_AnyBtn
  80. ---@field private window UIFashionCompose__Generate_window
  81. ---@field private closeBox UnityEngine.GameObject
  82. ---@field private btnClose UIFashionCompose__Generate_btnClose
  83. ---@field private coinZ UIFashionCompose__Generate_coinZ
  84. ---@field private rawImage UIFashionCompose__Generate_rawImage
  85. ---@field private nameTxt UIFashionCompose__Generate_nameTxt
  86. ---@field private consume1 UIFashionCompose__Generate_consume1
  87. ---@field private Item1 UIFashionCompose__Generate_Item1
  88. ---@field private consume2 UIFashionCompose__Generate_consume2
  89. ---@field private Item2 UIFashionCompose__Generate_Item2
  90. ---@field private consume3 UIFashionCompose__Generate_consume3
  91. ---@field private Item3 UIFashionCompose__Generate_Item3
  92. ---@field private consume4 UIFashionCompose__Generate_consume4
  93. ---@field private Item4 UIFashionCompose__Generate_Item4
  94. ---@field private composeBtn UIFashionCompose__Generate_composeBtn
  95. local UIFashionComposeView = class("UIFashionComposeView", require("UIViewBase"))
  96. function UIFashionComposeView:ctor()
  97. end
  98. ---@private
  99. function UIFashionComposeView:SetActive(result)
  100. self.gameObject:SetActive(result)
  101. end
  102. ---@private
  103. function UIFashionComposeView:InitGenerate(Root, data)
  104. self.transform = Root
  105. self.inited = true
  106. if self.super.Init then
  107. self.super.Init(self)
  108. end
  109. local tmp
  110. self:InitGenerate__1(Root,data)
  111. self:InitGenerate__2(Root,data)
  112. self:InitGenerate__3(Root,data)
  113. self:InitGenerate__4(Root,data)
  114. self:InitGenerate__5(Root,data)
  115. self:InitGenerate__6(Root,data)
  116. self:InitGenerate__7(Root,data)
  117. self:InitGenerate__8(Root,data)
  118. self:InitGenerate__9(Root,data)
  119. self:InitGenerate__10(Root,data)
  120. self:InitGenerate__11(Root,data)
  121. self:InitGenerate__12(Root,data)
  122. self:InitGenerate__13(Root,data)
  123. self:InitGenerate__14(Root,data)
  124. self:InitGenerate__15(Root,data)
  125. self:InitGenerate__16(Root,data)
  126. self:InitGenerate__17(Root,data)
  127. self:InitGenerate__18(Root,data)
  128. self:InitGenerate__19(Root,data)
  129. self:InitGenerate__20(Root,data)
  130. self:InitGenerate__21(Root,data)
  131. self:InitGenerate__22(Root,data)
  132. self:InitGenerate__23(Root,data)
  133. self:InitGenerate__24(Root,data)
  134. end
  135. ---@private
  136. function UIFashionComposeView:InitGenerate__1(Root, data)
  137. --[[
  138. UIAnimator
  139. --]]
  140. local tmp = Root:Find("UIAnimator").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.uIAnimator = tmp
  145. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  146. tmp.animator.logWarnings = false
  147. end
  148. ---@private
  149. function UIFashionComposeView:InitGenerate__2(Root, data)
  150. --[[
  151. UIAnimator/Alpha
  152. --]]
  153. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  154. if tolua.getpeer(tmp) == nil then
  155. tolua.setpeer(tmp, {})
  156. end
  157. self.AnyBtn = tmp
  158. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  159. end
  160. ---@private
  161. function UIFashionComposeView:InitGenerate__3(Root, data)
  162. --[[
  163. UIAnimator/Window
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.window = tmp
  170. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  171. tmp.animator.logWarnings = false
  172. end
  173. ---@private
  174. function UIFashionComposeView:InitGenerate__4(Root, data)
  175. --[[
  176. UIAnimator/Window/CloseBox
  177. --]]
  178. local tmp = Root:Find("UIAnimator/Window/CloseBox").gameObject
  179. if tolua.getpeer(tmp) == nil then
  180. tolua.setpeer(tmp, {})
  181. end
  182. self.closeBox = tmp
  183. end
  184. ---@private
  185. function UIFashionComposeView:InitGenerate__5(Root, data)
  186. --[[
  187. UIAnimator/Window/CloseBox/BtnClose
  188. --]]
  189. local tmp = Root:Find("UIAnimator/Window/CloseBox/BtnClose").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.btnClose = tmp
  194. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  195. end
  196. ---@private
  197. function UIFashionComposeView:InitGenerate__6(Root, data)
  198. --[[
  199. UIAnimator/Window/CoinZ
  200. --]]
  201. local tmp = Root:Find("UIAnimator/Window/CoinZ").gameObject
  202. if tolua.getpeer(tmp) == nil then
  203. tolua.setpeer(tmp, {})
  204. end
  205. self.coinZ = tmp
  206. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  207. end
  208. ---@private
  209. function UIFashionComposeView:InitGenerate__7(Root, data)
  210. --[[
  211. UIAnimator/Window/CoinZ/CoinIcon
  212. --]]
  213. local tmp = Root:Find("UIAnimator/Window/CoinZ/CoinIcon").gameObject
  214. if tolua.getpeer(tmp) == nil then
  215. tolua.setpeer(tmp, {})
  216. end
  217. self.coinZ.coinIcon = tmp
  218. end
  219. ---@private
  220. function UIFashionComposeView:InitGenerate__8(Root, data)
  221. --[[
  222. UIAnimator/Window/CoinZ/DiamondIcon
  223. --]]
  224. local tmp = Root:Find("UIAnimator/Window/CoinZ/DiamondIcon").gameObject
  225. if tolua.getpeer(tmp) == nil then
  226. tolua.setpeer(tmp, {})
  227. end
  228. self.coinZ.diamondIcon = tmp
  229. end
  230. ---@private
  231. function UIFashionComposeView:InitGenerate__9(Root, data)
  232. --[[
  233. UIAnimator/Window/CoinZ/Text
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/CoinZ/Text").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.coinZ.text = tmp
  240. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  241. end
  242. ---@private
  243. function UIFashionComposeView:InitGenerate__10(Root, data)
  244. --[[
  245. UIAnimator/Window/DscBox/RawImage
  246. --]]
  247. local tmp = Root:Find("UIAnimator/Window/DscBox/RawImage").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.rawImage = tmp
  252. tmp.rawImage = tmp:GetComponent(Enum.TypeInfo.RawImage)
  253. end
  254. ---@private
  255. function UIFashionComposeView:InitGenerate__11(Root, data)
  256. --[[
  257. UIAnimator/Window/DscBox/Name/NameTxt
  258. --]]
  259. local tmp = Root:Find("UIAnimator/Window/DscBox/Name/NameTxt").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.nameTxt = tmp
  264. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  265. end
  266. ---@private
  267. function UIFashionComposeView:InitGenerate__12(Root, data)
  268. --[[
  269. UIAnimator/Window/DscBox/Consume1
  270. --]]
  271. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume1").gameObject
  272. if tolua.getpeer(tmp) == nil then
  273. tolua.setpeer(tmp, {})
  274. end
  275. self.consume1 = tmp
  276. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  277. end
  278. ---@private
  279. function UIFashionComposeView:InitGenerate__13(Root, data)
  280. --[[
  281. UIAnimator/Window/DscBox/Consume1/Item/IconItem
  282. --]]
  283. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume1/Item/IconItem").gameObject
  284. if tolua.getpeer(tmp) == nil then
  285. tolua.setpeer(tmp, {})
  286. end
  287. self.Item1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  288. self.Item1.prefabName = "IconItem"
  289. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  290. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  291. end
  292. ---@private
  293. function UIFashionComposeView:InitGenerate__14(Root, data)
  294. --[[
  295. UIAnimator/Window/DscBox/Consume1/Number/Text
  296. --]]
  297. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume1/Number/Text").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.consume1.text = tmp
  302. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  303. end
  304. ---@private
  305. function UIFashionComposeView:InitGenerate__15(Root, data)
  306. --[[
  307. UIAnimator/Window/DscBox/Consume2
  308. --]]
  309. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume2").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.consume2 = tmp
  314. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  315. end
  316. ---@private
  317. function UIFashionComposeView:InitGenerate__16(Root, data)
  318. --[[
  319. UIAnimator/Window/DscBox/Consume2/Item/IconItem
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume2/Item/IconItem").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.Item2 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  326. self.Item2.prefabName = "IconItem"
  327. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  328. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  329. end
  330. ---@private
  331. function UIFashionComposeView:InitGenerate__17(Root, data)
  332. --[[
  333. UIAnimator/Window/DscBox/Consume2/Number/Text
  334. --]]
  335. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume2/Number/Text").gameObject
  336. if tolua.getpeer(tmp) == nil then
  337. tolua.setpeer(tmp, {})
  338. end
  339. self.consume2.text = tmp
  340. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  341. end
  342. ---@private
  343. function UIFashionComposeView:InitGenerate__18(Root, data)
  344. --[[
  345. UIAnimator/Window/DscBox/Consume3
  346. --]]
  347. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume3").gameObject
  348. if tolua.getpeer(tmp) == nil then
  349. tolua.setpeer(tmp, {})
  350. end
  351. self.consume3 = tmp
  352. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  353. end
  354. ---@private
  355. function UIFashionComposeView:InitGenerate__19(Root, data)
  356. --[[
  357. UIAnimator/Window/DscBox/Consume3/Item/IconItem
  358. --]]
  359. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume3/Item/IconItem").gameObject
  360. if tolua.getpeer(tmp) == nil then
  361. tolua.setpeer(tmp, {})
  362. end
  363. self.Item3 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  364. self.Item3.prefabName = "IconItem"
  365. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  366. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  367. end
  368. ---@private
  369. function UIFashionComposeView:InitGenerate__20(Root, data)
  370. --[[
  371. UIAnimator/Window/DscBox/Consume3/Number/Text
  372. --]]
  373. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume3/Number/Text").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.consume3.text = tmp
  378. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  379. end
  380. ---@private
  381. function UIFashionComposeView:InitGenerate__21(Root, data)
  382. --[[
  383. UIAnimator/Window/DscBox/Consume4
  384. --]]
  385. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume4").gameObject
  386. if tolua.getpeer(tmp) == nil then
  387. tolua.setpeer(tmp, {})
  388. end
  389. self.consume4 = tmp
  390. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  391. end
  392. ---@private
  393. function UIFashionComposeView:InitGenerate__22(Root, data)
  394. --[[
  395. UIAnimator/Window/DscBox/Consume4/Item/IconItem
  396. --]]
  397. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume4/Item/IconItem").gameObject
  398. if tolua.getpeer(tmp) == nil then
  399. tolua.setpeer(tmp, {})
  400. end
  401. self.Item4 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  402. self.Item4.prefabName = "IconItem"
  403. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  404. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  405. end
  406. ---@private
  407. function UIFashionComposeView:InitGenerate__23(Root, data)
  408. --[[
  409. UIAnimator/Window/DscBox/Consume4/Number/Text
  410. --]]
  411. local tmp = Root:Find("UIAnimator/Window/DscBox/Consume4/Number/Text").gameObject
  412. if tolua.getpeer(tmp) == nil then
  413. tolua.setpeer(tmp, {})
  414. end
  415. self.consume4.text = tmp
  416. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  417. end
  418. ---@private
  419. function UIFashionComposeView:InitGenerate__24(Root, data)
  420. --[[
  421. UIAnimator/Window/ComposeBtn
  422. --]]
  423. local tmp = Root:Find("UIAnimator/Window/ComposeBtn").gameObject
  424. if tolua.getpeer(tmp) == nil then
  425. tolua.setpeer(tmp, {})
  426. end
  427. self.composeBtn = tmp
  428. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  429. end
  430. ---@private
  431. function UIFashionComposeView:GenerateDestroy()
  432. if tolua.getpeer(self.consume4.text) ~= nil then
  433. tolua.setpeer(self.consume4.text, nil)
  434. end
  435. if tolua.getpeer(self.consume3.text) ~= nil then
  436. tolua.setpeer(self.consume3.text, nil)
  437. end
  438. if tolua.getpeer(self.consume2.text) ~= nil then
  439. tolua.setpeer(self.consume2.text, nil)
  440. end
  441. if tolua.getpeer(self.consume1.text) ~= nil then
  442. tolua.setpeer(self.consume1.text, nil)
  443. end
  444. if tolua.getpeer(self.coinZ.text) ~= nil then
  445. tolua.setpeer(self.coinZ.text, nil)
  446. end
  447. if tolua.getpeer(self.coinZ.diamondIcon) ~= nil then
  448. tolua.setpeer(self.coinZ.diamondIcon, nil)
  449. end
  450. if tolua.getpeer(self.coinZ.coinIcon) ~= nil then
  451. tolua.setpeer(self.coinZ.coinIcon, nil)
  452. end
  453. if tolua.getpeer(self.uIAnimator) ~= nil then
  454. tolua.setpeer(self.uIAnimator, nil)
  455. end
  456. self.uIAnimator = nil
  457. if tolua.getpeer(self.AnyBtn) ~= nil then
  458. tolua.setpeer(self.AnyBtn, nil)
  459. end
  460. self.AnyBtn = nil
  461. if tolua.getpeer(self.window) ~= nil then
  462. tolua.setpeer(self.window, nil)
  463. end
  464. self.window = nil
  465. if tolua.getpeer(self.closeBox) ~= nil then
  466. tolua.setpeer(self.closeBox, nil)
  467. end
  468. self.closeBox = nil
  469. if tolua.getpeer(self.btnClose) ~= nil then
  470. tolua.setpeer(self.btnClose, nil)
  471. end
  472. self.btnClose = nil
  473. if tolua.getpeer(self.coinZ) ~= nil then
  474. tolua.setpeer(self.coinZ, nil)
  475. end
  476. self.coinZ = nil
  477. if tolua.getpeer(self.rawImage) ~= nil then
  478. tolua.setpeer(self.rawImage, nil)
  479. end
  480. self.rawImage = nil
  481. if tolua.getpeer(self.nameTxt) ~= nil then
  482. tolua.setpeer(self.nameTxt, nil)
  483. end
  484. self.nameTxt = nil
  485. if tolua.getpeer(self.consume1) ~= nil then
  486. tolua.setpeer(self.consume1, nil)
  487. end
  488. self.consume1 = nil
  489. if self.Item1.GenerateDestroy ~= nil then
  490. self.Item1:GenerateDestroy()
  491. end
  492. if tolua.getpeer(self.Item1) ~= nil then
  493. tolua.setpeer(self.Item1, nil)
  494. end
  495. self.Item1 = nil
  496. if tolua.getpeer(self.consume2) ~= nil then
  497. tolua.setpeer(self.consume2, nil)
  498. end
  499. self.consume2 = nil
  500. if self.Item2.GenerateDestroy ~= nil then
  501. self.Item2:GenerateDestroy()
  502. end
  503. if tolua.getpeer(self.Item2) ~= nil then
  504. tolua.setpeer(self.Item2, nil)
  505. end
  506. self.Item2 = nil
  507. if tolua.getpeer(self.consume3) ~= nil then
  508. tolua.setpeer(self.consume3, nil)
  509. end
  510. self.consume3 = nil
  511. if self.Item3.GenerateDestroy ~= nil then
  512. self.Item3:GenerateDestroy()
  513. end
  514. if tolua.getpeer(self.Item3) ~= nil then
  515. tolua.setpeer(self.Item3, nil)
  516. end
  517. self.Item3 = nil
  518. if tolua.getpeer(self.consume4) ~= nil then
  519. tolua.setpeer(self.consume4, nil)
  520. end
  521. self.consume4 = nil
  522. if self.Item4.GenerateDestroy ~= nil then
  523. self.Item4:GenerateDestroy()
  524. end
  525. if tolua.getpeer(self.Item4) ~= nil then
  526. tolua.setpeer(self.Item4, nil)
  527. end
  528. self.Item4 = nil
  529. if tolua.getpeer(self.composeBtn) ~= nil then
  530. tolua.setpeer(self.composeBtn, nil)
  531. end
  532. self.composeBtn = nil
  533. self.transform = nil
  534. self.gameObject = nil
  535. self.inited = false
  536. end
  537. return UIFashionComposeView