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

Fix non-1/1 initial beat divisor control display

This commit is contained in:
smoogipoo 2019-11-08 17:23:47 +09:00
parent eb9fff96ba
commit 998e1dfe47

View File

@ -218,12 +218,17 @@ namespace osu.Game.Screens.Edit.Compose.Components
} }
AddInternal(marker = new Marker()); AddInternal(marker = new Marker());
}
CurrentNumber.ValueChanged += div => protected override void LoadComplete()
{
base.LoadComplete();
CurrentNumber.BindValueChanged(div =>
{ {
marker.MoveToX(getMappedPosition(div.NewValue), 100, Easing.OutQuint); marker.MoveToX(getMappedPosition(div.NewValue), 100, Easing.OutQuint);
marker.Flash(); marker.Flash();
}; }, true);
} }
protected override void UpdateValue(float value) protected override void UpdateValue(float value)