using Microsoft.Xna.Framework; using Penguloon.Scenes; namespace Penguloon.Controls { public class ButtonUpgradeMenu : ControlBase { public ButtonUpgradeMenu(SceneBase parentScene, Vector2 position, Vector2 size, string text) : base(parentScene, position, size) { this.BackgroundIdle = ContentManager.GetTexture("UI/darkred"); this.BackgroundPressed = ContentManager.GetTexture("UI/red"); this.BackgroundDisabled = ContentManager.GetTexture("UI/red"); this.Text = text; this.ForeColor = Color.White; 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(); } } }