PetRelationItem_Generate.lua 27 KB

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