mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 23:42:55 +08:00
Add the osu! logo to the test scene
Makes no sense to add a test intended to test visual behaviour with one of the main elements missing. Not sure how you would be able to test the flow with the logo's presence.
This commit is contained in:
parent
b7acf9de52
commit
9ba412d27e
@ -11,6 +11,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
|
using osu.Game.Screens.Menu;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
@ -65,12 +66,16 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
{
|
{
|
||||||
var randomMods = Ruleset.Value.CreateInstance().GetAllMods().OrderBy(_ => RNG.Next()).Take(5).ToList();
|
var randomMods = Ruleset.Value.CreateInstance().GetAllMods().OrderBy(_ => RNG.Next()).Take(5).ToList();
|
||||||
|
|
||||||
Child = display = new BeatmapMetadataDisplay(getBeatmap(), new Bindable<IReadOnlyList<Mod>>(randomMods), Empty())
|
OsuLogo logo = new OsuLogo { Scale = new Vector2(0.15f) };
|
||||||
|
|
||||||
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
display = new BeatmapMetadataDisplay(getBeatmap(), new Bindable<IReadOnlyList<Mod>>(randomMods), logo)
|
||||||
Origin = Anchor.Centre,
|
{
|
||||||
Scale = new Vector2(1.5f),
|
Anchor = Anchor.Centre,
|
||||||
Alpha = 0f,
|
Origin = Anchor.Centre,
|
||||||
|
Alpha = 0f,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
display.FadeIn(400, Easing.OutQuint);
|
display.FadeIn(400, Easing.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user