forked from endernon/PGRData
27 lines
No EOL
830 B
Lua
27 lines
No EOL
830 B
Lua
local XMovieActionTheme = XClass(XMovieActionBase, "XMovieActionTheme")
|
|
|
|
function XMovieActionTheme:Ctor(actionData)
|
|
local params = actionData.Params
|
|
|
|
self.Title = params[1]
|
|
self.Content = params[2]
|
|
self.LogoPath = params[3]
|
|
self.Content2 = params[4]
|
|
end
|
|
|
|
function XMovieActionTheme:OnInit()
|
|
self.UiRoot.TxtTitle.text = self.Title
|
|
self.UiRoot.TxtContent.text = self.Content
|
|
self.UiRoot:SetUiSprite(self.UiRoot.ImgLogo, self.LogoPath)
|
|
self.UiRoot.PanelTheme.gameObject:SetActiveEx(true)
|
|
|
|
local showContent2 = self.Content2 and self.Content2 ~= ""
|
|
self.UiRoot.TxtContent2.gameObject:SetActiveEx(showContent2)
|
|
self.UiRoot.TxtContent2.text = self.Content2
|
|
end
|
|
|
|
function XMovieActionTheme:OnExit()
|
|
-- self.UiRoot.PanelTheme.gameObject:SetActiveEx(false)
|
|
end
|
|
|
|
return XMovieActionTheme |