summaryrefslogtreecommitdiff
path: root/Penguloon/Controls/ButtonReset.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Controls/ButtonReset.cs')
-rw-r--r--Penguloon/Controls/ButtonReset.cs27
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