OptionsGUI.v.1.1
This commit is contained in:
parent
f02c513c32
commit
f4420ea93e
2 changed files with 29 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -9,5 +9,9 @@ namespace DangerousD.GameCore.Managers
|
|||
{
|
||||
internal class SettingsManager
|
||||
{
|
||||
public void SetFullScreen(bool IsFullScreen)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue