Submarine preview window with a preview image & some extra information of the subs
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Barotrauma
|
||||
public static FrameCounter FrameCounter;
|
||||
|
||||
public static readonly Version Version = Assembly.GetEntryAssembly().GetName().Version;
|
||||
|
||||
|
||||
public static GameScreen GameScreen;
|
||||
public static MainMenuScreen MainMenuScreen;
|
||||
public static LobbyScreen LobbyScreen;
|
||||
@@ -60,6 +60,8 @@ namespace Barotrauma
|
||||
|
||||
private static SpriteBatch spriteBatch;
|
||||
|
||||
private Viewport defaultViewport;
|
||||
|
||||
public static GameMain Instance
|
||||
{
|
||||
get;
|
||||
@@ -169,6 +171,13 @@ namespace Barotrauma
|
||||
GraphicsDeviceManager.PreferredBackBufferHeight = GraphicsHeight;
|
||||
|
||||
GraphicsDeviceManager.ApplyChanges();
|
||||
|
||||
defaultViewport = GraphicsDevice.Viewport;
|
||||
}
|
||||
|
||||
public void ResetViewPort()
|
||||
{
|
||||
GraphicsDevice.Viewport = defaultViewport;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user