summaryrefslogtreecommitdiff
path: root/Penguloon/Controls/UpgradeMenu.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Controls/UpgradeMenu.cs')
-rw-r--r--Penguloon/Controls/UpgradeMenu.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Penguloon/Controls/UpgradeMenu.cs b/Penguloon/Controls/UpgradeMenu.cs
index 6156018..cd6e6bb 100644
--- a/Penguloon/Controls/UpgradeMenu.cs
+++ b/Penguloon/Controls/UpgradeMenu.cs
@@ -31,9 +31,19 @@ namespace Penguloon.Controls
SellConfirmationBox = new MessageBox(parentScene,
new Vector2((StaticUIValues.ScreenViewport.X / 2) - (MsgBoxSize.X / 2), (StaticUIValues.ScreenViewport.Y / 2) - (MsgBoxSize.Y / 2)),
- MsgBoxSize, parentScene.Main.Resources.GetString(Resource.String.IngameOptionsQuitConfirmation));
+ MsgBoxSize, parentScene.Main.Resources.GetString(Resource.String.UpgradeMenuSellConfirmation));
UpgradeMenuSell.OnClick += UpgradeMenuSell_OnClick;
+
+ SellConfirmationBox.OnYes += SellConfirmationBox_OnYes;
+ }
+
+ private void SellConfirmationBox_OnYes(object sender, EventArgs e)
+ {
+ SoundManager.PlaySellSound();
+ Level.Money += 100;
+ Level.Map.Objects.Remove(Level.SelectedObject);
+ Level.SelectedObject = null;
}
private void UpgradeMenuSell_OnClick(object sender, ClickArgs e)