mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Update variable names
Also cleans up some weird code
This commit is contained in:
@ -157,12 +157,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
beatDivisor.ValueChanged += e => updateText();
|
||||
updateText();
|
||||
beatDivisor.BindValueChanged(val => Text = $"1/{val.NewValue}", true);
|
||||
}
|
||||
|
||||
private void updateText() => Text = $"1/{beatDivisor.Value}";
|
||||
}
|
||||
|
||||
private class DivisorButton : IconButton
|
||||
@ -219,9 +215,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
AddInternal(marker = new Marker());
|
||||
|
||||
CurrentNumber.ValueChanged += e =>
|
||||
CurrentNumber.ValueChanged += div =>
|
||||
{
|
||||
marker.MoveToX(getMappedPosition(e.NewValue), 100, Easing.OutQuint);
|
||||
marker.MoveToX(getMappedPosition(div.NewValue), 100, Easing.OutQuint);
|
||||
marker.Flash();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user