mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 12:58:01 +09:00
Fix failing test
This commit is contained in:
parent
2dc81bbcfa
commit
179bd1ce7e
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -83,7 +84,10 @@ namespace osu.Game.Overlays
|
|||||||
public ScrollToTopButton()
|
public ScrollToTopButton()
|
||||||
{
|
{
|
||||||
Size = new Vector2(50);
|
Size = new Vector2(50);
|
||||||
Child = button = new Button();
|
Child = button = new Button
|
||||||
|
{
|
||||||
|
AreaState = { BindTarget = State }
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
||||||
@ -94,7 +98,9 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
private class Button : OsuHoverContainer
|
private class Button : OsuHoverContainer
|
||||||
{
|
{
|
||||||
public override bool PropagatePositionalInputSubTree => Alpha == 1;
|
public readonly Bindable<Visibility> AreaState = new Bindable<Visibility>();
|
||||||
|
|
||||||
|
public override bool HandlePositionalInput => AreaState.Value == Visibility.Visible;
|
||||||
|
|
||||||
protected override IEnumerable<Drawable> EffectTargets => new[] { background };
|
protected override IEnumerable<Drawable> EffectTargets => new[] { background };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user