Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function LoadDialog(parent)
- local movieFile = '/movies/loading_screens/uef/uef_load_u0001.sfd'
- local color = 'FFbadbdb'
- local loadingPref = Prefs.GetFromCurrentProfile('LoadingFaction')
- local factions = import('/lua/factions.lua').Factions
- if loadingPref == 1 then thefaction = 'uef', randommovie = 'u000' .. Random(1,3) end
- if loadingPref == 2 then thefaction = 'aeon', randommovie = 'a000' .. Random(1,3) end
- if loadingPref == 3 then thefaction = 'cybran', randommovie = 'c000' .. Random(1,3) end
- if loadingPref == 4 then thefaction = 'seraphim', randommovie = 's000' .. Random(1,3) end
- if factions[loadingPref] and factions[loadingPref].loadingMovie then
- movieFile = '/movies/loading_screens/' .. thefaction .. '/' .. thefaction .. '_load_' .. randommovie .. '.sfd'
- color = factions[loadingPref].loadingColor
- end
- local movie = Movie(parent, movieFile)
- LayoutHelpers.FillParent(movie, parent)
- movie:Loop(true)
- movie:Play()
- local text = ':: ' .. LOC('<LOC LOAD_' .. randommovie .. '>') .. ' ::'
- local textControl = UIUtil.CreateText(movie, text, 20, UIUtil.bodyFont)
- textControl:SetColor(color)
- LayoutHelpers.AtCenterIn(textControl, parent, 200)
- import('/lua/maui/effecthelpers.lua').Pulse(textControl, 1, 0, .8)
- ConExecute('UI_RenderUnitBars true')
- ConExecute('UI_NisRenderIcons true')
- ConExecute('ren_SelectBoxes true')
- HideGameUI('off')
- return movie
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement