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.Diagnostics; using System.Linq; using System.Text; namespace Barotrauma { class LoadingScreen { private Texture2D backgroundTexture,monsterTexture,titleTexture; readonly RenderTarget2D renderTarget; float state; public Vector2 CenterPosition; public Vector2 TitlePosition; private float? loadState; #if !LINUX 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; DrawLoadingText = true; } } public bool DrawLoadingText { get; set; } public LoadingScreen(GraphicsDevice graphics) { #if !LINUX if (GameMain.Config.EnableSplashScreen) { try { splashScreenVideo = GameMain.Instance.Content.Load