mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 01:39:23 +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);
|
||||
}
|
||||
|
||||
public void ReorderChildren(Comparison<Element> comparison) {
|
||||
this.Children.Sort(comparison);
|
||||
}
|
||||
|
||||
protected virtual void InitStyle(UiStyle style) {
|
||||
this.SelectionIndicator.SetFromStyle(style.SelectionIndicator);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue