mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Handle bindable changes to fix new playlist creation not showing correct details
This commit is contained in:
@ -37,6 +37,8 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
private MatchLeaderboard leaderboard;
|
private MatchLeaderboard leaderboard;
|
||||||
private SelectionPollingComponent selectionPollingComponent;
|
private SelectionPollingComponent selectionPollingComponent;
|
||||||
|
|
||||||
|
private FillFlowContainer progressSection;
|
||||||
|
|
||||||
public PlaylistsRoomSubScreen(Room room)
|
public PlaylistsRoomSubScreen(Room room)
|
||||||
: base(room, false) // Editing is temporarily not allowed.
|
: base(room, false) // Editing is temporarily not allowed.
|
||||||
{
|
{
|
||||||
@ -67,6 +69,8 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
Schedule(() => SelectedItem.Value = Room.Playlist.FirstOrDefault());
|
Schedule(() => SelectedItem.Value = Room.Playlist.FirstOrDefault());
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
|
Room.MaxAttempts.BindValueChanged(attempts => progressSection.Alpha = Room.MaxAttempts.Value != null ? 1 : 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Drawable CreateMainContent() => new GridContainer
|
protected override Drawable CreateMainContent() => new GridContainer
|
||||||
@ -154,11 +158,11 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
|||||||
},
|
},
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
new FillFlowContainer
|
progressSection = new FillFlowContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Alpha = Room.MaxAttempts.Value != null ? 1 : 0,
|
Alpha = 0,
|
||||||
Margin = new MarginPadding { Bottom = 10 },
|
Margin = new MarginPadding { Bottom = 10 },
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
Reference in New Issue
Block a user