mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 06:02:54 +08:00
de-nest ``removeOldInfo()
``
This commit is contained in:
parent
c7d49bdc82
commit
92690afa5f
@ -152,15 +152,6 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
void perform()
|
void perform()
|
||||||
{
|
{
|
||||||
void removeOldInfo()
|
|
||||||
{
|
|
||||||
State.Value = beatmap == null ? Visibility.Hidden : Visibility.Visible;
|
|
||||||
|
|
||||||
DisplayedContent?.FadeOut(transition_duration);
|
|
||||||
DisplayedContent?.Expire();
|
|
||||||
DisplayedContent = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (beatmap == null)
|
if (beatmap == null)
|
||||||
{
|
{
|
||||||
removeOldInfo();
|
removeOldInfo();
|
||||||
@ -199,6 +190,15 @@ namespace osu.Game.Screens.Select
|
|||||||
}, true);
|
}, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void removeOldInfo()
|
||||||
|
{
|
||||||
|
State.Value = beatmap == null ? Visibility.Hidden : Visibility.Visible;
|
||||||
|
|
||||||
|
DisplayedContent?.FadeOut(transition_duration);
|
||||||
|
DisplayedContent?.Expire();
|
||||||
|
DisplayedContent = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class WedgeInfoText : Container
|
public partial class WedgeInfoText : Container
|
||||||
|
Loading…
Reference in New Issue
Block a user