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