| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956 |
- ---@class BattleHeadsBox__Generate_num
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class BattleHeadsBox__Generate_image
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_buffTemp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class BattleHeadsBox__Generate_playerDetailNode_jobIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_spBar
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_hpBar
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_playerName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BattleHeadsBox__Generate_bg
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_heroHalf
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_petNode_petIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerDetailNode_petNode
- ---@field public gameObject UnityEngine.GameObject
- ---@field public petIcon BattleHeadsBox__Generate_playerDetailNode_petNode_petIcon
- ---@class BattleHeadsBox__Generate_playerDetailNode
- ---@field public gameObject UnityEngine.GameObject
- ---@field public petNode BattleHeadsBox__Generate_playerDetailNode_petNode
- ---@field public heroHalf BattleHeadsBox__Generate_playerDetailNode_heroHalf
- ---@field public playerName BattleHeadsBox__Generate_playerDetailNode_playerName
- ---@field public hpBar BattleHeadsBox__Generate_playerDetailNode_hpBar
- ---@field public spBar BattleHeadsBox__Generate_playerDetailNode_spBar
- ---@field public jobIcon BattleHeadsBox__Generate_playerDetailNode_jobIcon
- ---@field public buffBox UnityEngine.GameObject
- ---@field public deadNode UnityEngine.GameObject
- ---@class BattleHeadsBox__Generate_playerNode4_headBoxItemNew_sp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode4_headBoxItemNew_hp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode4_headBoxItemNew_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class BattleHeadsBox__Generate_playerNode4_headBoxItemNew
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headItem BattleHeadsBox__Generate_playerNode4_headBoxItemNew_headItem
- ---@field public hp BattleHeadsBox__Generate_playerNode4_headBoxItemNew_hp
- ---@field public sp BattleHeadsBox__Generate_playerNode4_headBoxItemNew_sp
- ---@field public deadNode UnityEngine.GameObject
- ---@class BattleHeadsBox__Generate_playerNode4
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headPosItem UnityEngine.GameObject
- ---@field public headBoxItemNew BattleHeadsBox__Generate_playerNode4_headBoxItemNew
- ---@class BattleHeadsBox__Generate_playerNode3_headBoxItemNew_sp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode3_headBoxItemNew_hp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode3_headBoxItemNew_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class BattleHeadsBox__Generate_playerNode3_headBoxItemNew
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headItem BattleHeadsBox__Generate_playerNode3_headBoxItemNew_headItem
- ---@field public hp BattleHeadsBox__Generate_playerNode3_headBoxItemNew_hp
- ---@field public sp BattleHeadsBox__Generate_playerNode3_headBoxItemNew_sp
- ---@field public deadNode UnityEngine.GameObject
- ---@class BattleHeadsBox__Generate_playerNode3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headPosItem UnityEngine.GameObject
- ---@field public headBoxItemNew BattleHeadsBox__Generate_playerNode3_headBoxItemNew
- ---@class BattleHeadsBox__Generate_playerNode2_headBoxItemNew_sp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode2_headBoxItemNew_hp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode2_headBoxItemNew_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class BattleHeadsBox__Generate_playerNode2_headBoxItemNew
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headItem BattleHeadsBox__Generate_playerNode2_headBoxItemNew_headItem
- ---@field public hp BattleHeadsBox__Generate_playerNode2_headBoxItemNew_hp
- ---@field public sp BattleHeadsBox__Generate_playerNode2_headBoxItemNew_sp
- ---@field public deadNode UnityEngine.GameObject
- ---@class BattleHeadsBox__Generate_playerNode2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headPosItem UnityEngine.GameObject
- ---@field public headBoxItemNew BattleHeadsBox__Generate_playerNode2_headBoxItemNew
- ---@class BattleHeadsBox__Generate_playerNode1_headBoxItemNew_sp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode1_headBoxItemNew_hp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleHeadsBox__Generate_playerNode1_headBoxItemNew_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class BattleHeadsBox__Generate_playerNode1_headBoxItemNew
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headItem BattleHeadsBox__Generate_playerNode1_headBoxItemNew_headItem
- ---@field public hp BattleHeadsBox__Generate_playerNode1_headBoxItemNew_hp
- ---@field public sp BattleHeadsBox__Generate_playerNode1_headBoxItemNew_sp
- ---@field public deadNode UnityEngine.GameObject
- ---@class BattleHeadsBox__Generate_playerNode1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public headPosItem UnityEngine.GameObject
- ---@field public headBoxItemNew BattleHeadsBox__Generate_playerNode1_headBoxItemNew
- ---@class BattleHeadsBox__Generate_headsBoxAnim
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class BattleHeadsBox__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private headsBoxAnim BattleHeadsBox__Generate_headsBoxAnim
- ---@field private playerNode1 BattleHeadsBox__Generate_playerNode1
- ---@field private playerNode2 BattleHeadsBox__Generate_playerNode2
- ---@field private playerNode3 BattleHeadsBox__Generate_playerNode3
- ---@field private playerNode4 BattleHeadsBox__Generate_playerNode4
- ---@field private playerDetailNode BattleHeadsBox__Generate_playerDetailNode
- ---@field private bg BattleHeadsBox__Generate_bg
- ---@field private buffTemp BattleHeadsBox__Generate_buffTemp
- ---@field private image BattleHeadsBox__Generate_image
- ---@field private num BattleHeadsBox__Generate_num
- local BattleHeadsBoxView = class("BattleHeadsBoxView")
- function BattleHeadsBoxView:ctor()
- end
- ---@private
- function BattleHeadsBoxView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- local tmp
- self:InitGenerate__1(Root,data)
- self:InitGenerate__2(Root,data)
- self:InitGenerate__3(Root,data)
- self:InitGenerate__4(Root,data)
- self:InitGenerate__5(Root,data)
- self:InitGenerate__6(Root,data)
- self:InitGenerate__7(Root,data)
- self:InitGenerate__8(Root,data)
- self:InitGenerate__9(Root,data)
- self:InitGenerate__10(Root,data)
- self:InitGenerate__11(Root,data)
- self:InitGenerate__12(Root,data)
- self:InitGenerate__13(Root,data)
- self:InitGenerate__14(Root,data)
- self:InitGenerate__15(Root,data)
- self:InitGenerate__16(Root,data)
- self:InitGenerate__17(Root,data)
- self:InitGenerate__18(Root,data)
- self:InitGenerate__19(Root,data)
- self:InitGenerate__20(Root,data)
- self:InitGenerate__21(Root,data)
- self:InitGenerate__22(Root,data)
- self:InitGenerate__23(Root,data)
- self:InitGenerate__24(Root,data)
- self:InitGenerate__25(Root,data)
- self:InitGenerate__26(Root,data)
- self:InitGenerate__27(Root,data)
- self:InitGenerate__28(Root,data)
- self:InitGenerate__29(Root,data)
- self:InitGenerate__30(Root,data)
- self:InitGenerate__31(Root,data)
- self:InitGenerate__32(Root,data)
- self:InitGenerate__33(Root,data)
- self:InitGenerate__34(Root,data)
- self:InitGenerate__35(Root,data)
- self:InitGenerate__36(Root,data)
- self:InitGenerate__37(Root,data)
- self:InitGenerate__38(Root,data)
- self:InitGenerate__39(Root,data)
- self:InitGenerate__40(Root,data)
- self:InitGenerate__41(Root,data)
- self:InitGenerate__42(Root,data)
- self:InitGenerate__43(Root,data)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__1(Root, data)
- --[[
- HeadsBoxAnim
- --]]
- local tmp = Root:Find("HeadsBoxAnim").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.headsBoxAnim = tmp
- tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
- tmp.animator.logWarnings = false
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__2(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1 = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__3(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadPosItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadPosItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headPosItem = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__4(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headBoxItemNew = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__5(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/HeadItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/HeadItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
- self.playerNode1.headBoxItemNew.headItem.prefabName = "HeadItem"
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__6(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Bar/HP/bloodImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headBoxItemNew.hp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__7(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Bar/Sp/spImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Bar/Sp/spImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headBoxItemNew.sp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__8(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Dead
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player1/HeadBoxItemNew/Dead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode1.headBoxItemNew.deadNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__9(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2 = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__10(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadPosItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadPosItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headPosItem = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__11(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headBoxItemNew = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__12(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/HeadItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/HeadItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
- self.playerNode2.headBoxItemNew.headItem.prefabName = "HeadItem"
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__13(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Bar/HP/bloodImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headBoxItemNew.hp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__14(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Bar/Sp/spImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Bar/Sp/spImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headBoxItemNew.sp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__15(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Dead
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player2/HeadBoxItemNew/Dead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode2.headBoxItemNew.deadNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__16(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3 = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__17(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadPosItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadPosItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headPosItem = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__18(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headBoxItemNew = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__19(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/HeadItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/HeadItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
- self.playerNode3.headBoxItemNew.headItem.prefabName = "HeadItem"
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__20(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Bar/HP/bloodImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headBoxItemNew.hp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__21(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Bar/Sp/spImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Bar/Sp/spImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headBoxItemNew.sp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__22(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Dead
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player3/HeadBoxItemNew/Dead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode3.headBoxItemNew.deadNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__23(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4 = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__24(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadPosItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadPosItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headPosItem = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__25(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headBoxItemNew = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__26(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/HeadItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/HeadItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headBoxItemNew.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
- self.playerNode4.headBoxItemNew.headItem.prefabName = "HeadItem"
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__27(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Bar/HP/bloodImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Bar/HP/bloodImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headBoxItemNew.hp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__28(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Bar/Sp/spImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Bar/Sp/spImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headBoxItemNew.sp = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__29(Root, data)
- --[[
- HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Dead
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerList/Player4/HeadBoxItemNew/Dead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode4.headBoxItemNew.deadNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__30(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__31(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/PetBox
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/PetBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.petNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__32(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/PetBox/Mask/PetIcon
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/PetBox/Mask/PetIcon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.petNode.petIcon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__33(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/HeroBox/HeroHalf
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/HeroBox/HeroHalf").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.heroHalf = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__34(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/NameBox/bg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/NameBox/bg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bg = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__35(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/NameBox/Text
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/NameBox/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.playerName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__36(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/Bar/HP/bloodImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/Bar/HP/bloodImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.hpBar = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__37(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/Bar/Sp/spImg
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/Bar/Sp/spImg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.spBar = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__38(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/JobIcon
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/JobIcon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.jobIcon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__39(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/BuffBox
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/BuffBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.buffBox = tmp
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__40(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.buffTemp = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__41(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem/Image
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem/Image").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.image = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__42(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem/num
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/BuffBox/BuffItem/num").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.num = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function BattleHeadsBoxView:InitGenerate__43(Root, data)
- --[[
- HeadsBoxAnim/PlayerBox/Player/Dead
- --]]
- local tmp = Root:Find("HeadsBoxAnim/PlayerBox/Player/Dead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerDetailNode.deadNode = tmp
- end
- ---@private
- function BattleHeadsBoxView:GenerateDestroy()
- if tolua.getpeer(self.playerDetailNode.deadNode) ~= nil then
- tolua.setpeer(self.playerDetailNode.deadNode, nil)
- end
- if tolua.getpeer(self.playerDetailNode.buffBox) ~= nil then
- tolua.setpeer(self.playerDetailNode.buffBox, nil)
- end
- if tolua.getpeer(self.playerDetailNode.jobIcon) ~= nil then
- tolua.setpeer(self.playerDetailNode.jobIcon, nil)
- end
- if tolua.getpeer(self.playerDetailNode.spBar) ~= nil then
- tolua.setpeer(self.playerDetailNode.spBar, nil)
- end
- if tolua.getpeer(self.playerDetailNode.hpBar) ~= nil then
- tolua.setpeer(self.playerDetailNode.hpBar, nil)
- end
- if tolua.getpeer(self.playerDetailNode.playerName) ~= nil then
- tolua.setpeer(self.playerDetailNode.playerName, nil)
- end
- if tolua.getpeer(self.playerDetailNode.heroHalf) ~= nil then
- tolua.setpeer(self.playerDetailNode.heroHalf, nil)
- end
- if tolua.getpeer(self.playerDetailNode.petNode.petIcon) ~= nil then
- tolua.setpeer(self.playerDetailNode.petNode.petIcon, nil)
- end
- if tolua.getpeer(self.playerDetailNode.petNode) ~= nil then
- tolua.setpeer(self.playerDetailNode.petNode, nil)
- end
- if tolua.getpeer(self.playerNode4.headBoxItemNew.deadNode) ~= nil then
- tolua.setpeer(self.playerNode4.headBoxItemNew.deadNode, nil)
- end
- if tolua.getpeer(self.playerNode4.headBoxItemNew.sp) ~= nil then
- tolua.setpeer(self.playerNode4.headBoxItemNew.sp, nil)
- end
- if tolua.getpeer(self.playerNode4.headBoxItemNew.hp) ~= nil then
- tolua.setpeer(self.playerNode4.headBoxItemNew.hp, nil)
- end
- if self.playerNode4.headBoxItemNew.headItem.GenerateDestroy ~= nil then
- self.playerNode4.headBoxItemNew.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.playerNode4.headBoxItemNew.headItem) ~= nil then
- tolua.setpeer(self.playerNode4.headBoxItemNew.headItem, nil)
- end
- if tolua.getpeer(self.playerNode4.headBoxItemNew) ~= nil then
- tolua.setpeer(self.playerNode4.headBoxItemNew, nil)
- end
- if tolua.getpeer(self.playerNode4.headPosItem) ~= nil then
- tolua.setpeer(self.playerNode4.headPosItem, nil)
- end
- if tolua.getpeer(self.playerNode3.headBoxItemNew.deadNode) ~= nil then
- tolua.setpeer(self.playerNode3.headBoxItemNew.deadNode, nil)
- end
- if tolua.getpeer(self.playerNode3.headBoxItemNew.sp) ~= nil then
- tolua.setpeer(self.playerNode3.headBoxItemNew.sp, nil)
- end
- if tolua.getpeer(self.playerNode3.headBoxItemNew.hp) ~= nil then
- tolua.setpeer(self.playerNode3.headBoxItemNew.hp, nil)
- end
- if self.playerNode3.headBoxItemNew.headItem.GenerateDestroy ~= nil then
- self.playerNode3.headBoxItemNew.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.playerNode3.headBoxItemNew.headItem) ~= nil then
- tolua.setpeer(self.playerNode3.headBoxItemNew.headItem, nil)
- end
- if tolua.getpeer(self.playerNode3.headBoxItemNew) ~= nil then
- tolua.setpeer(self.playerNode3.headBoxItemNew, nil)
- end
- if tolua.getpeer(self.playerNode3.headPosItem) ~= nil then
- tolua.setpeer(self.playerNode3.headPosItem, nil)
- end
- if tolua.getpeer(self.playerNode2.headBoxItemNew.deadNode) ~= nil then
- tolua.setpeer(self.playerNode2.headBoxItemNew.deadNode, nil)
- end
- if tolua.getpeer(self.playerNode2.headBoxItemNew.sp) ~= nil then
- tolua.setpeer(self.playerNode2.headBoxItemNew.sp, nil)
- end
- if tolua.getpeer(self.playerNode2.headBoxItemNew.hp) ~= nil then
- tolua.setpeer(self.playerNode2.headBoxItemNew.hp, nil)
- end
- if self.playerNode2.headBoxItemNew.headItem.GenerateDestroy ~= nil then
- self.playerNode2.headBoxItemNew.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.playerNode2.headBoxItemNew.headItem) ~= nil then
- tolua.setpeer(self.playerNode2.headBoxItemNew.headItem, nil)
- end
- if tolua.getpeer(self.playerNode2.headBoxItemNew) ~= nil then
- tolua.setpeer(self.playerNode2.headBoxItemNew, nil)
- end
- if tolua.getpeer(self.playerNode2.headPosItem) ~= nil then
- tolua.setpeer(self.playerNode2.headPosItem, nil)
- end
- if tolua.getpeer(self.playerNode1.headBoxItemNew.deadNode) ~= nil then
- tolua.setpeer(self.playerNode1.headBoxItemNew.deadNode, nil)
- end
- if tolua.getpeer(self.playerNode1.headBoxItemNew.sp) ~= nil then
- tolua.setpeer(self.playerNode1.headBoxItemNew.sp, nil)
- end
- if tolua.getpeer(self.playerNode1.headBoxItemNew.hp) ~= nil then
- tolua.setpeer(self.playerNode1.headBoxItemNew.hp, nil)
- end
- if self.playerNode1.headBoxItemNew.headItem.GenerateDestroy ~= nil then
- self.playerNode1.headBoxItemNew.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.playerNode1.headBoxItemNew.headItem) ~= nil then
- tolua.setpeer(self.playerNode1.headBoxItemNew.headItem, nil)
- end
- if tolua.getpeer(self.playerNode1.headBoxItemNew) ~= nil then
- tolua.setpeer(self.playerNode1.headBoxItemNew, nil)
- end
- if tolua.getpeer(self.playerNode1.headPosItem) ~= nil then
- tolua.setpeer(self.playerNode1.headPosItem, nil)
- end
- if tolua.getpeer(self.headsBoxAnim) ~= nil then
- tolua.setpeer(self.headsBoxAnim, nil)
- end
- self.headsBoxAnim = nil
- if tolua.getpeer(self.playerNode1) ~= nil then
- tolua.setpeer(self.playerNode1, nil)
- end
- self.playerNode1 = nil
- if tolua.getpeer(self.playerNode2) ~= nil then
- tolua.setpeer(self.playerNode2, nil)
- end
- self.playerNode2 = nil
- if tolua.getpeer(self.playerNode3) ~= nil then
- tolua.setpeer(self.playerNode3, nil)
- end
- self.playerNode3 = nil
- if tolua.getpeer(self.playerNode4) ~= nil then
- tolua.setpeer(self.playerNode4, nil)
- end
- self.playerNode4 = nil
- if tolua.getpeer(self.playerDetailNode) ~= nil then
- tolua.setpeer(self.playerDetailNode, nil)
- end
- self.playerDetailNode = nil
- if tolua.getpeer(self.bg) ~= nil then
- tolua.setpeer(self.bg, nil)
- end
- self.bg = nil
- if tolua.getpeer(self.buffTemp) ~= nil then
- tolua.setpeer(self.buffTemp, nil)
- end
- self.buffTemp = nil
- if tolua.getpeer(self.image) ~= nil then
- tolua.setpeer(self.image, nil)
- end
- self.image = nil
- if tolua.getpeer(self.num) ~= nil then
- tolua.setpeer(self.num, nil)
- end
- self.num = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return BattleHeadsBoxView
|