mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
Update elements less aggressively when changing a ui system's style
This commit is contained in:
parent
a143aef67c
commit
c880c3e011
2 changed files with 3 additions and 4 deletions
|
@ -35,6 +35,7 @@ Improvements
|
||||||
- Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
|
- Avoid unnecessary panel updates by using an Epsilon comparison when scrolling children
|
||||||
- Allow setting a default text alignment for paragraphs in UiStyle
|
- Allow setting a default text alignment for paragraphs in UiStyle
|
||||||
- Made custom values of Element.Style persist when a new ui style is set
|
- Made custom values of Element.Style persist when a new ui style is set
|
||||||
|
- Update elements less aggressively when changing a ui system's style
|
||||||
|
|
||||||
Fixes
|
Fixes
|
||||||
- Fixed paragraph links having incorrect hover locations when using special text alignments
|
- Fixed paragraph links having incorrect hover locations when using special text alignments
|
||||||
|
|
|
@ -59,10 +59,8 @@ namespace MLEM.Ui {
|
||||||
get => this.style;
|
get => this.style;
|
||||||
set {
|
set {
|
||||||
this.style = value;
|
this.style = value;
|
||||||
foreach (var root in this.rootElements) {
|
foreach (var root in this.rootElements)
|
||||||
root.Element.AndChildren(e => e.System = this);
|
root.Element.AndChildren(e => e.Style = e.Style.OrStyle(value));
|
||||||
root.Element.ForceUpdateArea();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue