PetContractItem_Generate.lua 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088
  1. ---@class PetContractItem__Generate_contractBox_slot4_iconPetItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public layoutElement UnityEngine.UI.LayoutElement
  5. ---@class PetContractItem__Generate_contractBox_slot4_btnLock
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public button UnityEngine.UI.Button
  8. ---@class PetContractItem__Generate_contractBox_slot4_btnAdd
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class PetContractItem__Generate_contractBox_slot4
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public btnAdd PetContractItem__Generate_contractBox_slot4_btnAdd
  14. ---@field public btnLock PetContractItem__Generate_contractBox_slot4_btnLock
  15. ---@field public iconPetItem PetContractItem__Generate_contractBox_slot4_iconPetItem
  16. ---@field public uIRedPointRP UnityEngine.GameObject
  17. ---@class PetContractItem__Generate_contractBox_slot3_iconPetItem
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public rectTransform UnityEngine.RectTransform
  20. ---@field public layoutElement UnityEngine.UI.LayoutElement
  21. ---@class PetContractItem__Generate_contractBox_slot3_btnLock
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public button UnityEngine.UI.Button
  24. ---@class PetContractItem__Generate_contractBox_slot3_btnAdd
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public button UnityEngine.UI.Button
  27. ---@class PetContractItem__Generate_contractBox_slot3
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public btnAdd PetContractItem__Generate_contractBox_slot3_btnAdd
  30. ---@field public btnLock PetContractItem__Generate_contractBox_slot3_btnLock
  31. ---@field public iconPetItem PetContractItem__Generate_contractBox_slot3_iconPetItem
  32. ---@field public uIRedPointRP UnityEngine.GameObject
  33. ---@class PetContractItem__Generate_contractBox_slot2_iconPetItem
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public rectTransform UnityEngine.RectTransform
  36. ---@field public layoutElement UnityEngine.UI.LayoutElement
  37. ---@class PetContractItem__Generate_contractBox_slot2_btnLock
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class PetContractItem__Generate_contractBox_slot2_btnAdd
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@class PetContractItem__Generate_contractBox_slot2
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public btnAdd PetContractItem__Generate_contractBox_slot2_btnAdd
  46. ---@field public btnLock PetContractItem__Generate_contractBox_slot2_btnLock
  47. ---@field public iconPetItem PetContractItem__Generate_contractBox_slot2_iconPetItem
  48. ---@field public uIRedPointRP UnityEngine.GameObject
  49. ---@class PetContractItem__Generate_contractBox_slot1_iconPetItem
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public rectTransform UnityEngine.RectTransform
  52. ---@field public layoutElement UnityEngine.UI.LayoutElement
  53. ---@class PetContractItem__Generate_contractBox_slot1_btnLock
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public button UnityEngine.UI.Button
  56. ---@class PetContractItem__Generate_contractBox_slot1_btnAdd
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public button UnityEngine.UI.Button
  59. ---@class PetContractItem__Generate_contractBox_slot1
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public btnAdd PetContractItem__Generate_contractBox_slot1_btnAdd
  62. ---@field public btnLock PetContractItem__Generate_contractBox_slot1_btnLock
  63. ---@field public iconPetItem PetContractItem__Generate_contractBox_slot1_iconPetItem
  64. ---@field public uIRedPointRP UnityEngine.GameObject
  65. ---@class PetContractItem__Generate_contractBox
  66. ---@field public gameObject UnityEngine.GameObject
  67. ---@field public slot1 PetContractItem__Generate_contractBox_slot1
  68. ---@field public slot2 PetContractItem__Generate_contractBox_slot2
  69. ---@field public slot3 PetContractItem__Generate_contractBox_slot3
  70. ---@field public slot4 PetContractItem__Generate_contractBox_slot4
  71. ---@class PetContractItem__Generate_extraBox_petExtra_number
  72. ---@field public gameObject UnityEngine.GameObject
  73. ---@field public text UnityEngine.UI.Text
  74. ---@class PetContractItem__Generate_extraBox_petExtra
  75. ---@field public gameObject UnityEngine.GameObject
  76. ---@field public number PetContractItem__Generate_extraBox_petExtra_number
  77. ---@class PetContractItem__Generate_extraBox_petQty_number
  78. ---@field public gameObject UnityEngine.GameObject
  79. ---@field public text UnityEngine.UI.Text
  80. ---@class PetContractItem__Generate_extraBox_petQty_nature
  81. ---@field public gameObject UnityEngine.GameObject
  82. ---@field public image UnityEngine.UI.Image
  83. ---@class PetContractItem__Generate_extraBox_petQty
  84. ---@field public gameObject UnityEngine.GameObject
  85. ---@field public nature PetContractItem__Generate_extraBox_petQty_nature
  86. ---@field public number PetContractItem__Generate_extraBox_petQty_number
  87. ---@class PetContractItem__Generate_extraBox
  88. ---@field public gameObject UnityEngine.GameObject
  89. ---@field public petQty PetContractItem__Generate_extraBox_petQty
  90. ---@field public petExtra PetContractItem__Generate_extraBox_petExtra
  91. ---@class PetContractItem__Generate_btnRemoveAll
  92. ---@field public gameObject UnityEngine.GameObject
  93. ---@field public button UnityEngine.UI.Button
  94. ---@class PetContractItem__Generate_heroName
  95. ---@field public gameObject UnityEngine.GameObject
  96. ---@field public text UnityEngine.UI.Text
  97. ---@class PetContractItem__Generate_jobIcon
  98. ---@field public gameObject UnityEngine.GameObject
  99. ---@field public image UnityEngine.UI.Image
  100. ---@class PetContractItem__Generate_activatedBox_attrItem4_number
  101. ---@field public gameObject UnityEngine.GameObject
  102. ---@field public text UnityEngine.UI.Text
  103. ---@class PetContractItem__Generate_activatedBox_attrItem4_text
  104. ---@field public gameObject UnityEngine.GameObject
  105. ---@field public uILocalizeScript UILocalizeScript
  106. ---@class PetContractItem__Generate_activatedBox_attrItem4
  107. ---@field public gameObject UnityEngine.GameObject
  108. ---@field public text PetContractItem__Generate_activatedBox_attrItem4_text
  109. ---@field public number PetContractItem__Generate_activatedBox_attrItem4_number
  110. ---@class PetContractItem__Generate_activatedBox_attrItem3_number
  111. ---@field public gameObject UnityEngine.GameObject
  112. ---@field public text UnityEngine.UI.Text
  113. ---@class PetContractItem__Generate_activatedBox_attrItem3_text
  114. ---@field public gameObject UnityEngine.GameObject
  115. ---@field public uILocalizeScript UILocalizeScript
  116. ---@class PetContractItem__Generate_activatedBox_attrItem3
  117. ---@field public gameObject UnityEngine.GameObject
  118. ---@field public text PetContractItem__Generate_activatedBox_attrItem3_text
  119. ---@field public number PetContractItem__Generate_activatedBox_attrItem3_number
  120. ---@class PetContractItem__Generate_activatedBox_attrItem2_number
  121. ---@field public gameObject UnityEngine.GameObject
  122. ---@field public text UnityEngine.UI.Text
  123. ---@class PetContractItem__Generate_activatedBox_attrItem2_text
  124. ---@field public gameObject UnityEngine.GameObject
  125. ---@field public uILocalizeScript UILocalizeScript
  126. ---@class PetContractItem__Generate_activatedBox_attrItem2
  127. ---@field public gameObject UnityEngine.GameObject
  128. ---@field public text PetContractItem__Generate_activatedBox_attrItem2_text
  129. ---@field public number PetContractItem__Generate_activatedBox_attrItem2_number
  130. ---@class PetContractItem__Generate_activatedBox_attrItem1_number
  131. ---@field public gameObject UnityEngine.GameObject
  132. ---@field public text UnityEngine.UI.Text
  133. ---@class PetContractItem__Generate_activatedBox_attrItem1_text
  134. ---@field public gameObject UnityEngine.GameObject
  135. ---@field public uILocalizeScript UILocalizeScript
  136. ---@class PetContractItem__Generate_activatedBox_attrItem1
  137. ---@field public gameObject UnityEngine.GameObject
  138. ---@field public text PetContractItem__Generate_activatedBox_attrItem1_text
  139. ---@field public number PetContractItem__Generate_activatedBox_attrItem1_number
  140. ---@class PetContractItem__Generate_activatedBox
  141. ---@field public gameObject UnityEngine.GameObject
  142. ---@field public attrItem1 PetContractItem__Generate_activatedBox_attrItem1
  143. ---@field public attrItem2 PetContractItem__Generate_activatedBox_attrItem2
  144. ---@field public attrItem3 PetContractItem__Generate_activatedBox_attrItem3
  145. ---@field public attrItem4 PetContractItem__Generate_activatedBox_attrItem4
  146. ---@class PetContractItem__Generate_noticeText
  147. ---@field public gameObject UnityEngine.GameObject
  148. ---@field public uILocalizeScript UILocalizeScript
  149. ---@class PetContractItem__Generate_iconPetItem
  150. ---@field public gameObject UnityEngine.GameObject
  151. ---@field public rectTransform UnityEngine.RectTransform
  152. ---@field public layoutElement UnityEngine.UI.LayoutElement
  153. ---@class PetContractItem__Generate
  154. ---@field private gameObject UnityEngine.GameObject
  155. ---@field private transform UnityEngine.Transform
  156. ---@field private petLock UnityEngine.GameObject
  157. ---@field private iconPetItem PetContractItem__Generate_iconPetItem
  158. ---@field private noticeBox UnityEngine.GameObject
  159. ---@field private noticeText PetContractItem__Generate_noticeText
  160. ---@field private activatedBox PetContractItem__Generate_activatedBox
  161. ---@field private jobIcon PetContractItem__Generate_jobIcon
  162. ---@field private heroName PetContractItem__Generate_heroName
  163. ---@field private btnRemoveAll PetContractItem__Generate_btnRemoveAll
  164. ---@field private extraBox PetContractItem__Generate_extraBox
  165. ---@field private contractBox PetContractItem__Generate_contractBox
  166. local PetContractItemView = class("PetContractItemView")
  167. function PetContractItemView:ctor()
  168. end
  169. ---@private
  170. function PetContractItemView:SetActive(result)
  171. self.gameObject:SetActive(result)
  172. end
  173. ---@private
  174. function PetContractItemView:InitGenerate(Root, data)
  175. self.transform = Root
  176. self.inited = true
  177. local tmp
  178. self:InitGenerate__1(Root,data)
  179. self:InitGenerate__2(Root,data)
  180. self:InitGenerate__3(Root,data)
  181. self:InitGenerate__4(Root,data)
  182. self:InitGenerate__5(Root,data)
  183. self:InitGenerate__6(Root,data)
  184. self:InitGenerate__7(Root,data)
  185. self:InitGenerate__8(Root,data)
  186. self:InitGenerate__9(Root,data)
  187. self:InitGenerate__10(Root,data)
  188. self:InitGenerate__11(Root,data)
  189. self:InitGenerate__12(Root,data)
  190. self:InitGenerate__13(Root,data)
  191. self:InitGenerate__14(Root,data)
  192. self:InitGenerate__15(Root,data)
  193. self:InitGenerate__16(Root,data)
  194. self:InitGenerate__17(Root,data)
  195. self:InitGenerate__18(Root,data)
  196. self:InitGenerate__19(Root,data)
  197. self:InitGenerate__20(Root,data)
  198. self:InitGenerate__21(Root,data)
  199. self:InitGenerate__22(Root,data)
  200. self:InitGenerate__23(Root,data)
  201. self:InitGenerate__24(Root,data)
  202. self:InitGenerate__25(Root,data)
  203. self:InitGenerate__26(Root,data)
  204. self:InitGenerate__27(Root,data)
  205. self:InitGenerate__28(Root,data)
  206. self:InitGenerate__29(Root,data)
  207. self:InitGenerate__30(Root,data)
  208. self:InitGenerate__31(Root,data)
  209. self:InitGenerate__32(Root,data)
  210. self:InitGenerate__33(Root,data)
  211. self:InitGenerate__34(Root,data)
  212. self:InitGenerate__35(Root,data)
  213. self:InitGenerate__36(Root,data)
  214. self:InitGenerate__37(Root,data)
  215. self:InitGenerate__38(Root,data)
  216. self:InitGenerate__39(Root,data)
  217. self:InitGenerate__40(Root,data)
  218. self:InitGenerate__41(Root,data)
  219. self:InitGenerate__42(Root,data)
  220. self:InitGenerate__43(Root,data)
  221. self:InitGenerate__44(Root,data)
  222. self:InitGenerate__45(Root,data)
  223. self:InitGenerate__46(Root,data)
  224. self:InitGenerate__47(Root,data)
  225. self:InitGenerate__48(Root,data)
  226. end
  227. ---@private
  228. function PetContractItemView:InitGenerate__1(Root, data)
  229. --[[
  230. Root
  231. --]]
  232. end
  233. ---@private
  234. function PetContractItemView:InitGenerate__2(Root, data)
  235. --[[
  236. PetIcon/PetLock
  237. --]]
  238. local tmp = Root:Find("PetIcon/PetLock").gameObject
  239. if tolua.getpeer(tmp) == nil then
  240. tolua.setpeer(tmp, {})
  241. end
  242. self.petLock = tmp
  243. end
  244. ---@private
  245. function PetContractItemView:InitGenerate__3(Root, data)
  246. --[[
  247. PetIcon/IconPetItem
  248. --]]
  249. local tmp = Root:Find("PetIcon/IconPetItem").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  254. self.iconPetItem.prefabName = "IconPetItem"
  255. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  256. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  257. end
  258. ---@private
  259. function PetContractItemView:InitGenerate__4(Root, data)
  260. --[[
  261. NoticeBox
  262. --]]
  263. local tmp = Root:Find("NoticeBox").gameObject
  264. if tolua.getpeer(tmp) == nil then
  265. tolua.setpeer(tmp, {})
  266. end
  267. self.noticeBox = tmp
  268. end
  269. ---@private
  270. function PetContractItemView:InitGenerate__5(Root, data)
  271. --[[
  272. NoticeBox/NoticeText
  273. --]]
  274. local tmp = Root:Find("NoticeBox/NoticeText").gameObject
  275. if tolua.getpeer(tmp) == nil then
  276. tolua.setpeer(tmp, {})
  277. end
  278. self.noticeText = tmp
  279. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  280. end
  281. ---@private
  282. function PetContractItemView:InitGenerate__6(Root, data)
  283. --[[
  284. ActivatedBox
  285. --]]
  286. local tmp = Root:Find("ActivatedBox").gameObject
  287. if tolua.getpeer(tmp) == nil then
  288. tolua.setpeer(tmp, {})
  289. end
  290. self.activatedBox = tmp
  291. end
  292. ---@private
  293. function PetContractItemView:InitGenerate__7(Root, data)
  294. --[[
  295. ActivatedBox/AttrItem1
  296. --]]
  297. local tmp = Root:Find("ActivatedBox/AttrItem1").gameObject
  298. if tolua.getpeer(tmp) == nil then
  299. tolua.setpeer(tmp, {})
  300. end
  301. self.activatedBox.attrItem1 = tmp
  302. end
  303. ---@private
  304. function PetContractItemView:InitGenerate__8(Root, data)
  305. --[[
  306. ActivatedBox/AttrItem1/Text
  307. --]]
  308. local tmp = Root:Find("ActivatedBox/AttrItem1/Text").gameObject
  309. if tolua.getpeer(tmp) == nil then
  310. tolua.setpeer(tmp, {})
  311. end
  312. self.activatedBox.attrItem1.text = tmp
  313. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  314. end
  315. ---@private
  316. function PetContractItemView:InitGenerate__9(Root, data)
  317. --[[
  318. ActivatedBox/AttrItem1/Number
  319. --]]
  320. local tmp = Root:Find("ActivatedBox/AttrItem1/Number").gameObject
  321. if tolua.getpeer(tmp) == nil then
  322. tolua.setpeer(tmp, {})
  323. end
  324. self.activatedBox.attrItem1.number = tmp
  325. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  326. end
  327. ---@private
  328. function PetContractItemView:InitGenerate__10(Root, data)
  329. --[[
  330. ActivatedBox/AttrItem2
  331. --]]
  332. local tmp = Root:Find("ActivatedBox/AttrItem2").gameObject
  333. if tolua.getpeer(tmp) == nil then
  334. tolua.setpeer(tmp, {})
  335. end
  336. self.activatedBox.attrItem2 = tmp
  337. end
  338. ---@private
  339. function PetContractItemView:InitGenerate__11(Root, data)
  340. --[[
  341. ActivatedBox/AttrItem2/Text
  342. --]]
  343. local tmp = Root:Find("ActivatedBox/AttrItem2/Text").gameObject
  344. if tolua.getpeer(tmp) == nil then
  345. tolua.setpeer(tmp, {})
  346. end
  347. self.activatedBox.attrItem2.text = tmp
  348. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  349. end
  350. ---@private
  351. function PetContractItemView:InitGenerate__12(Root, data)
  352. --[[
  353. ActivatedBox/AttrItem2/Number
  354. --]]
  355. local tmp = Root:Find("ActivatedBox/AttrItem2/Number").gameObject
  356. if tolua.getpeer(tmp) == nil then
  357. tolua.setpeer(tmp, {})
  358. end
  359. self.activatedBox.attrItem2.number = tmp
  360. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  361. end
  362. ---@private
  363. function PetContractItemView:InitGenerate__13(Root, data)
  364. --[[
  365. ActivatedBox/AttrItem3
  366. --]]
  367. local tmp = Root:Find("ActivatedBox/AttrItem3").gameObject
  368. if tolua.getpeer(tmp) == nil then
  369. tolua.setpeer(tmp, {})
  370. end
  371. self.activatedBox.attrItem3 = tmp
  372. end
  373. ---@private
  374. function PetContractItemView:InitGenerate__14(Root, data)
  375. --[[
  376. ActivatedBox/AttrItem3/Text
  377. --]]
  378. local tmp = Root:Find("ActivatedBox/AttrItem3/Text").gameObject
  379. if tolua.getpeer(tmp) == nil then
  380. tolua.setpeer(tmp, {})
  381. end
  382. self.activatedBox.attrItem3.text = tmp
  383. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  384. end
  385. ---@private
  386. function PetContractItemView:InitGenerate__15(Root, data)
  387. --[[
  388. ActivatedBox/AttrItem3/Number
  389. --]]
  390. local tmp = Root:Find("ActivatedBox/AttrItem3/Number").gameObject
  391. if tolua.getpeer(tmp) == nil then
  392. tolua.setpeer(tmp, {})
  393. end
  394. self.activatedBox.attrItem3.number = tmp
  395. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  396. end
  397. ---@private
  398. function PetContractItemView:InitGenerate__16(Root, data)
  399. --[[
  400. ActivatedBox/AttrItem4
  401. --]]
  402. local tmp = Root:Find("ActivatedBox/AttrItem4").gameObject
  403. if tolua.getpeer(tmp) == nil then
  404. tolua.setpeer(tmp, {})
  405. end
  406. self.activatedBox.attrItem4 = tmp
  407. end
  408. ---@private
  409. function PetContractItemView:InitGenerate__17(Root, data)
  410. --[[
  411. ActivatedBox/AttrItem4/Text
  412. --]]
  413. local tmp = Root:Find("ActivatedBox/AttrItem4/Text").gameObject
  414. if tolua.getpeer(tmp) == nil then
  415. tolua.setpeer(tmp, {})
  416. end
  417. self.activatedBox.attrItem4.text = tmp
  418. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  419. end
  420. ---@private
  421. function PetContractItemView:InitGenerate__18(Root, data)
  422. --[[
  423. ActivatedBox/AttrItem4/Number
  424. --]]
  425. local tmp = Root:Find("ActivatedBox/AttrItem4/Number").gameObject
  426. if tolua.getpeer(tmp) == nil then
  427. tolua.setpeer(tmp, {})
  428. end
  429. self.activatedBox.attrItem4.number = tmp
  430. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  431. end
  432. ---@private
  433. function PetContractItemView:InitGenerate__19(Root, data)
  434. --[[
  435. Label/JobIcon
  436. --]]
  437. local tmp = Root:Find("Label/JobIcon").gameObject
  438. if tolua.getpeer(tmp) == nil then
  439. tolua.setpeer(tmp, {})
  440. end
  441. self.jobIcon = tmp
  442. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  443. end
  444. ---@private
  445. function PetContractItemView:InitGenerate__20(Root, data)
  446. --[[
  447. Label/heroName
  448. --]]
  449. local tmp = Root:Find("Label/heroName").gameObject
  450. if tolua.getpeer(tmp) == nil then
  451. tolua.setpeer(tmp, {})
  452. end
  453. self.heroName = tmp
  454. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  455. end
  456. ---@private
  457. function PetContractItemView:InitGenerate__21(Root, data)
  458. --[[
  459. BtnRemoveAll
  460. --]]
  461. local tmp = Root:Find("BtnRemoveAll").gameObject
  462. if tolua.getpeer(tmp) == nil then
  463. tolua.setpeer(tmp, {})
  464. end
  465. self.btnRemoveAll = tmp
  466. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  467. end
  468. ---@private
  469. function PetContractItemView:InitGenerate__22(Root, data)
  470. --[[
  471. ExtraBox
  472. --]]
  473. local tmp = Root:Find("ExtraBox").gameObject
  474. if tolua.getpeer(tmp) == nil then
  475. tolua.setpeer(tmp, {})
  476. end
  477. self.extraBox = tmp
  478. end
  479. ---@private
  480. function PetContractItemView:InitGenerate__23(Root, data)
  481. --[[
  482. ExtraBox/PetQty
  483. --]]
  484. local tmp = Root:Find("ExtraBox/PetQty").gameObject
  485. if tolua.getpeer(tmp) == nil then
  486. tolua.setpeer(tmp, {})
  487. end
  488. self.extraBox.petQty = tmp
  489. end
  490. ---@private
  491. function PetContractItemView:InitGenerate__24(Root, data)
  492. --[[
  493. ExtraBox/PetQty/nature
  494. --]]
  495. local tmp = Root:Find("ExtraBox/PetQty/nature").gameObject
  496. if tolua.getpeer(tmp) == nil then
  497. tolua.setpeer(tmp, {})
  498. end
  499. self.extraBox.petQty.nature = tmp
  500. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  501. end
  502. ---@private
  503. function PetContractItemView:InitGenerate__25(Root, data)
  504. --[[
  505. ExtraBox/PetQty/Number
  506. --]]
  507. local tmp = Root:Find("ExtraBox/PetQty/Number").gameObject
  508. if tolua.getpeer(tmp) == nil then
  509. tolua.setpeer(tmp, {})
  510. end
  511. self.extraBox.petQty.number = tmp
  512. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  513. end
  514. ---@private
  515. function PetContractItemView:InitGenerate__26(Root, data)
  516. --[[
  517. ExtraBox/PetExtra
  518. --]]
  519. local tmp = Root:Find("ExtraBox/PetExtra").gameObject
  520. if tolua.getpeer(tmp) == nil then
  521. tolua.setpeer(tmp, {})
  522. end
  523. self.extraBox.petExtra = tmp
  524. end
  525. ---@private
  526. function PetContractItemView:InitGenerate__27(Root, data)
  527. --[[
  528. ExtraBox/PetExtra/Number
  529. --]]
  530. local tmp = Root:Find("ExtraBox/PetExtra/Number").gameObject
  531. if tolua.getpeer(tmp) == nil then
  532. tolua.setpeer(tmp, {})
  533. end
  534. self.extraBox.petExtra.number = tmp
  535. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  536. end
  537. ---@private
  538. function PetContractItemView:InitGenerate__28(Root, data)
  539. --[[
  540. ContractBox
  541. --]]
  542. local tmp = Root:Find("ContractBox").gameObject
  543. if tolua.getpeer(tmp) == nil then
  544. tolua.setpeer(tmp, {})
  545. end
  546. self.contractBox = tmp
  547. end
  548. ---@private
  549. function PetContractItemView:InitGenerate__29(Root, data)
  550. --[[
  551. ContractBox/slot1
  552. --]]
  553. local tmp = Root:Find("ContractBox/slot1").gameObject
  554. if tolua.getpeer(tmp) == nil then
  555. tolua.setpeer(tmp, {})
  556. end
  557. self.contractBox.slot1 = tmp
  558. end
  559. ---@private
  560. function PetContractItemView:InitGenerate__30(Root, data)
  561. --[[
  562. ContractBox/slot1/BtnAdd
  563. --]]
  564. local tmp = Root:Find("ContractBox/slot1/BtnAdd").gameObject
  565. if tolua.getpeer(tmp) == nil then
  566. tolua.setpeer(tmp, {})
  567. end
  568. self.contractBox.slot1.btnAdd = tmp
  569. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  570. end
  571. ---@private
  572. function PetContractItemView:InitGenerate__31(Root, data)
  573. --[[
  574. ContractBox/slot1/BtnLock
  575. --]]
  576. local tmp = Root:Find("ContractBox/slot1/BtnLock").gameObject
  577. if tolua.getpeer(tmp) == nil then
  578. tolua.setpeer(tmp, {})
  579. end
  580. self.contractBox.slot1.btnLock = tmp
  581. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  582. end
  583. ---@private
  584. function PetContractItemView:InitGenerate__32(Root, data)
  585. --[[
  586. ContractBox/slot1/IconPetItem
  587. --]]
  588. local tmp = Root:Find("ContractBox/slot1/IconPetItem").gameObject
  589. if tolua.getpeer(tmp) == nil then
  590. tolua.setpeer(tmp, {})
  591. end
  592. self.contractBox.slot1.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  593. self.contractBox.slot1.iconPetItem.prefabName = "IconPetItem"
  594. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  595. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  596. end
  597. ---@private
  598. function PetContractItemView:InitGenerate__33(Root, data)
  599. --[[
  600. ContractBox/slot1/UIRedPointRP
  601. --]]
  602. local tmp = Root:Find("ContractBox/slot1/UIRedPointRP").gameObject
  603. if tolua.getpeer(tmp) == nil then
  604. tolua.setpeer(tmp, {})
  605. end
  606. self.contractBox.slot1.uIRedPointRP = tmp
  607. end
  608. ---@private
  609. function PetContractItemView:InitGenerate__34(Root, data)
  610. --[[
  611. ContractBox/slot2
  612. --]]
  613. local tmp = Root:Find("ContractBox/slot2").gameObject
  614. if tolua.getpeer(tmp) == nil then
  615. tolua.setpeer(tmp, {})
  616. end
  617. self.contractBox.slot2 = tmp
  618. end
  619. ---@private
  620. function PetContractItemView:InitGenerate__35(Root, data)
  621. --[[
  622. ContractBox/slot2/BtnAdd
  623. --]]
  624. local tmp = Root:Find("ContractBox/slot2/BtnAdd").gameObject
  625. if tolua.getpeer(tmp) == nil then
  626. tolua.setpeer(tmp, {})
  627. end
  628. self.contractBox.slot2.btnAdd = tmp
  629. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  630. end
  631. ---@private
  632. function PetContractItemView:InitGenerate__36(Root, data)
  633. --[[
  634. ContractBox/slot2/BtnLock
  635. --]]
  636. local tmp = Root:Find("ContractBox/slot2/BtnLock").gameObject
  637. if tolua.getpeer(tmp) == nil then
  638. tolua.setpeer(tmp, {})
  639. end
  640. self.contractBox.slot2.btnLock = tmp
  641. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  642. end
  643. ---@private
  644. function PetContractItemView:InitGenerate__37(Root, data)
  645. --[[
  646. ContractBox/slot2/IconPetItem
  647. --]]
  648. local tmp = Root:Find("ContractBox/slot2/IconPetItem").gameObject
  649. if tolua.getpeer(tmp) == nil then
  650. tolua.setpeer(tmp, {})
  651. end
  652. self.contractBox.slot2.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  653. self.contractBox.slot2.iconPetItem.prefabName = "IconPetItem"
  654. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  655. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  656. end
  657. ---@private
  658. function PetContractItemView:InitGenerate__38(Root, data)
  659. --[[
  660. ContractBox/slot2/UIRedPointRP
  661. --]]
  662. local tmp = Root:Find("ContractBox/slot2/UIRedPointRP").gameObject
  663. if tolua.getpeer(tmp) == nil then
  664. tolua.setpeer(tmp, {})
  665. end
  666. self.contractBox.slot2.uIRedPointRP = tmp
  667. end
  668. ---@private
  669. function PetContractItemView:InitGenerate__39(Root, data)
  670. --[[
  671. ContractBox/slot3
  672. --]]
  673. local tmp = Root:Find("ContractBox/slot3").gameObject
  674. if tolua.getpeer(tmp) == nil then
  675. tolua.setpeer(tmp, {})
  676. end
  677. self.contractBox.slot3 = tmp
  678. end
  679. ---@private
  680. function PetContractItemView:InitGenerate__40(Root, data)
  681. --[[
  682. ContractBox/slot3/BtnAdd
  683. --]]
  684. local tmp = Root:Find("ContractBox/slot3/BtnAdd").gameObject
  685. if tolua.getpeer(tmp) == nil then
  686. tolua.setpeer(tmp, {})
  687. end
  688. self.contractBox.slot3.btnAdd = tmp
  689. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  690. end
  691. ---@private
  692. function PetContractItemView:InitGenerate__41(Root, data)
  693. --[[
  694. ContractBox/slot3/BtnLock
  695. --]]
  696. local tmp = Root:Find("ContractBox/slot3/BtnLock").gameObject
  697. if tolua.getpeer(tmp) == nil then
  698. tolua.setpeer(tmp, {})
  699. end
  700. self.contractBox.slot3.btnLock = tmp
  701. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  702. end
  703. ---@private
  704. function PetContractItemView:InitGenerate__42(Root, data)
  705. --[[
  706. ContractBox/slot3/IconPetItem
  707. --]]
  708. local tmp = Root:Find("ContractBox/slot3/IconPetItem").gameObject
  709. if tolua.getpeer(tmp) == nil then
  710. tolua.setpeer(tmp, {})
  711. end
  712. self.contractBox.slot3.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  713. self.contractBox.slot3.iconPetItem.prefabName = "IconPetItem"
  714. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  715. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  716. end
  717. ---@private
  718. function PetContractItemView:InitGenerate__43(Root, data)
  719. --[[
  720. ContractBox/slot3/UIRedPointRP
  721. --]]
  722. local tmp = Root:Find("ContractBox/slot3/UIRedPointRP").gameObject
  723. if tolua.getpeer(tmp) == nil then
  724. tolua.setpeer(tmp, {})
  725. end
  726. self.contractBox.slot3.uIRedPointRP = tmp
  727. end
  728. ---@private
  729. function PetContractItemView:InitGenerate__44(Root, data)
  730. --[[
  731. ContractBox/slot4
  732. --]]
  733. local tmp = Root:Find("ContractBox/slot4").gameObject
  734. if tolua.getpeer(tmp) == nil then
  735. tolua.setpeer(tmp, {})
  736. end
  737. self.contractBox.slot4 = tmp
  738. end
  739. ---@private
  740. function PetContractItemView:InitGenerate__45(Root, data)
  741. --[[
  742. ContractBox/slot4/BtnAdd
  743. --]]
  744. local tmp = Root:Find("ContractBox/slot4/BtnAdd").gameObject
  745. if tolua.getpeer(tmp) == nil then
  746. tolua.setpeer(tmp, {})
  747. end
  748. self.contractBox.slot4.btnAdd = tmp
  749. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  750. end
  751. ---@private
  752. function PetContractItemView:InitGenerate__46(Root, data)
  753. --[[
  754. ContractBox/slot4/BtnLock
  755. --]]
  756. local tmp = Root:Find("ContractBox/slot4/BtnLock").gameObject
  757. if tolua.getpeer(tmp) == nil then
  758. tolua.setpeer(tmp, {})
  759. end
  760. self.contractBox.slot4.btnLock = tmp
  761. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  762. end
  763. ---@private
  764. function PetContractItemView:InitGenerate__47(Root, data)
  765. --[[
  766. ContractBox/slot4/IconPetItem
  767. --]]
  768. local tmp = Root:Find("ContractBox/slot4/IconPetItem").gameObject
  769. if tolua.getpeer(tmp) == nil then
  770. tolua.setpeer(tmp, {})
  771. end
  772. self.contractBox.slot4.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  773. self.contractBox.slot4.iconPetItem.prefabName = "IconPetItem"
  774. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  775. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  776. end
  777. ---@private
  778. function PetContractItemView:InitGenerate__48(Root, data)
  779. --[[
  780. ContractBox/slot4/UIRedPointRP
  781. --]]
  782. local tmp = Root:Find("ContractBox/slot4/UIRedPointRP").gameObject
  783. if tolua.getpeer(tmp) == nil then
  784. tolua.setpeer(tmp, {})
  785. end
  786. self.contractBox.slot4.uIRedPointRP = tmp
  787. end
  788. ---@private
  789. function PetContractItemView:GenerateDestroy()
  790. if tolua.getpeer(self.contractBox.slot4.uIRedPointRP) ~= nil then
  791. tolua.setpeer(self.contractBox.slot4.uIRedPointRP, nil)
  792. end
  793. if self.contractBox.slot4.iconPetItem.GenerateDestroy ~= nil then
  794. self.contractBox.slot4.iconPetItem:GenerateDestroy()
  795. end
  796. if tolua.getpeer(self.contractBox.slot4.iconPetItem) ~= nil then
  797. tolua.setpeer(self.contractBox.slot4.iconPetItem, nil)
  798. end
  799. if tolua.getpeer(self.contractBox.slot4.btnLock) ~= nil then
  800. tolua.setpeer(self.contractBox.slot4.btnLock, nil)
  801. end
  802. if tolua.getpeer(self.contractBox.slot4.btnAdd) ~= nil then
  803. tolua.setpeer(self.contractBox.slot4.btnAdd, nil)
  804. end
  805. if tolua.getpeer(self.contractBox.slot4) ~= nil then
  806. tolua.setpeer(self.contractBox.slot4, nil)
  807. end
  808. if tolua.getpeer(self.contractBox.slot3.uIRedPointRP) ~= nil then
  809. tolua.setpeer(self.contractBox.slot3.uIRedPointRP, nil)
  810. end
  811. if self.contractBox.slot3.iconPetItem.GenerateDestroy ~= nil then
  812. self.contractBox.slot3.iconPetItem:GenerateDestroy()
  813. end
  814. if tolua.getpeer(self.contractBox.slot3.iconPetItem) ~= nil then
  815. tolua.setpeer(self.contractBox.slot3.iconPetItem, nil)
  816. end
  817. if tolua.getpeer(self.contractBox.slot3.btnLock) ~= nil then
  818. tolua.setpeer(self.contractBox.slot3.btnLock, nil)
  819. end
  820. if tolua.getpeer(self.contractBox.slot3.btnAdd) ~= nil then
  821. tolua.setpeer(self.contractBox.slot3.btnAdd, nil)
  822. end
  823. if tolua.getpeer(self.contractBox.slot3) ~= nil then
  824. tolua.setpeer(self.contractBox.slot3, nil)
  825. end
  826. if tolua.getpeer(self.contractBox.slot2.uIRedPointRP) ~= nil then
  827. tolua.setpeer(self.contractBox.slot2.uIRedPointRP, nil)
  828. end
  829. if self.contractBox.slot2.iconPetItem.GenerateDestroy ~= nil then
  830. self.contractBox.slot2.iconPetItem:GenerateDestroy()
  831. end
  832. if tolua.getpeer(self.contractBox.slot2.iconPetItem) ~= nil then
  833. tolua.setpeer(self.contractBox.slot2.iconPetItem, nil)
  834. end
  835. if tolua.getpeer(self.contractBox.slot2.btnLock) ~= nil then
  836. tolua.setpeer(self.contractBox.slot2.btnLock, nil)
  837. end
  838. if tolua.getpeer(self.contractBox.slot2.btnAdd) ~= nil then
  839. tolua.setpeer(self.contractBox.slot2.btnAdd, nil)
  840. end
  841. if tolua.getpeer(self.contractBox.slot2) ~= nil then
  842. tolua.setpeer(self.contractBox.slot2, nil)
  843. end
  844. if tolua.getpeer(self.contractBox.slot1.uIRedPointRP) ~= nil then
  845. tolua.setpeer(self.contractBox.slot1.uIRedPointRP, nil)
  846. end
  847. if self.contractBox.slot1.iconPetItem.GenerateDestroy ~= nil then
  848. self.contractBox.slot1.iconPetItem:GenerateDestroy()
  849. end
  850. if tolua.getpeer(self.contractBox.slot1.iconPetItem) ~= nil then
  851. tolua.setpeer(self.contractBox.slot1.iconPetItem, nil)
  852. end
  853. if tolua.getpeer(self.contractBox.slot1.btnLock) ~= nil then
  854. tolua.setpeer(self.contractBox.slot1.btnLock, nil)
  855. end
  856. if tolua.getpeer(self.contractBox.slot1.btnAdd) ~= nil then
  857. tolua.setpeer(self.contractBox.slot1.btnAdd, nil)
  858. end
  859. if tolua.getpeer(self.contractBox.slot1) ~= nil then
  860. tolua.setpeer(self.contractBox.slot1, nil)
  861. end
  862. if tolua.getpeer(self.extraBox.petExtra.number) ~= nil then
  863. tolua.setpeer(self.extraBox.petExtra.number, nil)
  864. end
  865. if tolua.getpeer(self.extraBox.petExtra) ~= nil then
  866. tolua.setpeer(self.extraBox.petExtra, nil)
  867. end
  868. if tolua.getpeer(self.extraBox.petQty.number) ~= nil then
  869. tolua.setpeer(self.extraBox.petQty.number, nil)
  870. end
  871. if tolua.getpeer(self.extraBox.petQty.nature) ~= nil then
  872. tolua.setpeer(self.extraBox.petQty.nature, nil)
  873. end
  874. if tolua.getpeer(self.extraBox.petQty) ~= nil then
  875. tolua.setpeer(self.extraBox.petQty, nil)
  876. end
  877. if tolua.getpeer(self.activatedBox.attrItem4.number) ~= nil then
  878. tolua.setpeer(self.activatedBox.attrItem4.number, nil)
  879. end
  880. if tolua.getpeer(self.activatedBox.attrItem4.text) ~= nil then
  881. tolua.setpeer(self.activatedBox.attrItem4.text, nil)
  882. end
  883. if tolua.getpeer(self.activatedBox.attrItem4) ~= nil then
  884. tolua.setpeer(self.activatedBox.attrItem4, nil)
  885. end
  886. if tolua.getpeer(self.activatedBox.attrItem3.number) ~= nil then
  887. tolua.setpeer(self.activatedBox.attrItem3.number, nil)
  888. end
  889. if tolua.getpeer(self.activatedBox.attrItem3.text) ~= nil then
  890. tolua.setpeer(self.activatedBox.attrItem3.text, nil)
  891. end
  892. if tolua.getpeer(self.activatedBox.attrItem3) ~= nil then
  893. tolua.setpeer(self.activatedBox.attrItem3, nil)
  894. end
  895. if tolua.getpeer(self.activatedBox.attrItem2.number) ~= nil then
  896. tolua.setpeer(self.activatedBox.attrItem2.number, nil)
  897. end
  898. if tolua.getpeer(self.activatedBox.attrItem2.text) ~= nil then
  899. tolua.setpeer(self.activatedBox.attrItem2.text, nil)
  900. end
  901. if tolua.getpeer(self.activatedBox.attrItem2) ~= nil then
  902. tolua.setpeer(self.activatedBox.attrItem2, nil)
  903. end
  904. if tolua.getpeer(self.activatedBox.attrItem1.number) ~= nil then
  905. tolua.setpeer(self.activatedBox.attrItem1.number, nil)
  906. end
  907. if tolua.getpeer(self.activatedBox.attrItem1.text) ~= nil then
  908. tolua.setpeer(self.activatedBox.attrItem1.text, nil)
  909. end
  910. if tolua.getpeer(self.activatedBox.attrItem1) ~= nil then
  911. tolua.setpeer(self.activatedBox.attrItem1, nil)
  912. end
  913. if self.iconPetItem.GenerateDestroy ~= nil then
  914. self.iconPetItem:GenerateDestroy()
  915. end
  916. if tolua.getpeer(self.iconPetItem) ~= nil then
  917. tolua.setpeer(self.iconPetItem, nil)
  918. end
  919. if tolua.getpeer(self.petLock) ~= nil then
  920. tolua.setpeer(self.petLock, nil)
  921. end
  922. self.petLock = nil
  923. if tolua.getpeer(self.noticeBox) ~= nil then
  924. tolua.setpeer(self.noticeBox, nil)
  925. end
  926. self.noticeBox = nil
  927. if tolua.getpeer(self.noticeText) ~= nil then
  928. tolua.setpeer(self.noticeText, nil)
  929. end
  930. self.noticeText = nil
  931. if tolua.getpeer(self.activatedBox) ~= nil then
  932. tolua.setpeer(self.activatedBox, nil)
  933. end
  934. self.activatedBox = nil
  935. if tolua.getpeer(self.jobIcon) ~= nil then
  936. tolua.setpeer(self.jobIcon, nil)
  937. end
  938. self.jobIcon = nil
  939. if tolua.getpeer(self.heroName) ~= nil then
  940. tolua.setpeer(self.heroName, nil)
  941. end
  942. self.heroName = nil
  943. if tolua.getpeer(self.btnRemoveAll) ~= nil then
  944. tolua.setpeer(self.btnRemoveAll, nil)
  945. end
  946. self.btnRemoveAll = nil
  947. if tolua.getpeer(self.extraBox) ~= nil then
  948. tolua.setpeer(self.extraBox, nil)
  949. end
  950. self.extraBox = nil
  951. if tolua.getpeer(self.contractBox) ~= nil then
  952. tolua.setpeer(self.contractBox, nil)
  953. end
  954. self.contractBox = nil
  955. self.transform = nil
  956. self.gameObject = nil
  957. self.inited = false
  958. end
  959. return PetContractItemView