UIActivityGoddessView_Generate.lua 17 KB

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