mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-24 01:09:23 +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);
|
||||
this.TextScale.SetFromStyle(style.TextScale);
|
||||
this.RegularFont.SetFromStyle(style.Font);
|
||||
this.TextColor.SetFromStyle(style.TextColor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -133,6 +133,10 @@ namespace MLEM.Ui.Style {
|
|||
/// </summary>
|
||||
public float TextScale = 1;
|
||||
/// <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.
|
||||
/// Note that this sound is only played if the callbacks have any subscribers.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue