1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:33:01 +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) if (beatmapSet == null)
{ {
scroll.FadeOut(fade_duration); scroll.FadeOut(fade_duration);
loading.FadeIn(fade_duration); loading.Show();
return; return;
} }
header.BeatmapSet = info.BeatmapSet = beatmapSet; header.BeatmapSet = info.BeatmapSet = beatmapSet;
loading.FadeOut(fade_duration); loading.Hide();
scroll.FadeIn(fade_duration); scroll.FadeIn(fade_duration);
} }
} }
@ -98,9 +98,7 @@ namespace osu.Game.Overlays
}, },
loading = new LoadingAnimation loading = new LoadingAnimation
{ {
Anchor = Anchor.Centre, State = Visibility.Visible,
Origin = Anchor.Centre,
Alpha = 1,
}, },
scroll = new ScrollContainer scroll = new ScrollContainer
{ {