1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 09:32:55 +08:00

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

View File

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