| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- ---@class UIClimbingTowerBattle__Generate_leftTime
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIClimbingTowerBattle__Generate_boardTitle
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@field public text UnityEngine.UI.Text
- ---@class UIClimbingTowerBattle__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private boardTitle UIClimbingTowerBattle__Generate_boardTitle
- ---@field private leftTime UIClimbingTowerBattle__Generate_leftTime
- ---@field private infinite UnityEngine.GameObject
- local UIClimbingTowerBattleView = class("UIClimbingTowerBattleView", require("UIViewBase"))
- function UIClimbingTowerBattleView:ctor()
- end
- ---@private
- function UIClimbingTowerBattleView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIClimbingTowerBattleView: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)
- self:InitGenerate__3(Root,data)
- end
- ---@private
- function UIClimbingTowerBattleView:InitGenerate__1(Root, data)
- --[[
- TopView/UITitle/BoardTitle
- --]]
- local tmp = Root:Find("TopView/UITitle/BoardTitle").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.boardTitle = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIClimbingTowerBattleView:InitGenerate__2(Root, data)
- --[[
- TopView/BattleTime/LeftBattleTime
- --]]
- local tmp = Root:Find("TopView/BattleTime/LeftBattleTime").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.leftTime = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIClimbingTowerBattleView:InitGenerate__3(Root, data)
- --[[
- TopView/BattleTime/infinite
- --]]
- local tmp = Root:Find("TopView/BattleTime/infinite").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.infinite = tmp
- end
- ---@private
- function UIClimbingTowerBattleView:GenerateDestroy()
- if tolua.getpeer(self.boardTitle) ~= nil then
- tolua.setpeer(self.boardTitle, nil)
- end
- self.boardTitle = nil
- if tolua.getpeer(self.leftTime) ~= nil then
- tolua.setpeer(self.leftTime, nil)
- end
- self.leftTime = nil
- if tolua.getpeer(self.infinite) ~= nil then
- tolua.setpeer(self.infinite, nil)
- end
- self.infinite = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIClimbingTowerBattleView
|