UIPetRootView_Generate.lua 16 KB

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