using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; using System; using System.Collections.Generic; using System.Xml.Linq; namespace Barotrauma { class LoadingScreen { private Texture2D backgroundTexture, monsterTexture, titleTexture; private RenderTarget2D renderTarget; private float state; private string selectedTip; public Vector2 CenterPosition; public Vector2 TitlePosition; private float? loadState; #if !(LINUX || OSX) Video splashScreenVideo; VideoPlayer videoPlayer; #endif public Vector2 TitleSize { get { return new Vector2(titleTexture.Width, titleTexture.Height); } } public float Scale { get; private set; } public float? LoadState { get { return loadState; } set { loadState = value; if (GameSettings.VerboseLogging) { DebugConsole.NewMessage("Loading: " + value.ToString() + "%", Color.Yellow); } DrawLoadingText = true; } } public bool DrawLoadingText { get; set; } public LoadingScreen(GraphicsDevice graphics) { #if !(LINUX || OSX) if (GameMain.Config.EnableSplashScreen) { try { splashScreenVideo = GameMain.Instance.Content.Load