Ejemplo n.º 1
0
            protected override void LoadComplete()
            {
                base.LoadComplete();

                RequestDeletion = item => multiplayerClient.RemovePlaylistItem(item.ID);

                host.BindValueChanged(_ => updateDeleteButtonVisibility());
                queueMode.BindValueChanged(_ => updateDeleteButtonVisibility());
                SelectedItem.BindValueChanged(_ => updateDeleteButtonVisibility(), true);
            }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            SelectedItem.BindValueChanged(item => sprite.Beatmap.Value = item.NewValue?.Beatmap.Value, true);
        }