From 8f50205e10a84ec88bc1c192a4e556a9a593b7f7 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Sat, 13 Jan 2018 21:40:10 +0100 Subject: stats reset btn --- Penguloon/Controls/ButtonReset.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Penguloon/Controls/ButtonReset.cs (limited to 'Penguloon/Controls/ButtonReset.cs') diff --git a/Penguloon/Controls/ButtonReset.cs b/Penguloon/Controls/ButtonReset.cs new file mode 100644 index 0000000..e1e6a12 --- /dev/null +++ b/Penguloon/Controls/ButtonReset.cs @@ -0,0 +1,27 @@ +using Microsoft.Xna.Framework; +using Penguloon.Scenes; + +namespace Penguloon.Controls +{ + public class ButtonReset : ControlBase + { + public ButtonReset(SceneBase parentScene, Vector2 position, Vector2 size) : base(parentScene, position, size) + { + this.BackgroundIdle = ContentManager.GetTexture("UI/BtnResetIdle"); + this.BackgroundPressed = ContentManager.GetTexture("UI/BtnResetPressed"); + this.BackgroundDisabled = ContentManager.GetTexture("UI/BtnResetIdle"); + + this.ForeColor = Color.White; + this.BorderColor = Color.Gray; + this.BorderWidth = 0; + this.Font = ContentManager.GetFont(StaticUIValues.MenuFont); + + OnClick += Button_OnClick; + } + + private void Button_OnClick(object sender, ClickArgs e) + { + SoundManager.PlayClickSound(); + } + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2