ESO Lua File v100010

pregame/scenes/pregamefragments.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
GAMEPAD_NAV_QUADRANT_1_BACKGROUND_FRAGMENT = ZO_TranslateFromLeftSceneFragment:New(ZO_SharedGamepadNavQuadrant_1_Background)
-----------------------------
--Movie Background Fragment
-----------------------------
ZO_MovieBackgroundFragment = ZO_SceneFragment:Subclass()
function ZO_MovieBackgroundFragment:New(movieFile)
    local fragment = ZO_SceneFragment.New(self)
    fragment.movieFile = movieFile
    return fragment
end
function ZO_MovieBackgroundFragment:Show()
    local PLAY_IMMEDIATELY = true
    local PLAY_IN_BACKGROUND = true
    local LOOP = true
    PlayVideo(self.movieFile, PLAY_IMMEDIATELY, VIDEO_SKIP_MODE_NO_SKIP, nil, PLAY_IN_BACKGROUND, LOOP)
    self:OnShown()
end
function ZO_MovieBackgroundFragment:Hide()
    self:OnHidden()
end
-- TODO: Set correct videos. Design has different movies for these cases, but currently we only have one.
CLOUDS_BACKGROUND_FRAGMENT = ZO_MovieBackgroundFragment:New("Video/BG_SMoke.bik")
CREATE_ACCOUNT_BACKGROUND_FRAGMENT = CLOUDS_BACKGROUND_FRAGMENT
LINK_ACCOUNT_BACKGROUND_FRAGMENT = CLOUDS_BACKGROUND_FRAGMENT