| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- ---@class DemonChampRankItem__Generate_rankTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class DemonChampRankItem__Generate_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class DemonChampRankItem__Generate_allianceName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class DemonChampRankItem__Generate_vipIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class DemonChampRankItem__Generate_nameTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class DemonChampRankItem__Generate_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class DemonChampRankItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private button UnityEngine.UI.Button
- ---@field private headItem DemonChampRankItem__Generate_headItem
- ---@field private nameTxt DemonChampRankItem__Generate_nameTxt
- ---@field private vipIcon DemonChampRankItem__Generate_vipIcon
- ---@field private allianceIcon UnityEngine.GameObject
- ---@field private allianceName DemonChampRankItem__Generate_allianceName
- ---@field private number DemonChampRankItem__Generate_number
- ---@field private rankTxt DemonChampRankItem__Generate_rankTxt
- ---@field private rank1 UnityEngine.GameObject
- ---@field private rank2 UnityEngine.GameObject
- ---@field private rank3 UnityEngine.GameObject
- local DemonChampRankItemView = class("DemonChampRankItemView")
- function DemonChampRankItemView:ctor()
- end
- ---@private
- function DemonChampRankItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function DemonChampRankItemView: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)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- self.button = Root:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__2(Root, data)
- --[[
- HeadItem
- --]]
- local tmp = Root:Find("HeadItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
- self.headItem.prefabName = "HeadItem"
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__3(Root, data)
- --[[
- NameTxt
- --]]
- local tmp = Root:Find("NameTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.nameTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__4(Root, data)
- --[[
- VipIcon
- --]]
- local tmp = Root:Find("VipIcon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.vipIcon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__5(Root, data)
- --[[
- Guild/Icon
- --]]
- local tmp = Root:Find("Guild/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.allianceIcon = tmp
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__6(Root, data)
- --[[
- Guild/AllianceName
- --]]
- local tmp = Root:Find("Guild/AllianceName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.allianceName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__7(Root, data)
- --[[
- Dmg/Number
- --]]
- local tmp = Root:Find("Dmg/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__8(Root, data)
- --[[
- RankTxt
- --]]
- local tmp = Root:Find("RankTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rankTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__9(Root, data)
- --[[
- Rank1
- --]]
- local tmp = Root:Find("Rank1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rank1 = tmp
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__10(Root, data)
- --[[
- Rank2
- --]]
- local tmp = Root:Find("Rank2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rank2 = tmp
- end
- ---@private
- function DemonChampRankItemView:InitGenerate__11(Root, data)
- --[[
- Rank3
- --]]
- local tmp = Root:Find("Rank3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rank3 = tmp
- end
- ---@private
- function DemonChampRankItemView:GenerateDestroy()
- if self.headItem.GenerateDestroy ~= nil then
- self.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.headItem) ~= nil then
- tolua.setpeer(self.headItem, nil)
- end
- self.headItem = nil
- if tolua.getpeer(self.nameTxt) ~= nil then
- tolua.setpeer(self.nameTxt, nil)
- end
- self.nameTxt = nil
- if tolua.getpeer(self.vipIcon) ~= nil then
- tolua.setpeer(self.vipIcon, nil)
- end
- self.vipIcon = nil
- if tolua.getpeer(self.allianceIcon) ~= nil then
- tolua.setpeer(self.allianceIcon, nil)
- end
- self.allianceIcon = nil
- if tolua.getpeer(self.allianceName) ~= nil then
- tolua.setpeer(self.allianceName, nil)
- end
- self.allianceName = nil
- if tolua.getpeer(self.number) ~= nil then
- tolua.setpeer(self.number, nil)
- end
- self.number = nil
- if tolua.getpeer(self.rankTxt) ~= nil then
- tolua.setpeer(self.rankTxt, nil)
- end
- self.rankTxt = nil
- if tolua.getpeer(self.rank1) ~= nil then
- tolua.setpeer(self.rank1, nil)
- end
- self.rank1 = nil
- if tolua.getpeer(self.rank2) ~= nil then
- tolua.setpeer(self.rank2, nil)
- end
- self.rank2 = nil
- if tolua.getpeer(self.rank3) ~= nil then
- tolua.setpeer(self.rank3, nil)
- end
- self.rank3 = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return DemonChampRankItemView
|