Make SkipButton an OverlayContainer to use the menu cursor

This commit is contained in:
smoogipoo 2018-01-12 18:21:17 +09:00
parent 512e4d2c9f
commit a6c6523a86
1 changed files with 13 additions and 1 deletions

View File

@ -21,7 +21,7 @@
namespace osu.Game.Screens.Play
{
public class SkipButton : Container, IKeyBindingHandler<GlobalAction>
public class SkipButton : OverlayContainer, IKeyBindingHandler<GlobalAction>
{
private readonly double startTime;
public IAdjustableClock AudioClock;
@ -36,6 +36,8 @@ public SkipButton(double startTime)
{
this.startTime = startTime;
State = Visibility.Visible;
RelativePositionAxes = Axes.Both;
RelativeSizeAxes = Axes.Both;
@ -112,6 +114,16 @@ protected override void LoadComplete()
Expire();
}
protected override void PopIn()
{
this.FadeIn();
}
protected override void PopOut()
{
this.FadeOut();
}
protected override void Update()
{
base.Update();