Update parameter discards

This commit is contained in:
Dean Herbert
2022-06-24 21:25:23 +09:00
parent 30eebf3511
commit 31a447fda0
182 changed files with 309 additions and 309 deletions

View File

@ -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()

View File

@ -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()

View File

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

View File

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

View File

@ -77,7 +77,7 @@ namespace osu.Game.Screens.Edit.Timing
{
Label = "BPM";
OnCommit += (val, isNew) =>
OnCommit += (_, isNew) =>
{
if (!isNew) return;

View File

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