mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Fix backgrounds not quite working
This commit is contained in:
@ -213,8 +213,6 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
d.FadeColour(s.GetAppropriateColour(colours), transition_duration);
|
||||
};
|
||||
|
||||
background.Beatmap.BindTo(beatmap);
|
||||
|
||||
beatmapBind.BindValueChanged(b => beatmap.Value = beatmaps.GetWorkingBeatmap(b));
|
||||
nameBind.BindValueChanged(n => name.Text = n);
|
||||
|
||||
@ -224,6 +222,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
typeBind.BindTo(Room.Type);
|
||||
beatmapBind.BindTo(Room.Beatmap);
|
||||
participantsBind.BindTo(Room.Participants);
|
||||
background.Beatmap.BindTo(beatmapBind);
|
||||
|
||||
modeTypeInfo.Beatmap.BindTo(beatmapBind);
|
||||
modeTypeInfo.Type.BindTo(typeBind);
|
||||
|
@ -180,7 +180,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
|
||||
nameBind.BindValueChanged(n => name.Text = n);
|
||||
|
||||
background.Beatmap.BindTo(beatmap);
|
||||
background.Beatmap.BindTo(beatmapBind);
|
||||
|
||||
participantInfo.Host.BindTo(hostBind);
|
||||
participantInfo.Participants.BindTo(participantsBind);
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
{
|
||||
public const float HEIGHT = 200;
|
||||
|
||||
public readonly IBindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
|
||||
public readonly IBindable<BeatmapInfo> Beatmap = new Bindable<BeatmapInfo>();
|
||||
|
||||
private readonly Box tabStrip;
|
||||
|
||||
|
@ -86,7 +86,7 @@ namespace osu.Game.Screens.Multi.Match
|
||||
};
|
||||
|
||||
header.OnRequestSelectBeatmap = () => Push(new MatchSongSelect());
|
||||
header.Beatmap.BindTo(Beatmap);
|
||||
header.Beatmap.BindTo(beatmapBind);
|
||||
|
||||
header.Tabs.Current.ValueChanged += t =>
|
||||
{
|
||||
|
@ -69,6 +69,9 @@ namespace osu.Game.Screens.Multi
|
||||
pi.SetRulesets(rulesets);
|
||||
}
|
||||
|
||||
// Temporarily
|
||||
r.Beatmap.Value = r.Playlist.FirstOrDefault()?.Beatmap;
|
||||
|
||||
var existing = rooms.FirstOrDefault(e => e.RoomID.Value == r.RoomID.Value);
|
||||
if (existing == null)
|
||||
rooms.Add(r);
|
||||
|
Reference in New Issue
Block a user