BookItem_Generate.lua 16 KB

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