BookItem_Generate.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. ---@class BookItem__Generate_btnBack
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class BookItem__Generate_btnMaterials
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@field public icon UnityEngine.GameObject
  8. ---@class BookItem__Generate_qtyCollection_text
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public text UnityEngine.UI.Text
  11. ---@class BookItem__Generate_qtyCollection
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public iconAll UnityEngine.GameObject
  14. ---@field public iconNormal UnityEngine.GameObject
  15. ---@field public iconMini UnityEngine.GameObject
  16. ---@field public iconMvp UnityEngine.GameObject
  17. ---@field public text BookItem__Generate_qtyCollection_text
  18. ---@class BookItem__Generate_qtyPet_text
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public text UnityEngine.UI.Text
  21. ---@class BookItem__Generate_qtyPet
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public iconAll UnityEngine.GameObject
  24. ---@field public iconNormal UnityEngine.GameObject
  25. ---@field public iconMini UnityEngine.GameObject
  26. ---@field public iconMvp UnityEngine.GameObject
  27. ---@field public text BookItem__Generate_qtyPet_text
  28. ---@class BookItem__Generate_qtyCard_text
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class BookItem__Generate_qtyCard
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public iconAll UnityEngine.GameObject
  34. ---@field public iconNormal UnityEngine.GameObject
  35. ---@field public iconMini UnityEngine.GameObject
  36. ---@field public iconMvp UnityEngine.GameObject
  37. ---@field public text BookItem__Generate_qtyCard_text
  38. ---@class BookItem__Generate_toggleMVP
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public toggle UnityEngine.UI.Toggle
  41. ---@class BookItem__Generate_toggleMini
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public toggle UnityEngine.UI.Toggle
  44. ---@class BookItem__Generate_toggleNormal
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public toggle UnityEngine.UI.Toggle
  47. ---@class BookItem__Generate_toggleAll
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public toggle UnityEngine.UI.Toggle
  50. ---@class BookItem__Generate_toggleGroup
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  53. ---@class BookItem__Generate_dscBox_text
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public text UnityEngine.UI.Text
  56. ---@class BookItem__Generate_dscBox
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public text BookItem__Generate_dscBox_text
  59. ---@class BookItem__Generate_scrollView
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public loopGridView SuperScrollView.LoopGridView
  62. ---@class BookItem__Generate
  63. ---@field private gameObject UnityEngine.GameObject
  64. ---@field private transform UnityEngine.Transform
  65. ---@field private rectTransform UnityEngine.RectTransform
  66. ---@field private scrollView BookItem__Generate_scrollView
  67. ---@field private dscBox BookItem__Generate_dscBox
  68. ---@field private toggleGroup BookItem__Generate_toggleGroup
  69. ---@field private toggleAll BookItem__Generate_toggleAll
  70. ---@field private toggleNormal BookItem__Generate_toggleNormal
  71. ---@field private toggleMini BookItem__Generate_toggleMini
  72. ---@field private toggleMVP BookItem__Generate_toggleMVP
  73. ---@field private qtyCard BookItem__Generate_qtyCard
  74. ---@field private qtyPet BookItem__Generate_qtyPet
  75. ---@field private qtyCollection BookItem__Generate_qtyCollection
  76. ---@field private btnMaterials BookItem__Generate_btnMaterials
  77. ---@field private btnBack BookItem__Generate_btnBack
  78. local BookItemView = class("BookItemView")
  79. function BookItemView:ctor()
  80. end
  81. ---@private
  82. function BookItemView:SetActive(result)
  83. self.gameObject:SetActive(result)
  84. end
  85. ---@private
  86. function BookItemView:InitGenerate(Root, data)
  87. self.transform = Root
  88. self.inited = true
  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. self:InitGenerate__26(Root,data)
  116. self:InitGenerate__27(Root,data)
  117. self:InitGenerate__28(Root,data)
  118. self:InitGenerate__29(Root,data)
  119. self:InitGenerate__30(Root,data)
  120. end
  121. ---@private
  122. function BookItemView:InitGenerate__1(Root, data)
  123. --[[
  124. Root
  125. --]]
  126. self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
  127. end
  128. ---@private
  129. function BookItemView:InitGenerate__2(Root, data)
  130. --[[
  131. ScrollView
  132. --]]
  133. local tmp = Root:Find("ScrollView").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.scrollView = tmp
  138. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  139. end
  140. ---@private
  141. function BookItemView:InitGenerate__3(Root, data)
  142. --[[
  143. ScrollView/DscBox
  144. --]]
  145. local tmp = Root:Find("ScrollView/DscBox").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.dscBox = tmp
  150. end
  151. ---@private
  152. function BookItemView:InitGenerate__4(Root, data)
  153. --[[
  154. ScrollView/DscBox/bg/Text
  155. --]]
  156. local tmp = Root:Find("ScrollView/DscBox/bg/Text").gameObject
  157. if tolua.getpeer(tmp) == nil then
  158. tolua.setpeer(tmp, {})
  159. end
  160. self.dscBox.text = tmp
  161. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  162. end
  163. ---@private
  164. function BookItemView:InitGenerate__5(Root, data)
  165. --[[
  166. ToggleGroup
  167. --]]
  168. local tmp = Root:Find("ToggleGroup").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.toggleGroup = tmp
  173. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  174. end
  175. ---@private
  176. function BookItemView:InitGenerate__6(Root, data)
  177. --[[
  178. ToggleGroup/ToggleAll
  179. --]]
  180. local tmp = Root:Find("ToggleGroup/ToggleAll").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.toggleAll = tmp
  185. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  186. end
  187. ---@private
  188. function BookItemView:InitGenerate__7(Root, data)
  189. --[[
  190. ToggleGroup/ToggleNormal
  191. --]]
  192. local tmp = Root:Find("ToggleGroup/ToggleNormal").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.toggleNormal = tmp
  197. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  198. end
  199. ---@private
  200. function BookItemView:InitGenerate__8(Root, data)
  201. --[[
  202. ToggleGroup/ToggleMini
  203. --]]
  204. local tmp = Root:Find("ToggleGroup/ToggleMini").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.toggleMini = tmp
  209. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  210. end
  211. ---@private
  212. function BookItemView:InitGenerate__9(Root, data)
  213. --[[
  214. ToggleGroup/ToggleMVP
  215. --]]
  216. local tmp = Root:Find("ToggleGroup/ToggleMVP").gameObject
  217. if tolua.getpeer(tmp) == nil then
  218. tolua.setpeer(tmp, {})
  219. end
  220. self.toggleMVP = tmp
  221. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  222. end
  223. ---@private
  224. function BookItemView:InitGenerate__10(Root, data)
  225. --[[
  226. QtyCard
  227. --]]
  228. local tmp = Root:Find("QtyCard").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.qtyCard = tmp
  233. end
  234. ---@private
  235. function BookItemView:InitGenerate__11(Root, data)
  236. --[[
  237. QtyCard/IconAll
  238. --]]
  239. local tmp = Root:Find("QtyCard/IconAll").gameObject
  240. if tolua.getpeer(tmp) == nil then
  241. tolua.setpeer(tmp, {})
  242. end
  243. self.qtyCard.iconAll = tmp
  244. end
  245. ---@private
  246. function BookItemView:InitGenerate__12(Root, data)
  247. --[[
  248. QtyCard/IconNormal
  249. --]]
  250. local tmp = Root:Find("QtyCard/IconNormal").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.qtyCard.iconNormal = tmp
  255. end
  256. ---@private
  257. function BookItemView:InitGenerate__13(Root, data)
  258. --[[
  259. QtyCard/IconMini
  260. --]]
  261. local tmp = Root:Find("QtyCard/IconMini").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.qtyCard.iconMini = tmp
  266. end
  267. ---@private
  268. function BookItemView:InitGenerate__14(Root, data)
  269. --[[
  270. QtyCard/IconMvp
  271. --]]
  272. local tmp = Root:Find("QtyCard/IconMvp").gameObject
  273. if tolua.getpeer(tmp) == nil then
  274. tolua.setpeer(tmp, {})
  275. end
  276. self.qtyCard.iconMvp = tmp
  277. end
  278. ---@private
  279. function BookItemView:InitGenerate__15(Root, data)
  280. --[[
  281. QtyCard/Text
  282. --]]
  283. local tmp = Root:Find("QtyCard/Text").gameObject
  284. if tolua.getpeer(tmp) == nil then
  285. tolua.setpeer(tmp, {})
  286. end
  287. self.qtyCard.text = tmp
  288. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  289. end
  290. ---@private
  291. function BookItemView:InitGenerate__16(Root, data)
  292. --[[
  293. QtyPet
  294. --]]
  295. local tmp = Root:Find("QtyPet").gameObject
  296. if tolua.getpeer(tmp) == nil then
  297. tolua.setpeer(tmp, {})
  298. end
  299. self.qtyPet = tmp
  300. end
  301. ---@private
  302. function BookItemView:InitGenerate__17(Root, data)
  303. --[[
  304. QtyPet/IconAll
  305. --]]
  306. local tmp = Root:Find("QtyPet/IconAll").gameObject
  307. if tolua.getpeer(tmp) == nil then
  308. tolua.setpeer(tmp, {})
  309. end
  310. self.qtyPet.iconAll = tmp
  311. end
  312. ---@private
  313. function BookItemView:InitGenerate__18(Root, data)
  314. --[[
  315. QtyPet/IconNormal
  316. --]]
  317. local tmp = Root:Find("QtyPet/IconNormal").gameObject
  318. if tolua.getpeer(tmp) == nil then
  319. tolua.setpeer(tmp, {})
  320. end
  321. self.qtyPet.iconNormal = tmp
  322. end
  323. ---@private
  324. function BookItemView:InitGenerate__19(Root, data)
  325. --[[
  326. QtyPet/IconMini
  327. --]]
  328. local tmp = Root:Find("QtyPet/IconMini").gameObject
  329. if tolua.getpeer(tmp) == nil then
  330. tolua.setpeer(tmp, {})
  331. end
  332. self.qtyPet.iconMini = tmp
  333. end
  334. ---@private
  335. function BookItemView:InitGenerate__20(Root, data)
  336. --[[
  337. QtyPet/IconMvp
  338. --]]
  339. local tmp = Root:Find("QtyPet/IconMvp").gameObject
  340. if tolua.getpeer(tmp) == nil then
  341. tolua.setpeer(tmp, {})
  342. end
  343. self.qtyPet.iconMvp = tmp
  344. end
  345. ---@private
  346. function BookItemView:InitGenerate__21(Root, data)
  347. --[[
  348. QtyPet/Text
  349. --]]
  350. local tmp = Root:Find("QtyPet/Text").gameObject
  351. if tolua.getpeer(tmp) == nil then
  352. tolua.setpeer(tmp, {})
  353. end
  354. self.qtyPet.text = tmp
  355. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  356. end
  357. ---@private
  358. function BookItemView:InitGenerate__22(Root, data)
  359. --[[
  360. QtyCollection
  361. --]]
  362. local tmp = Root:Find("QtyCollection").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.qtyCollection = tmp
  367. end
  368. ---@private
  369. function BookItemView:InitGenerate__23(Root, data)
  370. --[[
  371. QtyCollection/IconAll
  372. --]]
  373. local tmp = Root:Find("QtyCollection/IconAll").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.qtyCollection.iconAll = tmp
  378. end
  379. ---@private
  380. function BookItemView:InitGenerate__24(Root, data)
  381. --[[
  382. QtyCollection/IconNormal
  383. --]]
  384. local tmp = Root:Find("QtyCollection/IconNormal").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.qtyCollection.iconNormal = tmp
  389. end
  390. ---@private
  391. function BookItemView:InitGenerate__25(Root, data)
  392. --[[
  393. QtyCollection/IconMini
  394. --]]
  395. local tmp = Root:Find("QtyCollection/IconMini").gameObject
  396. if tolua.getpeer(tmp) == nil then
  397. tolua.setpeer(tmp, {})
  398. end
  399. self.qtyCollection.iconMini = tmp
  400. end
  401. ---@private
  402. function BookItemView:InitGenerate__26(Root, data)
  403. --[[
  404. QtyCollection/IconMvp
  405. --]]
  406. local tmp = Root:Find("QtyCollection/IconMvp").gameObject
  407. if tolua.getpeer(tmp) == nil then
  408. tolua.setpeer(tmp, {})
  409. end
  410. self.qtyCollection.iconMvp = tmp
  411. end
  412. ---@private
  413. function BookItemView:InitGenerate__27(Root, data)
  414. --[[
  415. QtyCollection/Text
  416. --]]
  417. local tmp = Root:Find("QtyCollection/Text").gameObject
  418. if tolua.getpeer(tmp) == nil then
  419. tolua.setpeer(tmp, {})
  420. end
  421. self.qtyCollection.text = tmp
  422. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  423. end
  424. ---@private
  425. function BookItemView:InitGenerate__28(Root, data)
  426. --[[
  427. BtnMaterials
  428. --]]
  429. local tmp = Root:Find("BtnMaterials").gameObject
  430. if tolua.getpeer(tmp) == nil then
  431. tolua.setpeer(tmp, {})
  432. end
  433. self.btnMaterials = tmp
  434. self.btnMaterials:SetActive(false)
  435. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  436. end
  437. ---@private
  438. function BookItemView:InitGenerate__29(Root, data)
  439. --[[
  440. BtnMaterials/Icon
  441. --]]
  442. local tmp = Root:Find("BtnMaterials/Icon").gameObject
  443. if tolua.getpeer(tmp) == nil then
  444. tolua.setpeer(tmp, {})
  445. end
  446. self.btnMaterials.icon = tmp
  447. end
  448. ---@private
  449. function BookItemView:InitGenerate__30(Root, data)
  450. --[[
  451. BtnBack
  452. --]]
  453. local tmp = Root:Find("BtnBack").gameObject
  454. if tolua.getpeer(tmp) == nil then
  455. tolua.setpeer(tmp, {})
  456. end
  457. self.btnBack = tmp
  458. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  459. end
  460. ---@private
  461. function BookItemView:GenerateDestroy()
  462. if tolua.getpeer(self.btnMaterials.icon) ~= nil then
  463. tolua.setpeer(self.btnMaterials.icon, nil)
  464. end
  465. if tolua.getpeer(self.qtyCollection.text) ~= nil then
  466. tolua.setpeer(self.qtyCollection.text, nil)
  467. end
  468. if tolua.getpeer(self.qtyCollection.iconMvp) ~= nil then
  469. tolua.setpeer(self.qtyCollection.iconMvp, nil)
  470. end
  471. if tolua.getpeer(self.qtyCollection.iconMini) ~= nil then
  472. tolua.setpeer(self.qtyCollection.iconMini, nil)
  473. end
  474. if tolua.getpeer(self.qtyCollection.iconNormal) ~= nil then
  475. tolua.setpeer(self.qtyCollection.iconNormal, nil)
  476. end
  477. if tolua.getpeer(self.qtyCollection.iconAll) ~= nil then
  478. tolua.setpeer(self.qtyCollection.iconAll, nil)
  479. end
  480. if tolua.getpeer(self.qtyPet.text) ~= nil then
  481. tolua.setpeer(self.qtyPet.text, nil)
  482. end
  483. if tolua.getpeer(self.qtyPet.iconMvp) ~= nil then
  484. tolua.setpeer(self.qtyPet.iconMvp, nil)
  485. end
  486. if tolua.getpeer(self.qtyPet.iconMini) ~= nil then
  487. tolua.setpeer(self.qtyPet.iconMini, nil)
  488. end
  489. if tolua.getpeer(self.qtyPet.iconNormal) ~= nil then
  490. tolua.setpeer(self.qtyPet.iconNormal, nil)
  491. end
  492. if tolua.getpeer(self.qtyPet.iconAll) ~= nil then
  493. tolua.setpeer(self.qtyPet.iconAll, nil)
  494. end
  495. if tolua.getpeer(self.qtyCard.text) ~= nil then
  496. tolua.setpeer(self.qtyCard.text, nil)
  497. end
  498. if tolua.getpeer(self.qtyCard.iconMvp) ~= nil then
  499. tolua.setpeer(self.qtyCard.iconMvp, nil)
  500. end
  501. if tolua.getpeer(self.qtyCard.iconMini) ~= nil then
  502. tolua.setpeer(self.qtyCard.iconMini, nil)
  503. end
  504. if tolua.getpeer(self.qtyCard.iconNormal) ~= nil then
  505. tolua.setpeer(self.qtyCard.iconNormal, nil)
  506. end
  507. if tolua.getpeer(self.qtyCard.iconAll) ~= nil then
  508. tolua.setpeer(self.qtyCard.iconAll, nil)
  509. end
  510. if tolua.getpeer(self.dscBox.text) ~= nil then
  511. tolua.setpeer(self.dscBox.text, nil)
  512. end
  513. if tolua.getpeer(self.scrollView) ~= nil then
  514. tolua.setpeer(self.scrollView, nil)
  515. end
  516. self.scrollView = nil
  517. if tolua.getpeer(self.dscBox) ~= nil then
  518. tolua.setpeer(self.dscBox, nil)
  519. end
  520. self.dscBox = nil
  521. if tolua.getpeer(self.toggleGroup) ~= nil then
  522. tolua.setpeer(self.toggleGroup, nil)
  523. end
  524. self.toggleGroup = nil
  525. if tolua.getpeer(self.toggleAll) ~= nil then
  526. tolua.setpeer(self.toggleAll, nil)
  527. end
  528. self.toggleAll = nil
  529. if tolua.getpeer(self.toggleNormal) ~= nil then
  530. tolua.setpeer(self.toggleNormal, nil)
  531. end
  532. self.toggleNormal = nil
  533. if tolua.getpeer(self.toggleMini) ~= nil then
  534. tolua.setpeer(self.toggleMini, nil)
  535. end
  536. self.toggleMini = nil
  537. if tolua.getpeer(self.toggleMVP) ~= nil then
  538. tolua.setpeer(self.toggleMVP, nil)
  539. end
  540. self.toggleMVP = nil
  541. if tolua.getpeer(self.qtyCard) ~= nil then
  542. tolua.setpeer(self.qtyCard, nil)
  543. end
  544. self.qtyCard = nil
  545. if tolua.getpeer(self.qtyPet) ~= nil then
  546. tolua.setpeer(self.qtyPet, nil)
  547. end
  548. self.qtyPet = nil
  549. if tolua.getpeer(self.qtyCollection) ~= nil then
  550. tolua.setpeer(self.qtyCollection, nil)
  551. end
  552. self.qtyCollection = nil
  553. if tolua.getpeer(self.btnMaterials) ~= nil then
  554. tolua.setpeer(self.btnMaterials, nil)
  555. end
  556. self.btnMaterials = nil
  557. if tolua.getpeer(self.btnBack) ~= nil then
  558. tolua.setpeer(self.btnBack, nil)
  559. end
  560. self.btnBack = nil
  561. self.transform = nil
  562. self.gameObject = nil
  563. self.inited = false
  564. end
  565. return BookItemView