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:
parent
6faba05b24
commit
c704aa6160
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue