UILuckyEggView_Generate.lua 20 KB

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