public sealed class BehaviorSearchPopupSearch-to-create, filtered by what may go where.
Remarks
NodeSearch's ranked popup, in shape and in behaviour: type a few letters, get the things whose name or category matches, best first. What is different is the filter — dropping on a composite's child row offers composites and tasks, and dropping on a node's decorator strip offers decorators — because a tree's slots are typed where a dataflow graph's ports are.
⚠ It ranks on the same rule NodeSearch does and does not share the code. That framework's search is over NodeTypeDefinition, which carries ports and a factory this library has neither of. Twenty lines of ranking against a reference to a framework whose model was deliberately not taken is the wrong trade — doc 37 § D19.
Fields and properties (6)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public TextBox QueryWhat was typed.
public UiElement ResultsThe rows.
public bool IsOpenWhether it is showing.
public IReadOnlyList<BehaviorNodeType> MatchesWhat is offered, best first.
Events (1)
public Action<BehaviorNodeType>? ChosenRaised when a row is picked.
Methods (6)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
public void Show(BehaviorNodeSchema library, BehaviorSlot wanted, float x, float y)Opens it over a slot.
public void Close()Closes it.
public void Rank()Re-ranks the rows against what has been typed.
public static int Score(BehaviorNodeType type, string query)How well a type answers a query. Zero means it does not.
public bool Pick(int index)Picks the row at an index, which is what a click and the keyboard both do.
Used by (1)
- BehaviorTreeViewVixen.Editor.AssetEditors