mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 05:59:53 +08:00
Fade out header line for now to avoid visual overlap
This commit is contained in:
@@ -43,7 +43,18 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
}
|
||||
}
|
||||
|
||||
private void updateSubScreenTitle() => title.Screen = stack?.CurrentScreen as IOnlinePlaySubScreen;
|
||||
private void updateSubScreenTitle()
|
||||
{
|
||||
IOnlinePlaySubScreen? screen = stack?.CurrentScreen as IOnlinePlaySubScreen;
|
||||
|
||||
if (screen?.ShowHeaderLine == true)
|
||||
{
|
||||
title.FadeIn(200, Easing.OutQuint);
|
||||
title.Screen = screen;
|
||||
}
|
||||
else
|
||||
title.FadeOut(200, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private partial class MultiHeaderTitle : CompositeDrawable
|
||||
{
|
||||
|
||||
@@ -8,5 +8,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
string Title { get; }
|
||||
|
||||
string ShortTitle { get; }
|
||||
|
||||
bool ShowHeaderLine => true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
|
||||
public string ShortTitle => "style selection";
|
||||
public override string Title => ShortTitle.Humanize();
|
||||
public bool ShowHeaderLine => false;
|
||||
|
||||
protected abstract void StartAction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user