UICardTipsView_Generate.lua 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. ---@class UICardTips__Generate_cardScrollView_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  5. ---@class UICardTips__Generate_cardScrollView
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public content UICardTips__Generate_cardScrollView_content
  8. ---@class UICardTips__Generate_btnOneKeyRemove
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class UICardTips__Generate_slot4
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public slotPurpleCard UnityEngine.GameObject
  14. ---@field public slotBlueCard UnityEngine.GameObject
  15. ---@field public slotGoldCard UnityEngine.GameObject
  16. ---@class UICardTips__Generate_slot3
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public slotPurpleCard UnityEngine.GameObject
  19. ---@field public slotBlueCard UnityEngine.GameObject
  20. ---@field public slotGoldCard UnityEngine.GameObject
  21. ---@class UICardTips__Generate_slot2
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public slotPurpleCard UnityEngine.GameObject
  24. ---@field public slotBlueCard UnityEngine.GameObject
  25. ---@field public slotGoldCard UnityEngine.GameObject
  26. ---@class UICardTips__Generate_slot1
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public slotPurpleCard UnityEngine.GameObject
  29. ---@field public slotBlueCard UnityEngine.GameObject
  30. ---@field public slotGoldCard UnityEngine.GameObject
  31. ---@class UICardTips__Generate_textType
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public uILocalizeScript UILocalizeScript
  34. ---@class UICardTips__Generate_textName
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public text UnityEngine.UI.Text
  37. ---@class UICardTips__Generate_topItem_iconItem
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public rectTransform UnityEngine.RectTransform
  40. ---@field public layoutElement UnityEngine.UI.LayoutElement
  41. ---@class UICardTips__Generate_topItem
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public iconItem UICardTips__Generate_topItem_iconItem
  44. ---@class UICardTips__Generate_btnClose
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public button UnityEngine.UI.Button
  47. ---@class UICardTips__Generate_AnyBtn
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public button UnityEngine.UI.Button
  50. ---@class UICardTips__Generate_uIAnimator
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public animator UnityEngine.Animator
  53. ---@class UICardTips__Generate
  54. ---@field private gameObject UnityEngine.GameObject
  55. ---@field private transform UnityEngine.Transform
  56. ---@field private uIAnimator UICardTips__Generate_uIAnimator
  57. ---@field private AnyBtn UICardTips__Generate_AnyBtn
  58. ---@field private window UnityEngine.GameObject
  59. ---@field private closeBox UnityEngine.GameObject
  60. ---@field private btnClose UICardTips__Generate_btnClose
  61. ---@field private topItem UICardTips__Generate_topItem
  62. ---@field private contentItem UnityEngine.GameObject
  63. ---@field private textName UICardTips__Generate_textName
  64. ---@field private textType UICardTips__Generate_textType
  65. ---@field private cardsBox UnityEngine.GameObject
  66. ---@field private cardSlots UnityEngine.GameObject
  67. ---@field private slot1 UICardTips__Generate_slot1
  68. ---@field private slot2 UICardTips__Generate_slot2
  69. ---@field private slot3 UICardTips__Generate_slot3
  70. ---@field private slot4 UICardTips__Generate_slot4
  71. ---@field private btnOneKeyRemove UICardTips__Generate_btnOneKeyRemove
  72. ---@field private cardScrollView UICardTips__Generate_cardScrollView
  73. ---@field private cardslotItem1 UnityEngine.GameObject
  74. ---@field private cardslotItem2 UnityEngine.GameObject
  75. ---@field private cardslotItem3 UnityEngine.GameObject
  76. ---@field private cardslotItem4 UnityEngine.GameObject
  77. local UICardTipsView = class("UICardTipsView", require("UIViewBase"))
  78. function UICardTipsView:ctor()
  79. end
  80. ---@private
  81. function UICardTipsView:SetActive(result)
  82. self.gameObject:SetActive(result)
  83. end
  84. ---@private
  85. function UICardTipsView:InitGenerate(Root, data)
  86. self.transform = Root
  87. self.inited = true
  88. if self.super.Init then
  89. self.super.Init(self)
  90. end
  91. local tmp
  92. self:InitGenerate__1(Root,data)
  93. self:InitGenerate__2(Root,data)
  94. self:InitGenerate__3(Root,data)
  95. self:InitGenerate__4(Root,data)
  96. self:InitGenerate__5(Root,data)
  97. self:InitGenerate__6(Root,data)
  98. self:InitGenerate__7(Root,data)
  99. self:InitGenerate__8(Root,data)
  100. self:InitGenerate__9(Root,data)
  101. self:InitGenerate__10(Root,data)
  102. self:InitGenerate__11(Root,data)
  103. self:InitGenerate__12(Root,data)
  104. self:InitGenerate__13(Root,data)
  105. self:InitGenerate__14(Root,data)
  106. self:InitGenerate__15(Root,data)
  107. self:InitGenerate__16(Root,data)
  108. self:InitGenerate__17(Root,data)
  109. self:InitGenerate__18(Root,data)
  110. self:InitGenerate__19(Root,data)
  111. self:InitGenerate__20(Root,data)
  112. self:InitGenerate__21(Root,data)
  113. self:InitGenerate__22(Root,data)
  114. self:InitGenerate__23(Root,data)
  115. self:InitGenerate__24(Root,data)
  116. self:InitGenerate__25(Root,data)
  117. self:InitGenerate__26(Root,data)
  118. self:InitGenerate__27(Root,data)
  119. self:InitGenerate__28(Root,data)
  120. self:InitGenerate__29(Root,data)
  121. self:InitGenerate__30(Root,data)
  122. self:InitGenerate__31(Root,data)
  123. self:InitGenerate__32(Root,data)
  124. self:InitGenerate__33(Root,data)
  125. self:InitGenerate__34(Root,data)
  126. self:InitGenerate__35(Root,data)
  127. end
  128. ---@private
  129. function UICardTipsView:InitGenerate__1(Root, data)
  130. --[[
  131. UIAnimator
  132. --]]
  133. local tmp = Root:Find("UIAnimator").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.uIAnimator = tmp
  138. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  139. tmp.animator.logWarnings = false
  140. end
  141. ---@private
  142. function UICardTipsView:InitGenerate__2(Root, data)
  143. --[[
  144. UIAnimator/Alpha
  145. --]]
  146. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  147. if tolua.getpeer(tmp) == nil then
  148. tolua.setpeer(tmp, {})
  149. end
  150. self.AnyBtn = tmp
  151. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  152. end
  153. ---@private
  154. function UICardTipsView:InitGenerate__3(Root, data)
  155. --[[
  156. UIAnimator/Window
  157. --]]
  158. local tmp = Root:Find("UIAnimator/Window").gameObject
  159. if tolua.getpeer(tmp) == nil then
  160. tolua.setpeer(tmp, {})
  161. end
  162. self.window = tmp
  163. end
  164. ---@private
  165. function UICardTipsView:InitGenerate__4(Root, data)
  166. --[[
  167. UIAnimator/Window/Bg/CloseBox
  168. --]]
  169. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox").gameObject
  170. if tolua.getpeer(tmp) == nil then
  171. tolua.setpeer(tmp, {})
  172. end
  173. self.closeBox = tmp
  174. end
  175. ---@private
  176. function UICardTipsView:InitGenerate__5(Root, data)
  177. --[[
  178. UIAnimator/Window/Bg/CloseBox/BtnClose
  179. --]]
  180. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.btnClose = tmp
  185. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  186. end
  187. ---@private
  188. function UICardTipsView:InitGenerate__6(Root, data)
  189. --[[
  190. UIAnimator/Window/Bg/TopItem
  191. --]]
  192. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.topItem = tmp
  197. end
  198. ---@private
  199. function UICardTipsView:InitGenerate__7(Root, data)
  200. --[[
  201. UIAnimator/Window/Bg/TopItem/ContentItem
  202. --]]
  203. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/ContentItem").gameObject
  204. if tolua.getpeer(tmp) == nil then
  205. tolua.setpeer(tmp, {})
  206. end
  207. self.contentItem = tmp
  208. end
  209. ---@private
  210. function UICardTipsView:InitGenerate__8(Root, data)
  211. --[[
  212. UIAnimator/Window/Bg/TopItem/ContentItem/IconItem
  213. --]]
  214. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/ContentItem/IconItem").gameObject
  215. if tolua.getpeer(tmp) == nil then
  216. tolua.setpeer(tmp, {})
  217. end
  218. self.topItem.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  219. self.topItem.iconItem.prefabName = "IconItem"
  220. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  221. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  222. end
  223. ---@private
  224. function UICardTipsView:InitGenerate__9(Root, data)
  225. --[[
  226. UIAnimator/Window/Bg/TopItem/TextsBox/TextName
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/TextName").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.textName = tmp
  233. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  234. end
  235. ---@private
  236. function UICardTipsView:InitGenerate__10(Root, data)
  237. --[[
  238. UIAnimator/Window/Bg/TopItem/TextsBox/TypeBox/TextType
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/TypeBox/TextType").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.textType = tmp
  245. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  246. end
  247. ---@private
  248. function UICardTipsView:InitGenerate__11(Root, data)
  249. --[[
  250. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox
  251. --]]
  252. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox").gameObject
  253. if tolua.getpeer(tmp) == nil then
  254. tolua.setpeer(tmp, {})
  255. end
  256. self.cardsBox = tmp
  257. end
  258. ---@private
  259. function UICardTipsView:InitGenerate__12(Root, data)
  260. --[[
  261. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots
  262. --]]
  263. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.cardSlots = tmp
  268. end
  269. ---@private
  270. function UICardTipsView:InitGenerate__13(Root, data)
  271. --[[
  272. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1
  273. --]]
  274. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.slot1 = tmp
  279. end
  280. ---@private
  281. function UICardTipsView:InitGenerate__14(Root, data)
  282. --[[
  283. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotPurpleCard
  284. --]]
  285. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotPurpleCard").gameObject
  286. if tolua.getpeer(tmp) == nil then
  287. tolua.setpeer(tmp, {})
  288. end
  289. self.slot1.slotPurpleCard = tmp
  290. end
  291. ---@private
  292. function UICardTipsView:InitGenerate__15(Root, data)
  293. --[[
  294. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotBlueCard
  295. --]]
  296. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotBlueCard").gameObject
  297. if tolua.getpeer(tmp) == nil then
  298. tolua.setpeer(tmp, {})
  299. end
  300. self.slot1.slotBlueCard = tmp
  301. end
  302. ---@private
  303. function UICardTipsView:InitGenerate__16(Root, data)
  304. --[[
  305. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotGoldCard
  306. --]]
  307. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot1/SlotGoldCard").gameObject
  308. if tolua.getpeer(tmp) == nil then
  309. tolua.setpeer(tmp, {})
  310. end
  311. self.slot1.slotGoldCard = tmp
  312. end
  313. ---@private
  314. function UICardTipsView:InitGenerate__17(Root, data)
  315. --[[
  316. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2
  317. --]]
  318. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2").gameObject
  319. if tolua.getpeer(tmp) == nil then
  320. tolua.setpeer(tmp, {})
  321. end
  322. self.slot2 = tmp
  323. end
  324. ---@private
  325. function UICardTipsView:InitGenerate__18(Root, data)
  326. --[[
  327. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotPurpleCard
  328. --]]
  329. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotPurpleCard").gameObject
  330. if tolua.getpeer(tmp) == nil then
  331. tolua.setpeer(tmp, {})
  332. end
  333. self.slot2.slotPurpleCard = tmp
  334. end
  335. ---@private
  336. function UICardTipsView:InitGenerate__19(Root, data)
  337. --[[
  338. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotBlueCard
  339. --]]
  340. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotBlueCard").gameObject
  341. if tolua.getpeer(tmp) == nil then
  342. tolua.setpeer(tmp, {})
  343. end
  344. self.slot2.slotBlueCard = tmp
  345. end
  346. ---@private
  347. function UICardTipsView:InitGenerate__20(Root, data)
  348. --[[
  349. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotGoldCard
  350. --]]
  351. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot2/SlotGoldCard").gameObject
  352. if tolua.getpeer(tmp) == nil then
  353. tolua.setpeer(tmp, {})
  354. end
  355. self.slot2.slotGoldCard = tmp
  356. end
  357. ---@private
  358. function UICardTipsView:InitGenerate__21(Root, data)
  359. --[[
  360. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3
  361. --]]
  362. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3").gameObject
  363. if tolua.getpeer(tmp) == nil then
  364. tolua.setpeer(tmp, {})
  365. end
  366. self.slot3 = tmp
  367. end
  368. ---@private
  369. function UICardTipsView:InitGenerate__22(Root, data)
  370. --[[
  371. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotPurpleCard
  372. --]]
  373. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotPurpleCard").gameObject
  374. if tolua.getpeer(tmp) == nil then
  375. tolua.setpeer(tmp, {})
  376. end
  377. self.slot3.slotPurpleCard = tmp
  378. end
  379. ---@private
  380. function UICardTipsView:InitGenerate__23(Root, data)
  381. --[[
  382. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotBlueCard
  383. --]]
  384. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotBlueCard").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.slot3.slotBlueCard = tmp
  389. end
  390. ---@private
  391. function UICardTipsView:InitGenerate__24(Root, data)
  392. --[[
  393. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotGoldCard
  394. --]]
  395. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot3/SlotGoldCard").gameObject
  396. if tolua.getpeer(tmp) == nil then
  397. tolua.setpeer(tmp, {})
  398. end
  399. self.slot3.slotGoldCard = tmp
  400. end
  401. ---@private
  402. function UICardTipsView:InitGenerate__25(Root, data)
  403. --[[
  404. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4
  405. --]]
  406. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4").gameObject
  407. if tolua.getpeer(tmp) == nil then
  408. tolua.setpeer(tmp, {})
  409. end
  410. self.slot4 = tmp
  411. end
  412. ---@private
  413. function UICardTipsView:InitGenerate__26(Root, data)
  414. --[[
  415. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotPurpleCard
  416. --]]
  417. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotPurpleCard").gameObject
  418. if tolua.getpeer(tmp) == nil then
  419. tolua.setpeer(tmp, {})
  420. end
  421. self.slot4.slotPurpleCard = tmp
  422. end
  423. ---@private
  424. function UICardTipsView:InitGenerate__27(Root, data)
  425. --[[
  426. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotBlueCard
  427. --]]
  428. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotBlueCard").gameObject
  429. if tolua.getpeer(tmp) == nil then
  430. tolua.setpeer(tmp, {})
  431. end
  432. self.slot4.slotBlueCard = tmp
  433. end
  434. ---@private
  435. function UICardTipsView:InitGenerate__28(Root, data)
  436. --[[
  437. UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotGoldCard
  438. --]]
  439. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/TextsBox/CardsBox/CardSlots/Slot4/SlotGoldCard").gameObject
  440. if tolua.getpeer(tmp) == nil then
  441. tolua.setpeer(tmp, {})
  442. end
  443. self.slot4.slotGoldCard = tmp
  444. end
  445. ---@private
  446. function UICardTipsView:InitGenerate__29(Root, data)
  447. --[[
  448. UIAnimator/Window/Bg/TopItem/BtnOneKeyRemove
  449. --]]
  450. local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/BtnOneKeyRemove").gameObject
  451. if tolua.getpeer(tmp) == nil then
  452. tolua.setpeer(tmp, {})
  453. end
  454. self.btnOneKeyRemove = tmp
  455. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  456. end
  457. ---@private
  458. function UICardTipsView:InitGenerate__30(Root, data)
  459. --[[
  460. UIAnimator/Window/Bg/CardScrollView
  461. --]]
  462. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView").gameObject
  463. if tolua.getpeer(tmp) == nil then
  464. tolua.setpeer(tmp, {})
  465. end
  466. self.cardScrollView = tmp
  467. end
  468. ---@private
  469. function UICardTipsView:InitGenerate__31(Root, data)
  470. --[[
  471. UIAnimator/Window/Bg/CardScrollView/Viewport/Content
  472. --]]
  473. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content").gameObject
  474. if tolua.getpeer(tmp) == nil then
  475. tolua.setpeer(tmp, {})
  476. end
  477. self.cardScrollView.content = tmp
  478. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  479. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  480. end
  481. ---@private
  482. function UICardTipsView:InitGenerate__32(Root, data)
  483. --[[
  484. UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem
  485. --]]
  486. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem").gameObject
  487. if tolua.getpeer(tmp) == nil then
  488. tolua.setpeer(tmp, {})
  489. end
  490. self.cardslotItem1 = CommonUtil.BindGridViewItem2LuaStatic("CardSlotItem", tmp)
  491. self.cardslotItem1.prefabName = "CardSlotItem"
  492. end
  493. ---@private
  494. function UICardTipsView:InitGenerate__33(Root, data)
  495. --[[
  496. UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem1
  497. --]]
  498. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem1").gameObject
  499. if tolua.getpeer(tmp) == nil then
  500. tolua.setpeer(tmp, {})
  501. end
  502. self.cardslotItem2 = CommonUtil.BindGridViewItem2LuaStatic("CardSlotItem", tmp)
  503. self.cardslotItem2.prefabName = "CardSlotItem"
  504. end
  505. ---@private
  506. function UICardTipsView:InitGenerate__34(Root, data)
  507. --[[
  508. UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem2
  509. --]]
  510. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem2").gameObject
  511. if tolua.getpeer(tmp) == nil then
  512. tolua.setpeer(tmp, {})
  513. end
  514. self.cardslotItem3 = CommonUtil.BindGridViewItem2LuaStatic("CardSlotItem", tmp)
  515. self.cardslotItem3.prefabName = "CardSlotItem"
  516. end
  517. ---@private
  518. function UICardTipsView:InitGenerate__35(Root, data)
  519. --[[
  520. UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem3
  521. --]]
  522. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content/CardSlotItem3").gameObject
  523. if tolua.getpeer(tmp) == nil then
  524. tolua.setpeer(tmp, {})
  525. end
  526. self.cardslotItem4 = CommonUtil.BindGridViewItem2LuaStatic("CardSlotItem", tmp)
  527. self.cardslotItem4.prefabName = "CardSlotItem"
  528. end
  529. ---@private
  530. function UICardTipsView:GenerateDestroy()
  531. if tolua.getpeer(self.cardScrollView.content) ~= nil then
  532. tolua.setpeer(self.cardScrollView.content, nil)
  533. end
  534. if tolua.getpeer(self.slot4.slotGoldCard) ~= nil then
  535. tolua.setpeer(self.slot4.slotGoldCard, nil)
  536. end
  537. if tolua.getpeer(self.slot4.slotBlueCard) ~= nil then
  538. tolua.setpeer(self.slot4.slotBlueCard, nil)
  539. end
  540. if tolua.getpeer(self.slot4.slotPurpleCard) ~= nil then
  541. tolua.setpeer(self.slot4.slotPurpleCard, nil)
  542. end
  543. if tolua.getpeer(self.slot3.slotGoldCard) ~= nil then
  544. tolua.setpeer(self.slot3.slotGoldCard, nil)
  545. end
  546. if tolua.getpeer(self.slot3.slotBlueCard) ~= nil then
  547. tolua.setpeer(self.slot3.slotBlueCard, nil)
  548. end
  549. if tolua.getpeer(self.slot3.slotPurpleCard) ~= nil then
  550. tolua.setpeer(self.slot3.slotPurpleCard, nil)
  551. end
  552. if tolua.getpeer(self.slot2.slotGoldCard) ~= nil then
  553. tolua.setpeer(self.slot2.slotGoldCard, nil)
  554. end
  555. if tolua.getpeer(self.slot2.slotBlueCard) ~= nil then
  556. tolua.setpeer(self.slot2.slotBlueCard, nil)
  557. end
  558. if tolua.getpeer(self.slot2.slotPurpleCard) ~= nil then
  559. tolua.setpeer(self.slot2.slotPurpleCard, nil)
  560. end
  561. if tolua.getpeer(self.slot1.slotGoldCard) ~= nil then
  562. tolua.setpeer(self.slot1.slotGoldCard, nil)
  563. end
  564. if tolua.getpeer(self.slot1.slotBlueCard) ~= nil then
  565. tolua.setpeer(self.slot1.slotBlueCard, nil)
  566. end
  567. if tolua.getpeer(self.slot1.slotPurpleCard) ~= nil then
  568. tolua.setpeer(self.slot1.slotPurpleCard, nil)
  569. end
  570. if self.topItem.iconItem.GenerateDestroy ~= nil then
  571. self.topItem.iconItem:GenerateDestroy()
  572. end
  573. if tolua.getpeer(self.topItem.iconItem) ~= nil then
  574. tolua.setpeer(self.topItem.iconItem, nil)
  575. end
  576. if tolua.getpeer(self.uIAnimator) ~= nil then
  577. tolua.setpeer(self.uIAnimator, nil)
  578. end
  579. self.uIAnimator = nil
  580. if tolua.getpeer(self.AnyBtn) ~= nil then
  581. tolua.setpeer(self.AnyBtn, nil)
  582. end
  583. self.AnyBtn = nil
  584. if tolua.getpeer(self.window) ~= nil then
  585. tolua.setpeer(self.window, nil)
  586. end
  587. self.window = nil
  588. if tolua.getpeer(self.closeBox) ~= nil then
  589. tolua.setpeer(self.closeBox, nil)
  590. end
  591. self.closeBox = nil
  592. if tolua.getpeer(self.btnClose) ~= nil then
  593. tolua.setpeer(self.btnClose, nil)
  594. end
  595. self.btnClose = nil
  596. if tolua.getpeer(self.topItem) ~= nil then
  597. tolua.setpeer(self.topItem, nil)
  598. end
  599. self.topItem = nil
  600. if tolua.getpeer(self.contentItem) ~= nil then
  601. tolua.setpeer(self.contentItem, nil)
  602. end
  603. self.contentItem = nil
  604. if tolua.getpeer(self.textName) ~= nil then
  605. tolua.setpeer(self.textName, nil)
  606. end
  607. self.textName = nil
  608. if tolua.getpeer(self.textType) ~= nil then
  609. tolua.setpeer(self.textType, nil)
  610. end
  611. self.textType = nil
  612. if tolua.getpeer(self.cardsBox) ~= nil then
  613. tolua.setpeer(self.cardsBox, nil)
  614. end
  615. self.cardsBox = nil
  616. if tolua.getpeer(self.cardSlots) ~= nil then
  617. tolua.setpeer(self.cardSlots, nil)
  618. end
  619. self.cardSlots = nil
  620. if tolua.getpeer(self.slot1) ~= nil then
  621. tolua.setpeer(self.slot1, nil)
  622. end
  623. self.slot1 = nil
  624. if tolua.getpeer(self.slot2) ~= nil then
  625. tolua.setpeer(self.slot2, nil)
  626. end
  627. self.slot2 = nil
  628. if tolua.getpeer(self.slot3) ~= nil then
  629. tolua.setpeer(self.slot3, nil)
  630. end
  631. self.slot3 = nil
  632. if tolua.getpeer(self.slot4) ~= nil then
  633. tolua.setpeer(self.slot4, nil)
  634. end
  635. self.slot4 = nil
  636. if tolua.getpeer(self.btnOneKeyRemove) ~= nil then
  637. tolua.setpeer(self.btnOneKeyRemove, nil)
  638. end
  639. self.btnOneKeyRemove = nil
  640. if tolua.getpeer(self.cardScrollView) ~= nil then
  641. tolua.setpeer(self.cardScrollView, nil)
  642. end
  643. self.cardScrollView = nil
  644. if self.cardslotItem1.GenerateDestroy ~= nil then
  645. self.cardslotItem1:GenerateDestroy()
  646. end
  647. if tolua.getpeer(self.cardslotItem1) ~= nil then
  648. tolua.setpeer(self.cardslotItem1, nil)
  649. end
  650. self.cardslotItem1 = nil
  651. if self.cardslotItem2.GenerateDestroy ~= nil then
  652. self.cardslotItem2:GenerateDestroy()
  653. end
  654. if tolua.getpeer(self.cardslotItem2) ~= nil then
  655. tolua.setpeer(self.cardslotItem2, nil)
  656. end
  657. self.cardslotItem2 = nil
  658. if self.cardslotItem3.GenerateDestroy ~= nil then
  659. self.cardslotItem3:GenerateDestroy()
  660. end
  661. if tolua.getpeer(self.cardslotItem3) ~= nil then
  662. tolua.setpeer(self.cardslotItem3, nil)
  663. end
  664. self.cardslotItem3 = nil
  665. if self.cardslotItem4.GenerateDestroy ~= nil then
  666. self.cardslotItem4:GenerateDestroy()
  667. end
  668. if tolua.getpeer(self.cardslotItem4) ~= nil then
  669. tolua.setpeer(self.cardslotItem4, nil)
  670. end
  671. self.cardslotItem4 = nil
  672. self.transform = nil
  673. self.gameObject = nil
  674. self.inited = false
  675. end
  676. return UICardTipsView