mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Update variable names
Also cleans up some weird code
This commit is contained in:
@ -61,7 +61,7 @@ namespace osu.Game.Screens.Edit.Components
|
||||
}
|
||||
};
|
||||
|
||||
tabs.Current.ValueChanged += e => Beatmap.Value.Track.Tempo.Value = e.NewValue;
|
||||
tabs.Current.ValueChanged += tempo => Beatmap.Value.Track.Tempo.Value = tempo.NewValue;
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
|
@ -80,10 +80,10 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
button.Selected.ValueChanged += e =>
|
||||
button.Selected.ValueChanged += selected =>
|
||||
{
|
||||
updateSelectionState();
|
||||
if (e.NewValue)
|
||||
if (selected.NewValue)
|
||||
Selected?.Invoke(button);
|
||||
};
|
||||
|
||||
|
@ -44,9 +44,9 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
private RadioButton currentlySelected;
|
||||
private void addButton(RadioButton button)
|
||||
{
|
||||
button.Selected.ValueChanged += e =>
|
||||
button.Selected.ValueChanged += selected =>
|
||||
{
|
||||
if (e.NewValue)
|
||||
if (selected.NewValue)
|
||||
{
|
||||
currentlySelected?.Deselect();
|
||||
currentlySelected = button;
|
||||
|
@ -24,10 +24,10 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
|
||||
{
|
||||
AddInternal(timeline = new Container { RelativeSizeAxes = Axes.Both });
|
||||
|
||||
Beatmap.ValueChanged += e =>
|
||||
Beatmap.ValueChanged += b =>
|
||||
{
|
||||
updateRelativeChildSize();
|
||||
LoadBeatmap(e.NewValue);
|
||||
LoadBeatmap(b.NewValue);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user