| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- ---@class VoyageRankItem__Generate_scoreTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class VoyageRankItem__Generate_nameTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class VoyageRankItem__Generate_vipIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class VoyageRankItem__Generate_headItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class VoyageRankItem__Generate_rankSp
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uIImageSwitchSprite UIImageSwitchSprite
- ---@class VoyageRankItem__Generate_rankTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class VoyageRankItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rankTxt VoyageRankItem__Generate_rankTxt
- ---@field private rankSp VoyageRankItem__Generate_rankSp
- ---@field private headItem VoyageRankItem__Generate_headItem
- ---@field private vipIcon VoyageRankItem__Generate_vipIcon
- ---@field private nameTxt VoyageRankItem__Generate_nameTxt
- ---@field private scoreTxt VoyageRankItem__Generate_scoreTxt
- local VoyageRankItemView = class("VoyageRankItemView")
- function VoyageRankItemView:ctor()
- end
- ---@private
- function VoyageRankItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function VoyageRankItemView: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)
- end
- ---@private
- function VoyageRankItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function VoyageRankItemView:InitGenerate__2(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 VoyageRankItemView:InitGenerate__3(Root, data)
- --[[
- RankSp
- --]]
- local tmp = Root:Find("RankSp").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rankSp = tmp
- tmp.uIImageSwitchSprite = tmp:GetComponent(Enum.TypeInfo.UIImageSwitchSprite)
- end
- ---@private
- function VoyageRankItemView:InitGenerate__4(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 VoyageRankItemView:InitGenerate__5(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 VoyageRankItemView:InitGenerate__6(Root, data)
- --[[
- PlayerNode/NameTxt
- --]]
- local tmp = Root:Find("PlayerNode/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 VoyageRankItemView:InitGenerate__7(Root, data)
- --[[
- PlayerNode/ScoreTxt
- --]]
- local tmp = Root:Find("PlayerNode/ScoreTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scoreTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function VoyageRankItemView:GenerateDestroy()
- if tolua.getpeer(self.rankTxt) ~= nil then
- tolua.setpeer(self.rankTxt, nil)
- end
- self.rankTxt = nil
- if tolua.getpeer(self.rankSp) ~= nil then
- tolua.setpeer(self.rankSp, nil)
- end
- self.rankSp = nil
- 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.vipIcon) ~= nil then
- tolua.setpeer(self.vipIcon, nil)
- end
- self.vipIcon = nil
- if tolua.getpeer(self.nameTxt) ~= nil then
- tolua.setpeer(self.nameTxt, nil)
- end
- self.nameTxt = nil
- if tolua.getpeer(self.scoreTxt) ~= nil then
- tolua.setpeer(self.scoreTxt, nil)
- end
- self.scoreTxt = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return VoyageRankItemView
|