| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- ---@class BattleBossBlood__Generate_leftTime
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BattleBossBlood__Generate_buffTemp_num
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class BattleBossBlood__Generate_buffTemp_image
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleBossBlood__Generate_buffTemp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public image BattleBossBlood__Generate_buffTemp_image
- ---@field public num BattleBossBlood__Generate_buffTemp_num
- ---@class BattleBossBlood__Generate_bossNature
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleBossBlood__Generate_bossIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@field public button UnityEngine.UI.Button
- ---@class BattleBossBlood__Generate_bossName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BattleBossBlood__Generate_bossBlood
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleBossBlood__Generate_bossBlood2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class BattleBossBlood__Generate_bossBloodNode
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class BattleBossBlood__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private bossBloodNode BattleBossBlood__Generate_bossBloodNode
- ---@field private bossBlood2 BattleBossBlood__Generate_bossBlood2
- ---@field private bossBlood BattleBossBlood__Generate_bossBlood
- ---@field private bloodNum UnityEngine.GameObject
- ---@field private bossName BattleBossBlood__Generate_bossName
- ---@field private bossIcon BattleBossBlood__Generate_bossIcon
- ---@field private bossNature BattleBossBlood__Generate_bossNature
- ---@field private buffBox UnityEngine.GameObject
- ---@field private buffTemp BattleBossBlood__Generate_buffTemp
- ---@field private leftTime BattleBossBlood__Generate_leftTime
- ---@field private infinite UnityEngine.GameObject
- local BattleBossBloodView = class("BattleBossBloodView")
- function BattleBossBloodView:ctor()
- end
- ---@private
- function BattleBossBloodView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function BattleBossBloodView: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)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__1(Root, data)
- --[[
- BossBloodAnim
- --]]
- local tmp = Root:Find("BossBloodAnim").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossBloodNode = tmp
- tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
- tmp.animator.logWarnings = false
- end
- ---@private
- function BattleBossBloodView:InitGenerate__2(Root, data)
- --[[
- BossBloodAnim/BossBlood/BloodBar2
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBlood/BloodBar2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossBlood2 = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__3(Root, data)
- --[[
- BossBloodAnim/BossBlood/BloodBar
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBlood/BloodBar").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossBlood = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__4(Root, data)
- --[[
- BossBloodAnim/BossBlood/num
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBlood/num").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bloodNum = tmp
- end
- ---@private
- function BattleBossBloodView:InitGenerate__5(Root, data)
- --[[
- BossBloodAnim/BossBlood/BossName/TextName
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBlood/BossName/TextName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__6(Root, data)
- --[[
- BossBloodAnim/BossHead/headboss
- --]]
- local tmp = Root:Find("BossBloodAnim/BossHead/headboss").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossIcon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__7(Root, data)
- --[[
- BossBloodAnim/BossHead/nature
- --]]
- local tmp = Root:Find("BossBloodAnim/BossHead/nature").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bossNature = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__8(Root, data)
- --[[
- BossBloodAnim/BossBuff
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBuff").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.buffBox = tmp
- end
- ---@private
- function BattleBossBloodView:InitGenerate__9(Root, data)
- --[[
- BossBloodAnim/BossBuff/BuffItem
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBuff/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 BattleBossBloodView:InitGenerate__10(Root, data)
- --[[
- BossBloodAnim/BossBuff/BuffItem/Image
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBuff/BuffItem/Image").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.buffTemp.image = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__11(Root, data)
- --[[
- BossBloodAnim/BossBuff/BuffItem/num
- --]]
- local tmp = Root:Find("BossBloodAnim/BossBuff/BuffItem/num").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.buffTemp.num = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__12(Root, data)
- --[[
- BossBloodAnim/BattleTime/LeftBattleTime
- --]]
- local tmp = Root:Find("BossBloodAnim/BattleTime/LeftBattleTime").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.leftTime = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BattleBossBloodView:InitGenerate__13(Root, data)
- --[[
- BossBloodAnim/BattleTime/infinite
- --]]
- local tmp = Root:Find("BossBloodAnim/BattleTime/infinite").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.infinite = tmp
- end
- ---@private
- function BattleBossBloodView:GenerateDestroy()
- if tolua.getpeer(self.buffTemp.num) ~= nil then
- tolua.setpeer(self.buffTemp.num, nil)
- end
- if tolua.getpeer(self.buffTemp.image) ~= nil then
- tolua.setpeer(self.buffTemp.image, nil)
- end
- if tolua.getpeer(self.bossBloodNode) ~= nil then
- tolua.setpeer(self.bossBloodNode, nil)
- end
- self.bossBloodNode = nil
- if tolua.getpeer(self.bossBlood2) ~= nil then
- tolua.setpeer(self.bossBlood2, nil)
- end
- self.bossBlood2 = nil
- if tolua.getpeer(self.bossBlood) ~= nil then
- tolua.setpeer(self.bossBlood, nil)
- end
- self.bossBlood = nil
- if tolua.getpeer(self.bloodNum) ~= nil then
- tolua.setpeer(self.bloodNum, nil)
- end
- self.bloodNum = nil
- if tolua.getpeer(self.bossName) ~= nil then
- tolua.setpeer(self.bossName, nil)
- end
- self.bossName = nil
- if tolua.getpeer(self.bossIcon) ~= nil then
- tolua.setpeer(self.bossIcon, nil)
- end
- self.bossIcon = nil
- if tolua.getpeer(self.bossNature) ~= nil then
- tolua.setpeer(self.bossNature, nil)
- end
- self.bossNature = nil
- if tolua.getpeer(self.buffBox) ~= nil then
- tolua.setpeer(self.buffBox, nil)
- end
- self.buffBox = nil
- if tolua.getpeer(self.buffTemp) ~= nil then
- tolua.setpeer(self.buffTemp, nil)
- end
- self.buffTemp = nil
- if tolua.getpeer(self.leftTime) ~= nil then
- tolua.setpeer(self.leftTime, nil)
- end
- self.leftTime = nil
- if tolua.getpeer(self.infinite) ~= nil then
- tolua.setpeer(self.infinite, nil)
- end
- self.infinite = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return BattleBossBloodView
|