| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- ---@class UIExpeditionBattle__Generate_curLevel
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIExpeditionBattle__Generate_leftTime
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIExpeditionBattle__Generate_mapName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIExpeditionBattle__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private mapName UIExpeditionBattle__Generate_mapName
- ---@field private leftTime UIExpeditionBattle__Generate_leftTime
- ---@field private infinite UnityEngine.GameObject
- ---@field private curLevel UIExpeditionBattle__Generate_curLevel
- local UIExpeditionBattleView = class("UIExpeditionBattleView", require("UIViewBase"))
- function UIExpeditionBattleView:ctor()
- end
- ---@private
- function UIExpeditionBattleView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIExpeditionBattleView: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)
- self:InitGenerate__4(Root,data)
- end
- ---@private
- function UIExpeditionBattleView: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.mapName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIExpeditionBattleView: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 UIExpeditionBattleView: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 UIExpeditionBattleView:InitGenerate__4(Root, data)
- --[[
- TopView/StageNumber/Stage
- --]]
- local tmp = Root:Find("TopView/StageNumber/Stage").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.curLevel = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIExpeditionBattleView:GenerateDestroy()
- if tolua.getpeer(self.mapName) ~= nil then
- tolua.setpeer(self.mapName, nil)
- end
- self.mapName = 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
- if tolua.getpeer(self.curLevel) ~= nil then
- tolua.setpeer(self.curLevel, nil)
- end
- self.curLevel = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIExpeditionBattleView
|