1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 18:45:37 +08:00

Merge pull request #12408 from peppy/hide-top-right-elements-as-part-of-hud

Hide top-right HUD overlay elements as part of HUD visibility
This commit is contained in:
Dan Balasescu 2021-04-15 23:29:55 +09:00 committed by GitHub
commit a19f3bac35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,9 @@ namespace osu.Game.Screens.Play
[Cached] [Cached]
public class HUDOverlay : Container, IKeyBindingHandler<GlobalAction> public class HUDOverlay : Container, IKeyBindingHandler<GlobalAction>
{ {
public const float FADE_DURATION = 400; public const float FADE_DURATION = 300;
public const Easing FADE_EASING = Easing.Out; public const Easing FADE_EASING = Easing.OutQuint;
/// <summary> /// <summary>
/// The total height of all the top of screen scoring elements. /// The total height of all the top of screen scoring elements.
@ -74,7 +74,7 @@ namespace osu.Game.Screens.Play
private bool holdingForHUD; private bool holdingForHUD;
private IEnumerable<Drawable> hideTargets => new Drawable[] { visibilityContainer, KeyCounter }; private IEnumerable<Drawable> hideTargets => new Drawable[] { visibilityContainer, KeyCounter, topRightElements };
public HUDOverlay(ScoreProcessor scoreProcessor, HealthProcessor healthProcessor, DrawableRuleset drawableRuleset, IReadOnlyList<Mod> mods) public HUDOverlay(ScoreProcessor scoreProcessor, HealthProcessor healthProcessor, DrawableRuleset drawableRuleset, IReadOnlyList<Mod> mods)
{ {