UIChangeHeadFrameView_Generate.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. ---@class UIChangeHeadFrame__Generate_allAtrBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIChangeHeadFrame__Generate_btnGet
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIChangeHeadFrame__Generate_btnUsed
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIChangeHeadFrame__Generate_content
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  13. ---@class UIChangeHeadFrame__Generate_headFrameList
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  16. ---@class UIChangeHeadFrame__Generate_headFrameDesc
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class UIChangeHeadFrame__Generate_attrNone_nameText
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIChangeHeadFrame__Generate_attrNone
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public nameText UIChangeHeadFrame__Generate_attrNone_nameText
  25. ---@class UIChangeHeadFrame__Generate_attrBox
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public attrItem1 UnityEngine.GameObject
  28. ---@field public attrItem2 UnityEngine.GameObject
  29. ---@field public attrItem3 UnityEngine.GameObject
  30. ---@class UIChangeHeadFrame__Generate_headFrameName
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public text UnityEngine.UI.Text
  33. ---@class UIChangeHeadFrame__Generate_leftTimeTxt
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public text UnityEngine.UI.Text
  36. ---@class UIChangeHeadFrame__Generate_headItem
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public layoutElement UnityEngine.UI.LayoutElement
  39. ---@class UIChangeHeadFrame__Generate_btnClose
  40. ---@field public gameObject UnityEngine.GameObject
  41. ---@field public button UnityEngine.UI.Button
  42. ---@class UIChangeHeadFrame__Generate_AnyBtn
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public button UnityEngine.UI.Button
  45. ---@class UIChangeHeadFrame__Generate_uIAnimator
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public animator UnityEngine.Animator
  48. ---@class UIChangeHeadFrame__Generate
  49. ---@field private gameObject UnityEngine.GameObject
  50. ---@field private transform UnityEngine.Transform
  51. ---@field private uIAnimator UIChangeHeadFrame__Generate_uIAnimator
  52. ---@field private AnyBtn UIChangeHeadFrame__Generate_AnyBtn
  53. ---@field private window UnityEngine.GameObject
  54. ---@field private btnClose UIChangeHeadFrame__Generate_btnClose
  55. ---@field private frameNode UnityEngine.GameObject
  56. ---@field private headItem UIChangeHeadFrame__Generate_headItem
  57. ---@field private limitedNode UnityEngine.GameObject
  58. ---@field private leftTimeTxt UIChangeHeadFrame__Generate_leftTimeTxt
  59. ---@field private headFrameName UIChangeHeadFrame__Generate_headFrameName
  60. ---@field private attrBox UIChangeHeadFrame__Generate_attrBox
  61. ---@field private attrNone UIChangeHeadFrame__Generate_attrNone
  62. ---@field private headFrameDesc UIChangeHeadFrame__Generate_headFrameDesc
  63. ---@field private headFrameList UIChangeHeadFrame__Generate_headFrameList
  64. ---@field private content UIChangeHeadFrame__Generate_content
  65. ---@field private bottom UnityEngine.GameObject
  66. ---@field private btnUsed UIChangeHeadFrame__Generate_btnUsed
  67. ---@field private btnGet UIChangeHeadFrame__Generate_btnGet
  68. ---@field private usingTip UnityEngine.GameObject
  69. ---@field private allAtrBtn UIChangeHeadFrame__Generate_allAtrBtn
  70. local UIChangeHeadFrameView = class("UIChangeHeadFrameView", require("UIViewBase"))
  71. function UIChangeHeadFrameView:ctor()
  72. end
  73. ---@private
  74. function UIChangeHeadFrameView:SetActive(result)
  75. self.gameObject:SetActive(result)
  76. end
  77. ---@private
  78. function UIChangeHeadFrameView:InitGenerate(Root, data)
  79. self.transform = Root
  80. self.inited = true
  81. if self.super.Init then
  82. self.super.Init(self)
  83. end
  84. local tmp
  85. self:InitGenerate__1(Root,data)
  86. self:InitGenerate__2(Root,data)
  87. self:InitGenerate__3(Root,data)
  88. self:InitGenerate__4(Root,data)
  89. self:InitGenerate__5(Root,data)
  90. self:InitGenerate__6(Root,data)
  91. self:InitGenerate__7(Root,data)
  92. self:InitGenerate__8(Root,data)
  93. self:InitGenerate__9(Root,data)
  94. self:InitGenerate__10(Root,data)
  95. self:InitGenerate__11(Root,data)
  96. self:InitGenerate__12(Root,data)
  97. self:InitGenerate__13(Root,data)
  98. self:InitGenerate__14(Root,data)
  99. self:InitGenerate__15(Root,data)
  100. self:InitGenerate__16(Root,data)
  101. self:InitGenerate__17(Root,data)
  102. self:InitGenerate__18(Root,data)
  103. self:InitGenerate__19(Root,data)
  104. self:InitGenerate__20(Root,data)
  105. self:InitGenerate__21(Root,data)
  106. self:InitGenerate__22(Root,data)
  107. self:InitGenerate__23(Root,data)
  108. self:InitGenerate__24(Root,data)
  109. end
  110. ---@private
  111. function UIChangeHeadFrameView:InitGenerate__1(Root, data)
  112. --[[
  113. Root
  114. --]]
  115. end
  116. ---@private
  117. function UIChangeHeadFrameView:InitGenerate__2(Root, data)
  118. --[[
  119. UIAnimator
  120. --]]
  121. local tmp = Root:Find("UIAnimator").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.uIAnimator = tmp
  126. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  127. tmp.animator.logWarnings = false
  128. end
  129. ---@private
  130. function UIChangeHeadFrameView:InitGenerate__3(Root, data)
  131. --[[
  132. UIAnimator/Alpha
  133. --]]
  134. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  135. if tolua.getpeer(tmp) == nil then
  136. tolua.setpeer(tmp, {})
  137. end
  138. self.AnyBtn = tmp
  139. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  140. end
  141. ---@private
  142. function UIChangeHeadFrameView:InitGenerate__4(Root, data)
  143. --[[
  144. UIAnimator/Window
  145. --]]
  146. local tmp = Root:Find("UIAnimator/Window").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.window = tmp
  151. end
  152. ---@private
  153. function UIChangeHeadFrameView:InitGenerate__5(Root, data)
  154. --[[
  155. UIAnimator/Window/Bg/CloseBox/BtnClose
  156. --]]
  157. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  158. if tolua.getpeer(tmp) == nil then
  159. tolua.setpeer(tmp, {})
  160. end
  161. self.btnClose = tmp
  162. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  163. end
  164. ---@private
  165. function UIChangeHeadFrameView:InitGenerate__6(Root, data)
  166. --[[
  167. UIAnimator/Window/Bg/InfoBox
  168. --]]
  169. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox").gameObject
  170. if tolua.getpeer(tmp) == nil then
  171. tolua.setpeer(tmp, {})
  172. end
  173. self.frameNode = tmp
  174. end
  175. ---@private
  176. function UIChangeHeadFrameView:InitGenerate__7(Root, data)
  177. --[[
  178. UIAnimator/Window/Bg/InfoBox/HeadItem
  179. --]]
  180. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/HeadItem").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  185. self.headItem.prefabName = "HeadItem"
  186. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  187. end
  188. ---@private
  189. function UIChangeHeadFrameView:InitGenerate__8(Root, data)
  190. --[[
  191. UIAnimator/Window/Bg/InfoBox/LimitedBox
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/LimitedBox").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.limitedNode = tmp
  198. end
  199. ---@private
  200. function UIChangeHeadFrameView:InitGenerate__9(Root, data)
  201. --[[
  202. UIAnimator/Window/Bg/InfoBox/LimitedBox/LimitedText
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/LimitedBox/LimitedText").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.leftTimeTxt = tmp
  209. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  210. end
  211. ---@private
  212. function UIChangeHeadFrameView:InitGenerate__10(Root, data)
  213. --[[
  214. UIAnimator/Window/Bg/InfoBox/PlayerBox/NameText
  215. --]]
  216. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/NameText").gameObject
  217. if tolua.getpeer(tmp) == nil then
  218. tolua.setpeer(tmp, {})
  219. end
  220. self.headFrameName = tmp
  221. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  222. end
  223. ---@private
  224. function UIChangeHeadFrameView:InitGenerate__11(Root, data)
  225. --[[
  226. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.attrBox = tmp
  233. end
  234. ---@private
  235. function UIChangeHeadFrameView:InitGenerate__12(Root, data)
  236. --[[
  237. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrNone
  238. --]]
  239. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrNone").gameObject
  240. if tolua.getpeer(tmp) == nil then
  241. tolua.setpeer(tmp, {})
  242. end
  243. self.attrNone = tmp
  244. end
  245. ---@private
  246. function UIChangeHeadFrameView:InitGenerate__13(Root, data)
  247. --[[
  248. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrNone/NameText
  249. --]]
  250. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrNone/NameText").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.attrNone.nameText = tmp
  255. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  256. end
  257. ---@private
  258. function UIChangeHeadFrameView:InitGenerate__14(Root, data)
  259. --[[
  260. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem1
  261. --]]
  262. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem1").gameObject
  263. if tolua.getpeer(tmp) == nil then
  264. tolua.setpeer(tmp, {})
  265. end
  266. self.attrBox.attrItem1 = CommonUtil.BindGridViewItem2LuaStatic("AttrItem", tmp)
  267. self.attrBox.attrItem1.prefabName = "AttrItem"
  268. end
  269. ---@private
  270. function UIChangeHeadFrameView:InitGenerate__15(Root, data)
  271. --[[
  272. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem2
  273. --]]
  274. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem2").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.attrBox.attrItem2 = CommonUtil.BindGridViewItem2LuaStatic("AttrItem", tmp)
  279. self.attrBox.attrItem2.prefabName = "AttrItem"
  280. end
  281. ---@private
  282. function UIChangeHeadFrameView:InitGenerate__16(Root, data)
  283. --[[
  284. UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem3
  285. --]]
  286. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/PlayerBox/AttrBox/AttrItem3").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.attrBox.attrItem3 = CommonUtil.BindGridViewItem2LuaStatic("AttrItem", tmp)
  291. self.attrBox.attrItem3.prefabName = "AttrItem"
  292. end
  293. ---@private
  294. function UIChangeHeadFrameView:InitGenerate__17(Root, data)
  295. --[[
  296. UIAnimator/Window/Bg/InfoBox/DscBox/DscText
  297. --]]
  298. local tmp = Root:Find("UIAnimator/Window/Bg/InfoBox/DscBox/DscText").gameObject
  299. if tolua.getpeer(tmp) == nil then
  300. tolua.setpeer(tmp, {})
  301. end
  302. self.headFrameDesc = tmp
  303. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  304. end
  305. ---@private
  306. function UIChangeHeadFrameView:InitGenerate__18(Root, data)
  307. --[[
  308. UIAnimator/Window/Bg/ChangeList
  309. --]]
  310. local tmp = Root:Find("UIAnimator/Window/Bg/ChangeList").gameObject
  311. if tolua.getpeer(tmp) == nil then
  312. tolua.setpeer(tmp, {})
  313. end
  314. self.headFrameList = tmp
  315. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  316. end
  317. ---@private
  318. function UIChangeHeadFrameView:InitGenerate__19(Root, data)
  319. --[[
  320. UIAnimator/Window/Bg/ChangeList/Viewport/Content
  321. --]]
  322. local tmp = Root:Find("UIAnimator/Window/Bg/ChangeList/Viewport/Content").gameObject
  323. if tolua.getpeer(tmp) == nil then
  324. tolua.setpeer(tmp, {})
  325. end
  326. self.content = tmp
  327. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  328. end
  329. ---@private
  330. function UIChangeHeadFrameView:InitGenerate__20(Root, data)
  331. --[[
  332. UIAnimator/Window/Bg/Bottom
  333. --]]
  334. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom").gameObject
  335. if tolua.getpeer(tmp) == nil then
  336. tolua.setpeer(tmp, {})
  337. end
  338. self.bottom = tmp
  339. end
  340. ---@private
  341. function UIChangeHeadFrameView:InitGenerate__21(Root, data)
  342. --[[
  343. UIAnimator/Window/Bg/Bottom/UsedBtn
  344. --]]
  345. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/UsedBtn").gameObject
  346. if tolua.getpeer(tmp) == nil then
  347. tolua.setpeer(tmp, {})
  348. end
  349. self.btnUsed = tmp
  350. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  351. end
  352. ---@private
  353. function UIChangeHeadFrameView:InitGenerate__22(Root, data)
  354. --[[
  355. UIAnimator/Window/Bg/Bottom/GetBtn
  356. --]]
  357. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/GetBtn").gameObject
  358. if tolua.getpeer(tmp) == nil then
  359. tolua.setpeer(tmp, {})
  360. end
  361. self.btnGet = tmp
  362. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  363. end
  364. ---@private
  365. function UIChangeHeadFrameView:InitGenerate__23(Root, data)
  366. --[[
  367. UIAnimator/Window/Bg/Bottom/UsingTip
  368. --]]
  369. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/UsingTip").gameObject
  370. if tolua.getpeer(tmp) == nil then
  371. tolua.setpeer(tmp, {})
  372. end
  373. self.usingTip = tmp
  374. end
  375. ---@private
  376. function UIChangeHeadFrameView:InitGenerate__24(Root, data)
  377. --[[
  378. UIAnimator/Window/Bg/Bottom/BtnAllAttr
  379. --]]
  380. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/BtnAllAttr").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.allAtrBtn = tmp
  385. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  386. end
  387. ---@private
  388. function UIChangeHeadFrameView:GenerateDestroy()
  389. if tolua.getpeer(self.bottom) ~= nil then
  390. tolua.setpeer(self.bottom, nil)
  391. end
  392. if self.attrBox.attrItem3.GenerateDestroy ~= nil then
  393. self.attrBox.attrItem3:GenerateDestroy()
  394. end
  395. if tolua.getpeer(self.attrBox.attrItem3) ~= nil then
  396. tolua.setpeer(self.attrBox.attrItem3, nil)
  397. end
  398. if self.attrBox.attrItem2.GenerateDestroy ~= nil then
  399. self.attrBox.attrItem2:GenerateDestroy()
  400. end
  401. if tolua.getpeer(self.attrBox.attrItem2) ~= nil then
  402. tolua.setpeer(self.attrBox.attrItem2, nil)
  403. end
  404. if self.attrBox.attrItem1.GenerateDestroy ~= nil then
  405. self.attrBox.attrItem1:GenerateDestroy()
  406. end
  407. if tolua.getpeer(self.attrBox.attrItem1) ~= nil then
  408. tolua.setpeer(self.attrBox.attrItem1, nil)
  409. end
  410. if tolua.getpeer(self.attrNone.nameText) ~= nil then
  411. tolua.setpeer(self.attrNone.nameText, nil)
  412. end
  413. if tolua.getpeer(self.btnClose) ~= nil then
  414. tolua.setpeer(self.btnClose, nil)
  415. end
  416. if tolua.getpeer(self.window) ~= nil then
  417. tolua.setpeer(self.window, nil)
  418. end
  419. if tolua.getpeer(self.uIAnimator) ~= nil then
  420. tolua.setpeer(self.uIAnimator, nil)
  421. end
  422. self.uIAnimator = nil
  423. if tolua.getpeer(self.AnyBtn) ~= nil then
  424. tolua.setpeer(self.AnyBtn, nil)
  425. end
  426. self.AnyBtn = nil
  427. if tolua.getpeer(self.frameNode) ~= nil then
  428. tolua.setpeer(self.frameNode, nil)
  429. end
  430. self.frameNode = nil
  431. if self.headItem.GenerateDestroy ~= nil then
  432. self.headItem:GenerateDestroy()
  433. end
  434. if tolua.getpeer(self.headItem) ~= nil then
  435. tolua.setpeer(self.headItem, nil)
  436. end
  437. self.headItem = nil
  438. if tolua.getpeer(self.limitedNode) ~= nil then
  439. tolua.setpeer(self.limitedNode, nil)
  440. end
  441. self.limitedNode = nil
  442. if tolua.getpeer(self.leftTimeTxt) ~= nil then
  443. tolua.setpeer(self.leftTimeTxt, nil)
  444. end
  445. self.leftTimeTxt = nil
  446. if tolua.getpeer(self.headFrameName) ~= nil then
  447. tolua.setpeer(self.headFrameName, nil)
  448. end
  449. self.headFrameName = nil
  450. if tolua.getpeer(self.attrBox) ~= nil then
  451. tolua.setpeer(self.attrBox, nil)
  452. end
  453. self.attrBox = nil
  454. if tolua.getpeer(self.attrNone) ~= nil then
  455. tolua.setpeer(self.attrNone, nil)
  456. end
  457. self.attrNone = nil
  458. if tolua.getpeer(self.headFrameDesc) ~= nil then
  459. tolua.setpeer(self.headFrameDesc, nil)
  460. end
  461. self.headFrameDesc = nil
  462. if tolua.getpeer(self.headFrameList) ~= nil then
  463. tolua.setpeer(self.headFrameList, nil)
  464. end
  465. self.headFrameList = nil
  466. if tolua.getpeer(self.content) ~= nil then
  467. tolua.setpeer(self.content, nil)
  468. end
  469. self.content = nil
  470. if tolua.getpeer(self.btnUsed) ~= nil then
  471. tolua.setpeer(self.btnUsed, nil)
  472. end
  473. self.btnUsed = nil
  474. if tolua.getpeer(self.btnGet) ~= nil then
  475. tolua.setpeer(self.btnGet, nil)
  476. end
  477. self.btnGet = nil
  478. if tolua.getpeer(self.usingTip) ~= nil then
  479. tolua.setpeer(self.usingTip, nil)
  480. end
  481. self.usingTip = nil
  482. if tolua.getpeer(self.allAtrBtn) ~= nil then
  483. tolua.setpeer(self.allAtrBtn, nil)
  484. end
  485. self.allAtrBtn = nil
  486. self.transform = nil
  487. self.gameObject = nil
  488. self.inited = false
  489. end
  490. return UIChangeHeadFrameView