summaryrefslogtreecommitdiff
path: root/Penguloon/Controls/IngameOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Controls/IngameOptions.cs')
-rw-r--r--Penguloon/Controls/IngameOptions.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Penguloon/Controls/IngameOptions.cs b/Penguloon/Controls/IngameOptions.cs
index a7f1f00..d6eda02 100644
--- a/Penguloon/Controls/IngameOptions.cs
+++ b/Penguloon/Controls/IngameOptions.cs
@@ -25,12 +25,13 @@ namespace Penguloon.Controls
public IngameOptions(SceneBase parentScene, Vector2 position, Vector2 size) : base(parentScene, position, size)
{
+ this.DrawText = false;
this.BackgroundIdle = ContentManager.GetTexture("UI/optionsMenuBackground");
this.BackgroundPressed = ContentManager.GetTexture("UI/optionsMenuBackground");
this.BackgroundDisabled = ContentManager.GetTexture("UI/optionsMenuBackground");
Vector2 BtnSize = new Vector2(Size.X - 90, StaticUIValues.IngameUIPlayButtonHeight);
- Vector2 MsgBoxSize = new Vector2(900, 300);
+ Vector2 MsgBoxSize = new Vector2(900, 450);
BtnContinue = new Button(parentScene,
new Vector2(position.X + (Size.X / 2) - (BtnSize.X / 2), Position.Y + 50),
@@ -54,6 +55,9 @@ namespace Penguloon.Controls
private void QuitConfirmationBox_OnYes(object sender, EventArgs e)
{
+ GameScene gameScene = (GameScene)ParentScene;
+ gameScene.Level.FinishGame();
+
SceneManager.SelectedScene = SelectedScene.Menu;
}