Update with framework bindable changes

This commit is contained in:
smoogipoo
2019-02-21 18:56:34 +09:00
parent d637b184e4
commit bca347427f
195 changed files with 567 additions and 555 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Screens.Multi.Match.Components
{
beatmaps.ItemAdded += beatmapAdded;
Beatmap.BindValueChanged(updateBeatmap, true);
Beatmap.BindValueChanged(e => updateBeatmap(e.NewValue), true);
}
private void updateBeatmap(BeatmapInfo beatmap)
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Multi.Match.Components
return;
}
bool hasEnoughTime = DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(gameBeatmap.Value.Track.Length) < endDate;
bool hasEnoughTime = DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(gameBeatmap.Value.Track.Length) < endDate.Value;
Enabled.Value = hasBeatmap && hasEnoughTime;
}