BattleHeadsBox_Generate.lua 30 KB

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