// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osuTK; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets.UI; using System.Collections.Generic; using System.Linq; namespace osu.Game.Overlays.Profile.Sections.Ranks { public class ScoreModsContainer : FlowContainer { protected override IEnumerable ComputeLayoutPositions() { int count = FlowingChildren.Count(); for (int i = 0; i < count; i++) yield return new Vector2(DrawWidth * i * (count == 1 ? 0 : 1f / (count - 1)), 0); } } }