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:
parent
c33cb9c02e
commit
d851446aca
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user