Also add toggle for ticks display

This commit is contained in:
Dean Herbert
2020-10-01 18:14:10 +09:00
parent b654396a4c
commit 00a19b4879
2 changed files with 12 additions and 1 deletions

View File

@ -26,6 +26,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
OsuCheckbox waveformCheckbox;
OsuCheckbox controlPointsCheckbox;
OsuCheckbox ticksCheckbox;
InternalChildren = new Drawable[]
{
@ -72,6 +73,11 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
LabelText = "Control Points",
Current = { Value = true },
},
ticksCheckbox = new OsuCheckbox
{
LabelText = "Ticks",
Current = { Value = true },
}
}
}
@ -131,6 +137,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
Timeline.WaveformVisible.BindTo(waveformCheckbox.Current);
Timeline.ControlPointsVisible.BindTo(controlPointsCheckbox.Current);
Timeline.TicksVisible.BindTo(ticksCheckbox.Current);
}
private void changeZoom(float change) => Timeline.Zoom += change;