mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:02:54 +08:00
Add dependency container to RoomSubScreen
This commit is contained in:
parent
4d1897c6b4
commit
6b6d52c23b
@ -239,6 +239,14 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
UserMods.BindValueChanged(_ => Scheduler.AddOnce(UpdateMods));
|
||||
}
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
{
|
||||
return new CachedModelDependencyContainer<Room>(base.CreateChildDependencies(parent))
|
||||
{
|
||||
Model = { Value = Room }
|
||||
};
|
||||
}
|
||||
|
||||
public override bool OnBackButton()
|
||||
{
|
||||
if (Room.RoomID.Value == null)
|
||||
|
Loading…
Reference in New Issue
Block a user