private void load() { SelectedItems.BindTo(state.SelectedTimeTags); // Add time-tag into blueprint container RegistBindable(timeTags); }
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); } }
private void load() { SelectedItems.BindTo(state.SelectedTextTags); // Add ruby and romaji tag into blueprint container RegistBindable(rubyTags); RegistBindable(romajiTags); }
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); }
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); }
private void load() { SelectedItems.BindTo(Beatmap.SelectedHitObjects); }
private void load(SkinEditor editor) { SelectedItems.BindTo(editor.SelectedComponents); }