1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Use room mod select overlay rely on explicit binding rather than DI resolution

This commit is contained in:
Bartłomiej Dach 2024-05-30 14:15:23 +02:00
parent dd6e9308b3
commit ffd788c65c
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
{
public partial class RoomModSelectOverlay : UserModSelectOverlay
{
[Resolved]
private IBindable<PlaylistItem> selectedItem { get; set; } = null!;
public Bindable<PlaylistItem> SelectedItem { get; } = new Bindable<PlaylistItem>();
[Resolved]
private RulesetStore rulesets { get; set; } = null!;
@ -33,7 +32,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
{
base.LoadComplete();
selectedItem.BindValueChanged(v =>
SelectedItem.BindValueChanged(v =>
{
roomRequiredMods.Clear();

View File

@ -240,6 +240,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
LoadComponent(UserModsSelectOverlay = new RoomModSelectOverlay
{
SelectedItem = { BindTarget = SelectedItem },
SelectedMods = { BindTarget = UserMods },
IsValidMod = _ => false
});