mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Update parameter discards
This commit is contained in:
@ -24,7 +24,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
|
||||
controlPointGroups.UnbindAll();
|
||||
controlPointGroups.BindTo(beatmap.ControlPointInfo.Groups);
|
||||
controlPointGroups.BindCollectionChanged((sender, args) =>
|
||||
controlPointGroups.BindCollectionChanged((_, args) =>
|
||||
{
|
||||
switch (args.Action)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
|
||||
// Run in constructor so IsRedundant calls can work correctly.
|
||||
controlPoints.BindTo(Group.ControlPoints);
|
||||
controlPoints.BindCollectionChanged((_, __) =>
|
||||
controlPoints.BindCollectionChanged((_, _) =>
|
||||
{
|
||||
ClearInternal();
|
||||
|
||||
@ -40,15 +40,15 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
{
|
||||
switch (point)
|
||||
{
|
||||
case TimingControlPoint _:
|
||||
case TimingControlPoint:
|
||||
AddInternal(new ControlPointVisualisation(point) { Y = 0, });
|
||||
break;
|
||||
|
||||
case DifficultyControlPoint _:
|
||||
case DifficultyControlPoint:
|
||||
AddInternal(new ControlPointVisualisation(point) { Y = 0.25f, });
|
||||
break;
|
||||
|
||||
case SampleControlPoint _:
|
||||
case SampleControlPoint:
|
||||
AddInternal(new ControlPointVisualisation(point) { Y = 0.5f, });
|
||||
break;
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
{
|
||||
AddInternal(this.content = content ?? new Container<T> { RelativeSizeAxes = Axes.Both });
|
||||
|
||||
beatmap.ValueChanged += b =>
|
||||
beatmap.ValueChanged += _ =>
|
||||
{
|
||||
updateRelativeChildSize();
|
||||
};
|
||||
|
Reference in New Issue
Block a user