Fix host info not working

This commit is contained in:
smoogipoo
2018-12-25 18:07:19 +09:00
parent 2f32c4d4d1
commit 1dd2a4e368
3 changed files with 30 additions and 14 deletions

View File

@ -35,6 +35,7 @@ namespace osu.Game.Screens.Multi.Match.Components
ViewBeatmapButton viewBeatmapButton;
OsuSpriteText name;
EndDateInfo endDate;
HostInfo hostInfo;
Children = new Drawable[]
{
@ -69,7 +70,7 @@ namespace osu.Game.Screens.Multi.Match.Components
endDate = new EndDateInfo { TextSize = 14 }
}
},
new HostInfo(room),
hostInfo = new HostInfo(),
},
},
new FillFlowContainer
@ -95,6 +96,7 @@ namespace osu.Game.Screens.Multi.Match.Components
viewBeatmapButton.Beatmap.BindTo(bindings.CurrentBeatmap);
readyButton.Beatmap.BindTo(bindings.CurrentBeatmap);
hostInfo.Host.BindTo(bindings.Host);
bindings.Availability.BindValueChanged(_ => updateAvailabilityStatus());
bindings.Status.BindValueChanged(_ => updateAvailabilityStatus());