1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 11:22:57 +08:00

A bit of cleanup

This commit is contained in:
smoogipoo 2018-04-05 17:07:41 +09:00
parent 9bb3e56bb3
commit e3af32ad2f

View File

@ -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);
}
}