diff --git a/MLEM.Ui/Elements/Button.cs b/MLEM.Ui/Elements/Button.cs index 02541d4..f4db2ca 100644 --- a/MLEM.Ui/Elements/Button.cs +++ b/MLEM.Ui/Elements/Button.cs @@ -8,6 +8,7 @@ namespace MLEM.Ui.Elements { public class Button : Element { public StyleProp Texture; + public StyleProp NormalColor = Color.White; public StyleProp HoveredTexture; public StyleProp HoveredColor; public Paragraph Text; @@ -24,7 +25,7 @@ namespace MLEM.Ui.Elements { public override void Draw(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) { var tex = this.Texture; - var color = Color.White * alpha; + var color = (Color) this.NormalColor * alpha; if (this.IsMouseOver) { tex = this.HoveredTexture.OrDefault(tex); color = (Color) this.HoveredColor * alpha;