PGRData/Script/matrix/xui/xuirpgmakergame/XUiFubenRpgMakerGameMovie.lua

17 lines
534 B
Lua
Raw Normal View History

--Loading界面
local XUiFubenRpgMakerGameMovie = XLuaUiManager.Register(XLuaUi, "UiFubenRpgMakerGameMovie")
function XUiFubenRpgMakerGameMovie:OnStart(stageId)
if not XTool.IsNumberValid(stageId) then
return
end
self.TxtTitle.text = XRpgMakerGameConfigs.GetRpgMakerGameStageName(stageId)
local desc = XRpgMakerGameConfigs.GetRpgMakerGameStageHint(stageId)
self.TxtContent.text = string.gsub(desc, "\\n", "\n")
end
function XUiFubenRpgMakerGameMovie:OnEnable()
self:PlayAnimation("ThemeEnable")
end