mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Update parameter discards
This commit is contained in:
@ -63,7 +63,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
selectedGroup.BindValueChanged(group =>
|
||||
selectedGroup.BindValueChanged(_ =>
|
||||
{
|
||||
// TODO: This should scroll the selected row into view.
|
||||
updateSelectedGroup();
|
||||
@ -153,7 +153,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
controlPoints.CollectionChanged += (_, __) => createChildren();
|
||||
controlPoints.CollectionChanged += (_, _) => createChildren();
|
||||
}
|
||||
|
||||
private void createChildren()
|
||||
|
@ -76,7 +76,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
base.LoadComplete();
|
||||
|
||||
Current.BindValueChanged(_ => updateFromCurrent(), true);
|
||||
numeratorBox.OnCommit += (_, __) => updateFromNumeratorBox();
|
||||
numeratorBox.OnCommit += (_, _) => updateFromNumeratorBox();
|
||||
}
|
||||
|
||||
private void updateFromCurrent()
|
||||
|
@ -70,7 +70,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
Current.TriggerChange();
|
||||
};
|
||||
|
||||
Current.BindValueChanged(val =>
|
||||
Current.BindValueChanged(_ =>
|
||||
{
|
||||
decimal decimalValue = slider.Current.Value.ToDecimal(NumberFormatInfo.InvariantInfo);
|
||||
textBox.Text = decimalValue.ToString($@"N{FormatUtils.FindPrecision(decimalValue)}");
|
||||
|
@ -137,7 +137,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
}, true);
|
||||
|
||||
controlPointGroups.BindTo(Beatmap.ControlPointInfo.Groups);
|
||||
controlPointGroups.BindCollectionChanged((sender, args) =>
|
||||
controlPointGroups.BindCollectionChanged((_, _) =>
|
||||
{
|
||||
table.ControlGroups = controlPointGroups;
|
||||
changeHandler?.SaveState();
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
{
|
||||
Label = "BPM";
|
||||
|
||||
OnCommit += (val, isNew) =>
|
||||
OnCommit += (_, isNew) =>
|
||||
{
|
||||
if (!isNew) return;
|
||||
|
||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
selectedGroup.BindValueChanged(_ => updateTimingGroup(), true);
|
||||
|
||||
controlPointGroups.BindTo(editorBeatmap.ControlPointInfo.Groups);
|
||||
controlPointGroups.BindCollectionChanged((_, __) => updateTimingGroup());
|
||||
controlPointGroups.BindCollectionChanged((_, _) => updateTimingGroup());
|
||||
|
||||
beatLength.BindValueChanged(_ => regenerateDisplay(true), true);
|
||||
|
||||
|
Reference in New Issue
Block a user