1
0
Fork 0
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:
Ellpeck 2019-12-12 21:14:41 +01:00
parent 8d3afcf276
commit 1e62513e25

View file

@ -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);
}