mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 21:27:22 +09:00
22 lines
701 B
C#
22 lines
701 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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<ModIcon>
|
|
{
|
|
protected override IEnumerable<Vector2> 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);
|
|
}
|
|
}
|
|
}
|