| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- ---@class UIIdolRankItem__Generate_btnSupport
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIIdolRankItem__Generate_hotVal
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIIdolRankItem__Generate_playerName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIIdolRankItem__Generate_vipIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIIdolRankItem__Generate_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIIdolRankItem__Generate_madel03
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIIdolRankItem__Generate_madel02
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIIdolRankItem__Generate_madel01
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIIdolRankItem__Generate_rank
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIIdolRankItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rank UIIdolRankItem__Generate_rank
- ---@field private madel01 UIIdolRankItem__Generate_madel01
- ---@field private madel02 UIIdolRankItem__Generate_madel02
- ---@field private madel03 UIIdolRankItem__Generate_madel03
- ---@field private headItem UIIdolRankItem__Generate_headItem
- ---@field private vipIcon UIIdolRankItem__Generate_vipIcon
- ---@field private playerName UIIdolRankItem__Generate_playerName
- ---@field private hotVal UIIdolRankItem__Generate_hotVal
- ---@field private btnSupport UIIdolRankItem__Generate_btnSupport
- local UIIdolRankItemView = class("UIIdolRankItemView")
- function UIIdolRankItemView:ctor()
- end
- ---@private
- function UIIdolRankItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIIdolRankItemView: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)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__2(Root, data)
- --[[
- Rank
- --]]
- local tmp = Root:Find("Rank").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rank = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__3(Root, data)
- --[[
- Madel01
- --]]
- local tmp = Root:Find("Madel01").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.madel01 = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__4(Root, data)
- --[[
- Madel02
- --]]
- local tmp = Root:Find("Madel02").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.madel02 = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__5(Root, data)
- --[[
- Madel03
- --]]
- local tmp = Root:Find("Madel03").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.madel03 = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__6(Root, data)
- --[[
- PlayerNode/HeadBox/HeadItem
- --]]
- local tmp = Root:Find("PlayerNode/HeadBox/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 UIIdolRankItemView:InitGenerate__7(Root, data)
- --[[
- PlayerNode/VipIcon
- --]]
- local tmp = Root:Find("PlayerNode/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 UIIdolRankItemView:InitGenerate__8(Root, data)
- --[[
- PlayerNode/NameText
- --]]
- local tmp = Root:Find("PlayerNode/NameText").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__9(Root, data)
- --[[
- PlayerNode/HotVal
- --]]
- local tmp = Root:Find("PlayerNode/HotVal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hotVal = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIIdolRankItemView:InitGenerate__10(Root, data)
- --[[
- BtnSupport
- --]]
- local tmp = Root:Find("BtnSupport").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnSupport = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIIdolRankItemView:GenerateDestroy()
- if tolua.getpeer(self.btnSupport) ~= nil then
- tolua.setpeer(self.btnSupport, nil)
- end
- if tolua.getpeer(self.hotVal) ~= nil then
- tolua.setpeer(self.hotVal, nil)
- end
- if tolua.getpeer(self.playerName) ~= nil then
- tolua.setpeer(self.playerName, nil)
- end
- if tolua.getpeer(self.vipIcon) ~= nil then
- tolua.setpeer(self.vipIcon, nil)
- end
- if self.headItem.GenerateDestroy ~= nil then
- self.headItem:GenerateDestroy()
- end
- if tolua.getpeer(self.headItem) ~= nil then
- tolua.setpeer(self.headItem, nil)
- end
- if tolua.getpeer(self.madel03) ~= nil then
- tolua.setpeer(self.madel03, nil)
- end
- if tolua.getpeer(self.madel02) ~= nil then
- tolua.setpeer(self.madel02, nil)
- end
- if tolua.getpeer(self.madel01) ~= nil then
- tolua.setpeer(self.madel01, nil)
- end
- if tolua.getpeer(self.rank) ~= nil then
- tolua.setpeer(self.rank, nil)
- end
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIIdolRankItemView
|