UISummonView_Generate.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. ---@class UISummon__Generate_btnArrowL
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UISummon__Generate_btnArrowR
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UISummon__Generate_dot
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public toggle UnityEngine.UI.Toggle
  10. ---@class UISummon__Generate_btnClose
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UISummon__Generate_lockTxt
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UISummon__Generate_btnFive
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UISummon__Generate_currencyFive_number
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UISummon__Generate_currencyFive_icon
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public image UnityEngine.UI.Image
  25. ---@class UISummon__Generate_currencyFive
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public icon UISummon__Generate_currencyFive_icon
  28. ---@field public number UISummon__Generate_currencyFive_number
  29. ---@class UISummon__Generate_btnOne
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public button UnityEngine.UI.Button
  32. ---@class UISummon__Generate_currencyOne_number
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public text UnityEngine.UI.Text
  35. ---@class UISummon__Generate_currencyOne_icon
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public image UnityEngine.UI.Image
  38. ---@class UISummon__Generate_currencyOne
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public icon UISummon__Generate_currencyOne_icon
  41. ---@field public number UISummon__Generate_currencyOne_number
  42. ---@class UISummon__Generate_timeBox_TimeTxt
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public text TMPro.TextMeshProUGUI
  45. ---@class UISummon__Generate_timeBox
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public TimeTxt UISummon__Generate_timeBox_TimeTxt
  48. ---@class UISummon__Generate_currency_btnBuy
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public button UnityEngine.UI.Button
  51. ---@class UISummon__Generate_currency_number
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public text UnityEngine.UI.Text
  54. ---@class UISummon__Generate_currency_icon
  55. ---@field public gameObject UnityEngine.GameObject
  56. ---@field public image UnityEngine.UI.Image
  57. ---@class UISummon__Generate_currency
  58. ---@field public gameObject UnityEngine.GameObject
  59. ---@field public icon UISummon__Generate_currency_icon
  60. ---@field public number UISummon__Generate_currency_number
  61. ---@field public btnBuy UISummon__Generate_currency_btnBuy
  62. ---@class UISummon__Generate_btnPlayRule
  63. ---@field public gameObject UnityEngine.GameObject
  64. ---@field public button UnityEngine.UI.Button
  65. ---@class UISummon__Generate_uISummonItem
  66. ---@field public gameObject UnityEngine.GameObject
  67. ---@field public rectTransform UnityEngine.RectTransform
  68. ---@class UISummon__Generate_scrollView
  69. ---@field public gameObject UnityEngine.GameObject
  70. ---@field public loopListView SuperScrollView.LoopListView
  71. ---@class UISummon__Generate_window
  72. ---@field public gameObject UnityEngine.GameObject
  73. ---@field public animator UnityEngine.Animator
  74. ---@class UISummon__Generate_AnyBtn
  75. ---@field public gameObject UnityEngine.GameObject
  76. ---@field public button UnityEngine.UI.Button
  77. ---@class UISummon__Generate_uIAnimator
  78. ---@field public gameObject UnityEngine.GameObject
  79. ---@field public animator UnityEngine.Animator
  80. ---@class UISummon__Generate
  81. ---@field private gameObject UnityEngine.GameObject
  82. ---@field private transform UnityEngine.Transform
  83. ---@field private uIAnimator UISummon__Generate_uIAnimator
  84. ---@field private AnyBtn UISummon__Generate_AnyBtn
  85. ---@field private window UISummon__Generate_window
  86. ---@field private scrollView UISummon__Generate_scrollView
  87. ---@field private uISummonItem UISummon__Generate_uISummonItem
  88. ---@field private btnPlayRule UISummon__Generate_btnPlayRule
  89. ---@field private currency UISummon__Generate_currency
  90. ---@field private timeBox UISummon__Generate_timeBox
  91. ---@field private leftAnim UnityEngine.GameObject
  92. ---@field private currencyOne UISummon__Generate_currencyOne
  93. ---@field private btnOne UISummon__Generate_btnOne
  94. ---@field private rightAnim UnityEngine.GameObject
  95. ---@field private currencyFive UISummon__Generate_currencyFive
  96. ---@field private btnFive UISummon__Generate_btnFive
  97. ---@field private lockAnim UnityEngine.GameObject
  98. ---@field private lockTxt UISummon__Generate_lockTxt
  99. ---@field private btnClose UISummon__Generate_btnClose
  100. ---@field private dotToggleGroup UnityEngine.GameObject
  101. ---@field private dot UISummon__Generate_dot
  102. ---@field private btnArrowR UISummon__Generate_btnArrowR
  103. ---@field private btnArrowL UISummon__Generate_btnArrowL
  104. local UISummonView = class("UISummonView", require("UIViewBase"))
  105. function UISummonView:ctor()
  106. end
  107. ---@private
  108. function UISummonView:SetActive(result)
  109. self.gameObject:SetActive(result)
  110. end
  111. ---@private
  112. function UISummonView:InitGenerate(Root, data)
  113. self.transform = Root
  114. self.inited = true
  115. if self.super.Init then
  116. self.super.Init(self)
  117. end
  118. local tmp
  119. self:InitGenerate__1(Root,data)
  120. self:InitGenerate__2(Root,data)
  121. self:InitGenerate__3(Root,data)
  122. self:InitGenerate__4(Root,data)
  123. self:InitGenerate__5(Root,data)
  124. self:InitGenerate__6(Root,data)
  125. self:InitGenerate__7(Root,data)
  126. self:InitGenerate__8(Root,data)
  127. self:InitGenerate__9(Root,data)
  128. self:InitGenerate__10(Root,data)
  129. self:InitGenerate__11(Root,data)
  130. self:InitGenerate__12(Root,data)
  131. self:InitGenerate__13(Root,data)
  132. self:InitGenerate__14(Root,data)
  133. self:InitGenerate__15(Root,data)
  134. self:InitGenerate__16(Root,data)
  135. self:InitGenerate__17(Root,data)
  136. self:InitGenerate__18(Root,data)
  137. self:InitGenerate__19(Root,data)
  138. self:InitGenerate__20(Root,data)
  139. self:InitGenerate__21(Root,data)
  140. self:InitGenerate__22(Root,data)
  141. self:InitGenerate__23(Root,data)
  142. self:InitGenerate__24(Root,data)
  143. self:InitGenerate__25(Root,data)
  144. self:InitGenerate__26(Root,data)
  145. self:InitGenerate__27(Root,data)
  146. self:InitGenerate__28(Root,data)
  147. self:InitGenerate__29(Root,data)
  148. end
  149. ---@private
  150. function UISummonView:InitGenerate__1(Root, data)
  151. --[[
  152. UIAnimator
  153. --]]
  154. local tmp = Root:Find("UIAnimator").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.uIAnimator = tmp
  159. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  160. tmp.animator.logWarnings = false
  161. end
  162. ---@private
  163. function UISummonView:InitGenerate__2(Root, data)
  164. --[[
  165. UIAnimator/Alpha
  166. --]]
  167. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.AnyBtn = tmp
  172. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  173. end
  174. ---@private
  175. function UISummonView:InitGenerate__3(Root, data)
  176. --[[
  177. UIAnimator/Window
  178. --]]
  179. local tmp = Root:Find("UIAnimator/Window").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.window = tmp
  184. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  185. tmp.animator.logWarnings = false
  186. end
  187. ---@private
  188. function UISummonView:InitGenerate__4(Root, data)
  189. --[[
  190. UIAnimator/Window/ScrollView
  191. --]]
  192. local tmp = Root:Find("UIAnimator/Window/ScrollView").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.scrollView = tmp
  197. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  198. end
  199. ---@private
  200. function UISummonView:InitGenerate__5(Root, data)
  201. --[[
  202. UIAnimator/Window/ScrollView/Viewport/Content/UISummonItem
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/ScrollView/Viewport/Content/UISummonItem").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.uISummonItem = CommonUtil.BindGridViewItem2LuaStatic("UISummonItem", tmp)
  209. self.uISummonItem.prefabName = "UISummonItem"
  210. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  211. end
  212. ---@private
  213. function UISummonView:InitGenerate__6(Root, data)
  214. --[[
  215. UIAnimator/Window/TopView/ResourceBoxAnim/BtnPlayRule
  216. --]]
  217. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/BtnPlayRule").gameObject
  218. if tolua.getpeer(tmp) == nil then
  219. tolua.setpeer(tmp, {})
  220. end
  221. self.btnPlayRule = tmp
  222. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  223. end
  224. ---@private
  225. function UISummonView:InitGenerate__7(Root, data)
  226. --[[
  227. UIAnimator/Window/TopView/ResourceBoxAnim/Currency
  228. --]]
  229. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/Currency").gameObject
  230. if tolua.getpeer(tmp) == nil then
  231. tolua.setpeer(tmp, {})
  232. end
  233. self.currency = tmp
  234. end
  235. ---@private
  236. function UISummonView:InitGenerate__8(Root, data)
  237. --[[
  238. UIAnimator/Window/TopView/ResourceBoxAnim/Currency/Icon
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/Currency/Icon").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.currency.icon = tmp
  245. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  246. end
  247. ---@private
  248. function UISummonView:InitGenerate__9(Root, data)
  249. --[[
  250. UIAnimator/Window/TopView/ResourceBoxAnim/Currency/Number
  251. --]]
  252. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/Currency/Number").gameObject
  253. if tolua.getpeer(tmp) == nil then
  254. tolua.setpeer(tmp, {})
  255. end
  256. self.currency.number = tmp
  257. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  258. end
  259. ---@private
  260. function UISummonView:InitGenerate__10(Root, data)
  261. --[[
  262. UIAnimator/Window/TopView/ResourceBoxAnim/Currency/BtnBuy
  263. --]]
  264. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/Currency/BtnBuy").gameObject
  265. if tolua.getpeer(tmp) == nil then
  266. tolua.setpeer(tmp, {})
  267. end
  268. self.currency.btnBuy = tmp
  269. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  270. end
  271. ---@private
  272. function UISummonView:InitGenerate__11(Root, data)
  273. --[[
  274. UIAnimator/Window/TopView/ResourceBoxAnim/TimeBox
  275. --]]
  276. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/TimeBox").gameObject
  277. if tolua.getpeer(tmp) == nil then
  278. tolua.setpeer(tmp, {})
  279. end
  280. self.timeBox = tmp
  281. end
  282. ---@private
  283. function UISummonView:InitGenerate__12(Root, data)
  284. --[[
  285. UIAnimator/Window/TopView/ResourceBoxAnim/TimeBox/Time
  286. --]]
  287. local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBoxAnim/TimeBox/Time").gameObject
  288. if tolua.getpeer(tmp) == nil then
  289. tolua.setpeer(tmp, {})
  290. end
  291. self.timeBox.TimeTxt = tmp
  292. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  293. end
  294. ---@private
  295. function UISummonView:InitGenerate__13(Root, data)
  296. --[[
  297. UIAnimator/Window/BtnBox/BtnAnim/LeftAnim
  298. --]]
  299. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LeftAnim").gameObject
  300. if tolua.getpeer(tmp) == nil then
  301. tolua.setpeer(tmp, {})
  302. end
  303. self.leftAnim = tmp
  304. end
  305. ---@private
  306. function UISummonView:InitGenerate__14(Root, data)
  307. --[[
  308. UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne
  309. --]]
  310. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne").gameObject
  311. if tolua.getpeer(tmp) == nil then
  312. tolua.setpeer(tmp, {})
  313. end
  314. self.currencyOne = tmp
  315. end
  316. ---@private
  317. function UISummonView:InitGenerate__15(Root, data)
  318. --[[
  319. UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne/Icon
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne/Icon").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.currencyOne.icon = tmp
  326. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  327. end
  328. ---@private
  329. function UISummonView:InitGenerate__16(Root, data)
  330. --[[
  331. UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne/Number
  332. --]]
  333. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/CurrencyOne/Number").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.currencyOne.number = tmp
  338. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  339. end
  340. ---@private
  341. function UISummonView:InitGenerate__17(Root, data)
  342. --[[
  343. UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/BtnOne
  344. --]]
  345. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LeftAnim/BtnOne").gameObject
  346. if tolua.getpeer(tmp) == nil then
  347. tolua.setpeer(tmp, {})
  348. end
  349. self.btnOne = tmp
  350. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  351. end
  352. ---@private
  353. function UISummonView:InitGenerate__18(Root, data)
  354. --[[
  355. UIAnimator/Window/BtnBox/BtnAnim/RightAnim
  356. --]]
  357. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/RightAnim").gameObject
  358. if tolua.getpeer(tmp) == nil then
  359. tolua.setpeer(tmp, {})
  360. end
  361. self.rightAnim = tmp
  362. end
  363. ---@private
  364. function UISummonView:InitGenerate__19(Root, data)
  365. --[[
  366. UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive
  367. --]]
  368. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive").gameObject
  369. if tolua.getpeer(tmp) == nil then
  370. tolua.setpeer(tmp, {})
  371. end
  372. self.currencyFive = tmp
  373. end
  374. ---@private
  375. function UISummonView:InitGenerate__20(Root, data)
  376. --[[
  377. UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive/Icon
  378. --]]
  379. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive/Icon").gameObject
  380. if tolua.getpeer(tmp) == nil then
  381. tolua.setpeer(tmp, {})
  382. end
  383. self.currencyFive.icon = tmp
  384. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  385. end
  386. ---@private
  387. function UISummonView:InitGenerate__21(Root, data)
  388. --[[
  389. UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive/Number
  390. --]]
  391. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/RightAnim/CurrencyFive/Number").gameObject
  392. if tolua.getpeer(tmp) == nil then
  393. tolua.setpeer(tmp, {})
  394. end
  395. self.currencyFive.number = tmp
  396. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  397. end
  398. ---@private
  399. function UISummonView:InitGenerate__22(Root, data)
  400. --[[
  401. UIAnimator/Window/BtnBox/BtnAnim/RightAnim/BtnFive
  402. --]]
  403. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/RightAnim/BtnFive").gameObject
  404. if tolua.getpeer(tmp) == nil then
  405. tolua.setpeer(tmp, {})
  406. end
  407. self.btnFive = tmp
  408. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  409. end
  410. ---@private
  411. function UISummonView:InitGenerate__23(Root, data)
  412. --[[
  413. UIAnimator/Window/BtnBox/BtnAnim/LockAnim
  414. --]]
  415. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LockAnim").gameObject
  416. if tolua.getpeer(tmp) == nil then
  417. tolua.setpeer(tmp, {})
  418. end
  419. self.lockAnim = tmp
  420. self.lockAnim:SetActive(false)
  421. end
  422. ---@private
  423. function UISummonView:InitGenerate__24(Root, data)
  424. --[[
  425. UIAnimator/Window/BtnBox/BtnAnim/LockAnim/LockTxt
  426. --]]
  427. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnAnim/LockAnim/LockTxt").gameObject
  428. if tolua.getpeer(tmp) == nil then
  429. tolua.setpeer(tmp, {})
  430. end
  431. self.lockTxt = tmp
  432. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  433. end
  434. ---@private
  435. function UISummonView:InitGenerate__25(Root, data)
  436. --[[
  437. UIAnimator/Window/Bottom/BtnClose
  438. --]]
  439. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnClose").gameObject
  440. if tolua.getpeer(tmp) == nil then
  441. tolua.setpeer(tmp, {})
  442. end
  443. self.btnClose = tmp
  444. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  445. end
  446. ---@private
  447. function UISummonView:InitGenerate__26(Root, data)
  448. --[[
  449. UIAnimator/Window/Bottom/DotToggleGroup
  450. --]]
  451. local tmp = Root:Find("UIAnimator/Window/Bottom/DotToggleGroup").gameObject
  452. if tolua.getpeer(tmp) == nil then
  453. tolua.setpeer(tmp, {})
  454. end
  455. self.dotToggleGroup = tmp
  456. end
  457. ---@private
  458. function UISummonView:InitGenerate__27(Root, data)
  459. --[[
  460. UIAnimator/Window/Bottom/DotToggleGroup/Dot
  461. --]]
  462. local tmp = Root:Find("UIAnimator/Window/Bottom/DotToggleGroup/Dot").gameObject
  463. if tolua.getpeer(tmp) == nil then
  464. tolua.setpeer(tmp, {})
  465. end
  466. self.dot = tmp
  467. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  468. end
  469. ---@private
  470. function UISummonView:InitGenerate__28(Root, data)
  471. --[[
  472. UIAnimator/Window/BtnArrowR
  473. --]]
  474. local tmp = Root:Find("UIAnimator/Window/BtnArrowR").gameObject
  475. if tolua.getpeer(tmp) == nil then
  476. tolua.setpeer(tmp, {})
  477. end
  478. self.btnArrowR = tmp
  479. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  480. end
  481. ---@private
  482. function UISummonView:InitGenerate__29(Root, data)
  483. --[[
  484. UIAnimator/Window/BtnArrowL
  485. --]]
  486. local tmp = Root:Find("UIAnimator/Window/BtnArrowL").gameObject
  487. if tolua.getpeer(tmp) == nil then
  488. tolua.setpeer(tmp, {})
  489. end
  490. self.btnArrowL = tmp
  491. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  492. end
  493. ---@private
  494. function UISummonView:GenerateDestroy()
  495. if tolua.getpeer(self.currencyFive.number) ~= nil then
  496. tolua.setpeer(self.currencyFive.number, nil)
  497. end
  498. if tolua.getpeer(self.currencyFive.icon) ~= nil then
  499. tolua.setpeer(self.currencyFive.icon, nil)
  500. end
  501. if tolua.getpeer(self.currencyOne.number) ~= nil then
  502. tolua.setpeer(self.currencyOne.number, nil)
  503. end
  504. if tolua.getpeer(self.currencyOne.icon) ~= nil then
  505. tolua.setpeer(self.currencyOne.icon, nil)
  506. end
  507. if tolua.getpeer(self.timeBox.TimeTxt) ~= nil then
  508. tolua.setpeer(self.timeBox.TimeTxt, nil)
  509. end
  510. if tolua.getpeer(self.currency.btnBuy) ~= nil then
  511. tolua.setpeer(self.currency.btnBuy, nil)
  512. end
  513. if tolua.getpeer(self.currency.number) ~= nil then
  514. tolua.setpeer(self.currency.number, nil)
  515. end
  516. if tolua.getpeer(self.currency.icon) ~= nil then
  517. tolua.setpeer(self.currency.icon, nil)
  518. end
  519. if tolua.getpeer(self.uIAnimator) ~= nil then
  520. tolua.setpeer(self.uIAnimator, nil)
  521. end
  522. self.uIAnimator = nil
  523. if tolua.getpeer(self.AnyBtn) ~= nil then
  524. tolua.setpeer(self.AnyBtn, nil)
  525. end
  526. self.AnyBtn = nil
  527. if tolua.getpeer(self.window) ~= nil then
  528. tolua.setpeer(self.window, nil)
  529. end
  530. self.window = nil
  531. if tolua.getpeer(self.scrollView) ~= nil then
  532. tolua.setpeer(self.scrollView, nil)
  533. end
  534. self.scrollView = nil
  535. if self.uISummonItem.GenerateDestroy ~= nil then
  536. self.uISummonItem:GenerateDestroy()
  537. end
  538. if tolua.getpeer(self.uISummonItem) ~= nil then
  539. tolua.setpeer(self.uISummonItem, nil)
  540. end
  541. self.uISummonItem = nil
  542. if tolua.getpeer(self.btnPlayRule) ~= nil then
  543. tolua.setpeer(self.btnPlayRule, nil)
  544. end
  545. self.btnPlayRule = nil
  546. if tolua.getpeer(self.currency) ~= nil then
  547. tolua.setpeer(self.currency, nil)
  548. end
  549. self.currency = nil
  550. if tolua.getpeer(self.timeBox) ~= nil then
  551. tolua.setpeer(self.timeBox, nil)
  552. end
  553. self.timeBox = nil
  554. if tolua.getpeer(self.leftAnim) ~= nil then
  555. tolua.setpeer(self.leftAnim, nil)
  556. end
  557. self.leftAnim = nil
  558. if tolua.getpeer(self.currencyOne) ~= nil then
  559. tolua.setpeer(self.currencyOne, nil)
  560. end
  561. self.currencyOne = nil
  562. if tolua.getpeer(self.btnOne) ~= nil then
  563. tolua.setpeer(self.btnOne, nil)
  564. end
  565. self.btnOne = nil
  566. if tolua.getpeer(self.rightAnim) ~= nil then
  567. tolua.setpeer(self.rightAnim, nil)
  568. end
  569. self.rightAnim = nil
  570. if tolua.getpeer(self.currencyFive) ~= nil then
  571. tolua.setpeer(self.currencyFive, nil)
  572. end
  573. self.currencyFive = nil
  574. if tolua.getpeer(self.btnFive) ~= nil then
  575. tolua.setpeer(self.btnFive, nil)
  576. end
  577. self.btnFive = nil
  578. if tolua.getpeer(self.lockAnim) ~= nil then
  579. tolua.setpeer(self.lockAnim, nil)
  580. end
  581. self.lockAnim = nil
  582. if tolua.getpeer(self.lockTxt) ~= nil then
  583. tolua.setpeer(self.lockTxt, nil)
  584. end
  585. self.lockTxt = nil
  586. if tolua.getpeer(self.btnClose) ~= nil then
  587. tolua.setpeer(self.btnClose, nil)
  588. end
  589. self.btnClose = nil
  590. if tolua.getpeer(self.dotToggleGroup) ~= nil then
  591. tolua.setpeer(self.dotToggleGroup, nil)
  592. end
  593. self.dotToggleGroup = nil
  594. if tolua.getpeer(self.dot) ~= nil then
  595. tolua.setpeer(self.dot, nil)
  596. end
  597. self.dot = nil
  598. if tolua.getpeer(self.btnArrowR) ~= nil then
  599. tolua.setpeer(self.btnArrowR, nil)
  600. end
  601. self.btnArrowR = nil
  602. if tolua.getpeer(self.btnArrowL) ~= nil then
  603. tolua.setpeer(self.btnArrowL, nil)
  604. end
  605. self.btnArrowL = nil
  606. self.transform = nil
  607. self.gameObject = nil
  608. self.inited = false
  609. end
  610. return UISummonView