2018-01-05 19:21:19 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-20 10:44:36 +08:00
|
|
|
// 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
|
|
|
|
{
|
2017-07-12 02:21:58 +08:00
|
|
|
public class ReverseChildIDFillFlowContainer<T> : FillFlowContainer<T> where T : Drawable
|
2017-05-20 10:44:36 +08:00
|
|
|
{
|
2017-07-12 02:21:58 +08:00
|
|
|
protected override int Compare(Drawable x, Drawable y) => CompareReverseChildID(x, y);
|
|
|
|
|
2017-06-01 13:24:31 +08:00
|
|
|
protected override IEnumerable<Drawable> FlowingChildren => base.FlowingChildren.Reverse();
|
2017-05-20 10:44:36 +08:00
|
|
|
}
|
|
|
|
}
|