Added setup system. Changed reader and writer for texture atlas and nine patch to have image and serialized data be in same file. Some refactors occurred as well.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace RecrownedAthenaeum.ScreenSystem
|
||||
/// Called when the first loading screen is done, and needs to show the landing screen.
|
||||
/// </summary>
|
||||
public event ShowFirstScreen ShowFirstScreenEvent;
|
||||
private GraphicsDeviceManager graphics;
|
||||
private GraphicsDeviceManager graphics = Setup.graphicsDeviceManager;
|
||||
private Screen previousScreen;
|
||||
private RenderTarget2D previousScreenRenderTarget;
|
||||
private Screen currentScreen;
|
||||
@@ -63,11 +63,12 @@ namespace RecrownedAthenaeum.ScreenSystem
|
||||
/// <summary>
|
||||
/// Creates a screen manager that helps manage multiple screens and their transitions.
|
||||
/// </summary>
|
||||
/// <param name="graphicsDeviceManager">The graphics device manager to be used.</param>
|
||||
/// <param name="camera">The camera to be used to perform the correct translations and transformations.</param>
|
||||
public ScreenManager(GraphicsDeviceManager graphicsDeviceManager, Camera2D camera)
|
||||
/// <param name="graphicsDeviceManager">The graphics device manager to be used.</param>
|
||||
public ScreenManager(Camera2D camera, GraphicsDeviceManager graphicsDeviceManager = null)
|
||||
{
|
||||
this.graphics = graphicsDeviceManager;
|
||||
if (graphicsDeviceManager != null) this.graphics = graphicsDeviceManager;
|
||||
if (graphics == null) throw new ArgumentNullException("Graphics device manager argument cannot be null if setup's graphics device manager is also null.");
|
||||
this.camera = camera;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user