UIPetDecomposeView_Generate.lua 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. ---@class UIPetDecompose__Generate_btnSure
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UIPetDecompose__Generate_returnUI_btnRight
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIPetDecompose__Generate_btnCancleText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UIPetDecompose__Generate_returnUI_btnCancle
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIPetDecompose__Generate_dscTxt
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class UIPetDecompose__Generate_noticeTitle
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public uILocalizeScript UILocalizeScript
  19. ---@class UIPetDecompose__Generate_returnUI_btnClose
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIPetDecompose__Generate_returnUI_AnyBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIPetDecompose__Generate_returnUI
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public animator UnityEngine.Animator
  28. ---@field public AnyBtn UIPetDecompose__Generate_returnUI_AnyBtn
  29. ---@field public btnClose UIPetDecompose__Generate_returnUI_btnClose
  30. ---@field public scrollView UnityEngine.GameObject
  31. ---@field public content UnityEngine.GameObject
  32. ---@field public btnCancle UIPetDecompose__Generate_returnUI_btnCancle
  33. ---@field public btnRight UIPetDecompose__Generate_returnUI_btnRight
  34. ---@class UIPetDecompose__Generate_btnPetShop
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public button UnityEngine.UI.Button
  37. ---@class UIPetDecompose__Generate_btnDecompose_text
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public uILocalizeScript UILocalizeScript
  40. ---@class UIPetDecompose__Generate_btnDecompose
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@field public text UIPetDecompose__Generate_btnDecompose_text
  44. ---@class UIPetDecompose__Generate_btnOneKey_text
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public uILocalizeScript UILocalizeScript
  47. ---@class UIPetDecompose__Generate_btnOneKey
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public button UnityEngine.UI.Button
  50. ---@field public off UnityEngine.GameObject
  51. ---@field public on UnityEngine.GameObject
  52. ---@field public text UIPetDecompose__Generate_btnOneKey_text
  53. ---@class UIPetDecompose__Generate_number
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public text UnityEngine.UI.Text
  56. ---@class UIPetDecompose__Generate_btnBack
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public button UnityEngine.UI.Button
  59. ---@class UIPetDecompose__Generate_desTxt
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public uILocalizeScript UILocalizeScript
  62. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  63. ---@class UIPetDecompose__Generate_iconPetItem
  64. ---@field public gameObject UnityEngine.GameObject
  65. ---@field public rectTransform UnityEngine.RectTransform
  66. ---@field public layoutElement UnityEngine.UI.LayoutElement
  67. ---@class UIPetDecompose__Generate_iconItem
  68. ---@field public gameObject UnityEngine.GameObject
  69. ---@field public rectTransform UnityEngine.RectTransform
  70. ---@field public layoutElement UnityEngine.UI.LayoutElement
  71. ---@class UIPetDecompose__Generate_scrollview
  72. ---@field public gameObject UnityEngine.GameObject
  73. ---@field public loopGridView SuperScrollView.LoopGridView
  74. ---@class UIPetDecompose__Generate_decompose_text
  75. ---@field public gameObject UnityEngine.GameObject
  76. ---@field public uILocalizeScript UILocalizeScript
  77. ---@class UIPetDecompose__Generate_btnFilter
  78. ---@field public gameObject UnityEngine.GameObject
  79. ---@field public button UnityEngine.UI.Button
  80. ---@field public check UnityEngine.GameObject
  81. ---@class UIPetDecompose__Generate_decompose
  82. ---@field public gameObject UnityEngine.GameObject
  83. ---@field public text UIPetDecompose__Generate_decompose_text
  84. ---@class UIPetDecompose__Generate_boardTitle
  85. ---@field public gameObject UnityEngine.GameObject
  86. ---@field public uILocalizeScript UILocalizeScript
  87. ---@class UIPetDecompose__Generate_btnPlayRule
  88. ---@field public gameObject UnityEngine.GameObject
  89. ---@field public button UnityEngine.UI.Button
  90. ---@class UIPetDecompose__Generate_decomposeDsc
  91. ---@field public gameObject UnityEngine.GameObject
  92. ---@field public uILocalizeScript UILocalizeScript
  93. ---@class UIPetDecompose__Generate_AnyBtn
  94. ---@field public gameObject UnityEngine.GameObject
  95. ---@field public button UnityEngine.UI.Button
  96. ---@class UIPetDecompose__Generate_uIAnimator
  97. ---@field public gameObject UnityEngine.GameObject
  98. ---@field public animator UnityEngine.Animator
  99. ---@class UIPetDecompose__Generate
  100. ---@field private gameObject UnityEngine.GameObject
  101. ---@field private transform UnityEngine.Transform
  102. ---@field private uIAnimator UIPetDecompose__Generate_uIAnimator
  103. ---@field private AnyBtn UIPetDecompose__Generate_AnyBtn
  104. ---@field private decomposeDsc UIPetDecompose__Generate_decomposeDsc
  105. ---@field private btnPlayRule UIPetDecompose__Generate_btnPlayRule
  106. ---@field private boardTitle UIPetDecompose__Generate_boardTitle
  107. ---@field private decompose UIPetDecompose__Generate_decompose
  108. ---@field private btnFilter UIPetDecompose__Generate_btnFilter
  109. ---@field private scrollview UIPetDecompose__Generate_scrollview
  110. ---@field private smallPets UnityEngine.GameObject
  111. ---@field private iconItem UIPetDecompose__Generate_iconItem
  112. ---@field private iconPetItem UIPetDecompose__Generate_iconPetItem
  113. ---@field private noPets UnityEngine.GameObject
  114. ---@field private desTxt UIPetDecompose__Generate_desTxt
  115. ---@field private btnBack UIPetDecompose__Generate_btnBack
  116. ---@field private iconpet UnityEngine.GameObject
  117. ---@field private iconartifact UnityEngine.GameObject
  118. ---@field private number UIPetDecompose__Generate_number
  119. ---@field private btnOneKey UIPetDecompose__Generate_btnOneKey
  120. ---@field private btnDecompose UIPetDecompose__Generate_btnDecompose
  121. ---@field private btnPetShop UIPetDecompose__Generate_btnPetShop
  122. ---@field private mask UnityEngine.GameObject
  123. ---@field private returnUI UIPetDecompose__Generate_returnUI
  124. ---@field private noticeTitle UIPetDecompose__Generate_noticeTitle
  125. ---@field private dscTxt UIPetDecompose__Generate_dscTxt
  126. ---@field private btnBox UnityEngine.GameObject
  127. ---@field private btnCancleText UIPetDecompose__Generate_btnCancleText
  128. ---@field private btnSure UIPetDecompose__Generate_btnSure
  129. local UIPetDecomposeView = class("UIPetDecomposeView", require("UIViewBase"))
  130. function UIPetDecomposeView:ctor()
  131. end
  132. ---@private
  133. function UIPetDecomposeView:SetActive(result)
  134. self.gameObject:SetActive(result)
  135. end
  136. ---@private
  137. function UIPetDecomposeView:InitGenerate(Root, data)
  138. self.transform = Root
  139. self.inited = true
  140. if self.super.Init then
  141. self.super.Init(self)
  142. end
  143. local tmp
  144. self:InitGenerate__1(Root,data)
  145. self:InitGenerate__2(Root,data)
  146. self:InitGenerate__3(Root,data)
  147. self:InitGenerate__4(Root,data)
  148. self:InitGenerate__5(Root,data)
  149. self:InitGenerate__6(Root,data)
  150. self:InitGenerate__7(Root,data)
  151. self:InitGenerate__8(Root,data)
  152. self:InitGenerate__9(Root,data)
  153. self:InitGenerate__10(Root,data)
  154. self:InitGenerate__11(Root,data)
  155. self:InitGenerate__12(Root,data)
  156. self:InitGenerate__13(Root,data)
  157. self:InitGenerate__14(Root,data)
  158. self:InitGenerate__15(Root,data)
  159. self:InitGenerate__16(Root,data)
  160. self:InitGenerate__17(Root,data)
  161. self:InitGenerate__18(Root,data)
  162. self:InitGenerate__19(Root,data)
  163. self:InitGenerate__20(Root,data)
  164. self:InitGenerate__21(Root,data)
  165. self:InitGenerate__22(Root,data)
  166. self:InitGenerate__23(Root,data)
  167. self:InitGenerate__24(Root,data)
  168. self:InitGenerate__25(Root,data)
  169. self:InitGenerate__26(Root,data)
  170. self:InitGenerate__27(Root,data)
  171. self:InitGenerate__28(Root,data)
  172. self:InitGenerate__29(Root,data)
  173. self:InitGenerate__30(Root,data)
  174. self:InitGenerate__31(Root,data)
  175. self:InitGenerate__32(Root,data)
  176. self:InitGenerate__33(Root,data)
  177. self:InitGenerate__34(Root,data)
  178. self:InitGenerate__35(Root,data)
  179. self:InitGenerate__36(Root,data)
  180. self:InitGenerate__37(Root,data)
  181. self:InitGenerate__38(Root,data)
  182. self:InitGenerate__39(Root,data)
  183. end
  184. ---@private
  185. function UIPetDecomposeView:InitGenerate__1(Root, data)
  186. --[[
  187. UIAnimator
  188. --]]
  189. local tmp = Root:Find("UIAnimator").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.uIAnimator = tmp
  194. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  195. tmp.animator.logWarnings = false
  196. end
  197. ---@private
  198. function UIPetDecomposeView:InitGenerate__2(Root, data)
  199. --[[
  200. UIAnimator/Alpha
  201. --]]
  202. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  203. if tolua.getpeer(tmp) == nil then
  204. tolua.setpeer(tmp, {})
  205. end
  206. self.AnyBtn = tmp
  207. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  208. end
  209. ---@private
  210. function UIPetDecomposeView:InitGenerate__3(Root, data)
  211. --[[
  212. UIAnimator/Window/BGBoli/Boli/TalkBox/Text
  213. --]]
  214. local tmp = Root:Find("UIAnimator/Window/BGBoli/Boli/TalkBox/Text").gameObject
  215. if tolua.getpeer(tmp) == nil then
  216. tolua.setpeer(tmp, {})
  217. end
  218. self.decomposeDsc = tmp
  219. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  220. end
  221. ---@private
  222. function UIPetDecomposeView:InitGenerate__4(Root, data)
  223. --[[
  224. UIAnimator/Window/BtnBg/BtnPlayRule
  225. --]]
  226. local tmp = Root:Find("UIAnimator/Window/BtnBg/BtnPlayRule").gameObject
  227. if tolua.getpeer(tmp) == nil then
  228. tolua.setpeer(tmp, {})
  229. end
  230. self.btnPlayRule = tmp
  231. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  232. end
  233. ---@private
  234. function UIPetDecomposeView:InitGenerate__5(Root, data)
  235. --[[
  236. UIAnimator/Window/BoardTitle
  237. --]]
  238. local tmp = Root:Find("UIAnimator/Window/BoardTitle").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.boardTitle = tmp
  243. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  244. end
  245. ---@private
  246. function UIPetDecomposeView:InitGenerate__6(Root, data)
  247. --[[
  248. UIAnimator/Window/Decompose
  249. --]]
  250. local tmp = Root:Find("UIAnimator/Window/Decompose").gameObject
  251. if tolua.getpeer(tmp) == nil then
  252. tolua.setpeer(tmp, {})
  253. end
  254. self.decompose = tmp
  255. end
  256. ---@private
  257. function UIPetDecomposeView:InitGenerate__7(Root, data)
  258. --[[
  259. UIAnimator/Window/Decompose/BtnFilter
  260. --]]
  261. local tmp = Root:Find("UIAnimator/Window/Decompose/BtnFilter").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.btnFilter = tmp
  266. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  267. end
  268. ---@private
  269. function UIPetDecomposeView:InitGenerate__8(Root, data)
  270. --[[
  271. UIAnimator/Window/Decompose/BtnFilter/Check
  272. --]]
  273. local tmp = Root:Find("UIAnimator/Window/Decompose/BtnFilter/Check").gameObject
  274. if tolua.getpeer(tmp) == nil then
  275. tolua.setpeer(tmp, {})
  276. end
  277. self.btnFilter.check = tmp
  278. end
  279. ---@private
  280. function UIPetDecomposeView:InitGenerate__9(Root, data)
  281. --[[
  282. UIAnimator/Window/Decompose/bg3/Dsc/Text
  283. --]]
  284. local tmp = Root:Find("UIAnimator/Window/Decompose/bg3/Dsc/Text").gameObject
  285. if tolua.getpeer(tmp) == nil then
  286. tolua.setpeer(tmp, {})
  287. end
  288. self.decompose.text = tmp
  289. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  290. end
  291. ---@private
  292. function UIPetDecomposeView:InitGenerate__10(Root, data)
  293. --[[
  294. UIAnimator/Window/Decompose/scrollview
  295. --]]
  296. local tmp = Root:Find("UIAnimator/Window/Decompose/scrollview").gameObject
  297. if tolua.getpeer(tmp) == nil then
  298. tolua.setpeer(tmp, {})
  299. end
  300. self.scrollview = tmp
  301. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  302. end
  303. ---@private
  304. function UIPetDecomposeView:InitGenerate__11(Root, data)
  305. --[[
  306. UIAnimator/Window/Decompose/scrollview/Viewport/Content
  307. --]]
  308. local tmp = Root:Find("UIAnimator/Window/Decompose/scrollview/Viewport/Content").gameObject
  309. if tolua.getpeer(tmp) == nil then
  310. tolua.setpeer(tmp, {})
  311. end
  312. self.smallPets = tmp
  313. end
  314. ---@private
  315. function UIPetDecomposeView:InitGenerate__12(Root, data)
  316. --[[
  317. UIAnimator/Window/Decompose/scrollview/Viewport/Content/IconItem
  318. --]]
  319. local tmp = Root:Find("UIAnimator/Window/Decompose/scrollview/Viewport/Content/IconItem").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  324. self.iconItem.prefabName = "IconItem"
  325. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  326. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  327. end
  328. ---@private
  329. function UIPetDecomposeView:InitGenerate__13(Root, data)
  330. --[[
  331. UIAnimator/Window/Decompose/scrollview/Viewport/Content/IconPetItem
  332. --]]
  333. local tmp = Root:Find("UIAnimator/Window/Decompose/scrollview/Viewport/Content/IconPetItem").gameObject
  334. if tolua.getpeer(tmp) == nil then
  335. tolua.setpeer(tmp, {})
  336. end
  337. self.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  338. self.iconPetItem.prefabName = "IconPetItem"
  339. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  340. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  341. end
  342. ---@private
  343. function UIPetDecomposeView:InitGenerate__14(Root, data)
  344. --[[
  345. UIAnimator/Window/Decompose/NoPets
  346. --]]
  347. local tmp = Root:Find("UIAnimator/Window/Decompose/NoPets").gameObject
  348. if tolua.getpeer(tmp) == nil then
  349. tolua.setpeer(tmp, {})
  350. end
  351. self.noPets = tmp
  352. end
  353. ---@private
  354. function UIPetDecomposeView:InitGenerate__15(Root, data)
  355. --[[
  356. UIAnimator/Window/Decompose/NoPets/DesTxt
  357. --]]
  358. local tmp = Root:Find("UIAnimator/Window/Decompose/NoPets/DesTxt").gameObject
  359. if tolua.getpeer(tmp) == nil then
  360. tolua.setpeer(tmp, {})
  361. end
  362. self.desTxt = tmp
  363. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  364. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  365. end
  366. ---@private
  367. function UIPetDecomposeView:InitGenerate__16(Root, data)
  368. --[[
  369. UIAnimator/Window/BtnBack
  370. --]]
  371. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  372. if tolua.getpeer(tmp) == nil then
  373. tolua.setpeer(tmp, {})
  374. end
  375. self.btnBack = tmp
  376. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  377. end
  378. ---@private
  379. function UIPetDecomposeView:InitGenerate__17(Root, data)
  380. --[[
  381. UIAnimator/Window/ChosenNum/iconpet
  382. --]]
  383. local tmp = Root:Find("UIAnimator/Window/ChosenNum/iconpet").gameObject
  384. if tolua.getpeer(tmp) == nil then
  385. tolua.setpeer(tmp, {})
  386. end
  387. self.iconpet = tmp
  388. end
  389. ---@private
  390. function UIPetDecomposeView:InitGenerate__18(Root, data)
  391. --[[
  392. UIAnimator/Window/ChosenNum/iconartifact
  393. --]]
  394. local tmp = Root:Find("UIAnimator/Window/ChosenNum/iconartifact").gameObject
  395. if tolua.getpeer(tmp) == nil then
  396. tolua.setpeer(tmp, {})
  397. end
  398. self.iconartifact = tmp
  399. end
  400. ---@private
  401. function UIPetDecomposeView:InitGenerate__19(Root, data)
  402. --[[
  403. UIAnimator/Window/ChosenNum/Number
  404. --]]
  405. local tmp = Root:Find("UIAnimator/Window/ChosenNum/Number").gameObject
  406. if tolua.getpeer(tmp) == nil then
  407. tolua.setpeer(tmp, {})
  408. end
  409. self.number = tmp
  410. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  411. end
  412. ---@private
  413. function UIPetDecomposeView:InitGenerate__20(Root, data)
  414. --[[
  415. UIAnimator/Window/ChosenNum/BtnOneKey
  416. --]]
  417. local tmp = Root:Find("UIAnimator/Window/ChosenNum/BtnOneKey").gameObject
  418. if tolua.getpeer(tmp) == nil then
  419. tolua.setpeer(tmp, {})
  420. end
  421. self.btnOneKey = tmp
  422. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  423. end
  424. ---@private
  425. function UIPetDecomposeView:InitGenerate__21(Root, data)
  426. --[[
  427. UIAnimator/Window/ChosenNum/BtnOneKey/off
  428. --]]
  429. local tmp = Root:Find("UIAnimator/Window/ChosenNum/BtnOneKey/off").gameObject
  430. if tolua.getpeer(tmp) == nil then
  431. tolua.setpeer(tmp, {})
  432. end
  433. self.btnOneKey.off = tmp
  434. end
  435. ---@private
  436. function UIPetDecomposeView:InitGenerate__22(Root, data)
  437. --[[
  438. UIAnimator/Window/ChosenNum/BtnOneKey/on
  439. --]]
  440. local tmp = Root:Find("UIAnimator/Window/ChosenNum/BtnOneKey/on").gameObject
  441. if tolua.getpeer(tmp) == nil then
  442. tolua.setpeer(tmp, {})
  443. end
  444. self.btnOneKey.on = tmp
  445. end
  446. ---@private
  447. function UIPetDecomposeView:InitGenerate__23(Root, data)
  448. --[[
  449. UIAnimator/Window/ChosenNum/BtnOneKey/Text
  450. --]]
  451. local tmp = Root:Find("UIAnimator/Window/ChosenNum/BtnOneKey/Text").gameObject
  452. if tolua.getpeer(tmp) == nil then
  453. tolua.setpeer(tmp, {})
  454. end
  455. self.btnOneKey.text = tmp
  456. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  457. end
  458. ---@private
  459. function UIPetDecomposeView:InitGenerate__24(Root, data)
  460. --[[
  461. UIAnimator/Window/BtnDecompose
  462. --]]
  463. local tmp = Root:Find("UIAnimator/Window/BtnDecompose").gameObject
  464. if tolua.getpeer(tmp) == nil then
  465. tolua.setpeer(tmp, {})
  466. end
  467. self.btnDecompose = tmp
  468. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  469. end
  470. ---@private
  471. function UIPetDecomposeView:InitGenerate__25(Root, data)
  472. --[[
  473. UIAnimator/Window/BtnDecompose/Text
  474. --]]
  475. local tmp = Root:Find("UIAnimator/Window/BtnDecompose/Text").gameObject
  476. if tolua.getpeer(tmp) == nil then
  477. tolua.setpeer(tmp, {})
  478. end
  479. self.btnDecompose.text = tmp
  480. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  481. end
  482. ---@private
  483. function UIPetDecomposeView:InitGenerate__26(Root, data)
  484. --[[
  485. UIAnimator/Window/BtnPetShop
  486. --]]
  487. local tmp = Root:Find("UIAnimator/Window/BtnPetShop").gameObject
  488. if tolua.getpeer(tmp) == nil then
  489. tolua.setpeer(tmp, {})
  490. end
  491. self.btnPetShop = tmp
  492. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  493. end
  494. ---@private
  495. function UIPetDecomposeView:InitGenerate__27(Root, data)
  496. --[[
  497. UIAnimator/Window/Mask
  498. --]]
  499. local tmp = Root:Find("UIAnimator/Window/Mask").gameObject
  500. if tolua.getpeer(tmp) == nil then
  501. tolua.setpeer(tmp, {})
  502. end
  503. self.mask = tmp
  504. end
  505. ---@private
  506. function UIPetDecomposeView:InitGenerate__28(Root, data)
  507. --[[
  508. UIAnimator/ReturnUI
  509. --]]
  510. local tmp = Root:Find("UIAnimator/ReturnUI").gameObject
  511. if tolua.getpeer(tmp) == nil then
  512. tolua.setpeer(tmp, {})
  513. end
  514. self.returnUI = tmp
  515. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  516. tmp.animator.logWarnings = false
  517. end
  518. ---@private
  519. function UIPetDecomposeView:InitGenerate__29(Root, data)
  520. --[[
  521. UIAnimator/ReturnUI/Alpha
  522. --]]
  523. local tmp = Root:Find("UIAnimator/ReturnUI/Alpha").gameObject
  524. if tolua.getpeer(tmp) == nil then
  525. tolua.setpeer(tmp, {})
  526. end
  527. self.returnUI.AnyBtn = tmp
  528. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  529. end
  530. ---@private
  531. function UIPetDecomposeView:InitGenerate__30(Root, data)
  532. --[[
  533. UIAnimator/ReturnUI/Window/BtnClose
  534. --]]
  535. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnClose").gameObject
  536. if tolua.getpeer(tmp) == nil then
  537. tolua.setpeer(tmp, {})
  538. end
  539. self.returnUI.btnClose = tmp
  540. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  541. end
  542. ---@private
  543. function UIPetDecomposeView:InitGenerate__31(Root, data)
  544. --[[
  545. UIAnimator/ReturnUI/Window/NoticeTitle
  546. --]]
  547. local tmp = Root:Find("UIAnimator/ReturnUI/Window/NoticeTitle").gameObject
  548. if tolua.getpeer(tmp) == nil then
  549. tolua.setpeer(tmp, {})
  550. end
  551. self.noticeTitle = tmp
  552. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  553. end
  554. ---@private
  555. function UIPetDecomposeView:InitGenerate__32(Root, data)
  556. --[[
  557. UIAnimator/ReturnUI/Window/Boli/TalkBox/Text
  558. --]]
  559. local tmp = Root:Find("UIAnimator/ReturnUI/Window/Boli/TalkBox/Text").gameObject
  560. if tolua.getpeer(tmp) == nil then
  561. tolua.setpeer(tmp, {})
  562. end
  563. self.dscTxt = tmp
  564. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  565. end
  566. ---@private
  567. function UIPetDecomposeView:InitGenerate__33(Root, data)
  568. --[[
  569. UIAnimator/ReturnUI/Window/Scroll View
  570. --]]
  571. local tmp = Root:Find("UIAnimator/ReturnUI/Window/Scroll View").gameObject
  572. if tolua.getpeer(tmp) == nil then
  573. tolua.setpeer(tmp, {})
  574. end
  575. self.returnUI.scrollView = tmp
  576. end
  577. ---@private
  578. function UIPetDecomposeView:InitGenerate__34(Root, data)
  579. --[[
  580. UIAnimator/ReturnUI/Window/Scroll View/Viewport/Content
  581. --]]
  582. local tmp = Root:Find("UIAnimator/ReturnUI/Window/Scroll View/Viewport/Content").gameObject
  583. if tolua.getpeer(tmp) == nil then
  584. tolua.setpeer(tmp, {})
  585. end
  586. self.returnUI.content = tmp
  587. end
  588. ---@private
  589. function UIPetDecomposeView:InitGenerate__35(Root, data)
  590. --[[
  591. UIAnimator/ReturnUI/Window/BtnBox
  592. --]]
  593. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnBox").gameObject
  594. if tolua.getpeer(tmp) == nil then
  595. tolua.setpeer(tmp, {})
  596. end
  597. self.btnBox = tmp
  598. end
  599. ---@private
  600. function UIPetDecomposeView:InitGenerate__36(Root, data)
  601. --[[
  602. UIAnimator/ReturnUI/Window/BtnBox/BtnCancle
  603. --]]
  604. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnBox/BtnCancle").gameObject
  605. if tolua.getpeer(tmp) == nil then
  606. tolua.setpeer(tmp, {})
  607. end
  608. self.returnUI.btnCancle = tmp
  609. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  610. end
  611. ---@private
  612. function UIPetDecomposeView:InitGenerate__37(Root, data)
  613. --[[
  614. UIAnimator/ReturnUI/Window/BtnBox/BtnCancle/Text
  615. --]]
  616. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnBox/BtnCancle/Text").gameObject
  617. if tolua.getpeer(tmp) == nil then
  618. tolua.setpeer(tmp, {})
  619. end
  620. self.btnCancleText = tmp
  621. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  622. end
  623. ---@private
  624. function UIPetDecomposeView:InitGenerate__38(Root, data)
  625. --[[
  626. UIAnimator/ReturnUI/Window/BtnBox/BtnRight
  627. --]]
  628. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnBox/BtnRight").gameObject
  629. if tolua.getpeer(tmp) == nil then
  630. tolua.setpeer(tmp, {})
  631. end
  632. self.returnUI.btnRight = tmp
  633. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  634. end
  635. ---@private
  636. function UIPetDecomposeView:InitGenerate__39(Root, data)
  637. --[[
  638. UIAnimator/ReturnUI/Window/BtnBox/BtnRight/Text
  639. --]]
  640. local tmp = Root:Find("UIAnimator/ReturnUI/Window/BtnBox/BtnRight/Text").gameObject
  641. if tolua.getpeer(tmp) == nil then
  642. tolua.setpeer(tmp, {})
  643. end
  644. self.btnSure = tmp
  645. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  646. end
  647. ---@private
  648. function UIPetDecomposeView:GenerateDestroy()
  649. if tolua.getpeer(self.returnUI.btnRight) ~= nil then
  650. tolua.setpeer(self.returnUI.btnRight, nil)
  651. end
  652. if tolua.getpeer(self.returnUI.btnCancle) ~= nil then
  653. tolua.setpeer(self.returnUI.btnCancle, nil)
  654. end
  655. if tolua.getpeer(self.returnUI.content) ~= nil then
  656. tolua.setpeer(self.returnUI.content, nil)
  657. end
  658. if tolua.getpeer(self.returnUI.scrollView) ~= nil then
  659. tolua.setpeer(self.returnUI.scrollView, nil)
  660. end
  661. if tolua.getpeer(self.returnUI.btnClose) ~= nil then
  662. tolua.setpeer(self.returnUI.btnClose, nil)
  663. end
  664. if tolua.getpeer(self.returnUI.AnyBtn) ~= nil then
  665. tolua.setpeer(self.returnUI.AnyBtn, nil)
  666. end
  667. if tolua.getpeer(self.btnDecompose.text) ~= nil then
  668. tolua.setpeer(self.btnDecompose.text, nil)
  669. end
  670. if tolua.getpeer(self.btnOneKey.text) ~= nil then
  671. tolua.setpeer(self.btnOneKey.text, nil)
  672. end
  673. if tolua.getpeer(self.btnOneKey.on) ~= nil then
  674. tolua.setpeer(self.btnOneKey.on, nil)
  675. end
  676. if tolua.getpeer(self.btnOneKey.off) ~= nil then
  677. tolua.setpeer(self.btnOneKey.off, nil)
  678. end
  679. if tolua.getpeer(self.decompose.text) ~= nil then
  680. tolua.setpeer(self.decompose.text, nil)
  681. end
  682. if tolua.getpeer(self.btnFilter.check) ~= nil then
  683. tolua.setpeer(self.btnFilter.check, nil)
  684. end
  685. if tolua.getpeer(self.uIAnimator) ~= nil then
  686. tolua.setpeer(self.uIAnimator, nil)
  687. end
  688. self.uIAnimator = nil
  689. if tolua.getpeer(self.AnyBtn) ~= nil then
  690. tolua.setpeer(self.AnyBtn, nil)
  691. end
  692. self.AnyBtn = nil
  693. if tolua.getpeer(self.decomposeDsc) ~= nil then
  694. tolua.setpeer(self.decomposeDsc, nil)
  695. end
  696. self.decomposeDsc = nil
  697. if tolua.getpeer(self.btnPlayRule) ~= nil then
  698. tolua.setpeer(self.btnPlayRule, nil)
  699. end
  700. self.btnPlayRule = nil
  701. if tolua.getpeer(self.boardTitle) ~= nil then
  702. tolua.setpeer(self.boardTitle, nil)
  703. end
  704. self.boardTitle = nil
  705. if tolua.getpeer(self.decompose) ~= nil then
  706. tolua.setpeer(self.decompose, nil)
  707. end
  708. self.decompose = nil
  709. if tolua.getpeer(self.btnFilter) ~= nil then
  710. tolua.setpeer(self.btnFilter, nil)
  711. end
  712. self.btnFilter = nil
  713. if tolua.getpeer(self.scrollview) ~= nil then
  714. tolua.setpeer(self.scrollview, nil)
  715. end
  716. self.scrollview = nil
  717. if tolua.getpeer(self.smallPets) ~= nil then
  718. tolua.setpeer(self.smallPets, nil)
  719. end
  720. self.smallPets = nil
  721. if self.iconItem.GenerateDestroy ~= nil then
  722. self.iconItem:GenerateDestroy()
  723. end
  724. if tolua.getpeer(self.iconItem) ~= nil then
  725. tolua.setpeer(self.iconItem, nil)
  726. end
  727. self.iconItem = nil
  728. if self.iconPetItem.GenerateDestroy ~= nil then
  729. self.iconPetItem:GenerateDestroy()
  730. end
  731. if tolua.getpeer(self.iconPetItem) ~= nil then
  732. tolua.setpeer(self.iconPetItem, nil)
  733. end
  734. self.iconPetItem = nil
  735. if tolua.getpeer(self.noPets) ~= nil then
  736. tolua.setpeer(self.noPets, nil)
  737. end
  738. self.noPets = nil
  739. if tolua.getpeer(self.desTxt) ~= nil then
  740. tolua.setpeer(self.desTxt, nil)
  741. end
  742. self.desTxt = nil
  743. if tolua.getpeer(self.btnBack) ~= nil then
  744. tolua.setpeer(self.btnBack, nil)
  745. end
  746. self.btnBack = nil
  747. if tolua.getpeer(self.iconpet) ~= nil then
  748. tolua.setpeer(self.iconpet, nil)
  749. end
  750. self.iconpet = nil
  751. if tolua.getpeer(self.iconartifact) ~= nil then
  752. tolua.setpeer(self.iconartifact, nil)
  753. end
  754. self.iconartifact = nil
  755. if tolua.getpeer(self.number) ~= nil then
  756. tolua.setpeer(self.number, nil)
  757. end
  758. self.number = nil
  759. if tolua.getpeer(self.btnOneKey) ~= nil then
  760. tolua.setpeer(self.btnOneKey, nil)
  761. end
  762. self.btnOneKey = nil
  763. if tolua.getpeer(self.btnDecompose) ~= nil then
  764. tolua.setpeer(self.btnDecompose, nil)
  765. end
  766. self.btnDecompose = nil
  767. if tolua.getpeer(self.btnPetShop) ~= nil then
  768. tolua.setpeer(self.btnPetShop, nil)
  769. end
  770. self.btnPetShop = nil
  771. if tolua.getpeer(self.mask) ~= nil then
  772. tolua.setpeer(self.mask, nil)
  773. end
  774. self.mask = nil
  775. if tolua.getpeer(self.returnUI) ~= nil then
  776. tolua.setpeer(self.returnUI, nil)
  777. end
  778. self.returnUI = nil
  779. if tolua.getpeer(self.noticeTitle) ~= nil then
  780. tolua.setpeer(self.noticeTitle, nil)
  781. end
  782. self.noticeTitle = nil
  783. if tolua.getpeer(self.dscTxt) ~= nil then
  784. tolua.setpeer(self.dscTxt, nil)
  785. end
  786. self.dscTxt = nil
  787. if tolua.getpeer(self.btnBox) ~= nil then
  788. tolua.setpeer(self.btnBox, nil)
  789. end
  790. self.btnBox = nil
  791. if tolua.getpeer(self.btnCancleText) ~= nil then
  792. tolua.setpeer(self.btnCancleText, nil)
  793. end
  794. self.btnCancleText = nil
  795. if tolua.getpeer(self.btnSure) ~= nil then
  796. tolua.setpeer(self.btnSure, nil)
  797. end
  798. self.btnSure = nil
  799. self.transform = nil
  800. self.gameObject = nil
  801. self.inited = false
  802. end
  803. return UIPetDecomposeView