OptionsGUI_2
This commit is contained in:
parent
540f75734e
commit
52fc0b31fa
1 changed files with 1 additions and 28 deletions
|
@ -10,35 +10,8 @@ namespace DangerousD.GameCore.GUI
|
||||||
{
|
{
|
||||||
protected override void CreateUI()
|
protected override void CreateUI()
|
||||||
{
|
{
|
||||||
int wigth = AppManager.Instance.Window.ClientBounds.Width;
|
|
||||||
int height = AppManager.Instance.Window.ClientBounds.Height;
|
|
||||||
var butSingle = new Button(Manager) { rectangle = new Rectangle((wigth - 300) / 2, 130, 300, 50), text = "Singleplayer", fontName = "File" };
|
|
||||||
Elements.Add(butSingle);
|
|
||||||
butSingle.LeftButtonPressed += () =>
|
|
||||||
{
|
|
||||||
AppManager.Instance.ChangeGameState(GameState.Game);
|
|
||||||
};
|
|
||||||
|
|
||||||
var butMulti = new Button(Manager) { rectangle = new Rectangle((wigth - 300) / 2, 190, 300, 50), text = "Multiplayer", fontName = "File" };
|
|
||||||
Elements.Add(butMulti);
|
|
||||||
butMulti.LeftButtonPressed += () =>
|
|
||||||
{
|
|
||||||
AppManager.Instance.ChangeGameState(GameState.Login);
|
|
||||||
};
|
|
||||||
var butOption = new Button(Manager) { rectangle = new Rectangle((wigth - 300) / 2, 250, 300, 50), text = "Option", fontName = "File" };
|
|
||||||
Elements.Add(butOption);
|
|
||||||
butOption.LeftButtonPressed += () =>
|
|
||||||
{
|
|
||||||
// открытие настроек
|
|
||||||
};
|
|
||||||
var butExit = new Button(Manager) { rectangle = new Rectangle((wigth - 300) / 2, 310, 300, 50), text = "Exit", fontName = "File" };
|
|
||||||
Elements.Add(butExit);
|
|
||||||
butExit.LeftButtonPressed += () =>
|
|
||||||
{
|
|
||||||
AppManager.Instance.Exit();
|
|
||||||
};
|
|
||||||
|
|
||||||
var slider = new Slider(Manager) { };
|
var slider = new Slider(Manager) { };
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue