private void load()
        {
            SelectedItems.BindTo(state.SelectedTimeTags);

            // Add time-tag into blueprint container
            RegistBindable(timeTags);
        }
Ejemplo n.º 2
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            SelectedItems.BindTo(editor.SelectedComponents);

            // track each target container on the current screen.
            var targetContainers = target.ChildrenOfType <ISkinnableTarget>().ToArray();

            if (targetContainers.Length == 0)
            {
                string targetScreen = target.ChildrenOfType <Screen>().LastOrDefault()?.GetType().Name ?? "this screen";

                AddInternal(new ScreenWhiteBox.UnderConstructionMessage(targetScreen, "doesn't support skin customisation just yet."));
                return;
            }

            foreach (var targetContainer in targetContainers)
            {
                var bindableList = new BindableList <ISkinnableDrawable> {
                    BindTarget = targetContainer.Components
                };
                bindableList.BindCollectionChanged(componentsChanged, true);

                targetComponents.Add(bindableList);
            }
        }
Ejemplo n.º 3
0
        private void load()
        {
            SelectedItems.BindTo(state.SelectedTextTags);

            // Add ruby and romaji tag into blueprint container
            RegistBindable(rubyTags);
            RegistBindable(romajiTags);
        }
Ejemplo n.º 4
0
        private void load(NoteEditor noteEditor, EditorBeatmap beatmap)
        {
            SelectedItems.BindTo(noteEditor.SelectedNotes);

            // todo : might deal with the cause if create or delete notes.
            notes.Value = beatmap.HitObjects.OfType <Note>().Where(x => x.ParentLyric == lyric).ToArray();

            // Add time-tag into blueprint container
            RegistBindable(notes);
        }
Ejemplo n.º 5
0
        private void load()
        {
            createStateBindables();

            // bring in updates from selection changes
            EditorBeatmap.HitObjectUpdated += _ => Scheduler.AddOnce(UpdateTernaryStates);

            SelectedItems.BindTo(EditorBeatmap.SelectedHitObjects);
            SelectedItems.CollectionChanged += (sender, args) =>
            {
                Scheduler.AddOnce(UpdateTernaryStates);
            };
        }
 private void load()
 {
     SelectedItems.BindTo(state.SelectedTimeTags);
 }
Ejemplo n.º 7
0
 private void load()
 {
     SelectedItems.BindTo(Beatmap.SelectedHitObjects);
 }
Ejemplo n.º 8
0
 private void load(SkinEditor editor)
 {
     SelectedItems.BindTo(editor.SelectedComponents);
 }