1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:43:19 +08:00

Populate dates and add show animation on test

This commit is contained in:
Joseph Madamba 2023-09-22 19:56:33 -07:00
parent 5bea5415be
commit c0b8b3509f

View File

@ -1,6 +1,7 @@
// 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 System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -41,6 +42,7 @@ namespace osu.Game.Tests.Visual.SongSelect
CountryCode = CountryCode.ES,
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c1.jpg",
},
Date = DateTimeOffset.Now.AddYears(-2),
},
new ScoreInfo
{
@ -58,6 +60,7 @@ namespace osu.Game.Tests.Visual.SongSelect
CountryCode = CountryCode.CA,
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c2.jpg",
},
Date = DateTimeOffset.Now.AddMonths(-6),
},
new ScoreInfo
@ -73,6 +76,7 @@ namespace osu.Game.Tests.Visual.SongSelect
Username = @"No cover",
CountryCode = CountryCode.BR,
},
Date = DateTimeOffset.Now,
},
};
@ -92,6 +96,9 @@ namespace osu.Game.Tests.Visual.SongSelect
}
};
foreach (var score in fillFlow.Children)
score.Show();
AddSliderStep("change relative width", 0, 1f, 0.6f, v =>
{
fillFlow.Width = v;