UILuckyEggShowView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. ---@class UILuckyEggShow__Generate_skip
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UILuckyEggShow__Generate_btnWeixin
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UILuckyEggShow__Generate_btnWeibo
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UILuckyEggShow__Generate_particle
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public uIParticle UIExtensions.UIParticle
  13. ---@class UILuckyEggShow__Generate_iconItem
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@field public layoutElement UnityEngine.UI.LayoutElement
  17. ---@class UILuckyEggShow__Generate_modelImg
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public rawImage UnityEngine.UI.RawImage
  20. ---@class UILuckyEggShow__Generate_nameTxt
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public text UnityEngine.UI.Text
  23. ---@class UILuckyEggShow__Generate_itemShow
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public animator UnityEngine.Animator
  26. ---@class UILuckyEggShow__Generate_btnNext
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UILuckyEggShow__Generate_uIAnimator
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public animator UnityEngine.Animator
  32. ---@class UILuckyEggShow__Generate
  33. ---@field private gameObject UnityEngine.GameObject
  34. ---@field private transform UnityEngine.Transform
  35. ---@field private uIAnimator UILuckyEggShow__Generate_uIAnimator
  36. ---@field private bGBlueBottom UnityEngine.GameObject
  37. ---@field private bGPinkBottom UnityEngine.GameObject
  38. ---@field private bGYellowBottom UnityEngine.GameObject
  39. ---@field private btnNext UILuckyEggShow__Generate_btnNext
  40. ---@field private itemShow UILuckyEggShow__Generate_itemShow
  41. ---@field private bGBlue UnityEngine.GameObject
  42. ---@field private bGPink UnityEngine.GameObject
  43. ---@field private bGYellow UnityEngine.GameObject
  44. ---@field private nameTxt UILuckyEggShow__Generate_nameTxt
  45. ---@field private label UnityEngine.GameObject
  46. ---@field private mVP UnityEngine.GameObject
  47. ---@field private mini UnityEngine.GameObject
  48. ---@field private normal UnityEngine.GameObject
  49. ---@field private labelNew UnityEngine.GameObject
  50. ---@field private rT UnityEngine.GameObject
  51. ---@field private modelImg UILuckyEggShow__Generate_modelImg
  52. ---@field private item UnityEngine.GameObject
  53. ---@field private iconItem UILuckyEggShow__Generate_iconItem
  54. ---@field private particle UILuckyEggShow__Generate_particle
  55. ---@field private btnWeibo UILuckyEggShow__Generate_btnWeibo
  56. ---@field private btnWeixin UILuckyEggShow__Generate_btnWeixin
  57. ---@field private skip UILuckyEggShow__Generate_skip
  58. local UILuckyEggShowView = class("UILuckyEggShowView", require("UIViewBase"))
  59. function UILuckyEggShowView:ctor()
  60. end
  61. ---@private
  62. function UILuckyEggShowView:SetActive(result)
  63. self.gameObject:SetActive(result)
  64. end
  65. ---@private
  66. function UILuckyEggShowView:InitGenerate(Root, data)
  67. self.transform = Root
  68. self.inited = true
  69. if self.super.Init then
  70. self.super.Init(self)
  71. end
  72. local tmp
  73. self:InitGenerate__1(Root,data)
  74. self:InitGenerate__2(Root,data)
  75. self:InitGenerate__3(Root,data)
  76. self:InitGenerate__4(Root,data)
  77. self:InitGenerate__5(Root,data)
  78. self:InitGenerate__6(Root,data)
  79. self:InitGenerate__7(Root,data)
  80. self:InitGenerate__8(Root,data)
  81. self:InitGenerate__9(Root,data)
  82. self:InitGenerate__10(Root,data)
  83. self:InitGenerate__11(Root,data)
  84. self:InitGenerate__12(Root,data)
  85. self:InitGenerate__13(Root,data)
  86. self:InitGenerate__14(Root,data)
  87. self:InitGenerate__15(Root,data)
  88. self:InitGenerate__16(Root,data)
  89. self:InitGenerate__17(Root,data)
  90. self:InitGenerate__18(Root,data)
  91. self:InitGenerate__19(Root,data)
  92. self:InitGenerate__20(Root,data)
  93. self:InitGenerate__21(Root,data)
  94. self:InitGenerate__22(Root,data)
  95. self:InitGenerate__23(Root,data)
  96. end
  97. ---@private
  98. function UILuckyEggShowView:InitGenerate__1(Root, data)
  99. --[[
  100. UIAnimator
  101. --]]
  102. local tmp = Root:Find("UIAnimator").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.uIAnimator = tmp
  107. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  108. tmp.animator.logWarnings = false
  109. end
  110. ---@private
  111. function UILuckyEggShowView:InitGenerate__2(Root, data)
  112. --[[
  113. UIAnimator/Window/BG/BGBlueBottom
  114. --]]
  115. local tmp = Root:Find("UIAnimator/Window/BG/BGBlueBottom").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.bGBlueBottom = tmp
  120. end
  121. ---@private
  122. function UILuckyEggShowView:InitGenerate__3(Root, data)
  123. --[[
  124. UIAnimator/Window/BG/BGPinkBottom
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window/BG/BGPinkBottom").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.bGPinkBottom = tmp
  131. end
  132. ---@private
  133. function UILuckyEggShowView:InitGenerate__4(Root, data)
  134. --[[
  135. UIAnimator/Window/BG/BGYellowBottom
  136. --]]
  137. local tmp = Root:Find("UIAnimator/Window/BG/BGYellowBottom").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.bGYellowBottom = tmp
  142. end
  143. ---@private
  144. function UILuckyEggShowView:InitGenerate__5(Root, data)
  145. --[[
  146. UIAnimator/Window/BtnNext
  147. --]]
  148. local tmp = Root:Find("UIAnimator/Window/BtnNext").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.btnNext = tmp
  153. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  154. end
  155. ---@private
  156. function UILuckyEggShowView:InitGenerate__6(Root, data)
  157. --[[
  158. UIAnimator/Window/ItemShow
  159. --]]
  160. local tmp = Root:Find("UIAnimator/Window/ItemShow").gameObject
  161. if tolua.getpeer(tmp) == nil then
  162. tolua.setpeer(tmp, {})
  163. end
  164. self.itemShow = tmp
  165. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  166. tmp.animator.logWarnings = false
  167. end
  168. ---@private
  169. function UILuckyEggShowView:InitGenerate__7(Root, data)
  170. --[[
  171. UIAnimator/Window/ItemShow/BG/BGBlue
  172. --]]
  173. local tmp = Root:Find("UIAnimator/Window/ItemShow/BG/BGBlue").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.bGBlue = tmp
  178. end
  179. ---@private
  180. function UILuckyEggShowView:InitGenerate__8(Root, data)
  181. --[[
  182. UIAnimator/Window/ItemShow/BG/BGPink
  183. --]]
  184. local tmp = Root:Find("UIAnimator/Window/ItemShow/BG/BGPink").gameObject
  185. if tolua.getpeer(tmp) == nil then
  186. tolua.setpeer(tmp, {})
  187. end
  188. self.bGPink = tmp
  189. end
  190. ---@private
  191. function UILuckyEggShowView:InitGenerate__9(Root, data)
  192. --[[
  193. UIAnimator/Window/ItemShow/BG/BGYellow
  194. --]]
  195. local tmp = Root:Find("UIAnimator/Window/ItemShow/BG/BGYellow").gameObject
  196. if tolua.getpeer(tmp) == nil then
  197. tolua.setpeer(tmp, {})
  198. end
  199. self.bGYellow = tmp
  200. end
  201. ---@private
  202. function UILuckyEggShowView:InitGenerate__10(Root, data)
  203. --[[
  204. UIAnimator/Window/ItemShow/NameBox/NameAnim/NameTxt
  205. --]]
  206. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/NameTxt").gameObject
  207. if tolua.getpeer(tmp) == nil then
  208. tolua.setpeer(tmp, {})
  209. end
  210. self.nameTxt = tmp
  211. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  212. end
  213. ---@private
  214. function UILuckyEggShowView:InitGenerate__11(Root, data)
  215. --[[
  216. UIAnimator/Window/ItemShow/NameBox/NameAnim/Label
  217. --]]
  218. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/Label").gameObject
  219. if tolua.getpeer(tmp) == nil then
  220. tolua.setpeer(tmp, {})
  221. end
  222. self.label = tmp
  223. end
  224. ---@private
  225. function UILuckyEggShowView:InitGenerate__12(Root, data)
  226. --[[
  227. UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/MVP
  228. --]]
  229. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/MVP").gameObject
  230. if tolua.getpeer(tmp) == nil then
  231. tolua.setpeer(tmp, {})
  232. end
  233. self.mVP = tmp
  234. end
  235. ---@private
  236. function UILuckyEggShowView:InitGenerate__13(Root, data)
  237. --[[
  238. UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/Mini
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/Mini").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.mini = tmp
  245. end
  246. ---@private
  247. function UILuckyEggShowView:InitGenerate__14(Root, data)
  248. --[[
  249. UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/Normal
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/Label/Normal").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.normal = tmp
  256. end
  257. ---@private
  258. function UILuckyEggShowView:InitGenerate__15(Root, data)
  259. --[[
  260. UIAnimator/Window/ItemShow/NameBox/NameAnim/LabelNew
  261. --]]
  262. local tmp = Root:Find("UIAnimator/Window/ItemShow/NameBox/NameAnim/LabelNew").gameObject
  263. if tolua.getpeer(tmp) == nil then
  264. tolua.setpeer(tmp, {})
  265. end
  266. self.labelNew = tmp
  267. end
  268. ---@private
  269. function UILuckyEggShowView:InitGenerate__16(Root, data)
  270. --[[
  271. UIAnimator/Window/ItemShow/ResultAnim/RT
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/ItemShow/ResultAnim/RT").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.rT = tmp
  278. end
  279. ---@private
  280. function UILuckyEggShowView:InitGenerate__17(Root, data)
  281. --[[
  282. UIAnimator/Window/ItemShow/ResultAnim/RT/ModelImg
  283. --]]
  284. local tmp = Root:Find("UIAnimator/Window/ItemShow/ResultAnim/RT/ModelImg").gameObject
  285. if tolua.getpeer(tmp) == nil then
  286. tolua.setpeer(tmp, {})
  287. end
  288. self.modelImg = tmp
  289. tmp.rawImage = tmp:GetComponent(Enum.TypeInfo.RawImage)
  290. end
  291. ---@private
  292. function UILuckyEggShowView:InitGenerate__18(Root, data)
  293. --[[
  294. UIAnimator/Window/ItemShow/ResultAnim/Item
  295. --]]
  296. local tmp = Root:Find("UIAnimator/Window/ItemShow/ResultAnim/Item").gameObject
  297. if tolua.getpeer(tmp) == nil then
  298. tolua.setpeer(tmp, {})
  299. end
  300. self.item = tmp
  301. end
  302. ---@private
  303. function UILuckyEggShowView:InitGenerate__19(Root, data)
  304. --[[
  305. UIAnimator/Window/ItemShow/ResultAnim/Item/IconItem
  306. --]]
  307. local tmp = Root:Find("UIAnimator/Window/ItemShow/ResultAnim/Item/IconItem").gameObject
  308. if tolua.getpeer(tmp) == nil then
  309. tolua.setpeer(tmp, {})
  310. end
  311. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  312. self.iconItem.prefabName = "IconItem"
  313. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  314. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  315. end
  316. ---@private
  317. function UILuckyEggShowView:InitGenerate__20(Root, data)
  318. --[[
  319. UIAnimator/Window/ItemShow/ResultAnim/particle
  320. --]]
  321. local tmp = Root:Find("UIAnimator/Window/ItemShow/ResultAnim/particle").gameObject
  322. if tolua.getpeer(tmp) == nil then
  323. tolua.setpeer(tmp, {})
  324. end
  325. self.particle = tmp
  326. tmp.uIParticle = tmp:GetComponent(Enum.TypeInfo.UIParticle)
  327. end
  328. ---@private
  329. function UILuckyEggShowView:InitGenerate__21(Root, data)
  330. --[[
  331. UIAnimator/Window/ItemShow/BtnBox/BtnWeibo
  332. --]]
  333. local tmp = Root:Find("UIAnimator/Window/ItemShow/BtnBox/BtnWeibo").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.btnWeibo = tmp
  338. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  339. end
  340. ---@private
  341. function UILuckyEggShowView:InitGenerate__22(Root, data)
  342. --[[
  343. UIAnimator/Window/ItemShow/BtnBox/BtnWeixin
  344. --]]
  345. local tmp = Root:Find("UIAnimator/Window/ItemShow/BtnBox/BtnWeixin").gameObject
  346. if tolua.getpeer(tmp) == nil then
  347. tolua.setpeer(tmp, {})
  348. end
  349. self.btnWeixin = tmp
  350. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  351. end
  352. ---@private
  353. function UILuckyEggShowView:InitGenerate__23(Root, data)
  354. --[[
  355. UIAnimator/Window/Skip
  356. --]]
  357. local tmp = Root:Find("UIAnimator/Window/Skip").gameObject
  358. if tolua.getpeer(tmp) == nil then
  359. tolua.setpeer(tmp, {})
  360. end
  361. self.skip = tmp
  362. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  363. end
  364. ---@private
  365. function UILuckyEggShowView:GenerateDestroy()
  366. if tolua.getpeer(self.uIAnimator) ~= nil then
  367. tolua.setpeer(self.uIAnimator, nil)
  368. end
  369. self.uIAnimator = nil
  370. if tolua.getpeer(self.bGBlueBottom) ~= nil then
  371. tolua.setpeer(self.bGBlueBottom, nil)
  372. end
  373. self.bGBlueBottom = nil
  374. if tolua.getpeer(self.bGPinkBottom) ~= nil then
  375. tolua.setpeer(self.bGPinkBottom, nil)
  376. end
  377. self.bGPinkBottom = nil
  378. if tolua.getpeer(self.bGYellowBottom) ~= nil then
  379. tolua.setpeer(self.bGYellowBottom, nil)
  380. end
  381. self.bGYellowBottom = nil
  382. if tolua.getpeer(self.btnNext) ~= nil then
  383. tolua.setpeer(self.btnNext, nil)
  384. end
  385. self.btnNext = nil
  386. if tolua.getpeer(self.itemShow) ~= nil then
  387. tolua.setpeer(self.itemShow, nil)
  388. end
  389. self.itemShow = nil
  390. if tolua.getpeer(self.bGBlue) ~= nil then
  391. tolua.setpeer(self.bGBlue, nil)
  392. end
  393. self.bGBlue = nil
  394. if tolua.getpeer(self.bGPink) ~= nil then
  395. tolua.setpeer(self.bGPink, nil)
  396. end
  397. self.bGPink = nil
  398. if tolua.getpeer(self.bGYellow) ~= nil then
  399. tolua.setpeer(self.bGYellow, nil)
  400. end
  401. self.bGYellow = nil
  402. if tolua.getpeer(self.nameTxt) ~= nil then
  403. tolua.setpeer(self.nameTxt, nil)
  404. end
  405. self.nameTxt = nil
  406. if tolua.getpeer(self.label) ~= nil then
  407. tolua.setpeer(self.label, nil)
  408. end
  409. self.label = nil
  410. if tolua.getpeer(self.mVP) ~= nil then
  411. tolua.setpeer(self.mVP, nil)
  412. end
  413. self.mVP = nil
  414. if tolua.getpeer(self.mini) ~= nil then
  415. tolua.setpeer(self.mini, nil)
  416. end
  417. self.mini = nil
  418. if tolua.getpeer(self.normal) ~= nil then
  419. tolua.setpeer(self.normal, nil)
  420. end
  421. self.normal = nil
  422. if tolua.getpeer(self.labelNew) ~= nil then
  423. tolua.setpeer(self.labelNew, nil)
  424. end
  425. self.labelNew = nil
  426. if tolua.getpeer(self.rT) ~= nil then
  427. tolua.setpeer(self.rT, nil)
  428. end
  429. self.rT = nil
  430. if tolua.getpeer(self.modelImg) ~= nil then
  431. tolua.setpeer(self.modelImg, nil)
  432. end
  433. self.modelImg = nil
  434. if tolua.getpeer(self.item) ~= nil then
  435. tolua.setpeer(self.item, nil)
  436. end
  437. self.item = nil
  438. if self.iconItem.GenerateDestroy ~= nil then
  439. self.iconItem:GenerateDestroy()
  440. end
  441. if tolua.getpeer(self.iconItem) ~= nil then
  442. tolua.setpeer(self.iconItem, nil)
  443. end
  444. self.iconItem = nil
  445. if tolua.getpeer(self.particle) ~= nil then
  446. tolua.setpeer(self.particle, nil)
  447. end
  448. self.particle = nil
  449. if tolua.getpeer(self.btnWeibo) ~= nil then
  450. tolua.setpeer(self.btnWeibo, nil)
  451. end
  452. self.btnWeibo = nil
  453. if tolua.getpeer(self.btnWeixin) ~= nil then
  454. tolua.setpeer(self.btnWeixin, nil)
  455. end
  456. self.btnWeixin = nil
  457. if tolua.getpeer(self.skip) ~= nil then
  458. tolua.setpeer(self.skip, nil)
  459. end
  460. self.skip = nil
  461. self.transform = nil
  462. self.gameObject = nil
  463. self.inited = false
  464. end
  465. return UILuckyEggShowView