AddLoginGUI2
This commit is contained in:
parent
e642e53f06
commit
8b8ba7cacc
1 changed files with 9 additions and 1 deletions
|
@ -10,7 +10,7 @@ using DangerousD.GameCore.Graphics;
|
||||||
|
|
||||||
namespace DangerousD.GameCore
|
namespace DangerousD.GameCore
|
||||||
{
|
{
|
||||||
public enum GameState { Menu, Options, Lobby, Game }
|
public enum GameState { Menu, Options, Lobby, Game, Login }
|
||||||
public class AppManager : Game
|
public class AppManager : Game
|
||||||
{
|
{
|
||||||
public static AppManager Instance { get; private set; }
|
public static AppManager Instance { get; private set; }
|
||||||
|
@ -19,8 +19,10 @@ namespace DangerousD.GameCore
|
||||||
public Point resolution;
|
public Point resolution;
|
||||||
GameState gameState;
|
GameState gameState;
|
||||||
IDrawableObject MenuGUI;
|
IDrawableObject MenuGUI;
|
||||||
|
IDrawableObject OptionsGUI;
|
||||||
IDrawableObject LoginGUI;
|
IDrawableObject LoginGUI;
|
||||||
IDrawableObject LobbyGUI;
|
IDrawableObject LobbyGUI;
|
||||||
|
|
||||||
public GameManager GameManager { get; private set; }
|
public GameManager GameManager { get; private set; }
|
||||||
public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder();
|
public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder();
|
||||||
public AppManager()
|
public AppManager()
|
||||||
|
@ -62,6 +64,9 @@ namespace DangerousD.GameCore
|
||||||
case GameState.Options:
|
case GameState.Options:
|
||||||
OptionsGUI.Update(gameTime);
|
OptionsGUI.Update(gameTime);
|
||||||
break;
|
break;
|
||||||
|
case GameState.Login:
|
||||||
|
LoginGUI.Update(gameTime);
|
||||||
|
break;
|
||||||
case GameState.Lobby:
|
case GameState.Lobby:
|
||||||
LobbyGUI.Update(gameTime);
|
LobbyGUI.Update(gameTime);
|
||||||
break;
|
break;
|
||||||
|
@ -87,6 +92,9 @@ namespace DangerousD.GameCore
|
||||||
case GameState.Options:
|
case GameState.Options:
|
||||||
OptionsGUI.Draw(_spriteBatch);
|
OptionsGUI.Draw(_spriteBatch);
|
||||||
break;
|
break;
|
||||||
|
case GameState.Login:
|
||||||
|
LoginGUI.Draw(_spriteBatch);
|
||||||
|
break;
|
||||||
case GameState.Lobby:
|
case GameState.Lobby:
|
||||||
LobbyGUI.Draw(_spriteBatch);
|
LobbyGUI.Draw(_spriteBatch);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue