1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

allow children to be reversed

This commit is contained in:
Ellpeck 2019-12-19 12:52:31 +01:00
parent 6faba05b24
commit c704aa6160

View file

@ -492,6 +492,10 @@ namespace MLEM.Ui.Elements {
this.Children.Sort(comparison);
}
public void ReverseChildren(int index = 0, int? count = null) {
this.Children.Reverse(index, count ?? this.Children.Count);
}
protected virtual void InitStyle(UiStyle style) {
this.SelectionIndicator.SetFromStyle(style.SelectionIndicator);
}