PGRData/Script/matrix/xui/xuidoomsday/XUiDoomsdayFubenMainGameMovie.lua

18 lines
793 B
Lua
Raw Permalink Normal View History

local XUiDoomsdayFubenMainGameMovie = XLuaUiManager.Register(XLuaUi, "UiDoomsdayFubenMainGameMovie")
2024-09-01 20:49:41 +00:00
function XUiDoomsdayFubenMainGameMovie:OnStart(stageId, isFinishEnd)
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()
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"))
end
end
function XUiDoomsdayFubenMainGameMovie:OnEnable()
self:PlayAnimation("ThemeEnable")
end