From f4420ea93ee6ee671cb25cd417b7b06153321925 Mon Sep 17 00:00:00 2001 From: MARKPRO44 <119742977+MARKPRO4444@users.noreply.github.com> Date: Wed, 16 Aug 2023 22:56:10 +0300 Subject: [PATCH] OptionsGUI.v.1.1 --- DangerousD/GameCore/GUI/OptionsGUI.cs | 25 +++++++++++++++++++ .../GameCore/Managers/SettingsManager.cs | 4 +++ 2 files changed, 29 insertions(+) diff --git a/DangerousD/GameCore/GUI/OptionsGUI.cs b/DangerousD/GameCore/GUI/OptionsGUI.cs index f5a4229..812ab3e 100644 --- a/DangerousD/GameCore/GUI/OptionsGUI.cs +++ b/DangerousD/GameCore/GUI/OptionsGUI.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using MonogameLibrary.UI.Base; using MonogameLibrary.UI.Elements; using System.Xml.Linq; +using DangerousD.GameCore.Managers; +using DangerousD.GameCore; namespace DangerousD.GameCore.GUI { @@ -19,6 +21,17 @@ namespace DangerousD.GameCore.GUI var checkBox = new CheckBox(Manager); checkBox.rectangle = new Rectangle(690, 400, 40, 40); + checkBox.Checked += (newCheckState) => + { + SettingsManager sM = new SettingsManager(); + }; + + var cB = new CheckBox(Manager); + cB.rectangle = new Rectangle(690, 275, 40, 40); + cB.Checked += (newCheckState) => + { + SettingsManager sM = new SettingsManager(); + }; Label lblOptions = new Label(Manager); lblOptions.fontName = "Font2"; @@ -37,6 +50,18 @@ namespace DangerousD.GameCore.GUI lblIsFullScreen.text = "Full Screen"; lblIsFullScreen.rectangle = new Rectangle(300, 400, 250, 40); lblIsFullScreen.mainColor = Color.Transparent; + + Label lblSwitchMode = new Label(Manager); + lblSwitchMode.fontName = "Font2"; + lblSwitchMode.text = "Left/Right Mode"; + lblSwitchMode.rectangle = new Rectangle(290, 275, 250, 40); + lblSwitchMode.mainColor = Color.Transparent; + + ButtonText bTExit = new ButtonText(Manager); + bTExit.fontName = "Font2"; + bTExit.text = "<-"; + bTExit.rectangle = new Rectangle(20 , 15, 20, 10); + bTExit.fontColor = Color.Black; } } } \ No newline at end of file diff --git a/DangerousD/GameCore/Managers/SettingsManager.cs b/DangerousD/GameCore/Managers/SettingsManager.cs index ab12904..faac612 100644 --- a/DangerousD/GameCore/Managers/SettingsManager.cs +++ b/DangerousD/GameCore/Managers/SettingsManager.cs @@ -9,5 +9,9 @@ namespace DangerousD.GameCore.Managers { internal class SettingsManager { + public void SetFullScreen(bool IsFullScreen) + { + + } } }