UIStoryView_Generate.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. ---@class UIStory__Generate_skip
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIStory__Generate_selectionBg_selection3_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIStory__Generate_selectionBg_selection3
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@field public text UIStory__Generate_selectionBg_selection3_text
  11. ---@class UIStory__Generate_selectionBg_selection2_text
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public text TMPro.TextMeshProUGUI
  14. ---@class UIStory__Generate_selectionBg_selection2
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@field public text UIStory__Generate_selectionBg_selection2_text
  18. ---@class UIStory__Generate_selectionBg_selection1_text
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public text TMPro.TextMeshProUGUI
  21. ---@class UIStory__Generate_selectionBg_selection1
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public button UnityEngine.UI.Button
  24. ---@field public text UIStory__Generate_selectionBg_selection1_text
  25. ---@class UIStory__Generate_selectionBg
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public animator UnityEngine.Animator
  28. ---@field public selection1 UIStory__Generate_selectionBg_selection1
  29. ---@field public selection2 UIStory__Generate_selectionBg_selection2
  30. ---@field public selection3 UIStory__Generate_selectionBg_selection3
  31. ---@class UIStory__Generate_storyTalkItem
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public rectTransform UnityEngine.RectTransform
  34. ---@field public layoutElement UnityEngine.UI.LayoutElement
  35. ---@field public canvasGroup UnityEngine.CanvasGroup
  36. ---@class UIStory__Generate_scrollView
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public uIEventTriggerListener UIEventTriggerListener
  39. ---@field public loopListView SuperScrollView.LoopListView
  40. ---@class UIStory__Generate_title06
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public image UnityEngine.UI.Image
  43. ---@class UIStory__Generate_title05
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public image UnityEngine.UI.Image
  46. ---@class UIStory__Generate_title04
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public image UnityEngine.UI.Image
  49. ---@class UIStory__Generate_title03
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public image UnityEngine.UI.Image
  52. ---@class UIStory__Generate_title02
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public image UnityEngine.UI.Image
  55. ---@class UIStory__Generate_title01
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public image UnityEngine.UI.Image
  58. ---@class UIStory__Generate_right_role
  59. ---@field public gameObject UnityEngine.GameObject
  60. ---@field public image UnityEngine.UI.Image
  61. ---@class UIStory__Generate_right
  62. ---@field public gameObject UnityEngine.GameObject
  63. ---@field public animator UnityEngine.Animator
  64. ---@field public role UIStory__Generate_right_role
  65. ---@class UIStory__Generate_left_role
  66. ---@field public gameObject UnityEngine.GameObject
  67. ---@field public image UnityEngine.UI.Image
  68. ---@class UIStory__Generate_left
  69. ---@field public gameObject UnityEngine.GameObject
  70. ---@field public animator UnityEngine.Animator
  71. ---@field public role UIStory__Generate_left_role
  72. ---@class UIStory__Generate_window
  73. ---@field public gameObject UnityEngine.GameObject
  74. ---@field public uIEventTriggerListener UIEventTriggerListener
  75. ---@class UIStory__Generate_uIAnimator
  76. ---@field public gameObject UnityEngine.GameObject
  77. ---@field public animator UnityEngine.Animator
  78. ---@class UIStory__Generate
  79. ---@field private gameObject UnityEngine.GameObject
  80. ---@field private transform UnityEngine.Transform
  81. ---@field private uIAnimator UIStory__Generate_uIAnimator
  82. ---@field private window UIStory__Generate_window
  83. ---@field private bgMove UnityEngine.GameObject
  84. ---@field private left UIStory__Generate_left
  85. ---@field private right UIStory__Generate_right
  86. ---@field private title01 UIStory__Generate_title01
  87. ---@field private title02 UIStory__Generate_title02
  88. ---@field private title03 UIStory__Generate_title03
  89. ---@field private title04 UIStory__Generate_title04
  90. ---@field private title05 UIStory__Generate_title05
  91. ---@field private title06 UIStory__Generate_title06
  92. ---@field private scrollView UIStory__Generate_scrollView
  93. ---@field private content UnityEngine.GameObject
  94. ---@field private storyTalkItem UIStory__Generate_storyTalkItem
  95. ---@field private arrowRgt UnityEngine.GameObject
  96. ---@field private arrowLft UnityEngine.GameObject
  97. ---@field private selectionBg UIStory__Generate_selectionBg
  98. ---@field private skip UIStory__Generate_skip
  99. ---@field private darkScreen UnityEngine.GameObject
  100. local UIStoryView = class("UIStoryView", require("UIViewBase"))
  101. function UIStoryView:ctor()
  102. end
  103. ---@private
  104. function UIStoryView:SetActive(result)
  105. self.gameObject:SetActive(result)
  106. end
  107. ---@private
  108. function UIStoryView:InitGenerate(Root, data)
  109. self.transform = Root
  110. self.inited = true
  111. if self.super.Init then
  112. self.super.Init(self)
  113. end
  114. local tmp
  115. self:InitGenerate__1(Root,data)
  116. self:InitGenerate__2(Root,data)
  117. self:InitGenerate__3(Root,data)
  118. self:InitGenerate__4(Root,data)
  119. self:InitGenerate__5(Root,data)
  120. self:InitGenerate__6(Root,data)
  121. self:InitGenerate__7(Root,data)
  122. self:InitGenerate__8(Root,data)
  123. self:InitGenerate__9(Root,data)
  124. self:InitGenerate__10(Root,data)
  125. self:InitGenerate__11(Root,data)
  126. self:InitGenerate__12(Root,data)
  127. self:InitGenerate__13(Root,data)
  128. self:InitGenerate__14(Root,data)
  129. self:InitGenerate__15(Root,data)
  130. self:InitGenerate__16(Root,data)
  131. self:InitGenerate__17(Root,data)
  132. self:InitGenerate__18(Root,data)
  133. self:InitGenerate__19(Root,data)
  134. self:InitGenerate__20(Root,data)
  135. self:InitGenerate__21(Root,data)
  136. self:InitGenerate__22(Root,data)
  137. self:InitGenerate__23(Root,data)
  138. self:InitGenerate__24(Root,data)
  139. self:InitGenerate__25(Root,data)
  140. self:InitGenerate__26(Root,data)
  141. self:InitGenerate__27(Root,data)
  142. end
  143. ---@private
  144. function UIStoryView:InitGenerate__1(Root, data)
  145. --[[
  146. UIAnimator
  147. --]]
  148. local tmp = Root:Find("UIAnimator").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.uIAnimator = tmp
  153. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  154. tmp.animator.logWarnings = false
  155. end
  156. ---@private
  157. function UIStoryView:InitGenerate__2(Root, data)
  158. --[[
  159. UIAnimator/Window
  160. --]]
  161. local tmp = Root:Find("UIAnimator/Window").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.window = tmp
  166. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  167. end
  168. ---@private
  169. function UIStoryView:InitGenerate__3(Root, data)
  170. --[[
  171. UIAnimator/Window/BgMove
  172. --]]
  173. local tmp = Root:Find("UIAnimator/Window/BgMove").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.bgMove = tmp
  178. end
  179. ---@private
  180. function UIStoryView:InitGenerate__4(Root, data)
  181. --[[
  182. UIAnimator/Window/RoleImg/Left
  183. --]]
  184. local tmp = Root:Find("UIAnimator/Window/RoleImg/Left").gameObject
  185. if tolua.getpeer(tmp) == nil then
  186. tolua.setpeer(tmp, {})
  187. end
  188. self.left = tmp
  189. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  190. tmp.animator.logWarnings = false
  191. end
  192. ---@private
  193. function UIStoryView:InitGenerate__5(Root, data)
  194. --[[
  195. UIAnimator/Window/RoleImg/Left/Role
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/RoleImg/Left/Role").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.left.role = tmp
  202. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  203. end
  204. ---@private
  205. function UIStoryView:InitGenerate__6(Root, data)
  206. --[[
  207. UIAnimator/Window/RoleImg/Right
  208. --]]
  209. local tmp = Root:Find("UIAnimator/Window/RoleImg/Right").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.right = tmp
  214. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  215. tmp.animator.logWarnings = false
  216. end
  217. ---@private
  218. function UIStoryView:InitGenerate__7(Root, data)
  219. --[[
  220. UIAnimator/Window/RoleImg/Right/Role
  221. --]]
  222. local tmp = Root:Find("UIAnimator/Window/RoleImg/Right/Role").gameObject
  223. if tolua.getpeer(tmp) == nil then
  224. tolua.setpeer(tmp, {})
  225. end
  226. self.right.role = tmp
  227. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  228. end
  229. ---@private
  230. function UIStoryView:InitGenerate__8(Root, data)
  231. --[[
  232. UIAnimator/Window/Bottom/bgs/Title01
  233. --]]
  234. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title01").gameObject
  235. if tolua.getpeer(tmp) == nil then
  236. tolua.setpeer(tmp, {})
  237. end
  238. self.title01 = tmp
  239. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  240. end
  241. ---@private
  242. function UIStoryView:InitGenerate__9(Root, data)
  243. --[[
  244. UIAnimator/Window/Bottom/bgs/Title02
  245. --]]
  246. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title02").gameObject
  247. if tolua.getpeer(tmp) == nil then
  248. tolua.setpeer(tmp, {})
  249. end
  250. self.title02 = tmp
  251. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  252. end
  253. ---@private
  254. function UIStoryView:InitGenerate__10(Root, data)
  255. --[[
  256. UIAnimator/Window/Bottom/bgs/Title03
  257. --]]
  258. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title03").gameObject
  259. if tolua.getpeer(tmp) == nil then
  260. tolua.setpeer(tmp, {})
  261. end
  262. self.title03 = tmp
  263. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  264. end
  265. ---@private
  266. function UIStoryView:InitGenerate__11(Root, data)
  267. --[[
  268. UIAnimator/Window/Bottom/bgs/Title04
  269. --]]
  270. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title04").gameObject
  271. if tolua.getpeer(tmp) == nil then
  272. tolua.setpeer(tmp, {})
  273. end
  274. self.title04 = tmp
  275. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  276. end
  277. ---@private
  278. function UIStoryView:InitGenerate__12(Root, data)
  279. --[[
  280. UIAnimator/Window/Bottom/bgs/Title05
  281. --]]
  282. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title05").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.title05 = tmp
  287. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  288. end
  289. ---@private
  290. function UIStoryView:InitGenerate__13(Root, data)
  291. --[[
  292. UIAnimator/Window/Bottom/bgs/Title06
  293. --]]
  294. local tmp = Root:Find("UIAnimator/Window/Bottom/bgs/Title06").gameObject
  295. if tolua.getpeer(tmp) == nil then
  296. tolua.setpeer(tmp, {})
  297. end
  298. self.title06 = tmp
  299. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  300. end
  301. ---@private
  302. function UIStoryView:InitGenerate__14(Root, data)
  303. --[[
  304. UIAnimator/Window/Bottom/Scroll View
  305. --]]
  306. local tmp = Root:Find("UIAnimator/Window/Bottom/Scroll View").gameObject
  307. if tolua.getpeer(tmp) == nil then
  308. tolua.setpeer(tmp, {})
  309. end
  310. self.scrollView = tmp
  311. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  312. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  313. end
  314. ---@private
  315. function UIStoryView:InitGenerate__15(Root, data)
  316. --[[
  317. UIAnimator/Window/Bottom/Scroll View/Viewport/Content
  318. --]]
  319. local tmp = Root:Find("UIAnimator/Window/Bottom/Scroll View/Viewport/Content").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.content = tmp
  324. end
  325. ---@private
  326. function UIStoryView:InitGenerate__16(Root, data)
  327. --[[
  328. UIAnimator/Window/Bottom/Scroll View/Viewport/Content/StoryTalkItem
  329. --]]
  330. local tmp = Root:Find("UIAnimator/Window/Bottom/Scroll View/Viewport/Content/StoryTalkItem").gameObject
  331. if tolua.getpeer(tmp) == nil then
  332. tolua.setpeer(tmp, {})
  333. end
  334. self.storyTalkItem = CommonUtil.BindGridViewItem2LuaStatic("StoryTalkItem", tmp)
  335. self.storyTalkItem.prefabName = "StoryTalkItem"
  336. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  337. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  338. tmp.canvasGroup = tmp:GetComponent(Enum.TypeInfo.CanvasGroup)
  339. end
  340. ---@private
  341. function UIStoryView:InitGenerate__17(Root, data)
  342. --[[
  343. UIAnimator/Window/Bottom/ArrowRgt
  344. --]]
  345. local tmp = Root:Find("UIAnimator/Window/Bottom/ArrowRgt").gameObject
  346. if tolua.getpeer(tmp) == nil then
  347. tolua.setpeer(tmp, {})
  348. end
  349. self.arrowRgt = tmp
  350. end
  351. ---@private
  352. function UIStoryView:InitGenerate__18(Root, data)
  353. --[[
  354. UIAnimator/Window/Bottom/ArrowLft
  355. --]]
  356. local tmp = Root:Find("UIAnimator/Window/Bottom/ArrowLft").gameObject
  357. if tolua.getpeer(tmp) == nil then
  358. tolua.setpeer(tmp, {})
  359. end
  360. self.arrowLft = tmp
  361. end
  362. ---@private
  363. function UIStoryView:InitGenerate__19(Root, data)
  364. --[[
  365. UIAnimator/Window/SelectionBg
  366. --]]
  367. local tmp = Root:Find("UIAnimator/Window/SelectionBg").gameObject
  368. if tolua.getpeer(tmp) == nil then
  369. tolua.setpeer(tmp, {})
  370. end
  371. self.selectionBg = tmp
  372. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  373. tmp.animator.logWarnings = false
  374. end
  375. ---@private
  376. function UIStoryView:InitGenerate__20(Root, data)
  377. --[[
  378. UIAnimator/Window/SelectionBg/Selection1
  379. --]]
  380. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection1").gameObject
  381. if tolua.getpeer(tmp) == nil then
  382. tolua.setpeer(tmp, {})
  383. end
  384. self.selectionBg.selection1 = tmp
  385. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  386. end
  387. ---@private
  388. function UIStoryView:InitGenerate__21(Root, data)
  389. --[[
  390. UIAnimator/Window/SelectionBg/Selection1/Text
  391. --]]
  392. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection1/Text").gameObject
  393. if tolua.getpeer(tmp) == nil then
  394. tolua.setpeer(tmp, {})
  395. end
  396. self.selectionBg.selection1.text = tmp
  397. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  398. end
  399. ---@private
  400. function UIStoryView:InitGenerate__22(Root, data)
  401. --[[
  402. UIAnimator/Window/SelectionBg/Selection2
  403. --]]
  404. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection2").gameObject
  405. if tolua.getpeer(tmp) == nil then
  406. tolua.setpeer(tmp, {})
  407. end
  408. self.selectionBg.selection2 = tmp
  409. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  410. end
  411. ---@private
  412. function UIStoryView:InitGenerate__23(Root, data)
  413. --[[
  414. UIAnimator/Window/SelectionBg/Selection2/Text
  415. --]]
  416. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection2/Text").gameObject
  417. if tolua.getpeer(tmp) == nil then
  418. tolua.setpeer(tmp, {})
  419. end
  420. self.selectionBg.selection2.text = tmp
  421. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  422. end
  423. ---@private
  424. function UIStoryView:InitGenerate__24(Root, data)
  425. --[[
  426. UIAnimator/Window/SelectionBg/Selection3
  427. --]]
  428. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection3").gameObject
  429. if tolua.getpeer(tmp) == nil then
  430. tolua.setpeer(tmp, {})
  431. end
  432. self.selectionBg.selection3 = tmp
  433. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  434. end
  435. ---@private
  436. function UIStoryView:InitGenerate__25(Root, data)
  437. --[[
  438. UIAnimator/Window/SelectionBg/Selection3/Text
  439. --]]
  440. local tmp = Root:Find("UIAnimator/Window/SelectionBg/Selection3/Text").gameObject
  441. if tolua.getpeer(tmp) == nil then
  442. tolua.setpeer(tmp, {})
  443. end
  444. self.selectionBg.selection3.text = tmp
  445. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  446. end
  447. ---@private
  448. function UIStoryView:InitGenerate__26(Root, data)
  449. --[[
  450. UIAnimator/Window/Skip
  451. --]]
  452. local tmp = Root:Find("UIAnimator/Window/Skip").gameObject
  453. if tolua.getpeer(tmp) == nil then
  454. tolua.setpeer(tmp, {})
  455. end
  456. self.skip = tmp
  457. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  458. end
  459. ---@private
  460. function UIStoryView:InitGenerate__27(Root, data)
  461. --[[
  462. UIAnimator/Window/DarkScreen
  463. --]]
  464. local tmp = Root:Find("UIAnimator/Window/DarkScreen").gameObject
  465. if tolua.getpeer(tmp) == nil then
  466. tolua.setpeer(tmp, {})
  467. end
  468. self.darkScreen = tmp
  469. end
  470. ---@private
  471. function UIStoryView:GenerateDestroy()
  472. if tolua.getpeer(self.selectionBg.selection3.text) ~= nil then
  473. tolua.setpeer(self.selectionBg.selection3.text, nil)
  474. end
  475. if tolua.getpeer(self.selectionBg.selection3) ~= nil then
  476. tolua.setpeer(self.selectionBg.selection3, nil)
  477. end
  478. if tolua.getpeer(self.selectionBg.selection2.text) ~= nil then
  479. tolua.setpeer(self.selectionBg.selection2.text, nil)
  480. end
  481. if tolua.getpeer(self.selectionBg.selection2) ~= nil then
  482. tolua.setpeer(self.selectionBg.selection2, nil)
  483. end
  484. if tolua.getpeer(self.selectionBg.selection1.text) ~= nil then
  485. tolua.setpeer(self.selectionBg.selection1.text, nil)
  486. end
  487. if tolua.getpeer(self.selectionBg.selection1) ~= nil then
  488. tolua.setpeer(self.selectionBg.selection1, nil)
  489. end
  490. if tolua.getpeer(self.right.role) ~= nil then
  491. tolua.setpeer(self.right.role, nil)
  492. end
  493. if tolua.getpeer(self.left.role) ~= nil then
  494. tolua.setpeer(self.left.role, nil)
  495. end
  496. if tolua.getpeer(self.uIAnimator) ~= nil then
  497. tolua.setpeer(self.uIAnimator, nil)
  498. end
  499. self.uIAnimator = nil
  500. if tolua.getpeer(self.window) ~= nil then
  501. tolua.setpeer(self.window, nil)
  502. end
  503. self.window = nil
  504. if tolua.getpeer(self.bgMove) ~= nil then
  505. tolua.setpeer(self.bgMove, nil)
  506. end
  507. self.bgMove = nil
  508. if tolua.getpeer(self.left) ~= nil then
  509. tolua.setpeer(self.left, nil)
  510. end
  511. self.left = nil
  512. if tolua.getpeer(self.right) ~= nil then
  513. tolua.setpeer(self.right, nil)
  514. end
  515. self.right = nil
  516. if tolua.getpeer(self.title01) ~= nil then
  517. tolua.setpeer(self.title01, nil)
  518. end
  519. self.title01 = nil
  520. if tolua.getpeer(self.title02) ~= nil then
  521. tolua.setpeer(self.title02, nil)
  522. end
  523. self.title02 = nil
  524. if tolua.getpeer(self.title03) ~= nil then
  525. tolua.setpeer(self.title03, nil)
  526. end
  527. self.title03 = nil
  528. if tolua.getpeer(self.title04) ~= nil then
  529. tolua.setpeer(self.title04, nil)
  530. end
  531. self.title04 = nil
  532. if tolua.getpeer(self.title05) ~= nil then
  533. tolua.setpeer(self.title05, nil)
  534. end
  535. self.title05 = nil
  536. if tolua.getpeer(self.title06) ~= nil then
  537. tolua.setpeer(self.title06, nil)
  538. end
  539. self.title06 = nil
  540. if tolua.getpeer(self.scrollView) ~= nil then
  541. tolua.setpeer(self.scrollView, nil)
  542. end
  543. self.scrollView = nil
  544. if tolua.getpeer(self.content) ~= nil then
  545. tolua.setpeer(self.content, nil)
  546. end
  547. self.content = nil
  548. if self.storyTalkItem.GenerateDestroy ~= nil then
  549. self.storyTalkItem:GenerateDestroy()
  550. end
  551. if tolua.getpeer(self.storyTalkItem) ~= nil then
  552. tolua.setpeer(self.storyTalkItem, nil)
  553. end
  554. self.storyTalkItem = nil
  555. if tolua.getpeer(self.arrowRgt) ~= nil then
  556. tolua.setpeer(self.arrowRgt, nil)
  557. end
  558. self.arrowRgt = nil
  559. if tolua.getpeer(self.arrowLft) ~= nil then
  560. tolua.setpeer(self.arrowLft, nil)
  561. end
  562. self.arrowLft = nil
  563. if tolua.getpeer(self.selectionBg) ~= nil then
  564. tolua.setpeer(self.selectionBg, nil)
  565. end
  566. self.selectionBg = nil
  567. if tolua.getpeer(self.skip) ~= nil then
  568. tolua.setpeer(self.skip, nil)
  569. end
  570. self.skip = nil
  571. if tolua.getpeer(self.darkScreen) ~= nil then
  572. tolua.setpeer(self.darkScreen, nil)
  573. end
  574. self.darkScreen = nil
  575. self.transform = nil
  576. self.gameObject = nil
  577. self.inited = false
  578. end
  579. return UIStoryView