mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Revert unnecessary changes
This commit is contained in:
parent
2dcbb823ef
commit
509862490e
@ -418,7 +418,7 @@ namespace osu.Game.Overlays.Mods
|
||||
yield return new ColumnDimContainer(new ModPresetColumn
|
||||
{
|
||||
Margin = new MarginPadding { Right = 10 }
|
||||
}, this);
|
||||
});
|
||||
}
|
||||
|
||||
yield return createModColumnContent(ModType.DifficultyReduction);
|
||||
@ -436,7 +436,7 @@ namespace osu.Game.Overlays.Mods
|
||||
column.Margin = new MarginPadding { Right = 10 };
|
||||
});
|
||||
|
||||
return new ColumnDimContainer(column, this);
|
||||
return new ColumnDimContainer(column);
|
||||
}
|
||||
|
||||
private void createLocalMods()
|
||||
@ -895,17 +895,13 @@ namespace osu.Game.Overlays.Mods
|
||||
[Resolved]
|
||||
private OsuColour colours { get; set; } = null!;
|
||||
|
||||
private ModSelectOverlay modSelectOverlayInstance;
|
||||
|
||||
public ColumnDimContainer(ModSelectColumn column, ModSelectOverlay modSelectOverlay)
|
||||
public ColumnDimContainer(ModSelectColumn column)
|
||||
{
|
||||
AutoSizeAxes = Axes.X;
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
|
||||
Child = Column = column;
|
||||
column.Active.BindTo(Active);
|
||||
|
||||
this.modSelectOverlayInstance = modSelectOverlay;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -953,7 +949,7 @@ namespace osu.Game.Overlays.Mods
|
||||
RequestScroll?.Invoke(this);
|
||||
|
||||
// Killing focus is done here because it's the only feasible place on ModSelectOverlay you can click on without triggering any action.
|
||||
modSelectOverlayInstance.setTextBoxFocus(false);
|
||||
Scheduler.Add(() => GetContainingInputManager().ChangeFocus(null));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user