2023-07-14 19:35:33 +00:00
|
|
|
local XUiDoomsdayFubenMainGameMovie = XLuaUiManager.Register(XLuaUi, "UiDoomsdayFubenMainGameMovie")
|
|
|
|
|
2024-09-01 20:49:41 +00:00
|
|
|
function XUiDoomsdayFubenMainGameMovie:OnStart(stageId, isFinishEnd)
|
2023-07-14 19:35:33 +00:00
|
|
|
local stageData = XDataCenter.DoomsdayManager.GetStageData(stageId)
|
|
|
|
|
2024-09-01 20:49:41 +00:00
|
|
|
if isFinishEnd then
|
|
|
|
self.TxtTitle.text = CsXTextManagerGetText("DoomsdayFinishEndTitle")
|
|
|
|
self.TxtContent.text = stageData:GetEndingDesc()
|
2023-07-14 19:35:33 +00:00
|
|
|
else
|
|
|
|
self.TxtTitle.text = CsXTextManagerGetText("DoomsdayThemeTitle", stageData:GetProperty("_Day"))
|
2024-09-01 20:49:41 +00:00
|
|
|
self.TxtContent.text = CsXTextManagerGetText("DoomsDayTodayWeatherTips", XDoomsdayConfigs.WeatherConfig:GetProperty(stageData:GetProperty("_CurWeatherId"), "Name"))
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function XUiDoomsdayFubenMainGameMovie:OnEnable()
|
|
|
|
self:PlayAnimation("ThemeEnable")
|
|
|
|
end
|