UIPetBattleView_Generate.lua 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541
  1. ---@class UIPetBattle__Generate_btnOneKeyBattle
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIPetBattle__Generate_btnBack
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIPetBattle__Generate_btnPlayRule
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIPetBattle__Generate_slotBattle
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public slot1 UnityEngine.GameObject
  13. ---@field public slot2 UnityEngine.GameObject
  14. ---@field public slot3 UnityEngine.GameObject
  15. ---@field public slot4 UnityEngine.GameObject
  16. ---@field public slot5 UnityEngine.GameObject
  17. ---@field public slot6 UnityEngine.GameObject
  18. ---@class UIPetBattle__Generate_slotTrigger_slotLock6
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public uIEventTriggerListener UIEventTriggerListener
  21. ---@class UIPetBattle__Generate_slotTrigger_slotLock5
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public uIEventTriggerListener UIEventTriggerListener
  24. ---@class UIPetBattle__Generate_slotTrigger_slotLock4
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public uIEventTriggerListener UIEventTriggerListener
  27. ---@class UIPetBattle__Generate_slotTrigger_slotLock3
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public uIEventTriggerListener UIEventTriggerListener
  30. ---@class UIPetBattle__Generate_slotTrigger_slotLock2
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public uIEventTriggerListener UIEventTriggerListener
  33. ---@class UIPetBattle__Generate_slotTrigger_slotLock1
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public uIEventTriggerListener UIEventTriggerListener
  36. ---@class UIPetBattle__Generate_slotTrigger_slot6
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public rectTransform UnityEngine.RectTransform
  39. ---@field public uIEventTriggerListener UIEventTriggerListener
  40. ---@class UIPetBattle__Generate_slotTrigger_slot5
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public rectTransform UnityEngine.RectTransform
  43. ---@field public uIEventTriggerListener UIEventTriggerListener
  44. ---@class UIPetBattle__Generate_slotTrigger_slot4
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public rectTransform UnityEngine.RectTransform
  47. ---@field public uIEventTriggerListener UIEventTriggerListener
  48. ---@class UIPetBattle__Generate_slotTrigger_slot3
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public rectTransform UnityEngine.RectTransform
  51. ---@field public uIEventTriggerListener UIEventTriggerListener
  52. ---@class UIPetBattle__Generate_slotTrigger_slot2
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public rectTransform UnityEngine.RectTransform
  55. ---@field public uIEventTriggerListener UIEventTriggerListener
  56. ---@class UIPetBattle__Generate_slotTrigger_slot1
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public rectTransform UnityEngine.RectTransform
  59. ---@field public uIEventTriggerListener UIEventTriggerListener
  60. ---@class UIPetBattle__Generate_slotTrigger
  61. ---@field public gameObject UnityEngine.GameObject
  62. ---@field public slot1 UIPetBattle__Generate_slotTrigger_slot1
  63. ---@field public slot2 UIPetBattle__Generate_slotTrigger_slot2
  64. ---@field public slot3 UIPetBattle__Generate_slotTrigger_slot3
  65. ---@field public slot4 UIPetBattle__Generate_slotTrigger_slot4
  66. ---@field public slot5 UIPetBattle__Generate_slotTrigger_slot5
  67. ---@field public slot6 UIPetBattle__Generate_slotTrigger_slot6
  68. ---@field public slot1_lock UnityEngine.GameObject
  69. ---@field public slotLock1 UIPetBattle__Generate_slotTrigger_slotLock1
  70. ---@field public slot2_lock UnityEngine.GameObject
  71. ---@field public slotLock2 UIPetBattle__Generate_slotTrigger_slotLock2
  72. ---@field public slot3_lock UnityEngine.GameObject
  73. ---@field public slotLock3 UIPetBattle__Generate_slotTrigger_slotLock3
  74. ---@field public slot4_lock UnityEngine.GameObject
  75. ---@field public slotLock4 UIPetBattle__Generate_slotTrigger_slotLock4
  76. ---@field public slot5_lock UnityEngine.GameObject
  77. ---@field public slotLock5 UIPetBattle__Generate_slotTrigger_slotLock5
  78. ---@field public slot6_lock UnityEngine.GameObject
  79. ---@field public slotLock6 UIPetBattle__Generate_slotTrigger_slotLock6
  80. ---@class UIPetBattle__Generate_slotEmpty_slot6Btn_text
  81. ---@field public gameObject UnityEngine.GameObject
  82. ---@field public uILocalizeScript UILocalizeScript
  83. ---@class UIPetBattle__Generate_slotEmpty_slot6Btn
  84. ---@field public gameObject UnityEngine.GameObject
  85. ---@field public button UnityEngine.UI.Button
  86. ---@field public text UIPetBattle__Generate_slotEmpty_slot6Btn_text
  87. ---@class UIPetBattle__Generate_slotEmpty_slot5Btn_text
  88. ---@field public gameObject UnityEngine.GameObject
  89. ---@field public uILocalizeScript UILocalizeScript
  90. ---@class UIPetBattle__Generate_slotEmpty_slot5Btn
  91. ---@field public gameObject UnityEngine.GameObject
  92. ---@field public button UnityEngine.UI.Button
  93. ---@field public text UIPetBattle__Generate_slotEmpty_slot5Btn_text
  94. ---@class UIPetBattle__Generate_slotEmpty_slot4Btn_text
  95. ---@field public gameObject UnityEngine.GameObject
  96. ---@field public uILocalizeScript UILocalizeScript
  97. ---@class UIPetBattle__Generate_slotEmpty_slot4Btn
  98. ---@field public gameObject UnityEngine.GameObject
  99. ---@field public button UnityEngine.UI.Button
  100. ---@field public text UIPetBattle__Generate_slotEmpty_slot4Btn_text
  101. ---@class UIPetBattle__Generate_slotEmpty_slot3Btn_text
  102. ---@field public gameObject UnityEngine.GameObject
  103. ---@field public uILocalizeScript UILocalizeScript
  104. ---@class UIPetBattle__Generate_slotEmpty_slot3Btn
  105. ---@field public gameObject UnityEngine.GameObject
  106. ---@field public button UnityEngine.UI.Button
  107. ---@field public text UIPetBattle__Generate_slotEmpty_slot3Btn_text
  108. ---@class UIPetBattle__Generate_slotEmpty_slot2Btn_text
  109. ---@field public gameObject UnityEngine.GameObject
  110. ---@field public uILocalizeScript UILocalizeScript
  111. ---@class UIPetBattle__Generate_slotEmpty_slot2Btn
  112. ---@field public gameObject UnityEngine.GameObject
  113. ---@field public button UnityEngine.UI.Button
  114. ---@field public text UIPetBattle__Generate_slotEmpty_slot2Btn_text
  115. ---@class UIPetBattle__Generate_slotEmpty_slot1Btn_text
  116. ---@field public gameObject UnityEngine.GameObject
  117. ---@field public uILocalizeScript UILocalizeScript
  118. ---@class UIPetBattle__Generate_slotEmpty_slot1Btn
  119. ---@field public gameObject UnityEngine.GameObject
  120. ---@field public button UnityEngine.UI.Button
  121. ---@field public text UIPetBattle__Generate_slotEmpty_slot1Btn_text
  122. ---@class UIPetBattle__Generate_slotEmpty
  123. ---@field public gameObject UnityEngine.GameObject
  124. ---@field public slot1Btn UIPetBattle__Generate_slotEmpty_slot1Btn
  125. ---@field public slot2Btn UIPetBattle__Generate_slotEmpty_slot2Btn
  126. ---@field public slot3Btn UIPetBattle__Generate_slotEmpty_slot3Btn
  127. ---@field public slot4Btn UIPetBattle__Generate_slotEmpty_slot4Btn
  128. ---@field public slot5Btn UIPetBattle__Generate_slotEmpty_slot5Btn
  129. ---@field public slot6Btn UIPetBattle__Generate_slotEmpty_slot6Btn
  130. ---@class UIPetBattle__Generate_slotList_slot6
  131. ---@field public gameObject UnityEngine.GameObject
  132. ---@field public rectTransform UnityEngine.RectTransform
  133. ---@class UIPetBattle__Generate_slotList_slot5
  134. ---@field public gameObject UnityEngine.GameObject
  135. ---@field public rectTransform UnityEngine.RectTransform
  136. ---@class UIPetBattle__Generate_slotList_slot4
  137. ---@field public gameObject UnityEngine.GameObject
  138. ---@field public rectTransform UnityEngine.RectTransform
  139. ---@class UIPetBattle__Generate_slotList_slot3
  140. ---@field public gameObject UnityEngine.GameObject
  141. ---@field public rectTransform UnityEngine.RectTransform
  142. ---@class UIPetBattle__Generate_slotList_slot2
  143. ---@field public gameObject UnityEngine.GameObject
  144. ---@field public rectTransform UnityEngine.RectTransform
  145. ---@class UIPetBattle__Generate_slotList_slot1
  146. ---@field public gameObject UnityEngine.GameObject
  147. ---@field public rectTransform UnityEngine.RectTransform
  148. ---@class UIPetBattle__Generate_slotList
  149. ---@field public gameObject UnityEngine.GameObject
  150. ---@field public slot1 UIPetBattle__Generate_slotList_slot1
  151. ---@field public slot2 UIPetBattle__Generate_slotList_slot2
  152. ---@field public slot3 UIPetBattle__Generate_slotList_slot3
  153. ---@field public slot4 UIPetBattle__Generate_slotList_slot4
  154. ---@field public slot5 UIPetBattle__Generate_slotList_slot5
  155. ---@field public slot6 UIPetBattle__Generate_slotList_slot6
  156. ---@class UIPetBattle__Generate_hero6
  157. ---@field public gameObject UnityEngine.GameObject
  158. ---@field public rectTransform UnityEngine.RectTransform
  159. ---@class UIPetBattle__Generate_hero5
  160. ---@field public gameObject UnityEngine.GameObject
  161. ---@field public rectTransform UnityEngine.RectTransform
  162. ---@class UIPetBattle__Generate_hero4
  163. ---@field public gameObject UnityEngine.GameObject
  164. ---@field public rectTransform UnityEngine.RectTransform
  165. ---@class UIPetBattle__Generate_hero3
  166. ---@field public gameObject UnityEngine.GameObject
  167. ---@field public rectTransform UnityEngine.RectTransform
  168. ---@class UIPetBattle__Generate_hero2
  169. ---@field public gameObject UnityEngine.GameObject
  170. ---@field public rectTransform UnityEngine.RectTransform
  171. ---@class UIPetBattle__Generate_hero1
  172. ---@field public gameObject UnityEngine.GameObject
  173. ---@field public rectTransform UnityEngine.RectTransform
  174. ---@class UIPetBattle__Generate_iconPetItem
  175. ---@field public gameObject UnityEngine.GameObject
  176. ---@field public rectTransform UnityEngine.RectTransform
  177. ---@field public layoutElement UnityEngine.UI.LayoutElement
  178. ---@class UIPetBattle__Generate_scrollview
  179. ---@field public gameObject UnityEngine.GameObject
  180. ---@field public loopGridView SuperScrollView.LoopGridView
  181. ---@class UIPetBattle__Generate_battlePetCount
  182. ---@field public gameObject UnityEngine.GameObject
  183. ---@field public text UnityEngine.UI.Text
  184. ---@class UIPetBattle__Generate_btnFilter
  185. ---@field public gameObject UnityEngine.GameObject
  186. ---@field public button UnityEngine.UI.Button
  187. ---@field public check UnityEngine.GameObject
  188. ---@class UIPetBattle__Generate_AnyBtn
  189. ---@field public gameObject UnityEngine.GameObject
  190. ---@field public button UnityEngine.UI.Button
  191. ---@class UIPetBattle__Generate_uIAnimator
  192. ---@field public gameObject UnityEngine.GameObject
  193. ---@field public animator UnityEngine.Animator
  194. ---@class UIPetBattle__Generate
  195. ---@field private gameObject UnityEngine.GameObject
  196. ---@field private transform UnityEngine.Transform
  197. ---@field private uIAnimator UIPetBattle__Generate_uIAnimator
  198. ---@field private AnyBtn UIPetBattle__Generate_AnyBtn
  199. ---@field private window UnityEngine.GameObject
  200. ---@field private btnFilter UIPetBattle__Generate_btnFilter
  201. ---@field private battlePetCount UIPetBattle__Generate_battlePetCount
  202. ---@field private scrollview UIPetBattle__Generate_scrollview
  203. ---@field private smallPets UnityEngine.GameObject
  204. ---@field private iconPetItem UIPetBattle__Generate_iconPetItem
  205. ---@field private noPets UnityEngine.GameObject
  206. ---@field private top UnityEngine.GameObject
  207. ---@field private roleList UnityEngine.GameObject
  208. ---@field private roleListAnim UnityEngine.GameObject
  209. ---@field private hero1 UIPetBattle__Generate_hero1
  210. ---@field private hero2 UIPetBattle__Generate_hero2
  211. ---@field private hero3 UIPetBattle__Generate_hero3
  212. ---@field private hero4 UIPetBattle__Generate_hero4
  213. ---@field private hero5 UIPetBattle__Generate_hero5
  214. ---@field private hero6 UIPetBattle__Generate_hero6
  215. ---@field private slotList UIPetBattle__Generate_slotList
  216. ---@field private slotEmpty UIPetBattle__Generate_slotEmpty
  217. ---@field private slotTrigger UIPetBattle__Generate_slotTrigger
  218. ---@field private slotBattle UIPetBattle__Generate_slotBattle
  219. ---@field private btnPlayRule UIPetBattle__Generate_btnPlayRule
  220. ---@field private btnBack UIPetBattle__Generate_btnBack
  221. ---@field private btnOneKeyBattle UIPetBattle__Generate_btnOneKeyBattle
  222. ---@field private mask UnityEngine.GameObject
  223. local UIPetBattleView = class("UIPetBattleView", require("UIViewBase"))
  224. function UIPetBattleView:ctor()
  225. end
  226. ---@private
  227. function UIPetBattleView:SetActive(result)
  228. self.gameObject:SetActive(result)
  229. end
  230. ---@private
  231. function UIPetBattleView:InitGenerate(Root, data)
  232. self.transform = Root
  233. self.inited = true
  234. if self.super.Init then
  235. self.super.Init(self)
  236. end
  237. local tmp
  238. self:InitGenerate__1(Root,data)
  239. self:InitGenerate__2(Root,data)
  240. self:InitGenerate__3(Root,data)
  241. self:InitGenerate__4(Root,data)
  242. self:InitGenerate__5(Root,data)
  243. self:InitGenerate__6(Root,data)
  244. self:InitGenerate__7(Root,data)
  245. self:InitGenerate__8(Root,data)
  246. self:InitGenerate__9(Root,data)
  247. self:InitGenerate__10(Root,data)
  248. self:InitGenerate__11(Root,data)
  249. self:InitGenerate__12(Root,data)
  250. self:InitGenerate__13(Root,data)
  251. self:InitGenerate__14(Root,data)
  252. self:InitGenerate__15(Root,data)
  253. self:InitGenerate__16(Root,data)
  254. self:InitGenerate__17(Root,data)
  255. self:InitGenerate__18(Root,data)
  256. self:InitGenerate__19(Root,data)
  257. self:InitGenerate__20(Root,data)
  258. self:InitGenerate__21(Root,data)
  259. self:InitGenerate__22(Root,data)
  260. self:InitGenerate__23(Root,data)
  261. self:InitGenerate__24(Root,data)
  262. self:InitGenerate__25(Root,data)
  263. self:InitGenerate__26(Root,data)
  264. self:InitGenerate__27(Root,data)
  265. self:InitGenerate__28(Root,data)
  266. self:InitGenerate__29(Root,data)
  267. self:InitGenerate__30(Root,data)
  268. self:InitGenerate__31(Root,data)
  269. self:InitGenerate__32(Root,data)
  270. self:InitGenerate__33(Root,data)
  271. self:InitGenerate__34(Root,data)
  272. self:InitGenerate__35(Root,data)
  273. self:InitGenerate__36(Root,data)
  274. self:InitGenerate__37(Root,data)
  275. self:InitGenerate__38(Root,data)
  276. self:InitGenerate__39(Root,data)
  277. self:InitGenerate__40(Root,data)
  278. self:InitGenerate__41(Root,data)
  279. self:InitGenerate__42(Root,data)
  280. self:InitGenerate__43(Root,data)
  281. self:InitGenerate__44(Root,data)
  282. self:InitGenerate__45(Root,data)
  283. self:InitGenerate__46(Root,data)
  284. self:InitGenerate__47(Root,data)
  285. self:InitGenerate__48(Root,data)
  286. self:InitGenerate__49(Root,data)
  287. self:InitGenerate__50(Root,data)
  288. self:InitGenerate__51(Root,data)
  289. self:InitGenerate__52(Root,data)
  290. self:InitGenerate__53(Root,data)
  291. self:InitGenerate__54(Root,data)
  292. self:InitGenerate__55(Root,data)
  293. self:InitGenerate__56(Root,data)
  294. self:InitGenerate__57(Root,data)
  295. self:InitGenerate__58(Root,data)
  296. self:InitGenerate__59(Root,data)
  297. self:InitGenerate__60(Root,data)
  298. self:InitGenerate__61(Root,data)
  299. self:InitGenerate__62(Root,data)
  300. self:InitGenerate__63(Root,data)
  301. self:InitGenerate__64(Root,data)
  302. self:InitGenerate__65(Root,data)
  303. self:InitGenerate__66(Root,data)
  304. self:InitGenerate__67(Root,data)
  305. self:InitGenerate__68(Root,data)
  306. self:InitGenerate__69(Root,data)
  307. end
  308. ---@private
  309. function UIPetBattleView:InitGenerate__1(Root, data)
  310. --[[
  311. UIAnimator
  312. --]]
  313. local tmp = Root:Find("UIAnimator").gameObject
  314. if tolua.getpeer(tmp) == nil then
  315. tolua.setpeer(tmp, {})
  316. end
  317. self.uIAnimator = tmp
  318. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  319. tmp.animator.logWarnings = false
  320. end
  321. ---@private
  322. function UIPetBattleView:InitGenerate__2(Root, data)
  323. --[[
  324. UIAnimator/Alpha
  325. --]]
  326. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  327. if tolua.getpeer(tmp) == nil then
  328. tolua.setpeer(tmp, {})
  329. end
  330. self.AnyBtn = tmp
  331. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  332. end
  333. ---@private
  334. function UIPetBattleView:InitGenerate__3(Root, data)
  335. --[[
  336. UIAnimator/Window
  337. --]]
  338. local tmp = Root:Find("UIAnimator/Window").gameObject
  339. if tolua.getpeer(tmp) == nil then
  340. tolua.setpeer(tmp, {})
  341. end
  342. self.window = tmp
  343. end
  344. ---@private
  345. function UIPetBattleView:InitGenerate__4(Root, data)
  346. --[[
  347. UIAnimator/Window/BottomList/BtnFilter
  348. --]]
  349. local tmp = Root:Find("UIAnimator/Window/BottomList/BtnFilter").gameObject
  350. if tolua.getpeer(tmp) == nil then
  351. tolua.setpeer(tmp, {})
  352. end
  353. self.btnFilter = tmp
  354. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  355. end
  356. ---@private
  357. function UIPetBattleView:InitGenerate__5(Root, data)
  358. --[[
  359. UIAnimator/Window/BottomList/BtnFilter/Check
  360. --]]
  361. local tmp = Root:Find("UIAnimator/Window/BottomList/BtnFilter/Check").gameObject
  362. if tolua.getpeer(tmp) == nil then
  363. tolua.setpeer(tmp, {})
  364. end
  365. self.btnFilter.check = tmp
  366. end
  367. ---@private
  368. function UIPetBattleView:InitGenerate__6(Root, data)
  369. --[[
  370. UIAnimator/Window/BottomList/BattlePetCount/Count
  371. --]]
  372. local tmp = Root:Find("UIAnimator/Window/BottomList/BattlePetCount/Count").gameObject
  373. if tolua.getpeer(tmp) == nil then
  374. tolua.setpeer(tmp, {})
  375. end
  376. self.battlePetCount = tmp
  377. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  378. end
  379. ---@private
  380. function UIPetBattleView:InitGenerate__7(Root, data)
  381. --[[
  382. UIAnimator/Window/BottomList/scrollview
  383. --]]
  384. local tmp = Root:Find("UIAnimator/Window/BottomList/scrollview").gameObject
  385. if tolua.getpeer(tmp) == nil then
  386. tolua.setpeer(tmp, {})
  387. end
  388. self.scrollview = tmp
  389. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  390. end
  391. ---@private
  392. function UIPetBattleView:InitGenerate__8(Root, data)
  393. --[[
  394. UIAnimator/Window/BottomList/scrollview/Viewport/Content
  395. --]]
  396. local tmp = Root:Find("UIAnimator/Window/BottomList/scrollview/Viewport/Content").gameObject
  397. if tolua.getpeer(tmp) == nil then
  398. tolua.setpeer(tmp, {})
  399. end
  400. self.smallPets = tmp
  401. end
  402. ---@private
  403. function UIPetBattleView:InitGenerate__9(Root, data)
  404. --[[
  405. UIAnimator/Window/BottomList/scrollview/Viewport/Content/IconPetItem
  406. --]]
  407. local tmp = Root:Find("UIAnimator/Window/BottomList/scrollview/Viewport/Content/IconPetItem").gameObject
  408. if tolua.getpeer(tmp) == nil then
  409. tolua.setpeer(tmp, {})
  410. end
  411. self.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
  412. self.iconPetItem.prefabName = "IconPetItem"
  413. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  414. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  415. end
  416. ---@private
  417. function UIPetBattleView:InitGenerate__10(Root, data)
  418. --[[
  419. UIAnimator/Window/BottomList/NoPets
  420. --]]
  421. local tmp = Root:Find("UIAnimator/Window/BottomList/NoPets").gameObject
  422. if tolua.getpeer(tmp) == nil then
  423. tolua.setpeer(tmp, {})
  424. end
  425. self.noPets = tmp
  426. end
  427. ---@private
  428. function UIPetBattleView:InitGenerate__11(Root, data)
  429. --[[
  430. UIAnimator/Window/Top
  431. --]]
  432. local tmp = Root:Find("UIAnimator/Window/Top").gameObject
  433. if tolua.getpeer(tmp) == nil then
  434. tolua.setpeer(tmp, {})
  435. end
  436. self.top = tmp
  437. end
  438. ---@private
  439. function UIPetBattleView:InitGenerate__12(Root, data)
  440. --[[
  441. UIAnimator/Window/Top/RoleList
  442. --]]
  443. local tmp = Root:Find("UIAnimator/Window/Top/RoleList").gameObject
  444. if tolua.getpeer(tmp) == nil then
  445. tolua.setpeer(tmp, {})
  446. end
  447. self.roleList = tmp
  448. end
  449. ---@private
  450. function UIPetBattleView:InitGenerate__13(Root, data)
  451. --[[
  452. UIAnimator/Window/Top/RoleList/RoleListAnim
  453. --]]
  454. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim").gameObject
  455. if tolua.getpeer(tmp) == nil then
  456. tolua.setpeer(tmp, {})
  457. end
  458. self.roleListAnim = tmp
  459. end
  460. ---@private
  461. function UIPetBattleView:InitGenerate__14(Root, data)
  462. --[[
  463. UIAnimator/Window/Top/RoleList/RoleListAnim/Role1
  464. --]]
  465. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role1").gameObject
  466. if tolua.getpeer(tmp) == nil then
  467. tolua.setpeer(tmp, {})
  468. end
  469. self.hero1 = tmp
  470. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  471. end
  472. ---@private
  473. function UIPetBattleView:InitGenerate__15(Root, data)
  474. --[[
  475. UIAnimator/Window/Top/RoleList/RoleListAnim/Role2
  476. --]]
  477. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role2").gameObject
  478. if tolua.getpeer(tmp) == nil then
  479. tolua.setpeer(tmp, {})
  480. end
  481. self.hero2 = tmp
  482. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  483. end
  484. ---@private
  485. function UIPetBattleView:InitGenerate__16(Root, data)
  486. --[[
  487. UIAnimator/Window/Top/RoleList/RoleListAnim/Role3
  488. --]]
  489. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role3").gameObject
  490. if tolua.getpeer(tmp) == nil then
  491. tolua.setpeer(tmp, {})
  492. end
  493. self.hero3 = tmp
  494. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  495. end
  496. ---@private
  497. function UIPetBattleView:InitGenerate__17(Root, data)
  498. --[[
  499. UIAnimator/Window/Top/RoleList/RoleListAnim/Role4
  500. --]]
  501. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role4").gameObject
  502. if tolua.getpeer(tmp) == nil then
  503. tolua.setpeer(tmp, {})
  504. end
  505. self.hero4 = tmp
  506. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  507. end
  508. ---@private
  509. function UIPetBattleView:InitGenerate__18(Root, data)
  510. --[[
  511. UIAnimator/Window/Top/RoleList/RoleListAnim/Role5
  512. --]]
  513. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role5").gameObject
  514. if tolua.getpeer(tmp) == nil then
  515. tolua.setpeer(tmp, {})
  516. end
  517. self.hero5 = tmp
  518. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  519. end
  520. ---@private
  521. function UIPetBattleView:InitGenerate__19(Root, data)
  522. --[[
  523. UIAnimator/Window/Top/RoleList/RoleListAnim/Role6
  524. --]]
  525. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/RoleListAnim/Role6").gameObject
  526. if tolua.getpeer(tmp) == nil then
  527. tolua.setpeer(tmp, {})
  528. end
  529. self.hero6 = tmp
  530. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  531. end
  532. ---@private
  533. function UIPetBattleView:InitGenerate__20(Root, data)
  534. --[[
  535. UIAnimator/Window/Top/RoleList/SlotList
  536. --]]
  537. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList").gameObject
  538. if tolua.getpeer(tmp) == nil then
  539. tolua.setpeer(tmp, {})
  540. end
  541. self.slotList = tmp
  542. end
  543. ---@private
  544. function UIPetBattleView:InitGenerate__21(Root, data)
  545. --[[
  546. UIAnimator/Window/Top/RoleList/SlotList/Slot1
  547. --]]
  548. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot1").gameObject
  549. if tolua.getpeer(tmp) == nil then
  550. tolua.setpeer(tmp, {})
  551. end
  552. self.slotList.slot1 = tmp
  553. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  554. end
  555. ---@private
  556. function UIPetBattleView:InitGenerate__22(Root, data)
  557. --[[
  558. UIAnimator/Window/Top/RoleList/SlotList/Slot2
  559. --]]
  560. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot2").gameObject
  561. if tolua.getpeer(tmp) == nil then
  562. tolua.setpeer(tmp, {})
  563. end
  564. self.slotList.slot2 = tmp
  565. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  566. end
  567. ---@private
  568. function UIPetBattleView:InitGenerate__23(Root, data)
  569. --[[
  570. UIAnimator/Window/Top/RoleList/SlotList/Slot3
  571. --]]
  572. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot3").gameObject
  573. if tolua.getpeer(tmp) == nil then
  574. tolua.setpeer(tmp, {})
  575. end
  576. self.slotList.slot3 = tmp
  577. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  578. end
  579. ---@private
  580. function UIPetBattleView:InitGenerate__24(Root, data)
  581. --[[
  582. UIAnimator/Window/Top/RoleList/SlotList/Slot4
  583. --]]
  584. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot4").gameObject
  585. if tolua.getpeer(tmp) == nil then
  586. tolua.setpeer(tmp, {})
  587. end
  588. self.slotList.slot4 = tmp
  589. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  590. end
  591. ---@private
  592. function UIPetBattleView:InitGenerate__25(Root, data)
  593. --[[
  594. UIAnimator/Window/Top/RoleList/SlotList/Slot5
  595. --]]
  596. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot5").gameObject
  597. if tolua.getpeer(tmp) == nil then
  598. tolua.setpeer(tmp, {})
  599. end
  600. self.slotList.slot5 = tmp
  601. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  602. end
  603. ---@private
  604. function UIPetBattleView:InitGenerate__26(Root, data)
  605. --[[
  606. UIAnimator/Window/Top/RoleList/SlotList/Slot6
  607. --]]
  608. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotList/Slot6").gameObject
  609. if tolua.getpeer(tmp) == nil then
  610. tolua.setpeer(tmp, {})
  611. end
  612. self.slotList.slot6 = tmp
  613. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  614. end
  615. ---@private
  616. function UIPetBattleView:InitGenerate__27(Root, data)
  617. --[[
  618. UIAnimator/Window/Top/RoleList/SlotEmpty
  619. --]]
  620. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty").gameObject
  621. if tolua.getpeer(tmp) == nil then
  622. tolua.setpeer(tmp, {})
  623. end
  624. self.slotEmpty = tmp
  625. end
  626. ---@private
  627. function UIPetBattleView:InitGenerate__28(Root, data)
  628. --[[
  629. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot1/BtnBattle
  630. --]]
  631. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot1/BtnBattle").gameObject
  632. if tolua.getpeer(tmp) == nil then
  633. tolua.setpeer(tmp, {})
  634. end
  635. self.slotEmpty.slot1Btn = tmp
  636. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  637. end
  638. ---@private
  639. function UIPetBattleView:InitGenerate__29(Root, data)
  640. --[[
  641. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot1/BtnBattle/Text
  642. --]]
  643. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot1/BtnBattle/Text").gameObject
  644. if tolua.getpeer(tmp) == nil then
  645. tolua.setpeer(tmp, {})
  646. end
  647. self.slotEmpty.slot1Btn.text = tmp
  648. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  649. end
  650. ---@private
  651. function UIPetBattleView:InitGenerate__30(Root, data)
  652. --[[
  653. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot2/BtnBattle
  654. --]]
  655. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot2/BtnBattle").gameObject
  656. if tolua.getpeer(tmp) == nil then
  657. tolua.setpeer(tmp, {})
  658. end
  659. self.slotEmpty.slot2Btn = tmp
  660. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  661. end
  662. ---@private
  663. function UIPetBattleView:InitGenerate__31(Root, data)
  664. --[[
  665. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot2/BtnBattle/Text
  666. --]]
  667. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot2/BtnBattle/Text").gameObject
  668. if tolua.getpeer(tmp) == nil then
  669. tolua.setpeer(tmp, {})
  670. end
  671. self.slotEmpty.slot2Btn.text = tmp
  672. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  673. end
  674. ---@private
  675. function UIPetBattleView:InitGenerate__32(Root, data)
  676. --[[
  677. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot3/BtnBattle
  678. --]]
  679. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot3/BtnBattle").gameObject
  680. if tolua.getpeer(tmp) == nil then
  681. tolua.setpeer(tmp, {})
  682. end
  683. self.slotEmpty.slot3Btn = tmp
  684. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  685. end
  686. ---@private
  687. function UIPetBattleView:InitGenerate__33(Root, data)
  688. --[[
  689. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot3/BtnBattle/Text
  690. --]]
  691. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot3/BtnBattle/Text").gameObject
  692. if tolua.getpeer(tmp) == nil then
  693. tolua.setpeer(tmp, {})
  694. end
  695. self.slotEmpty.slot3Btn.text = tmp
  696. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  697. end
  698. ---@private
  699. function UIPetBattleView:InitGenerate__34(Root, data)
  700. --[[
  701. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot4/BtnBattle
  702. --]]
  703. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot4/BtnBattle").gameObject
  704. if tolua.getpeer(tmp) == nil then
  705. tolua.setpeer(tmp, {})
  706. end
  707. self.slotEmpty.slot4Btn = tmp
  708. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  709. end
  710. ---@private
  711. function UIPetBattleView:InitGenerate__35(Root, data)
  712. --[[
  713. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot4/BtnBattle/Text
  714. --]]
  715. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot4/BtnBattle/Text").gameObject
  716. if tolua.getpeer(tmp) == nil then
  717. tolua.setpeer(tmp, {})
  718. end
  719. self.slotEmpty.slot4Btn.text = tmp
  720. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  721. end
  722. ---@private
  723. function UIPetBattleView:InitGenerate__36(Root, data)
  724. --[[
  725. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot5/BtnBattle
  726. --]]
  727. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot5/BtnBattle").gameObject
  728. if tolua.getpeer(tmp) == nil then
  729. tolua.setpeer(tmp, {})
  730. end
  731. self.slotEmpty.slot5Btn = tmp
  732. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  733. end
  734. ---@private
  735. function UIPetBattleView:InitGenerate__37(Root, data)
  736. --[[
  737. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot5/BtnBattle/Text
  738. --]]
  739. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot5/BtnBattle/Text").gameObject
  740. if tolua.getpeer(tmp) == nil then
  741. tolua.setpeer(tmp, {})
  742. end
  743. self.slotEmpty.slot5Btn.text = tmp
  744. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  745. end
  746. ---@private
  747. function UIPetBattleView:InitGenerate__38(Root, data)
  748. --[[
  749. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot6/BtnBattle
  750. --]]
  751. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot6/BtnBattle").gameObject
  752. if tolua.getpeer(tmp) == nil then
  753. tolua.setpeer(tmp, {})
  754. end
  755. self.slotEmpty.slot6Btn = tmp
  756. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  757. end
  758. ---@private
  759. function UIPetBattleView:InitGenerate__39(Root, data)
  760. --[[
  761. UIAnimator/Window/Top/RoleList/SlotEmpty/Slot6/BtnBattle/Text
  762. --]]
  763. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotEmpty/Slot6/BtnBattle/Text").gameObject
  764. if tolua.getpeer(tmp) == nil then
  765. tolua.setpeer(tmp, {})
  766. end
  767. self.slotEmpty.slot6Btn.text = tmp
  768. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  769. end
  770. ---@private
  771. function UIPetBattleView:InitGenerate__40(Root, data)
  772. --[[
  773. UIAnimator/Window/Top/RoleList/SlotTrigger
  774. --]]
  775. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger").gameObject
  776. if tolua.getpeer(tmp) == nil then
  777. tolua.setpeer(tmp, {})
  778. end
  779. self.slotTrigger = tmp
  780. end
  781. ---@private
  782. function UIPetBattleView:InitGenerate__41(Root, data)
  783. --[[
  784. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1
  785. --]]
  786. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1").gameObject
  787. if tolua.getpeer(tmp) == nil then
  788. tolua.setpeer(tmp, {})
  789. end
  790. self.slotTrigger.slot1 = tmp
  791. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  792. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  793. end
  794. ---@private
  795. function UIPetBattleView:InitGenerate__42(Root, data)
  796. --[[
  797. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2
  798. --]]
  799. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2").gameObject
  800. if tolua.getpeer(tmp) == nil then
  801. tolua.setpeer(tmp, {})
  802. end
  803. self.slotTrigger.slot2 = tmp
  804. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  805. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  806. end
  807. ---@private
  808. function UIPetBattleView:InitGenerate__43(Root, data)
  809. --[[
  810. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3
  811. --]]
  812. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3").gameObject
  813. if tolua.getpeer(tmp) == nil then
  814. tolua.setpeer(tmp, {})
  815. end
  816. self.slotTrigger.slot3 = tmp
  817. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  818. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  819. end
  820. ---@private
  821. function UIPetBattleView:InitGenerate__44(Root, data)
  822. --[[
  823. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4
  824. --]]
  825. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4").gameObject
  826. if tolua.getpeer(tmp) == nil then
  827. tolua.setpeer(tmp, {})
  828. end
  829. self.slotTrigger.slot4 = tmp
  830. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  831. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  832. end
  833. ---@private
  834. function UIPetBattleView:InitGenerate__45(Root, data)
  835. --[[
  836. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5
  837. --]]
  838. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5").gameObject
  839. if tolua.getpeer(tmp) == nil then
  840. tolua.setpeer(tmp, {})
  841. end
  842. self.slotTrigger.slot5 = tmp
  843. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  844. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  845. end
  846. ---@private
  847. function UIPetBattleView:InitGenerate__46(Root, data)
  848. --[[
  849. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6
  850. --]]
  851. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6").gameObject
  852. if tolua.getpeer(tmp) == nil then
  853. tolua.setpeer(tmp, {})
  854. end
  855. self.slotTrigger.slot6 = tmp
  856. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  857. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  858. end
  859. ---@private
  860. function UIPetBattleView:InitGenerate__47(Root, data)
  861. --[[
  862. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1_lock
  863. --]]
  864. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1_lock").gameObject
  865. if tolua.getpeer(tmp) == nil then
  866. tolua.setpeer(tmp, {})
  867. end
  868. self.slotTrigger.slot1_lock = tmp
  869. end
  870. ---@private
  871. function UIPetBattleView:InitGenerate__48(Root, data)
  872. --[[
  873. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1_lock/lockbg
  874. --]]
  875. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot1_lock/lockbg").gameObject
  876. if tolua.getpeer(tmp) == nil then
  877. tolua.setpeer(tmp, {})
  878. end
  879. self.slotTrigger.slotLock1 = tmp
  880. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  881. end
  882. ---@private
  883. function UIPetBattleView:InitGenerate__49(Root, data)
  884. --[[
  885. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2_lock
  886. --]]
  887. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2_lock").gameObject
  888. if tolua.getpeer(tmp) == nil then
  889. tolua.setpeer(tmp, {})
  890. end
  891. self.slotTrigger.slot2_lock = tmp
  892. end
  893. ---@private
  894. function UIPetBattleView:InitGenerate__50(Root, data)
  895. --[[
  896. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2_lock/lockbg
  897. --]]
  898. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot2_lock/lockbg").gameObject
  899. if tolua.getpeer(tmp) == nil then
  900. tolua.setpeer(tmp, {})
  901. end
  902. self.slotTrigger.slotLock2 = tmp
  903. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  904. end
  905. ---@private
  906. function UIPetBattleView:InitGenerate__51(Root, data)
  907. --[[
  908. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3_lock
  909. --]]
  910. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3_lock").gameObject
  911. if tolua.getpeer(tmp) == nil then
  912. tolua.setpeer(tmp, {})
  913. end
  914. self.slotTrigger.slot3_lock = tmp
  915. end
  916. ---@private
  917. function UIPetBattleView:InitGenerate__52(Root, data)
  918. --[[
  919. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3_lock/lockbg
  920. --]]
  921. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot3_lock/lockbg").gameObject
  922. if tolua.getpeer(tmp) == nil then
  923. tolua.setpeer(tmp, {})
  924. end
  925. self.slotTrigger.slotLock3 = tmp
  926. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  927. end
  928. ---@private
  929. function UIPetBattleView:InitGenerate__53(Root, data)
  930. --[[
  931. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4_lock
  932. --]]
  933. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4_lock").gameObject
  934. if tolua.getpeer(tmp) == nil then
  935. tolua.setpeer(tmp, {})
  936. end
  937. self.slotTrigger.slot4_lock = tmp
  938. end
  939. ---@private
  940. function UIPetBattleView:InitGenerate__54(Root, data)
  941. --[[
  942. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4_lock/lockbg
  943. --]]
  944. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot4_lock/lockbg").gameObject
  945. if tolua.getpeer(tmp) == nil then
  946. tolua.setpeer(tmp, {})
  947. end
  948. self.slotTrigger.slotLock4 = tmp
  949. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  950. end
  951. ---@private
  952. function UIPetBattleView:InitGenerate__55(Root, data)
  953. --[[
  954. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5_lock
  955. --]]
  956. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5_lock").gameObject
  957. if tolua.getpeer(tmp) == nil then
  958. tolua.setpeer(tmp, {})
  959. end
  960. self.slotTrigger.slot5_lock = tmp
  961. end
  962. ---@private
  963. function UIPetBattleView:InitGenerate__56(Root, data)
  964. --[[
  965. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5_lock/lockbg
  966. --]]
  967. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot5_lock/lockbg").gameObject
  968. if tolua.getpeer(tmp) == nil then
  969. tolua.setpeer(tmp, {})
  970. end
  971. self.slotTrigger.slotLock5 = tmp
  972. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  973. end
  974. ---@private
  975. function UIPetBattleView:InitGenerate__57(Root, data)
  976. --[[
  977. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6_lock
  978. --]]
  979. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6_lock").gameObject
  980. if tolua.getpeer(tmp) == nil then
  981. tolua.setpeer(tmp, {})
  982. end
  983. self.slotTrigger.slot6_lock = tmp
  984. end
  985. ---@private
  986. function UIPetBattleView:InitGenerate__58(Root, data)
  987. --[[
  988. UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6_lock/lockbg
  989. --]]
  990. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotTrigger/Slot6_lock/lockbg").gameObject
  991. if tolua.getpeer(tmp) == nil then
  992. tolua.setpeer(tmp, {})
  993. end
  994. self.slotTrigger.slotLock6 = tmp
  995. tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
  996. end
  997. ---@private
  998. function UIPetBattleView:InitGenerate__59(Root, data)
  999. --[[
  1000. UIAnimator/Window/Top/RoleList/SlotBattle
  1001. --]]
  1002. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle").gameObject
  1003. if tolua.getpeer(tmp) == nil then
  1004. tolua.setpeer(tmp, {})
  1005. end
  1006. self.slotBattle = tmp
  1007. end
  1008. ---@private
  1009. function UIPetBattleView:InitGenerate__60(Root, data)
  1010. --[[
  1011. UIAnimator/Window/Top/RoleList/SlotBattle/Slot1
  1012. --]]
  1013. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot1").gameObject
  1014. if tolua.getpeer(tmp) == nil then
  1015. tolua.setpeer(tmp, {})
  1016. end
  1017. self.slotBattle.slot1 = tmp
  1018. end
  1019. ---@private
  1020. function UIPetBattleView:InitGenerate__61(Root, data)
  1021. --[[
  1022. UIAnimator/Window/Top/RoleList/SlotBattle/Slot2
  1023. --]]
  1024. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot2").gameObject
  1025. if tolua.getpeer(tmp) == nil then
  1026. tolua.setpeer(tmp, {})
  1027. end
  1028. self.slotBattle.slot2 = tmp
  1029. end
  1030. ---@private
  1031. function UIPetBattleView:InitGenerate__62(Root, data)
  1032. --[[
  1033. UIAnimator/Window/Top/RoleList/SlotBattle/Slot3
  1034. --]]
  1035. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot3").gameObject
  1036. if tolua.getpeer(tmp) == nil then
  1037. tolua.setpeer(tmp, {})
  1038. end
  1039. self.slotBattle.slot3 = tmp
  1040. end
  1041. ---@private
  1042. function UIPetBattleView:InitGenerate__63(Root, data)
  1043. --[[
  1044. UIAnimator/Window/Top/RoleList/SlotBattle/Slot4
  1045. --]]
  1046. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot4").gameObject
  1047. if tolua.getpeer(tmp) == nil then
  1048. tolua.setpeer(tmp, {})
  1049. end
  1050. self.slotBattle.slot4 = tmp
  1051. end
  1052. ---@private
  1053. function UIPetBattleView:InitGenerate__64(Root, data)
  1054. --[[
  1055. UIAnimator/Window/Top/RoleList/SlotBattle/Slot5
  1056. --]]
  1057. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot5").gameObject
  1058. if tolua.getpeer(tmp) == nil then
  1059. tolua.setpeer(tmp, {})
  1060. end
  1061. self.slotBattle.slot5 = tmp
  1062. end
  1063. ---@private
  1064. function UIPetBattleView:InitGenerate__65(Root, data)
  1065. --[[
  1066. UIAnimator/Window/Top/RoleList/SlotBattle/Slot6
  1067. --]]
  1068. local tmp = Root:Find("UIAnimator/Window/Top/RoleList/SlotBattle/Slot6").gameObject
  1069. if tolua.getpeer(tmp) == nil then
  1070. tolua.setpeer(tmp, {})
  1071. end
  1072. self.slotBattle.slot6 = tmp
  1073. end
  1074. ---@private
  1075. function UIPetBattleView:InitGenerate__66(Root, data)
  1076. --[[
  1077. UIAnimator/Window/BtnBg/BtnPlayRule
  1078. --]]
  1079. local tmp = Root:Find("UIAnimator/Window/BtnBg/BtnPlayRule").gameObject
  1080. if tolua.getpeer(tmp) == nil then
  1081. tolua.setpeer(tmp, {})
  1082. end
  1083. self.btnPlayRule = tmp
  1084. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  1085. end
  1086. ---@private
  1087. function UIPetBattleView:InitGenerate__67(Root, data)
  1088. --[[
  1089. UIAnimator/Window/BtnBack
  1090. --]]
  1091. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  1092. if tolua.getpeer(tmp) == nil then
  1093. tolua.setpeer(tmp, {})
  1094. end
  1095. self.btnBack = tmp
  1096. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  1097. end
  1098. ---@private
  1099. function UIPetBattleView:InitGenerate__68(Root, data)
  1100. --[[
  1101. UIAnimator/Window/BtnOneKeyBattle
  1102. --]]
  1103. local tmp = Root:Find("UIAnimator/Window/BtnOneKeyBattle").gameObject
  1104. if tolua.getpeer(tmp) == nil then
  1105. tolua.setpeer(tmp, {})
  1106. end
  1107. self.btnOneKeyBattle = tmp
  1108. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  1109. end
  1110. ---@private
  1111. function UIPetBattleView:InitGenerate__69(Root, data)
  1112. --[[
  1113. UIAnimator/Window/Mask
  1114. --]]
  1115. local tmp = Root:Find("UIAnimator/Window/Mask").gameObject
  1116. if tolua.getpeer(tmp) == nil then
  1117. tolua.setpeer(tmp, {})
  1118. end
  1119. self.mask = tmp
  1120. self.mask:SetActive(false)
  1121. end
  1122. ---@private
  1123. function UIPetBattleView:GenerateDestroy()
  1124. if tolua.getpeer(self.slotBattle.slot6) ~= nil then
  1125. tolua.setpeer(self.slotBattle.slot6, nil)
  1126. end
  1127. if tolua.getpeer(self.slotBattle.slot5) ~= nil then
  1128. tolua.setpeer(self.slotBattle.slot5, nil)
  1129. end
  1130. if tolua.getpeer(self.slotBattle.slot4) ~= nil then
  1131. tolua.setpeer(self.slotBattle.slot4, nil)
  1132. end
  1133. if tolua.getpeer(self.slotBattle.slot3) ~= nil then
  1134. tolua.setpeer(self.slotBattle.slot3, nil)
  1135. end
  1136. if tolua.getpeer(self.slotBattle.slot2) ~= nil then
  1137. tolua.setpeer(self.slotBattle.slot2, nil)
  1138. end
  1139. if tolua.getpeer(self.slotBattle.slot1) ~= nil then
  1140. tolua.setpeer(self.slotBattle.slot1, nil)
  1141. end
  1142. if tolua.getpeer(self.slotTrigger.slotLock6) ~= nil then
  1143. tolua.setpeer(self.slotTrigger.slotLock6, nil)
  1144. end
  1145. if tolua.getpeer(self.slotTrigger.slot6_lock) ~= nil then
  1146. tolua.setpeer(self.slotTrigger.slot6_lock, nil)
  1147. end
  1148. if tolua.getpeer(self.slotTrigger.slotLock5) ~= nil then
  1149. tolua.setpeer(self.slotTrigger.slotLock5, nil)
  1150. end
  1151. if tolua.getpeer(self.slotTrigger.slot5_lock) ~= nil then
  1152. tolua.setpeer(self.slotTrigger.slot5_lock, nil)
  1153. end
  1154. if tolua.getpeer(self.slotTrigger.slotLock4) ~= nil then
  1155. tolua.setpeer(self.slotTrigger.slotLock4, nil)
  1156. end
  1157. if tolua.getpeer(self.slotTrigger.slot4_lock) ~= nil then
  1158. tolua.setpeer(self.slotTrigger.slot4_lock, nil)
  1159. end
  1160. if tolua.getpeer(self.slotTrigger.slotLock3) ~= nil then
  1161. tolua.setpeer(self.slotTrigger.slotLock3, nil)
  1162. end
  1163. if tolua.getpeer(self.slotTrigger.slot3_lock) ~= nil then
  1164. tolua.setpeer(self.slotTrigger.slot3_lock, nil)
  1165. end
  1166. if tolua.getpeer(self.slotTrigger.slotLock2) ~= nil then
  1167. tolua.setpeer(self.slotTrigger.slotLock2, nil)
  1168. end
  1169. if tolua.getpeer(self.slotTrigger.slot2_lock) ~= nil then
  1170. tolua.setpeer(self.slotTrigger.slot2_lock, nil)
  1171. end
  1172. if tolua.getpeer(self.slotTrigger.slotLock1) ~= nil then
  1173. tolua.setpeer(self.slotTrigger.slotLock1, nil)
  1174. end
  1175. if tolua.getpeer(self.slotTrigger.slot1_lock) ~= nil then
  1176. tolua.setpeer(self.slotTrigger.slot1_lock, nil)
  1177. end
  1178. if tolua.getpeer(self.slotTrigger.slot6) ~= nil then
  1179. tolua.setpeer(self.slotTrigger.slot6, nil)
  1180. end
  1181. if tolua.getpeer(self.slotTrigger.slot5) ~= nil then
  1182. tolua.setpeer(self.slotTrigger.slot5, nil)
  1183. end
  1184. if tolua.getpeer(self.slotTrigger.slot4) ~= nil then
  1185. tolua.setpeer(self.slotTrigger.slot4, nil)
  1186. end
  1187. if tolua.getpeer(self.slotTrigger.slot3) ~= nil then
  1188. tolua.setpeer(self.slotTrigger.slot3, nil)
  1189. end
  1190. if tolua.getpeer(self.slotTrigger.slot2) ~= nil then
  1191. tolua.setpeer(self.slotTrigger.slot2, nil)
  1192. end
  1193. if tolua.getpeer(self.slotTrigger.slot1) ~= nil then
  1194. tolua.setpeer(self.slotTrigger.slot1, nil)
  1195. end
  1196. if tolua.getpeer(self.slotEmpty.slot6Btn.text) ~= nil then
  1197. tolua.setpeer(self.slotEmpty.slot6Btn.text, nil)
  1198. end
  1199. if tolua.getpeer(self.slotEmpty.slot6Btn) ~= nil then
  1200. tolua.setpeer(self.slotEmpty.slot6Btn, nil)
  1201. end
  1202. if tolua.getpeer(self.slotEmpty.slot5Btn.text) ~= nil then
  1203. tolua.setpeer(self.slotEmpty.slot5Btn.text, nil)
  1204. end
  1205. if tolua.getpeer(self.slotEmpty.slot5Btn) ~= nil then
  1206. tolua.setpeer(self.slotEmpty.slot5Btn, nil)
  1207. end
  1208. if tolua.getpeer(self.slotEmpty.slot4Btn.text) ~= nil then
  1209. tolua.setpeer(self.slotEmpty.slot4Btn.text, nil)
  1210. end
  1211. if tolua.getpeer(self.slotEmpty.slot4Btn) ~= nil then
  1212. tolua.setpeer(self.slotEmpty.slot4Btn, nil)
  1213. end
  1214. if tolua.getpeer(self.slotEmpty.slot3Btn.text) ~= nil then
  1215. tolua.setpeer(self.slotEmpty.slot3Btn.text, nil)
  1216. end
  1217. if tolua.getpeer(self.slotEmpty.slot3Btn) ~= nil then
  1218. tolua.setpeer(self.slotEmpty.slot3Btn, nil)
  1219. end
  1220. if tolua.getpeer(self.slotEmpty.slot2Btn.text) ~= nil then
  1221. tolua.setpeer(self.slotEmpty.slot2Btn.text, nil)
  1222. end
  1223. if tolua.getpeer(self.slotEmpty.slot2Btn) ~= nil then
  1224. tolua.setpeer(self.slotEmpty.slot2Btn, nil)
  1225. end
  1226. if tolua.getpeer(self.slotEmpty.slot1Btn.text) ~= nil then
  1227. tolua.setpeer(self.slotEmpty.slot1Btn.text, nil)
  1228. end
  1229. if tolua.getpeer(self.slotEmpty.slot1Btn) ~= nil then
  1230. tolua.setpeer(self.slotEmpty.slot1Btn, nil)
  1231. end
  1232. if tolua.getpeer(self.slotList.slot6) ~= nil then
  1233. tolua.setpeer(self.slotList.slot6, nil)
  1234. end
  1235. if tolua.getpeer(self.slotList.slot5) ~= nil then
  1236. tolua.setpeer(self.slotList.slot5, nil)
  1237. end
  1238. if tolua.getpeer(self.slotList.slot4) ~= nil then
  1239. tolua.setpeer(self.slotList.slot4, nil)
  1240. end
  1241. if tolua.getpeer(self.slotList.slot3) ~= nil then
  1242. tolua.setpeer(self.slotList.slot3, nil)
  1243. end
  1244. if tolua.getpeer(self.slotList.slot2) ~= nil then
  1245. tolua.setpeer(self.slotList.slot2, nil)
  1246. end
  1247. if tolua.getpeer(self.slotList.slot1) ~= nil then
  1248. tolua.setpeer(self.slotList.slot1, nil)
  1249. end
  1250. if tolua.getpeer(self.btnFilter.check) ~= nil then
  1251. tolua.setpeer(self.btnFilter.check, nil)
  1252. end
  1253. if tolua.getpeer(self.uIAnimator) ~= nil then
  1254. tolua.setpeer(self.uIAnimator, nil)
  1255. end
  1256. self.uIAnimator = nil
  1257. if tolua.getpeer(self.AnyBtn) ~= nil then
  1258. tolua.setpeer(self.AnyBtn, nil)
  1259. end
  1260. self.AnyBtn = nil
  1261. if tolua.getpeer(self.window) ~= nil then
  1262. tolua.setpeer(self.window, nil)
  1263. end
  1264. self.window = nil
  1265. if tolua.getpeer(self.btnFilter) ~= nil then
  1266. tolua.setpeer(self.btnFilter, nil)
  1267. end
  1268. self.btnFilter = nil
  1269. if tolua.getpeer(self.battlePetCount) ~= nil then
  1270. tolua.setpeer(self.battlePetCount, nil)
  1271. end
  1272. self.battlePetCount = nil
  1273. if tolua.getpeer(self.scrollview) ~= nil then
  1274. tolua.setpeer(self.scrollview, nil)
  1275. end
  1276. self.scrollview = nil
  1277. if tolua.getpeer(self.smallPets) ~= nil then
  1278. tolua.setpeer(self.smallPets, nil)
  1279. end
  1280. self.smallPets = nil
  1281. if self.iconPetItem.GenerateDestroy ~= nil then
  1282. self.iconPetItem:GenerateDestroy()
  1283. end
  1284. if tolua.getpeer(self.iconPetItem) ~= nil then
  1285. tolua.setpeer(self.iconPetItem, nil)
  1286. end
  1287. self.iconPetItem = nil
  1288. if tolua.getpeer(self.noPets) ~= nil then
  1289. tolua.setpeer(self.noPets, nil)
  1290. end
  1291. self.noPets = nil
  1292. if tolua.getpeer(self.top) ~= nil then
  1293. tolua.setpeer(self.top, nil)
  1294. end
  1295. self.top = nil
  1296. if tolua.getpeer(self.roleList) ~= nil then
  1297. tolua.setpeer(self.roleList, nil)
  1298. end
  1299. self.roleList = nil
  1300. if tolua.getpeer(self.roleListAnim) ~= nil then
  1301. tolua.setpeer(self.roleListAnim, nil)
  1302. end
  1303. self.roleListAnim = nil
  1304. if tolua.getpeer(self.hero1) ~= nil then
  1305. tolua.setpeer(self.hero1, nil)
  1306. end
  1307. self.hero1 = nil
  1308. if tolua.getpeer(self.hero2) ~= nil then
  1309. tolua.setpeer(self.hero2, nil)
  1310. end
  1311. self.hero2 = nil
  1312. if tolua.getpeer(self.hero3) ~= nil then
  1313. tolua.setpeer(self.hero3, nil)
  1314. end
  1315. self.hero3 = nil
  1316. if tolua.getpeer(self.hero4) ~= nil then
  1317. tolua.setpeer(self.hero4, nil)
  1318. end
  1319. self.hero4 = nil
  1320. if tolua.getpeer(self.hero5) ~= nil then
  1321. tolua.setpeer(self.hero5, nil)
  1322. end
  1323. self.hero5 = nil
  1324. if tolua.getpeer(self.hero6) ~= nil then
  1325. tolua.setpeer(self.hero6, nil)
  1326. end
  1327. self.hero6 = nil
  1328. if tolua.getpeer(self.slotList) ~= nil then
  1329. tolua.setpeer(self.slotList, nil)
  1330. end
  1331. self.slotList = nil
  1332. if tolua.getpeer(self.slotEmpty) ~= nil then
  1333. tolua.setpeer(self.slotEmpty, nil)
  1334. end
  1335. self.slotEmpty = nil
  1336. if tolua.getpeer(self.slotTrigger) ~= nil then
  1337. tolua.setpeer(self.slotTrigger, nil)
  1338. end
  1339. self.slotTrigger = nil
  1340. if tolua.getpeer(self.slotBattle) ~= nil then
  1341. tolua.setpeer(self.slotBattle, nil)
  1342. end
  1343. self.slotBattle = nil
  1344. if tolua.getpeer(self.btnPlayRule) ~= nil then
  1345. tolua.setpeer(self.btnPlayRule, nil)
  1346. end
  1347. self.btnPlayRule = nil
  1348. if tolua.getpeer(self.btnBack) ~= nil then
  1349. tolua.setpeer(self.btnBack, nil)
  1350. end
  1351. self.btnBack = nil
  1352. if tolua.getpeer(self.btnOneKeyBattle) ~= nil then
  1353. tolua.setpeer(self.btnOneKeyBattle, nil)
  1354. end
  1355. self.btnOneKeyBattle = nil
  1356. if tolua.getpeer(self.mask) ~= nil then
  1357. tolua.setpeer(self.mask, nil)
  1358. end
  1359. self.mask = nil
  1360. self.transform = nil
  1361. self.gameObject = nil
  1362. self.inited = false
  1363. end
  1364. return UIPetBattleView