diff options
Diffstat (limited to 'Penguloon/Controls/ButtonIngame.cs')
| -rw-r--r-- | Penguloon/Controls/ButtonIngame.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Penguloon/Controls/ButtonIngame.cs b/Penguloon/Controls/ButtonIngame.cs new file mode 100644 index 0000000..acb05e0 --- /dev/null +++ b/Penguloon/Controls/ButtonIngame.cs @@ -0,0 +1,28 @@ +using Microsoft.Xna.Framework; +using Penguloon.Scenes; + +namespace Penguloon.Controls +{ + public class ButtonIngame : ControlBase + { + public ButtonIngame(SceneBase parentScene, Vector2 position, Vector2 size, string text) : base(parentScene, position, size) + { + this.BackgroundIdle = ContentManager.GetTexture("UI/btnIdleIngame"); + this.BackgroundPressed = ContentManager.GetTexture("UI/btnPressedIngame"); + this.BackgroundDisabled = ContentManager.GetTexture("UI/btnDisabledIngame"); + this.Text = text; + + this.ForeColor = Color.Gray; + this.BorderColor = Color.Black; + this.BorderWidth = 2; + 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 |
