mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
added a default text color to UiStyle
This commit is contained in:
parent
4f63770de0
commit
90d7aeb633
2 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue