mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 06:47:25 +08:00
18 lines
635 B
C#
18 lines
635 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Game.Graphics.Containers
|
|
{
|
|
public class ReverseChildIDFillFlowContainer<T> : FillFlowContainer<T> where T : Drawable
|
|
{
|
|
protected override int Compare(Drawable x, Drawable y) => CompareReverseChildID(x, y);
|
|
|
|
public override IEnumerable<Drawable> FlowingChildren => base.FlowingChildren.Reverse();
|
|
}
|
|
}
|