---@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