mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Hide the scrollbar
This commit is contained in:
@ -25,6 +25,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
ZoomDuration = 200;
|
ZoomDuration = 200;
|
||||||
ZoomEasing = Easing.OutQuint;
|
ZoomEasing = Easing.OutQuint;
|
||||||
Zoom = 10;
|
Zoom = 10;
|
||||||
|
ScrollbarVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private WaveformGraph waveform;
|
private WaveformGraph waveform;
|
||||||
@ -150,35 +151,5 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
if (trackWasPlaying)
|
if (trackWasPlaying)
|
||||||
adjustableClock.Start();
|
adjustableClock.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ScrollbarContainer CreateScrollbar(Direction direction) => new TimelineScrollbar(this, direction);
|
|
||||||
|
|
||||||
private class TimelineScrollbar : ScrollbarContainer
|
|
||||||
{
|
|
||||||
private readonly Timeline timeline;
|
|
||||||
|
|
||||||
public TimelineScrollbar(Timeline timeline, Direction scrollDir)
|
|
||||||
: base(scrollDir)
|
|
||||||
{
|
|
||||||
this.timeline = timeline;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
|
||||||
{
|
|
||||||
if (base.OnMouseDown(state, args))
|
|
||||||
{
|
|
||||||
timeline.beginUserDrag();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
|
||||||
{
|
|
||||||
timeline.endUserDrag();
|
|
||||||
return base.OnMouseUp(state, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user