---@class BtnLv__Generate_text ---@field public gameObject UnityEngine.GameObject ---@field public text TMPro.TextMeshProUGUI ---@field public uILocalizeScript UILocalizeScript ---@class BtnLv__Generate ---@field private gameObject UnityEngine.GameObject ---@field private transform UnityEngine.Transform ---@field private button UnityEngine.UI.Button ---@field private off UnityEngine.GameObject ---@field private on UnityEngine.GameObject ---@field private text BtnLv__Generate_text ---@field private activeted UnityEngine.GameObject ---@field private redPoint UnityEngine.GameObject local BtnLvView = class("BtnLvView") function BtnLvView:ctor() end ---@private function BtnLvView:SetActive(result) self.gameObject:SetActive(result) end ---@private function BtnLvView: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) end ---@private function BtnLvView:InitGenerate__1(Root, data) --[[ Root --]] self.button = Root:GetComponent(Enum.TypeInfo.Button) end ---@private function BtnLvView:InitGenerate__2(Root, data) --[[ Off --]] local tmp = Root:Find("Off").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.off = tmp end ---@private function BtnLvView:InitGenerate__3(Root, data) --[[ On --]] local tmp = Root:Find("On").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.on = tmp end ---@private function BtnLvView:InitGenerate__4(Root, data) --[[ Text --]] local tmp = Root:Find("Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.text = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI) tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function BtnLvView:InitGenerate__5(Root, data) --[[ Activeted --]] local tmp = Root:Find("Activeted").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activeted = tmp end ---@private function BtnLvView:InitGenerate__6(Root, data) --[[ UIRedPointRP --]] local tmp = Root:Find("UIRedPointRP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.redPoint = tmp end ---@private function BtnLvView:GenerateDestroy() if tolua.getpeer(self.text) ~= nil then tolua.setpeer(self.text, nil) end if tolua.getpeer(self.on) ~= nil then tolua.setpeer(self.on, nil) end if tolua.getpeer(self.off) ~= nil then tolua.setpeer(self.off, nil) end if tolua.getpeer(self.activeted) ~= nil then tolua.setpeer(self.activeted, nil) end self.activeted = nil if tolua.getpeer(self.redPoint) ~= nil then tolua.setpeer(self.redPoint, nil) end self.redPoint = nil self.transform = nil self.gameObject = nil self.inited = false end return BtnLvView