mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 15:12:54 +08:00
Temporarily show screen footer if hidden while overlay is present
This commit is contained in:
parent
68b8a4fb2a
commit
916d0bfcc2
@ -138,6 +138,8 @@ namespace osu.Game.Overlays.Mods
|
||||
return base.OnClick(e);
|
||||
}
|
||||
|
||||
private bool hideFooterOnPopOut;
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
const double fade_in_duration = 400;
|
||||
@ -149,6 +151,12 @@ namespace osu.Game.Overlays.Mods
|
||||
if (UseNewFooter && footer != null)
|
||||
{
|
||||
footer.SetOverlayContent(this);
|
||||
|
||||
if (footer.State.Value == Visibility.Hidden)
|
||||
{
|
||||
footer.Show();
|
||||
hideFooterOnPopOut = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
Footer.MoveToY(0, fade_in_duration, Easing.OutQuint);
|
||||
@ -166,6 +174,12 @@ namespace osu.Game.Overlays.Mods
|
||||
if (UseNewFooter && footer != null)
|
||||
{
|
||||
footer.ClearOverlayContent();
|
||||
|
||||
if (hideFooterOnPopOut)
|
||||
{
|
||||
footer.Hide();
|
||||
hideFooterOnPopOut = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
Footer.MoveToY(Footer.DrawHeight, fade_out_duration, Easing.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user