PGRData/Resources/Scripts/XUi/XUiRpgMakerGame/XUiFubenRpgMakerGameMovie.lua
2022-12-26 14:06:01 +05:30

17 lines
No EOL
534 B
Lua

--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