UIChatView_Generate.lua 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. ---@class UIChat__Generate_BtnClose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIChat__Generate_btnBlock_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIChat__Generate_btnBlock
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@field public text UIChat__Generate_btnBlock_text
  11. ---@class UIChat__Generate_btnAddFriend_text
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public text TMPro.TextMeshProUGUI
  14. ---@class UIChat__Generate_btnAddFriend
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@field public text UIChat__Generate_btnAddFriend_text
  18. ---@class UIChat__Generate_btnInfor
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public button UnityEngine.UI.Button
  21. ---@class UIChat__Generate_btnPrivateChat
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public button UnityEngine.UI.Button
  24. ---@class UIChat__Generate_headOrder
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public rectTransform UnityEngine.RectTransform
  27. ---@class UIChat__Generate_funcbg
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public button UnityEngine.UI.Button
  30. ---@class UIChat__Generate_emojiWindow
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  33. ---@field public content UnityEngine.GameObject
  34. ---@class UIChat__Generate_btnSend
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class UIChat__Generate_btnEmoji
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIChat__Generate_inputField
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public inputField UnityEngine.UI.InputField
  43. ---@class UIChat__Generate_chatTextItem
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public rectTransform UnityEngine.RectTransform
  46. ---@field public layoutElement UnityEngine.UI.LayoutElement
  47. ---@class UIChat__Generate_chatWindow
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public uIEventTriggerListener UIEventTriggerListener
  50. ---@field public loopListView SuperScrollView.LoopListView
  51. ---@class UIChat__Generate_chSystem
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public toggle UnityEngine.UI.Toggle
  54. ---@class UIChat__Generate_chGuild
  55. ---@field public gameObject UnityEngine.GameObject
  56. ---@field public toggle UnityEngine.UI.Toggle
  57. ---@class UIChat__Generate_chWorld
  58. ---@field public gameObject UnityEngine.GameObject
  59. ---@field public toggle UnityEngine.UI.Toggle
  60. ---@class UIChat__Generate_toggle
  61. ---@field public gameObject UnityEngine.GameObject
  62. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  63. ---@class UIChat__Generate_AnyBtn
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public button UnityEngine.UI.Button
  66. ---@class UIChat__Generate_uIAnimator
  67. ---@field public gameObject UnityEngine.GameObject
  68. ---@field public animator UnityEngine.Animator
  69. ---@class UIChat__Generate
  70. ---@field private gameObject UnityEngine.GameObject
  71. ---@field private transform UnityEngine.Transform
  72. ---@field private uIAnimator UIChat__Generate_uIAnimator
  73. ---@field private AnyBtn UIChat__Generate_AnyBtn
  74. ---@field private toggle UIChat__Generate_toggle
  75. ---@field private chWorld UIChat__Generate_chWorld
  76. ---@field private chGuild UIChat__Generate_chGuild
  77. ---@field private chSystem UIChat__Generate_chSystem
  78. ---@field private chatWindow UIChat__Generate_chatWindow
  79. ---@field private chatTextItem UIChat__Generate_chatTextItem
  80. ---@field private input UnityEngine.GameObject
  81. ---@field private inputField UIChat__Generate_inputField
  82. ---@field private btnEmoji UIChat__Generate_btnEmoji
  83. ---@field private btnSend UIChat__Generate_btnSend
  84. ---@field private emojiWindow UIChat__Generate_emojiWindow
  85. ---@field private funcbg UIChat__Generate_funcbg
  86. ---@field private headOrder UIChat__Generate_headOrder
  87. ---@field private btnPrivateChat UIChat__Generate_btnPrivateChat
  88. ---@field private btnInfor UIChat__Generate_btnInfor
  89. ---@field private btnAddFriend UIChat__Generate_btnAddFriend
  90. ---@field private btnBlock UIChat__Generate_btnBlock
  91. ---@field private emojiItem UnityEngine.GameObject
  92. ---@field private BtnClose UIChat__Generate_BtnClose
  93. local UIChatView = class("UIChatView", require("UIViewBase"))
  94. function UIChatView:ctor()
  95. end
  96. ---@private
  97. function UIChatView:SetActive(result)
  98. self.gameObject:SetActive(result)
  99. end
  100. ---@private
  101. function UIChatView: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. end
  133. ---@private
  134. function UIChatView:InitGenerate__1(Root, data)
  135. --[[
  136. UIAnimator
  137. --]]
  138. local tmp = Root:Find("UIAnimator").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.uIAnimator = tmp
  143. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  144. tmp.animator.logWarnings = false
  145. end
  146. ---@private
  147. function UIChatView:InitGenerate__2(Root, data)
  148. --[[
  149. UIAnimator/Alpha
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.AnyBtn = tmp
  156. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  157. end
  158. ---@private
  159. function UIChatView:InitGenerate__3(Root, data)
  160. --[[
  161. UIAnimator/Window/ChannelToggle/Viewport/Content
  162. --]]
  163. local tmp = Root:Find("UIAnimator/Window/ChannelToggle/Viewport/Content").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.toggle = tmp
  168. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  169. end
  170. ---@private
  171. function UIChatView:InitGenerate__4(Root, data)
  172. --[[
  173. UIAnimator/Window/ChannelToggle/Viewport/Content/ChWorld
  174. --]]
  175. local tmp = Root:Find("UIAnimator/Window/ChannelToggle/Viewport/Content/ChWorld").gameObject
  176. if tolua.getpeer(tmp) == nil then
  177. tolua.setpeer(tmp, {})
  178. end
  179. self.chWorld = tmp
  180. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  181. end
  182. ---@private
  183. function UIChatView:InitGenerate__5(Root, data)
  184. --[[
  185. UIAnimator/Window/ChannelToggle/Viewport/Content/ChGuild
  186. --]]
  187. local tmp = Root:Find("UIAnimator/Window/ChannelToggle/Viewport/Content/ChGuild").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.chGuild = tmp
  192. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  193. end
  194. ---@private
  195. function UIChatView:InitGenerate__6(Root, data)
  196. --[[
  197. UIAnimator/Window/ChannelToggle/Viewport/Content/ChSystem
  198. --]]
  199. local tmp = Root:Find("UIAnimator/Window/ChannelToggle/Viewport/Content/ChSystem").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.chSystem = tmp
  204. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  205. end
  206. ---@private
  207. function UIChatView:InitGenerate__7(Root, data)
  208. --[[
  209. UIAnimator/Window/ChatWindow
  210. --]]
  211. local tmp = Root:Find("UIAnimator/Window/ChatWindow").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.chatWindow = tmp
  216. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  217. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  218. end
  219. ---@private
  220. function UIChatView:InitGenerate__8(Root, data)
  221. --[[
  222. UIAnimator/Window/ChatWindow/Viewport/ChatTextItem
  223. --]]
  224. local tmp = Root:Find("UIAnimator/Window/ChatWindow/Viewport/ChatTextItem").gameObject
  225. if tolua.getpeer(tmp) == nil then
  226. tolua.setpeer(tmp, {})
  227. end
  228. self.chatTextItem = CommonUtil.BindGridViewItem2LuaStatic("ChatTextItem", tmp)
  229. self.chatTextItem.prefabName = "ChatTextItem"
  230. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  231. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  232. end
  233. ---@private
  234. function UIChatView:InitGenerate__9(Root, data)
  235. --[[
  236. UIAnimator/Window/ChatWindow/Input
  237. --]]
  238. local tmp = Root:Find("UIAnimator/Window/ChatWindow/Input").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.input = tmp
  243. end
  244. ---@private
  245. function UIChatView:InitGenerate__10(Root, data)
  246. --[[
  247. UIAnimator/Window/ChatWindow/Input/InputField
  248. --]]
  249. local tmp = Root:Find("UIAnimator/Window/ChatWindow/Input/InputField").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.inputField = tmp
  254. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  255. end
  256. ---@private
  257. function UIChatView:InitGenerate__11(Root, data)
  258. --[[
  259. UIAnimator/Window/ChatWindow/Input/BtnEmoji
  260. --]]
  261. local tmp = Root:Find("UIAnimator/Window/ChatWindow/Input/BtnEmoji").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.btnEmoji = tmp
  266. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  267. end
  268. ---@private
  269. function UIChatView:InitGenerate__12(Root, data)
  270. --[[
  271. UIAnimator/Window/ChatWindow/Input/BtnSend
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/ChatWindow/Input/BtnSend").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.btnSend = tmp
  278. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  279. end
  280. ---@private
  281. function UIChatView:InitGenerate__13(Root, data)
  282. --[[
  283. UIAnimator/Window/ChatWindow/EmojiWindow
  284. --]]
  285. local tmp = Root:Find("UIAnimator/Window/ChatWindow/EmojiWindow").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.emojiWindow = tmp
  290. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  291. end
  292. ---@private
  293. function UIChatView:InitGenerate__14(Root, data)
  294. --[[
  295. UIAnimator/Window/ChatWindow/EmojiWindow/Viewport/Content
  296. --]]
  297. local tmp = Root:Find("UIAnimator/Window/ChatWindow/EmojiWindow/Viewport/Content").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.emojiWindow.content = tmp
  302. end
  303. ---@private
  304. function UIChatView:InitGenerate__15(Root, data)
  305. --[[
  306. UIAnimator/Window/funcbg
  307. --]]
  308. local tmp = Root:Find("UIAnimator/Window/funcbg").gameObject
  309. if tolua.getpeer(tmp) == nil then
  310. tolua.setpeer(tmp, {})
  311. end
  312. self.funcbg = tmp
  313. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  314. end
  315. ---@private
  316. function UIChatView:InitGenerate__16(Root, data)
  317. --[[
  318. UIAnimator/Window/funcbg/HeadOrder
  319. --]]
  320. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder").gameObject
  321. if tolua.getpeer(tmp) == nil then
  322. tolua.setpeer(tmp, {})
  323. end
  324. self.headOrder = tmp
  325. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  326. end
  327. ---@private
  328. function UIChatView:InitGenerate__17(Root, data)
  329. --[[
  330. UIAnimator/Window/funcbg/HeadOrder/BtnPrivateChat
  331. --]]
  332. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnPrivateChat").gameObject
  333. if tolua.getpeer(tmp) == nil then
  334. tolua.setpeer(tmp, {})
  335. end
  336. self.btnPrivateChat = tmp
  337. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  338. end
  339. ---@private
  340. function UIChatView:InitGenerate__18(Root, data)
  341. --[[
  342. UIAnimator/Window/funcbg/HeadOrder/BtnInfor
  343. --]]
  344. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnInfor").gameObject
  345. if tolua.getpeer(tmp) == nil then
  346. tolua.setpeer(tmp, {})
  347. end
  348. self.btnInfor = tmp
  349. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  350. end
  351. ---@private
  352. function UIChatView:InitGenerate__19(Root, data)
  353. --[[
  354. UIAnimator/Window/funcbg/HeadOrder/BtnAddFriend
  355. --]]
  356. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnAddFriend").gameObject
  357. if tolua.getpeer(tmp) == nil then
  358. tolua.setpeer(tmp, {})
  359. end
  360. self.btnAddFriend = tmp
  361. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  362. end
  363. ---@private
  364. function UIChatView:InitGenerate__20(Root, data)
  365. --[[
  366. UIAnimator/Window/funcbg/HeadOrder/BtnAddFriend/Text
  367. --]]
  368. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnAddFriend/Text").gameObject
  369. if tolua.getpeer(tmp) == nil then
  370. tolua.setpeer(tmp, {})
  371. end
  372. self.btnAddFriend.text = tmp
  373. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  374. end
  375. ---@private
  376. function UIChatView:InitGenerate__21(Root, data)
  377. --[[
  378. UIAnimator/Window/funcbg/HeadOrder/BtnBlock
  379. --]]
  380. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnBlock").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.btnBlock = tmp
  385. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  386. end
  387. ---@private
  388. function UIChatView:InitGenerate__22(Root, data)
  389. --[[
  390. UIAnimator/Window/funcbg/HeadOrder/BtnBlock/Text
  391. --]]
  392. local tmp = Root:Find("UIAnimator/Window/funcbg/HeadOrder/BtnBlock/Text").gameObject
  393. if tolua.getpeer(tmp) == nil then
  394. tolua.setpeer(tmp, {})
  395. end
  396. self.btnBlock.text = tmp
  397. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  398. end
  399. ---@private
  400. function UIChatView:InitGenerate__23(Root, data)
  401. --[[
  402. UIAnimator/Window/emojiItem
  403. --]]
  404. local tmp = Root:Find("UIAnimator/Window/emojiItem").gameObject
  405. if tolua.getpeer(tmp) == nil then
  406. tolua.setpeer(tmp, {})
  407. end
  408. self.emojiItem = tmp
  409. end
  410. ---@private
  411. function UIChatView:InitGenerate__24(Root, data)
  412. --[[
  413. UIAnimator/Window/BtnCloseFlat
  414. --]]
  415. local tmp = Root:Find("UIAnimator/Window/BtnCloseFlat").gameObject
  416. if tolua.getpeer(tmp) == nil then
  417. tolua.setpeer(tmp, {})
  418. end
  419. self.BtnClose = tmp
  420. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  421. end
  422. ---@private
  423. function UIChatView:GenerateDestroy()
  424. if tolua.getpeer(self.btnBlock.text) ~= nil then
  425. tolua.setpeer(self.btnBlock.text, nil)
  426. end
  427. if tolua.getpeer(self.btnAddFriend.text) ~= nil then
  428. tolua.setpeer(self.btnAddFriend.text, nil)
  429. end
  430. if tolua.getpeer(self.emojiWindow.content) ~= nil then
  431. tolua.setpeer(self.emojiWindow.content, nil)
  432. end
  433. if tolua.getpeer(self.uIAnimator) ~= nil then
  434. tolua.setpeer(self.uIAnimator, nil)
  435. end
  436. self.uIAnimator = nil
  437. if tolua.getpeer(self.AnyBtn) ~= nil then
  438. tolua.setpeer(self.AnyBtn, nil)
  439. end
  440. self.AnyBtn = nil
  441. if tolua.getpeer(self.toggle) ~= nil then
  442. tolua.setpeer(self.toggle, nil)
  443. end
  444. self.toggle = nil
  445. if tolua.getpeer(self.chWorld) ~= nil then
  446. tolua.setpeer(self.chWorld, nil)
  447. end
  448. self.chWorld = nil
  449. if tolua.getpeer(self.chGuild) ~= nil then
  450. tolua.setpeer(self.chGuild, nil)
  451. end
  452. self.chGuild = nil
  453. if tolua.getpeer(self.chSystem) ~= nil then
  454. tolua.setpeer(self.chSystem, nil)
  455. end
  456. self.chSystem = nil
  457. if tolua.getpeer(self.chatWindow) ~= nil then
  458. tolua.setpeer(self.chatWindow, nil)
  459. end
  460. self.chatWindow = nil
  461. if self.chatTextItem.GenerateDestroy ~= nil then
  462. self.chatTextItem:GenerateDestroy()
  463. end
  464. if tolua.getpeer(self.chatTextItem) ~= nil then
  465. tolua.setpeer(self.chatTextItem, nil)
  466. end
  467. self.chatTextItem = nil
  468. if tolua.getpeer(self.input) ~= nil then
  469. tolua.setpeer(self.input, nil)
  470. end
  471. self.input = nil
  472. if tolua.getpeer(self.inputField) ~= nil then
  473. tolua.setpeer(self.inputField, nil)
  474. end
  475. self.inputField = nil
  476. if tolua.getpeer(self.btnEmoji) ~= nil then
  477. tolua.setpeer(self.btnEmoji, nil)
  478. end
  479. self.btnEmoji = nil
  480. if tolua.getpeer(self.btnSend) ~= nil then
  481. tolua.setpeer(self.btnSend, nil)
  482. end
  483. self.btnSend = nil
  484. if tolua.getpeer(self.emojiWindow) ~= nil then
  485. tolua.setpeer(self.emojiWindow, nil)
  486. end
  487. self.emojiWindow = nil
  488. if tolua.getpeer(self.funcbg) ~= nil then
  489. tolua.setpeer(self.funcbg, nil)
  490. end
  491. self.funcbg = nil
  492. if tolua.getpeer(self.headOrder) ~= nil then
  493. tolua.setpeer(self.headOrder, nil)
  494. end
  495. self.headOrder = nil
  496. if tolua.getpeer(self.btnPrivateChat) ~= nil then
  497. tolua.setpeer(self.btnPrivateChat, nil)
  498. end
  499. self.btnPrivateChat = nil
  500. if tolua.getpeer(self.btnInfor) ~= nil then
  501. tolua.setpeer(self.btnInfor, nil)
  502. end
  503. self.btnInfor = nil
  504. if tolua.getpeer(self.btnAddFriend) ~= nil then
  505. tolua.setpeer(self.btnAddFriend, nil)
  506. end
  507. self.btnAddFriend = nil
  508. if tolua.getpeer(self.btnBlock) ~= nil then
  509. tolua.setpeer(self.btnBlock, nil)
  510. end
  511. self.btnBlock = nil
  512. if tolua.getpeer(self.emojiItem) ~= nil then
  513. tolua.setpeer(self.emojiItem, nil)
  514. end
  515. self.emojiItem = nil
  516. if tolua.getpeer(self.BtnClose) ~= nil then
  517. tolua.setpeer(self.BtnClose, nil)
  518. end
  519. self.BtnClose = nil
  520. self.transform = nil
  521. self.gameObject = nil
  522. self.inited = false
  523. end
  524. return UIChatView