UIClimbingTowerView_Generate.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. ---@class UIClimbingTower__Generate_cover
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public animator UnityEngine.Animator
  4. ---@class UIClimbingTower__Generate_iconGoto
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class UIClimbingTower__Generate_btnInOut
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIClimbingTower__Generate_btnGoto
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIClimbingTower__Generate_text2
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class UIClimbingTower__Generate_text1
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public uILocalizeScript UILocalizeScript
  19. ---@class UIClimbingTower__Generate_bgGoto
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public animator UnityEngine.Animator
  22. ---@class UIClimbingTower__Generate_playRuleBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIClimbingTower__Generate_btnTower
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIClimbingTower__Generate_btnTowerTop_lock
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public button UnityEngine.UI.Button
  31. ---@class UIClimbingTower__Generate_btnTowerTop
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIClimbingTower__Generate_btnPresent_lock
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class UIClimbingTower__Generate_btnPresent
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIClimbingTower__Generate_rankBtn
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@class UIClimbingTower__Generate_closeBtn
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public button UnityEngine.UI.Button
  46. ---@class UIClimbingTower__Generate_btnStatistics
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public button UnityEngine.UI.Button
  49. ---@class UIClimbingTower__Generate_boardTitle
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public uILocalizeScript UILocalizeScript
  52. ---@field public text UnityEngine.UI.Text
  53. ---@class UIClimbingTower__Generate_scrollview_content
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  56. ---@class UIClimbingTower__Generate_scrollview
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public loopListView SuperScrollView.LoopListView
  59. ---@field public content UIClimbingTower__Generate_scrollview_content
  60. ---@class UIClimbingTower__Generate_AnyBtn
  61. ---@field public gameObject UnityEngine.GameObject
  62. ---@field public button UnityEngine.UI.Button
  63. ---@class UIClimbingTower__Generate_uIAnimator
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public animator UnityEngine.Animator
  66. ---@class UIClimbingTower__Generate
  67. ---@field private gameObject UnityEngine.GameObject
  68. ---@field private transform UnityEngine.Transform
  69. ---@field private uIAnimator UIClimbingTower__Generate_uIAnimator
  70. ---@field private AnyBtn UIClimbingTower__Generate_AnyBtn
  71. ---@field private scrollview UIClimbingTower__Generate_scrollview
  72. ---@field private climbingTowerLevelItem UnityEngine.GameObject
  73. ---@field private climbingTowerTopItem UnityEngine.GameObject
  74. ---@field private boardTitle UIClimbingTower__Generate_boardTitle
  75. ---@field private btnStatistics UIClimbingTower__Generate_btnStatistics
  76. ---@field private closeBtn UIClimbingTower__Generate_closeBtn
  77. ---@field private rankBtn UIClimbingTower__Generate_rankBtn
  78. ---@field private btnPresent UIClimbingTower__Generate_btnPresent
  79. ---@field private btnPresent_lock UIClimbingTower__Generate_btnPresent_lock
  80. ---@field private btnTowerTop UIClimbingTower__Generate_btnTowerTop
  81. ---@field private btnTowerTop_lock UIClimbingTower__Generate_btnTowerTop_lock
  82. ---@field private btnTower UIClimbingTower__Generate_btnTower
  83. ---@field private playRuleBtn UIClimbingTower__Generate_playRuleBtn
  84. ---@field private uIGoto UnityEngine.GameObject
  85. ---@field private bgGoto UIClimbingTower__Generate_bgGoto
  86. ---@field private light UnityEngine.GameObject
  87. ---@field private text1 UIClimbingTower__Generate_text1
  88. ---@field private text2 UIClimbingTower__Generate_text2
  89. ---@field private btnGoto UIClimbingTower__Generate_btnGoto
  90. ---@field private btnInOut UIClimbingTower__Generate_btnInOut
  91. ---@field private iconGoto UIClimbingTower__Generate_iconGoto
  92. ---@field private cover UIClimbingTower__Generate_cover
  93. local UIClimbingTowerView = class("UIClimbingTowerView", require("UIViewBase"))
  94. function UIClimbingTowerView:ctor()
  95. end
  96. ---@private
  97. function UIClimbingTowerView:SetActive(result)
  98. self.gameObject:SetActive(result)
  99. end
  100. ---@private
  101. function UIClimbingTowerView:InitGenerate(Root, data)
  102. self.transform = Root
  103. self.inited = true
  104. if self.super.Init then
  105. self.super.Init(self)
  106. end
  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. end
  134. ---@private
  135. function UIClimbingTowerView:InitGenerate__1(Root, data)
  136. --[[
  137. UIAnimator
  138. --]]
  139. local tmp = Root:Find("UIAnimator").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.uIAnimator = tmp
  144. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  145. tmp.animator.logWarnings = false
  146. end
  147. ---@private
  148. function UIClimbingTowerView:InitGenerate__2(Root, data)
  149. --[[
  150. UIAnimator/Alpha
  151. --]]
  152. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  153. if tolua.getpeer(tmp) == nil then
  154. tolua.setpeer(tmp, {})
  155. end
  156. self.AnyBtn = tmp
  157. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  158. end
  159. ---@private
  160. function UIClimbingTowerView:InitGenerate__3(Root, data)
  161. --[[
  162. UIAnimator/Window/scrollview
  163. --]]
  164. local tmp = Root:Find("UIAnimator/Window/scrollview").gameObject
  165. if tolua.getpeer(tmp) == nil then
  166. tolua.setpeer(tmp, {})
  167. end
  168. self.scrollview = tmp
  169. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  170. end
  171. ---@private
  172. function UIClimbingTowerView:InitGenerate__4(Root, data)
  173. --[[
  174. UIAnimator/Window/scrollview/Viewport/Content
  175. --]]
  176. local tmp = Root:Find("UIAnimator/Window/scrollview/Viewport/Content").gameObject
  177. if tolua.getpeer(tmp) == nil then
  178. tolua.setpeer(tmp, {})
  179. end
  180. self.scrollview.content = tmp
  181. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  182. end
  183. ---@private
  184. function UIClimbingTowerView:InitGenerate__5(Root, data)
  185. --[[
  186. UIAnimator/Window/scrollview/Viewport/Content/ClimbingTowerLevelItem
  187. --]]
  188. local tmp = Root:Find("UIAnimator/Window/scrollview/Viewport/Content/ClimbingTowerLevelItem").gameObject
  189. if tolua.getpeer(tmp) == nil then
  190. tolua.setpeer(tmp, {})
  191. end
  192. self.climbingTowerLevelItem = CommonUtil.BindGridViewItem2LuaStatic("ClimbingTowerLevelItem", tmp)
  193. self.climbingTowerLevelItem.prefabName = "ClimbingTowerLevelItem"
  194. end
  195. ---@private
  196. function UIClimbingTowerView:InitGenerate__6(Root, data)
  197. --[[
  198. UIAnimator/Window/scrollview/Viewport/Content/ClimbingTowerTopItem
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/scrollview/Viewport/Content/ClimbingTowerTopItem").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.climbingTowerTopItem = CommonUtil.BindGridViewItem2LuaStatic("ClimbingTowerTopItem", tmp)
  205. self.climbingTowerTopItem.prefabName = "ClimbingTowerTopItem"
  206. end
  207. ---@private
  208. function UIClimbingTowerView:InitGenerate__7(Root, data)
  209. --[[
  210. UIAnimator/Window/UITitle/BoardTitle
  211. --]]
  212. local tmp = Root:Find("UIAnimator/Window/UITitle/BoardTitle").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.boardTitle = tmp
  217. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  218. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  219. end
  220. ---@private
  221. function UIClimbingTowerView:InitGenerate__8(Root, data)
  222. --[[
  223. UIAnimator/Window/UITitle/BtnStatistics
  224. --]]
  225. local tmp = Root:Find("UIAnimator/Window/UITitle/BtnStatistics").gameObject
  226. if tolua.getpeer(tmp) == nil then
  227. tolua.setpeer(tmp, {})
  228. end
  229. self.btnStatistics = tmp
  230. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  231. end
  232. ---@private
  233. function UIClimbingTowerView:InitGenerate__9(Root, data)
  234. --[[
  235. UIAnimator/Window/BtnBack
  236. --]]
  237. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.closeBtn = tmp
  242. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  243. end
  244. ---@private
  245. function UIClimbingTowerView:InitGenerate__10(Root, data)
  246. --[[
  247. UIAnimator/Window/RankBtn
  248. --]]
  249. local tmp = Root:Find("UIAnimator/Window/RankBtn").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.rankBtn = tmp
  254. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  255. end
  256. ---@private
  257. function UIClimbingTowerView:InitGenerate__11(Root, data)
  258. --[[
  259. UIAnimator/Window/BtnPresent
  260. --]]
  261. local tmp = Root:Find("UIAnimator/Window/BtnPresent").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.btnPresent = tmp
  266. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  267. end
  268. ---@private
  269. function UIClimbingTowerView:InitGenerate__12(Root, data)
  270. --[[
  271. UIAnimator/Window/BtnPresent_lock
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/BtnPresent_lock").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.btnPresent_lock = tmp
  278. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  279. end
  280. ---@private
  281. function UIClimbingTowerView:InitGenerate__13(Root, data)
  282. --[[
  283. UIAnimator/Window/BtnTowerTop
  284. --]]
  285. local tmp = Root:Find("UIAnimator/Window/BtnTowerTop").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.btnTowerTop = tmp
  290. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  291. end
  292. ---@private
  293. function UIClimbingTowerView:InitGenerate__14(Root, data)
  294. --[[
  295. UIAnimator/Window/BtnTowerTop_lock
  296. --]]
  297. local tmp = Root:Find("UIAnimator/Window/BtnTowerTop_lock").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.btnTowerTop_lock = tmp
  302. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  303. end
  304. ---@private
  305. function UIClimbingTowerView:InitGenerate__15(Root, data)
  306. --[[
  307. UIAnimator/Window/BtnTower
  308. --]]
  309. local tmp = Root:Find("UIAnimator/Window/BtnTower").gameObject
  310. if tolua.getpeer(tmp) == nil then
  311. tolua.setpeer(tmp, {})
  312. end
  313. self.btnTower = tmp
  314. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  315. end
  316. ---@private
  317. function UIClimbingTowerView:InitGenerate__16(Root, data)
  318. --[[
  319. UIAnimator/Window/BtnPlayRule
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/BtnPlayRule").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.playRuleBtn = tmp
  326. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  327. end
  328. ---@private
  329. function UIClimbingTowerView:InitGenerate__17(Root, data)
  330. --[[
  331. UIAnimator/Window/UIGoto
  332. --]]
  333. local tmp = Root:Find("UIAnimator/Window/UIGoto").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.uIGoto = tmp
  338. end
  339. ---@private
  340. function UIClimbingTowerView:InitGenerate__18(Root, data)
  341. --[[
  342. UIAnimator/Window/UIGoto/BgGoto
  343. --]]
  344. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto").gameObject
  345. if tolua.getpeer(tmp) == nil then
  346. tolua.setpeer(tmp, {})
  347. end
  348. self.bgGoto = tmp
  349. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  350. tmp.animator.logWarnings = false
  351. end
  352. ---@private
  353. function UIClimbingTowerView:InitGenerate__19(Root, data)
  354. --[[
  355. UIAnimator/Window/UIGoto/BgGoto/Light
  356. --]]
  357. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/Light").gameObject
  358. if tolua.getpeer(tmp) == nil then
  359. tolua.setpeer(tmp, {})
  360. end
  361. self.light = tmp
  362. end
  363. ---@private
  364. function UIClimbingTowerView:InitGenerate__20(Root, data)
  365. --[[
  366. UIAnimator/Window/UIGoto/BgGoto/Text1
  367. --]]
  368. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/Text1").gameObject
  369. if tolua.getpeer(tmp) == nil then
  370. tolua.setpeer(tmp, {})
  371. end
  372. self.text1 = tmp
  373. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  374. end
  375. ---@private
  376. function UIClimbingTowerView:InitGenerate__21(Root, data)
  377. --[[
  378. UIAnimator/Window/UIGoto/BgGoto/Text2
  379. --]]
  380. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/Text2").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.text2 = tmp
  385. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  386. end
  387. ---@private
  388. function UIClimbingTowerView:InitGenerate__22(Root, data)
  389. --[[
  390. UIAnimator/Window/UIGoto/BgGoto/BtnGoto
  391. --]]
  392. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/BtnGoto").gameObject
  393. if tolua.getpeer(tmp) == nil then
  394. tolua.setpeer(tmp, {})
  395. end
  396. self.btnGoto = tmp
  397. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  398. end
  399. ---@private
  400. function UIClimbingTowerView:InitGenerate__23(Root, data)
  401. --[[
  402. UIAnimator/Window/UIGoto/BgGoto/BtnInOut
  403. --]]
  404. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/BtnInOut").gameObject
  405. if tolua.getpeer(tmp) == nil then
  406. tolua.setpeer(tmp, {})
  407. end
  408. self.btnInOut = tmp
  409. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  410. end
  411. ---@private
  412. function UIClimbingTowerView:InitGenerate__24(Root, data)
  413. --[[
  414. UIAnimator/Window/UIGoto/BgGoto/BtnInOut/IconGoto
  415. --]]
  416. local tmp = Root:Find("UIAnimator/Window/UIGoto/BgGoto/BtnInOut/IconGoto").gameObject
  417. if tolua.getpeer(tmp) == nil then
  418. tolua.setpeer(tmp, {})
  419. end
  420. self.iconGoto = tmp
  421. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  422. end
  423. ---@private
  424. function UIClimbingTowerView:InitGenerate__25(Root, data)
  425. --[[
  426. UIAnimator/Window/Cover
  427. --]]
  428. local tmp = Root:Find("UIAnimator/Window/Cover").gameObject
  429. if tolua.getpeer(tmp) == nil then
  430. tolua.setpeer(tmp, {})
  431. end
  432. self.cover = tmp
  433. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  434. tmp.animator.logWarnings = false
  435. end
  436. ---@private
  437. function UIClimbingTowerView:GenerateDestroy()
  438. if tolua.getpeer(self.scrollview.content) ~= nil then
  439. tolua.setpeer(self.scrollview.content, nil)
  440. end
  441. if tolua.getpeer(self.uIAnimator) ~= nil then
  442. tolua.setpeer(self.uIAnimator, nil)
  443. end
  444. self.uIAnimator = nil
  445. if tolua.getpeer(self.AnyBtn) ~= nil then
  446. tolua.setpeer(self.AnyBtn, nil)
  447. end
  448. self.AnyBtn = nil
  449. if tolua.getpeer(self.scrollview) ~= nil then
  450. tolua.setpeer(self.scrollview, nil)
  451. end
  452. self.scrollview = nil
  453. if self.climbingTowerLevelItem.GenerateDestroy ~= nil then
  454. self.climbingTowerLevelItem:GenerateDestroy()
  455. end
  456. if tolua.getpeer(self.climbingTowerLevelItem) ~= nil then
  457. tolua.setpeer(self.climbingTowerLevelItem, nil)
  458. end
  459. self.climbingTowerLevelItem = nil
  460. if self.climbingTowerTopItem.GenerateDestroy ~= nil then
  461. self.climbingTowerTopItem:GenerateDestroy()
  462. end
  463. if tolua.getpeer(self.climbingTowerTopItem) ~= nil then
  464. tolua.setpeer(self.climbingTowerTopItem, nil)
  465. end
  466. self.climbingTowerTopItem = nil
  467. if tolua.getpeer(self.boardTitle) ~= nil then
  468. tolua.setpeer(self.boardTitle, nil)
  469. end
  470. self.boardTitle = nil
  471. if tolua.getpeer(self.btnStatistics) ~= nil then
  472. tolua.setpeer(self.btnStatistics, nil)
  473. end
  474. self.btnStatistics = nil
  475. if tolua.getpeer(self.closeBtn) ~= nil then
  476. tolua.setpeer(self.closeBtn, nil)
  477. end
  478. self.closeBtn = nil
  479. if tolua.getpeer(self.rankBtn) ~= nil then
  480. tolua.setpeer(self.rankBtn, nil)
  481. end
  482. self.rankBtn = nil
  483. if tolua.getpeer(self.btnPresent) ~= nil then
  484. tolua.setpeer(self.btnPresent, nil)
  485. end
  486. self.btnPresent = nil
  487. if tolua.getpeer(self.btnPresent_lock) ~= nil then
  488. tolua.setpeer(self.btnPresent_lock, nil)
  489. end
  490. self.btnPresent_lock = nil
  491. if tolua.getpeer(self.btnTowerTop) ~= nil then
  492. tolua.setpeer(self.btnTowerTop, nil)
  493. end
  494. self.btnTowerTop = nil
  495. if tolua.getpeer(self.btnTowerTop_lock) ~= nil then
  496. tolua.setpeer(self.btnTowerTop_lock, nil)
  497. end
  498. self.btnTowerTop_lock = nil
  499. if tolua.getpeer(self.btnTower) ~= nil then
  500. tolua.setpeer(self.btnTower, nil)
  501. end
  502. self.btnTower = nil
  503. if tolua.getpeer(self.playRuleBtn) ~= nil then
  504. tolua.setpeer(self.playRuleBtn, nil)
  505. end
  506. self.playRuleBtn = nil
  507. if tolua.getpeer(self.uIGoto) ~= nil then
  508. tolua.setpeer(self.uIGoto, nil)
  509. end
  510. self.uIGoto = nil
  511. if tolua.getpeer(self.bgGoto) ~= nil then
  512. tolua.setpeer(self.bgGoto, nil)
  513. end
  514. self.bgGoto = nil
  515. if tolua.getpeer(self.light) ~= nil then
  516. tolua.setpeer(self.light, nil)
  517. end
  518. self.light = nil
  519. if tolua.getpeer(self.text1) ~= nil then
  520. tolua.setpeer(self.text1, nil)
  521. end
  522. self.text1 = nil
  523. if tolua.getpeer(self.text2) ~= nil then
  524. tolua.setpeer(self.text2, nil)
  525. end
  526. self.text2 = nil
  527. if tolua.getpeer(self.btnGoto) ~= nil then
  528. tolua.setpeer(self.btnGoto, nil)
  529. end
  530. self.btnGoto = nil
  531. if tolua.getpeer(self.btnInOut) ~= nil then
  532. tolua.setpeer(self.btnInOut, nil)
  533. end
  534. self.btnInOut = nil
  535. if tolua.getpeer(self.iconGoto) ~= nil then
  536. tolua.setpeer(self.iconGoto, nil)
  537. end
  538. self.iconGoto = nil
  539. if tolua.getpeer(self.cover) ~= nil then
  540. tolua.setpeer(self.cover, nil)
  541. end
  542. self.cover = nil
  543. self.transform = nil
  544. self.gameObject = nil
  545. self.inited = false
  546. end
  547. return UIClimbingTowerView