mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 14:38:34 +01:00
added a way to sort an element's children
This commit is contained in:
parent
8d3afcf276
commit
1e62513e25
1 changed files with 4 additions and 0 deletions
|
@ -484,6 +484,10 @@ namespace MLEM.Ui.Elements {
|
||||||
child.AndChildren(action);
|
child.AndChildren(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ReorderChildren(Comparison<Element> comparison) {
|
||||||
|
this.Children.Sort(comparison);
|
||||||
|
}
|
||||||
|
|
||||||
protected virtual void InitStyle(UiStyle style) {
|
protected virtual void InitStyle(UiStyle style) {
|
||||||
this.SelectionIndicator.SetFromStyle(style.SelectionIndicator);
|
this.SelectionIndicator.SetFromStyle(style.SelectionIndicator);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue