UIPetContractAttributeView_Generate.lua 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. ---@class UIPetContractAttribute__Generate_toggle4_iconPetItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@field public layoutElement UnityEngine.UI.LayoutElement
  5. ---@class UIPetContractAttribute__Generate_toggle4
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public toggle UnityEngine.UI.Toggle
  8. ---@field public petLock UnityEngine.GameObject
  9. ---@field public iconPetItem UIPetContractAttribute__Generate_toggle4_iconPetItem
  10. ---@class UIPetContractAttribute__Generate_toggle3_iconPetItem
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public rectTransform UnityEngine.RectTransform
  13. ---@field public layoutElement UnityEngine.UI.LayoutElement
  14. ---@class UIPetContractAttribute__Generate_toggle3
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public toggle UnityEngine.UI.Toggle
  17. ---@field public petLock UnityEngine.GameObject
  18. ---@field public iconPetItem UIPetContractAttribute__Generate_toggle3_iconPetItem
  19. ---@class UIPetContractAttribute__Generate_toggle2_iconPetItem
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public rectTransform UnityEngine.RectTransform
  22. ---@field public layoutElement UnityEngine.UI.LayoutElement
  23. ---@class UIPetContractAttribute__Generate_toggle2
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public toggle UnityEngine.UI.Toggle
  26. ---@field public petLock UnityEngine.GameObject
  27. ---@field public iconPetItem UIPetContractAttribute__Generate_toggle2_iconPetItem
  28. ---@class UIPetContractAttribute__Generate_toggle1_iconPetItem
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public rectTransform UnityEngine.RectTransform
  31. ---@field public layoutElement UnityEngine.UI.LayoutElement
  32. ---@class UIPetContractAttribute__Generate_toggle1
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public toggle UnityEngine.UI.Toggle
  35. ---@field public petLock UnityEngine.GameObject
  36. ---@field public iconPetItem UIPetContractAttribute__Generate_toggle1_iconPetItem
  37. ---@class UIPetContractAttribute__Generate_toggleAll
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public toggle UnityEngine.UI.Toggle
  40. ---@class UIPetContractAttribute__Generate_toggleGroup
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  43. ---@class UIPetContractAttribute__Generate_addSView_content
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  46. ---@class UIPetContractAttribute__Generate_addSView
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public rectTransform UnityEngine.RectTransform
  49. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  50. ---@field public content UIPetContractAttribute__Generate_addSView_content
  51. ---@class UIPetContractAttribute__Generate_baseSView_content
  52. ---@field public gameObject UnityEngine.GameObject
  53. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  54. ---@class UIPetContractAttribute__Generate_baseSView
  55. ---@field public gameObject UnityEngine.GameObject
  56. ---@field public rectTransform UnityEngine.RectTransform
  57. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  58. ---@field public content UIPetContractAttribute__Generate_baseSView_content
  59. ---@class UIPetContractAttribute__Generate_btnClose
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public button UnityEngine.UI.Button
  62. ---@class UIPetContractAttribute__Generate_AnyBtn
  63. ---@field public gameObject UnityEngine.GameObject
  64. ---@field public button UnityEngine.UI.Button
  65. ---@class UIPetContractAttribute__Generate_uIAnimator
  66. ---@field public gameObject UnityEngine.GameObject
  67. ---@field public animator UnityEngine.Animator
  68. ---@class UIPetContractAttribute__Generate
  69. ---@field private gameObject UnityEngine.GameObject
  70. ---@field private transform UnityEngine.Transform
  71. ---@field private uIAnimator UIPetContractAttribute__Generate_uIAnimator
  72. ---@field private AnyBtn UIPetContractAttribute__Generate_AnyBtn
  73. ---@field private window UnityEngine.GameObject
  74. ---@field private btnClose UIPetContractAttribute__Generate_btnClose
  75. ---@field private scrollView UnityEngine.GameObject
  76. ---@field private baseAttrs UnityEngine.GameObject
  77. ---@field private baseSView UIPetContractAttribute__Generate_baseSView
  78. ---@field private addAttrs UnityEngine.GameObject
  79. ---@field private addSView UIPetContractAttribute__Generate_addSView
  80. ---@field private none UnityEngine.GameObject
  81. ---@field private natureAttrItem UnityEngine.GameObject
  82. ---@field private noContract UnityEngine.GameObject
  83. ---@field private toggleGroup UIPetContractAttribute__Generate_toggleGroup
  84. ---@field private toggleAll UIPetContractAttribute__Generate_toggleAll
  85. ---@field private toggle1 UIPetContractAttribute__Generate_toggle1
  86. ---@field private toggle2 UIPetContractAttribute__Generate_toggle2
  87. ---@field private toggle3 UIPetContractAttribute__Generate_toggle3
  88. ---@field private toggle4 UIPetContractAttribute__Generate_toggle4
  89. local UIPetContractAttributeView = class("UIPetContractAttributeView", require("UIViewBase"))
  90. function UIPetContractAttributeView:ctor()
  91. end
  92. ---@private
  93. function UIPetContractAttributeView:SetActive(result)
  94. self.gameObject:SetActive(result)
  95. end
  96. ---@private
  97. function UIPetContractAttributeView:InitGenerate(Root, data)
  98. self.transform = Root
  99. self.inited = true
  100. if self.super.Init then
  101. self.super.Init(self)
  102. end
  103. local tmp
  104. self:InitGenerate__1(Root,data)
  105. self:InitGenerate__2(Root,data)
  106. self:InitGenerate__3(Root,data)
  107. self:InitGenerate__4(Root,data)
  108. self:InitGenerate__5(Root,data)
  109. self:InitGenerate__6(Root,data)
  110. self:InitGenerate__7(Root,data)
  111. self:InitGenerate__8(Root,data)
  112. self:InitGenerate__9(Root,data)
  113. self:InitGenerate__10(Root,data)
  114. self:InitGenerate__11(Root,data)
  115. self:InitGenerate__12(Root,data)
  116. self:InitGenerate__13(Root,data)
  117. self:InitGenerate__14(Root,data)
  118. self:InitGenerate__15(Root,data)
  119. self:InitGenerate__16(Root,data)
  120. self:InitGenerate__17(Root,data)
  121. self:InitGenerate__18(Root,data)
  122. self:InitGenerate__19(Root,data)
  123. self:InitGenerate__20(Root,data)
  124. self:InitGenerate__21(Root,data)
  125. self:InitGenerate__22(Root,data)
  126. self:InitGenerate__23(Root,data)
  127. self:InitGenerate__24(Root,data)
  128. self:InitGenerate__25(Root,data)
  129. self:InitGenerate__26(Root,data)
  130. self:InitGenerate__27(Root,data)
  131. self:InitGenerate__28(Root,data)
  132. self:InitGenerate__29(Root,data)
  133. end
  134. ---@private
  135. function UIPetContractAttributeView:InitGenerate__1(Root, data)
  136. --[[
  137. Root
  138. --]]
  139. end
  140. ---@private
  141. function UIPetContractAttributeView:InitGenerate__2(Root, data)
  142. --[[
  143. UIAnimator
  144. --]]
  145. local tmp = Root:Find("UIAnimator").gameObject
  146. if tolua.getpeer(tmp) == nil then
  147. tolua.setpeer(tmp, {})
  148. end
  149. self.uIAnimator = tmp
  150. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  151. tmp.animator.logWarnings = false
  152. end
  153. ---@private
  154. function UIPetContractAttributeView:InitGenerate__3(Root, data)
  155. --[[
  156. UIAnimator/Alpha
  157. --]]
  158. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  159. if tolua.getpeer(tmp) == nil then
  160. tolua.setpeer(tmp, {})
  161. end
  162. self.AnyBtn = tmp
  163. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  164. end
  165. ---@private
  166. function UIPetContractAttributeView:InitGenerate__4(Root, data)
  167. --[[
  168. UIAnimator/Window
  169. --]]
  170. local tmp = Root:Find("UIAnimator/Window").gameObject
  171. if tolua.getpeer(tmp) == nil then
  172. tolua.setpeer(tmp, {})
  173. end
  174. self.window = tmp
  175. end
  176. ---@private
  177. function UIPetContractAttributeView:InitGenerate__5(Root, data)
  178. --[[
  179. UIAnimator/Window/Bg/BtnClose
  180. --]]
  181. local tmp = Root:Find("UIAnimator/Window/Bg/BtnClose").gameObject
  182. if tolua.getpeer(tmp) == nil then
  183. tolua.setpeer(tmp, {})
  184. end
  185. self.btnClose = tmp
  186. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  187. end
  188. ---@private
  189. function UIPetContractAttributeView:InitGenerate__6(Root, data)
  190. --[[
  191. UIAnimator/Window/Bg/ContractAttrBox/ScrollView
  192. --]]
  193. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView").gameObject
  194. if tolua.getpeer(tmp) == nil then
  195. tolua.setpeer(tmp, {})
  196. end
  197. self.scrollView = tmp
  198. end
  199. ---@private
  200. function UIPetContractAttributeView:InitGenerate__7(Root, data)
  201. --[[
  202. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseAttrs
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseAttrs").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.baseAttrs = tmp
  209. end
  210. ---@private
  211. function UIPetContractAttributeView:InitGenerate__8(Root, data)
  212. --[[
  213. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView
  214. --]]
  215. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView").gameObject
  216. if tolua.getpeer(tmp) == nil then
  217. tolua.setpeer(tmp, {})
  218. end
  219. self.baseSView = tmp
  220. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  221. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  222. end
  223. ---@private
  224. function UIPetContractAttributeView:InitGenerate__9(Root, data)
  225. --[[
  226. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView/Viewport/Content
  227. --]]
  228. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView/Viewport/Content").gameObject
  229. if tolua.getpeer(tmp) == nil then
  230. tolua.setpeer(tmp, {})
  231. end
  232. self.baseSView.content = tmp
  233. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  234. end
  235. ---@private
  236. function UIPetContractAttributeView:InitGenerate__10(Root, data)
  237. --[[
  238. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddAttrs
  239. --]]
  240. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddAttrs").gameObject
  241. if tolua.getpeer(tmp) == nil then
  242. tolua.setpeer(tmp, {})
  243. end
  244. self.addAttrs = tmp
  245. end
  246. ---@private
  247. function UIPetContractAttributeView:InitGenerate__11(Root, data)
  248. --[[
  249. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView
  250. --]]
  251. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView").gameObject
  252. if tolua.getpeer(tmp) == nil then
  253. tolua.setpeer(tmp, {})
  254. end
  255. self.addSView = tmp
  256. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  257. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  258. end
  259. ---@private
  260. function UIPetContractAttributeView:InitGenerate__12(Root, data)
  261. --[[
  262. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView/Viewport/Content
  263. --]]
  264. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView/Viewport/Content").gameObject
  265. if tolua.getpeer(tmp) == nil then
  266. tolua.setpeer(tmp, {})
  267. end
  268. self.addSView.content = tmp
  269. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  270. end
  271. ---@private
  272. function UIPetContractAttributeView:InitGenerate__13(Root, data)
  273. --[[
  274. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/None
  275. --]]
  276. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/None").gameObject
  277. if tolua.getpeer(tmp) == nil then
  278. tolua.setpeer(tmp, {})
  279. end
  280. self.none = tmp
  281. end
  282. ---@private
  283. function UIPetContractAttributeView:InitGenerate__14(Root, data)
  284. --[[
  285. UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/NatureAttrItem
  286. --]]
  287. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/NatureAttrItem").gameObject
  288. if tolua.getpeer(tmp) == nil then
  289. tolua.setpeer(tmp, {})
  290. end
  291. self.natureAttrItem = CommonUtil.BindGridViewItem2LuaStatic("NatureAttrItem", tmp)
  292. self.natureAttrItem.prefabName = "NatureAttrItem"
  293. end
  294. ---@private
  295. function UIPetContractAttributeView:InitGenerate__15(Root, data)
  296. --[[
  297. UIAnimator/Window/Bg/ContractAttrBox/NoContract
  298. --]]
  299. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/NoContract").gameObject
  300. if tolua.getpeer(tmp) == nil then
  301. tolua.setpeer(tmp, {})
  302. end
  303. self.noContract = tmp
  304. end
  305. ---@private
  306. function UIPetContractAttributeView:InitGenerate__16(Root, data)
  307. --[[
  308. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup
  309. --]]
  310. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup").gameObject
  311. if tolua.getpeer(tmp) == nil then
  312. tolua.setpeer(tmp, {})
  313. end
  314. self.toggleGroup = tmp
  315. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  316. end
  317. ---@private
  318. function UIPetContractAttributeView:InitGenerate__17(Root, data)
  319. --[[
  320. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/ToggleAll
  321. --]]
  322. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/ToggleAll").gameObject
  323. if tolua.getpeer(tmp) == nil then
  324. tolua.setpeer(tmp, {})
  325. end
  326. self.toggleAll = tmp
  327. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  328. end
  329. ---@private
  330. function UIPetContractAttributeView:InitGenerate__18(Root, data)
  331. --[[
  332. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1
  333. --]]
  334. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1").gameObject
  335. if tolua.getpeer(tmp) == nil then
  336. tolua.setpeer(tmp, {})
  337. end
  338. self.toggle1 = tmp
  339. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  340. end
  341. ---@private
  342. function UIPetContractAttributeView:InitGenerate__19(Root, data)
  343. --[[
  344. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/PetLock
  345. --]]
  346. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/PetLock").gameObject
  347. if tolua.getpeer(tmp) == nil then
  348. tolua.setpeer(tmp, {})
  349. end
  350. self.toggle1.petLock = tmp
  351. end
  352. ---@private
  353. function UIPetContractAttributeView:InitGenerate__20(Root, data)
  354. --[[
  355. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/IconPetItem
  356. --]]
  357. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/IconPetItem").gameObject
  358. if tolua.getpeer(tmp) == nil then
  359. tolua.setpeer(tmp, {})
  360. end
  361. self.toggle1.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  362. self.toggle1.iconPetItem.prefabName = "IconPetItem"
  363. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  364. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  365. end
  366. ---@private
  367. function UIPetContractAttributeView:InitGenerate__21(Root, data)
  368. --[[
  369. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2
  370. --]]
  371. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2").gameObject
  372. if tolua.getpeer(tmp) == nil then
  373. tolua.setpeer(tmp, {})
  374. end
  375. self.toggle2 = tmp
  376. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  377. end
  378. ---@private
  379. function UIPetContractAttributeView:InitGenerate__22(Root, data)
  380. --[[
  381. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/PetLock
  382. --]]
  383. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/PetLock").gameObject
  384. if tolua.getpeer(tmp) == nil then
  385. tolua.setpeer(tmp, {})
  386. end
  387. self.toggle2.petLock = tmp
  388. end
  389. ---@private
  390. function UIPetContractAttributeView:InitGenerate__23(Root, data)
  391. --[[
  392. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/IconPetItem
  393. --]]
  394. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/IconPetItem").gameObject
  395. if tolua.getpeer(tmp) == nil then
  396. tolua.setpeer(tmp, {})
  397. end
  398. self.toggle2.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  399. self.toggle2.iconPetItem.prefabName = "IconPetItem"
  400. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  401. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  402. end
  403. ---@private
  404. function UIPetContractAttributeView:InitGenerate__24(Root, data)
  405. --[[
  406. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3
  407. --]]
  408. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3").gameObject
  409. if tolua.getpeer(tmp) == nil then
  410. tolua.setpeer(tmp, {})
  411. end
  412. self.toggle3 = tmp
  413. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  414. end
  415. ---@private
  416. function UIPetContractAttributeView:InitGenerate__25(Root, data)
  417. --[[
  418. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/PetLock
  419. --]]
  420. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/PetLock").gameObject
  421. if tolua.getpeer(tmp) == nil then
  422. tolua.setpeer(tmp, {})
  423. end
  424. self.toggle3.petLock = tmp
  425. end
  426. ---@private
  427. function UIPetContractAttributeView:InitGenerate__26(Root, data)
  428. --[[
  429. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/IconPetItem
  430. --]]
  431. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/IconPetItem").gameObject
  432. if tolua.getpeer(tmp) == nil then
  433. tolua.setpeer(tmp, {})
  434. end
  435. self.toggle3.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  436. self.toggle3.iconPetItem.prefabName = "IconPetItem"
  437. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  438. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  439. end
  440. ---@private
  441. function UIPetContractAttributeView:InitGenerate__27(Root, data)
  442. --[[
  443. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4
  444. --]]
  445. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4").gameObject
  446. if tolua.getpeer(tmp) == nil then
  447. tolua.setpeer(tmp, {})
  448. end
  449. self.toggle4 = tmp
  450. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  451. end
  452. ---@private
  453. function UIPetContractAttributeView:InitGenerate__28(Root, data)
  454. --[[
  455. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/PetLock
  456. --]]
  457. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/PetLock").gameObject
  458. if tolua.getpeer(tmp) == nil then
  459. tolua.setpeer(tmp, {})
  460. end
  461. self.toggle4.petLock = tmp
  462. end
  463. ---@private
  464. function UIPetContractAttributeView:InitGenerate__29(Root, data)
  465. --[[
  466. UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/IconPetItem
  467. --]]
  468. local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/IconPetItem").gameObject
  469. if tolua.getpeer(tmp) == nil then
  470. tolua.setpeer(tmp, {})
  471. end
  472. self.toggle4.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  473. self.toggle4.iconPetItem.prefabName = "IconPetItem"
  474. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  475. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  476. end
  477. ---@private
  478. function UIPetContractAttributeView:GenerateDestroy()
  479. if self.toggle4.iconPetItem.GenerateDestroy ~= nil then
  480. self.toggle4.iconPetItem:GenerateDestroy()
  481. end
  482. if tolua.getpeer(self.toggle4.iconPetItem) ~= nil then
  483. tolua.setpeer(self.toggle4.iconPetItem, nil)
  484. end
  485. if tolua.getpeer(self.toggle4.petLock) ~= nil then
  486. tolua.setpeer(self.toggle4.petLock, nil)
  487. end
  488. if self.toggle3.iconPetItem.GenerateDestroy ~= nil then
  489. self.toggle3.iconPetItem:GenerateDestroy()
  490. end
  491. if tolua.getpeer(self.toggle3.iconPetItem) ~= nil then
  492. tolua.setpeer(self.toggle3.iconPetItem, nil)
  493. end
  494. if tolua.getpeer(self.toggle3.petLock) ~= nil then
  495. tolua.setpeer(self.toggle3.petLock, nil)
  496. end
  497. if self.toggle2.iconPetItem.GenerateDestroy ~= nil then
  498. self.toggle2.iconPetItem:GenerateDestroy()
  499. end
  500. if tolua.getpeer(self.toggle2.iconPetItem) ~= nil then
  501. tolua.setpeer(self.toggle2.iconPetItem, nil)
  502. end
  503. if tolua.getpeer(self.toggle2.petLock) ~= nil then
  504. tolua.setpeer(self.toggle2.petLock, nil)
  505. end
  506. if self.toggle1.iconPetItem.GenerateDestroy ~= nil then
  507. self.toggle1.iconPetItem:GenerateDestroy()
  508. end
  509. if tolua.getpeer(self.toggle1.iconPetItem) ~= nil then
  510. tolua.setpeer(self.toggle1.iconPetItem, nil)
  511. end
  512. if tolua.getpeer(self.toggle1.petLock) ~= nil then
  513. tolua.setpeer(self.toggle1.petLock, nil)
  514. end
  515. if tolua.getpeer(self.addSView.content) ~= nil then
  516. tolua.setpeer(self.addSView.content, nil)
  517. end
  518. if tolua.getpeer(self.baseSView.content) ~= nil then
  519. tolua.setpeer(self.baseSView.content, nil)
  520. end
  521. if tolua.getpeer(self.uIAnimator) ~= nil then
  522. tolua.setpeer(self.uIAnimator, nil)
  523. end
  524. self.uIAnimator = nil
  525. if tolua.getpeer(self.AnyBtn) ~= nil then
  526. tolua.setpeer(self.AnyBtn, nil)
  527. end
  528. self.AnyBtn = nil
  529. if tolua.getpeer(self.window) ~= nil then
  530. tolua.setpeer(self.window, nil)
  531. end
  532. self.window = nil
  533. if tolua.getpeer(self.btnClose) ~= nil then
  534. tolua.setpeer(self.btnClose, nil)
  535. end
  536. self.btnClose = nil
  537. if tolua.getpeer(self.scrollView) ~= nil then
  538. tolua.setpeer(self.scrollView, nil)
  539. end
  540. self.scrollView = nil
  541. if tolua.getpeer(self.baseAttrs) ~= nil then
  542. tolua.setpeer(self.baseAttrs, nil)
  543. end
  544. self.baseAttrs = nil
  545. if tolua.getpeer(self.baseSView) ~= nil then
  546. tolua.setpeer(self.baseSView, nil)
  547. end
  548. self.baseSView = nil
  549. if tolua.getpeer(self.addAttrs) ~= nil then
  550. tolua.setpeer(self.addAttrs, nil)
  551. end
  552. self.addAttrs = nil
  553. if tolua.getpeer(self.addSView) ~= nil then
  554. tolua.setpeer(self.addSView, nil)
  555. end
  556. self.addSView = nil
  557. if tolua.getpeer(self.none) ~= nil then
  558. tolua.setpeer(self.none, nil)
  559. end
  560. self.none = nil
  561. if self.natureAttrItem.GenerateDestroy ~= nil then
  562. self.natureAttrItem:GenerateDestroy()
  563. end
  564. if tolua.getpeer(self.natureAttrItem) ~= nil then
  565. tolua.setpeer(self.natureAttrItem, nil)
  566. end
  567. self.natureAttrItem = nil
  568. if tolua.getpeer(self.noContract) ~= nil then
  569. tolua.setpeer(self.noContract, nil)
  570. end
  571. self.noContract = nil
  572. if tolua.getpeer(self.toggleGroup) ~= nil then
  573. tolua.setpeer(self.toggleGroup, nil)
  574. end
  575. self.toggleGroup = nil
  576. if tolua.getpeer(self.toggleAll) ~= nil then
  577. tolua.setpeer(self.toggleAll, nil)
  578. end
  579. self.toggleAll = nil
  580. if tolua.getpeer(self.toggle1) ~= nil then
  581. tolua.setpeer(self.toggle1, nil)
  582. end
  583. self.toggle1 = nil
  584. if tolua.getpeer(self.toggle2) ~= nil then
  585. tolua.setpeer(self.toggle2, nil)
  586. end
  587. self.toggle2 = nil
  588. if tolua.getpeer(self.toggle3) ~= nil then
  589. tolua.setpeer(self.toggle3, nil)
  590. end
  591. self.toggle3 = nil
  592. if tolua.getpeer(self.toggle4) ~= nil then
  593. tolua.setpeer(self.toggle4, nil)
  594. end
  595. self.toggle4 = nil
  596. self.transform = nil
  597. self.gameObject = nil
  598. self.inited = false
  599. end
  600. return UIPetContractAttributeView