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

@ -293,7 +293,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
base.LoadComplete();
BeatDivisor.BindValueChanged(_ => updateState(), true);
divisorTextBox.OnCommit += (_, __) => setPresets();
divisorTextBox.OnCommit += (_, _) => setPresets();
Schedule(() => GetContainingInputManager().ChangeFocus(divisorTextBox));
}

View File

@ -55,7 +55,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
[BackgroundDependencyLoader]
private void load()
{
SelectedItems.CollectionChanged += (selectedObjects, args) =>
SelectedItems.CollectionChanged += (_, args) =>
{
switch (args.Action)
{

View File

@ -31,7 +31,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
// bring in updates from selection changes
EditorBeatmap.HitObjectUpdated += _ => Scheduler.AddOnce(UpdateTernaryStates);
SelectedItems.CollectionChanged += (sender, args) => Scheduler.AddOnce(UpdateTernaryStates);
SelectedItems.CollectionChanged += (_, _) => Scheduler.AddOnce(UpdateTernaryStates);
}
protected override void DeleteItems(IEnumerable<HitObject> items) => EditorBeatmap.RemoveRange(items);

View File

@ -64,7 +64,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
InternalChild = SelectionBox = CreateSelectionBox();
SelectedItems.CollectionChanged += (sender, args) =>
SelectedItems.CollectionChanged += (_, _) =>
{
Scheduler.AddOnce(updateVisibility);
};

View File

@ -38,8 +38,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
[BackgroundDependencyLoader]
private void load()
{
volume.BindValueChanged(volume => updateText());
bank.BindValueChanged(bank => updateText(), true);
volume.BindValueChanged(_ => updateText());
bank.BindValueChanged(_ => updateText(), true);
}
protected override bool OnClick(ClickEvent e)
@ -119,7 +119,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
});
// on commit, ensure that the value is correct by sourcing it from the objects' control points again.
// this ensures that committing empty text causes a revert to the previous value.
bank.OnCommit += (_, __) => bank.Current.Value = getCommonBank(relevantControlPoints);
bank.OnCommit += (_, _) => bank.Current.Value = getCommonBank(relevantControlPoints);
volume.Current.BindValueChanged(val => updateVolumeFor(relevantObjects, val.NewValue));
}

View File

@ -24,7 +24,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
controlPointGroups.UnbindAll();
controlPointGroups.BindTo(beatmap.ControlPointInfo.Groups);
controlPointGroups.BindCollectionChanged((sender, args) =>
controlPointGroups.BindCollectionChanged((_, args) =>
{
switch (args.Action)
{

View File

@ -34,7 +34,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
base.LoadComplete();
controlPoints.BindTo(Group.ControlPoints);
controlPoints.BindCollectionChanged((_, __) =>
controlPoints.BindCollectionChanged((_, _) =>
{
ClearInternal();