protected override void LoadComplete() { base.LoadComplete(); RequestDeletion = item => multiplayerClient.RemovePlaylistItem(item.ID); host.BindValueChanged(_ => updateDeleteButtonVisibility()); queueMode.BindValueChanged(_ => updateDeleteButtonVisibility()); SelectedItem.BindValueChanged(_ => updateDeleteButtonVisibility(), true); }
protected override void LoadComplete() { base.LoadComplete(); SelectedItem.BindValueChanged(_ => updateBeatmap(), true); Host.BindValueChanged(host => { if (RoomID.Value == null || host.NewValue?.Equals(api.LocalUser.Value) == true) { selectButton.Show(); } else { selectButton.Hide(); } }, true); }
protected override void LoadComplete() { base.LoadComplete(); SelectedItem.BindValueChanged(item => sprite.Beatmap.Value = item.NewValue?.Beatmap.Value, true); }