diff --git a/ZoFo/GameCore/GUI/AbstractGUI.cs b/ZoFo/GameCore/GUI/AbstractGUI.cs index 2c1e549..d2b69ce 100644 --- a/ZoFo/GameCore/GUI/AbstractGUI.cs +++ b/ZoFo/GameCore/GUI/AbstractGUI.cs @@ -29,7 +29,8 @@ public abstract class AbstractGUI private GraphicsDevice graphicsDevice; public virtual void Initialize() { - + // Manager.Initialize(AppManager.Instance.GraphicsDevice); + CreateUI(); } public virtual void LoadContent() diff --git a/ZoFo/GameCore/GUI/BaseGUI.cs b/ZoFo/GameCore/GUI/BaseGUI.cs new file mode 100644 index 0000000..cb159db --- /dev/null +++ b/ZoFo/GameCore/GUI/BaseGUI.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + + +namespace ZoFo.GameCore.GUI; + +public class BaseGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/GameEndedGUI.cs b/ZoFo/GameCore/GUI/GameEndedGUI.cs new file mode 100644 index 0000000..03897ea --- /dev/null +++ b/ZoFo/GameCore/GUI/GameEndedGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class GameEndedGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/HUD.cs b/ZoFo/GameCore/GUI/HUD.cs new file mode 100644 index 0000000..c20ead1 --- /dev/null +++ b/ZoFo/GameCore/GUI/HUD.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class HUD +{ + protected UIManager Manager = new(); + protected List Elements = new(); + private List ActiveElements; + protected DrawableUIElement SelectedElement; + private bool isStartedPrint = false; + private bool isPressed = false; + + private GraphicsDevice graphicsDevice; + public virtual void Initialize() + { + + } + + public virtual void LoadContent() + { + + } + + public virtual void Update(GameTime gameTime) + { + + } + + public virtual void Draw(SpriteBatch spriteBatch) + { + Manager.Draw(spriteBatch); + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/InventoryGUI.cs b/ZoFo/GameCore/GUI/InventoryGUI.cs new file mode 100644 index 0000000..c085803 --- /dev/null +++ b/ZoFo/GameCore/GUI/InventoryGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class InventoryGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/MainMenuGUI.cs b/ZoFo/GameCore/GUI/MainMenuGUI.cs new file mode 100644 index 0000000..850181d --- /dev/null +++ b/ZoFo/GameCore/GUI/MainMenuGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class MainMenuGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/OptionsGUI.cs b/ZoFo/GameCore/GUI/OptionsGUI.cs new file mode 100644 index 0000000..7282f70 --- /dev/null +++ b/ZoFo/GameCore/GUI/OptionsGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class OptionsGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/SelectModeMenu.cs b/ZoFo/GameCore/GUI/SelectModeMenu.cs new file mode 100644 index 0000000..b08e782 --- /dev/null +++ b/ZoFo/GameCore/GUI/SelectModeMenu.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class SelectModeMenu : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/SelectingServerGUI.cs b/ZoFo/GameCore/GUI/SelectingServerGUI.cs new file mode 100644 index 0000000..0a7f049 --- /dev/null +++ b/ZoFo/GameCore/GUI/SelectingServerGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class SelectingServerGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file diff --git a/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs b/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs new file mode 100644 index 0000000..893efc6 --- /dev/null +++ b/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Xml; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using MonogameLibrary.UI.Base; +using MonogameLibrary.UI.Elements; + +namespace ZoFo.GameCore.GUI; + +public class WaitingForPlayersGUI : AbstractGUI +{ + protected override void CreateUI() + { + // int width = AppManager.Instance.inGameHUDHelperResolution.X; + // int height = AppManager.Instance.inGameHUDHelperResolution.Y; + } + + public override void Update(GameTime gameTime) + { + + } +} \ No newline at end of file