1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

added a default text color to UiStyle

This commit is contained in:
Ell 2020-09-13 18:00:19 +02:00
parent 4f63770de0
commit 90d7aeb633
2 changed files with 5 additions and 0 deletions

View file

@ -118,6 +118,7 @@ namespace MLEM.Ui.Elements {
base.InitStyle(style); base.InitStyle(style);
this.TextScale.SetFromStyle(style.TextScale); this.TextScale.SetFromStyle(style.TextScale);
this.RegularFont.SetFromStyle(style.Font); this.RegularFont.SetFromStyle(style.Font);
this.TextColor.SetFromStyle(style.TextColor);
} }
/// <summary> /// <summary>

View file

@ -133,6 +133,10 @@ namespace MLEM.Ui.Style {
/// </summary> /// </summary>
public float TextScale = 1; public float TextScale = 1;
/// <summary> /// <summary>
/// The color that the text of a <see cref="Paragraph"/> should have
/// </summary>
public Color TextColor = Color.White;
/// <summary>
/// The <see cref="SoundEffectInfo"/> that should be played when an element's <see cref="Element.OnPressed"/> and <see cref="Element.OnSecondaryPressed"/> events are called. /// The <see cref="SoundEffectInfo"/> that should be played when an element's <see cref="Element.OnPressed"/> and <see cref="Element.OnSecondaryPressed"/> events are called.
/// Note that this sound is only played if the callbacks have any subscribers. /// Note that this sound is only played if the callbacks have any subscribers.
/// </summary> /// </summary>