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