diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2017-12-23 21:33:50 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2017-12-23 21:33:50 +0100 |
| commit | 3281eed3ffca3b4488335846430b231001aea753 (patch) | |
| tree | 0f9302994222349d420b5f05fe904e3bf0068e44 /Penguloon/Controls/IngameOptions.cs | |
| parent | ad0d29bf5d881ab619a90ffb8a1f3352eba21615 (diff) | |
dabbing makes me want to kms
Diffstat (limited to 'Penguloon/Controls/IngameOptions.cs')
| -rw-r--r-- | Penguloon/Controls/IngameOptions.cs | 6 |
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; } |
