diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2018-01-13 21:40:10 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2018-01-13 21:40:10 +0100 |
| commit | 8f50205e10a84ec88bc1c192a4e556a9a593b7f7 (patch) | |
| tree | 51a338af7a1553e2f49f3c0e9ff8a9e76a012b9e /Penguloon/Controls/ButtonReset.cs | |
| parent | 8a4eb6a05b95290cc1d8f26b8c285d391f37fe4e (diff) | |
stats reset btn
Diffstat (limited to 'Penguloon/Controls/ButtonReset.cs')
| -rw-r--r-- | Penguloon/Controls/ButtonReset.cs | 27 |
1 files changed, 27 insertions, 0 deletions
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 |
