1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Remove redundant anchor and use Show/Hide instead of FadeIn/Out.

This commit is contained in:
naoey 2018-04-10 19:15:37 +05:30
parent c33cb9c02e
commit d851446aca
No known key found for this signature in database
GPG Key ID: 3908EC682A3E19C7

View File

@ -55,12 +55,12 @@ namespace osu.Game.Overlays
if (beatmapSet == null)
{
scroll.FadeOut(fade_duration);
loading.FadeIn(fade_duration);
loading.Show();
return;
}
header.BeatmapSet = info.BeatmapSet = beatmapSet;
loading.FadeOut(fade_duration);
loading.Hide();
scroll.FadeIn(fade_duration);
}
}
@ -98,9 +98,7 @@ namespace osu.Game.Overlays
},
loading = new LoadingAnimation
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Alpha = 1,
State = Visibility.Visible,
},
scroll = new ScrollContainer
{