| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- ---@class UIDojoBadgeUp__Generate_textName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class UIDojoBadgeUp__Generate_icon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIDojoBadgeUp__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private icon UIDojoBadgeUp__Generate_icon
- ---@field private textName UIDojoBadgeUp__Generate_textName
- local UIDojoBadgeUpView = class("UIDojoBadgeUpView", require("UIViewBase"))
- function UIDojoBadgeUpView:ctor()
- end
- ---@private
- function UIDojoBadgeUpView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIDojoBadgeUpView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- if self.super.Init then
- self.super.Init(self)
- end
- local tmp
- self:InitGenerate__1(Root,data)
- self:InitGenerate__2(Root,data)
- end
- ---@private
- function UIDojoBadgeUpView:InitGenerate__1(Root, data)
- --[[
- Window/Badge/Icon
- --]]
- local tmp = Root:Find("Window/Badge/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.icon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIDojoBadgeUpView:InitGenerate__2(Root, data)
- --[[
- Window/Badge/TextName
- --]]
- local tmp = Root:Find("Window/Badge/TextName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.textName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function UIDojoBadgeUpView:GenerateDestroy()
- if tolua.getpeer(self.icon) ~= nil then
- tolua.setpeer(self.icon, nil)
- end
- self.icon = nil
- if tolua.getpeer(self.textName) ~= nil then
- tolua.setpeer(self.textName, nil)
- end
- self.textName = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIDojoBadgeUpView
|