diff --git a/DangerousD/GameCore/GUI/OptionsGUI.cs b/DangerousD/GameCore/GUI/OptionsGUI.cs index 2dcbe6a..163fd1e 100644 --- a/DangerousD/GameCore/GUI/OptionsGUI.cs +++ b/DangerousD/GameCore/GUI/OptionsGUI.cs @@ -10,35 +10,8 @@ namespace DangerousD.GameCore.GUI { 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) { }; + } } } \ No newline at end of file