(b597640aa) Implemented the new splash videos (each can be skipped separately), language selection on first startup works now
This commit is contained in:
@@ -334,16 +334,11 @@ namespace Barotrauma
|
||||
SoundManager.SetCategoryGainMultiplier("voip", Config.VoiceChatVolume);
|
||||
if (Config.EnableSplashScreen)
|
||||
{
|
||||
try
|
||||
{
|
||||
(TitleScreen as LoadingScreen).SplashScreen = new Video(base.GraphicsDevice, SoundManager, "Content/splashscreen.mp4", 1280, 720);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Config.EnableSplashScreen = false;
|
||||
DebugConsole.ThrowError("Playing the splash screen failed.", e);
|
||||
}
|
||||
}
|
||||
var pendingSplashScreens = (TitleScreen as LoadingScreen).PendingSplashScreens;
|
||||
pendingSplashScreens?.Enqueue(new Pair<string, Point>("Content/Splash_UTG.mp4", new Point(1280, 720)));
|
||||
pendingSplashScreens?.Enqueue(new Pair<string, Point>("Content/Splash_FF.mp4", new Point(1280, 720)));
|
||||
pendingSplashScreens?.Enqueue(new Pair<string, Point>("Content/Splash_Daedalic.mp4", new Point(1920, 1080)));
|
||||
}
|
||||
|
||||
GUI.Init(Window, Config.SelectedContentPackages, GraphicsDevice);
|
||||
DebugConsole.Init();
|
||||
|
||||
Reference in New Issue
Block a user