mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
A bit of cleanup
This commit is contained in:
parent
9bb3e56bb3
commit
e3af32ad2f
@ -34,7 +34,8 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
||||
};
|
||||
|
||||
waveform.Beatmap.BindTo(Beatmap);
|
||||
WaveformVisible.ValueChanged += waveformVisibilityChanged;
|
||||
|
||||
WaveformVisible.ValueChanged += visible => waveform.FadeTo(visible ? 1 : 0, 200, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private float zoom = 10;
|
||||
@ -46,7 +47,5 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
||||
waveformContainer.Margin = new MarginPadding { Horizontal = DrawWidth / 2 };
|
||||
waveformContainer.Width = DrawWidth * zoom;
|
||||
}
|
||||
|
||||
private void waveformVisibilityChanged(bool visible) => waveform.FadeTo(visible ? 1 : 0, 200, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user