mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Revert some more instances of 'e' variable names
This commit is contained in:
@ -25,7 +25,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
CurrentItem.BindValueChanged(e => updateText(), true);
|
||||
CurrentItem.BindValueChanged(_ => updateText(), true);
|
||||
}
|
||||
|
||||
private float textSize = OsuFont.DEFAULT_FONT_SIZE;
|
||||
|
@ -51,11 +51,11 @@ namespace osu.Game.Screens.Multi.Components
|
||||
}
|
||||
};
|
||||
|
||||
CurrentItem.BindValueChanged(e =>
|
||||
CurrentItem.BindValueChanged(item =>
|
||||
{
|
||||
beatmapAuthor.Clear();
|
||||
|
||||
var beatmap = e.NewValue?.Beatmap;
|
||||
var beatmap = item.NewValue?.Beatmap;
|
||||
|
||||
if (beatmap != null)
|
||||
{
|
||||
|
@ -46,9 +46,9 @@ namespace osu.Game.Screens.Multi.Components
|
||||
},
|
||||
};
|
||||
|
||||
CurrentItem.BindValueChanged(e => updateBeatmap(e.NewValue), true);
|
||||
CurrentItem.BindValueChanged(item => updateBeatmap(item.NewValue), true);
|
||||
|
||||
Type.BindValueChanged(e => gameTypeContainer.Child = new DrawableGameType(e.NewValue) { Size = new Vector2(height) }, true);
|
||||
Type.BindValueChanged(type => gameTypeContainer.Child = new DrawableGameType(type.NewValue) { Size = new Vector2(height) }, true);
|
||||
}
|
||||
|
||||
private void updateBeatmap(PlaylistItem item)
|
||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
|
||||
InternalChild = sprite = CreateBackgroundSprite();
|
||||
|
||||
CurrentItem.BindValueChanged(e => sprite.Beatmap.Value = e.NewValue?.Beatmap, true);
|
||||
CurrentItem.BindValueChanged(item => sprite.Beatmap.Value = item.NewValue?.Beatmap, true);
|
||||
}
|
||||
|
||||
protected virtual UpdateableBeatmapBackgroundSprite CreateBackgroundSprite() => new UpdateableBeatmapBackgroundSprite { RelativeSizeAxes = Axes.Both };
|
||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
};
|
||||
|
||||
MaxParticipants.BindValueChanged(_ => updateMax(), true);
|
||||
ParticipantCount.BindValueChanged(e => count.Text = e.NewValue.ToString("#,0"), true);
|
||||
ParticipantCount.BindValueChanged(c => count.Text = c.NewValue.ToString("#,0"), true);
|
||||
}
|
||||
|
||||
private void updateMax()
|
||||
|
@ -53,7 +53,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
public EndDatePart()
|
||||
: base(DateTimeOffset.UtcNow)
|
||||
{
|
||||
EndDate.BindValueChanged(e => Date = e.NewValue);
|
||||
EndDate.BindValueChanged(date => Date = date.NewValue);
|
||||
}
|
||||
|
||||
protected override string Format()
|
||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Screens.Multi.Components
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
status.BindValueChanged(e => this.FadeColour(e.NewValue.GetAppropriateColour(colours), transitionDuration), true);
|
||||
status.BindValueChanged(s => this.FadeColour(s.NewValue.GetAppropriateColour(colours), transitionDuration), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user