mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
(works now) use BindValueChanged to set the Queue text
This commit is contained in:
parent
5e5fbc496e
commit
5a5629eb5a
@ -24,14 +24,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
|||||||
|
|
||||||
private class QueueTabItem : OsuTabItem
|
private class QueueTabItem : OsuTabItem
|
||||||
{
|
{
|
||||||
private Bindable<int> count;
|
|
||||||
|
|
||||||
public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable<int> queueListCount)
|
public QueueTabItem(MultiplayerPlaylistDisplayMode value, Bindable<int> queueListCount)
|
||||||
: base(value)
|
: base(value)
|
||||||
{
|
{
|
||||||
count = new Bindable<int>();
|
queueListCount.BindValueChanged(
|
||||||
count.BindTo(queueListCount);
|
_ => Text.Text = "Queue (" + queueListCount.Value + ")", true);
|
||||||
Text.Text += " (" + count.Value + ")";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user