Inheritence

Summary

A generic sliding hierarchical selector widget. Build a tree of Editor.AdvancedDropdownItem and hand it to this widget.

Constructors

AdvancedDropdownWidget

Properties

ContentSize Fixed size of the content area (below the search bar).
FilterWidget Optional filter widget placed next to the search bar (e.g. a settings button).
IsSearching Whether the user is currently searching.
IsTextInputActive For subclasses that have a text input inside the panel (e.g. a name field) - set to true to prevent Left arrow key from popping the panel.
Main
OnBuildItems Called to (re)build the item tree. Receives Editor.AdvancedDropdownWidget.RootItem after it has been cleared.
OnFinished Called after selection to allow the host to close/cleanup.
OnSelect Called when a leaf item is selected. Receives the item's Editor.AdvancedDropdownItem.Value.
RootItem The root of the item tree. Populated by Editor.AdvancedDropdownWidget.OnBuildItems or set directly.
RootTitle Title shown in the root panel header.
Search
SearchPlaceholderText Placeholder text shown in the search bar.
SearchScorer Optional custom search scorer. Receives an item and the search words, returns a score (0 = no match). If null, the default scorer matches against Title and Description.

Methods

BuildPanel Build a panel's content from the item tree. Override to customize.
OnBuildSearchResults Called after search results are populated. Override to add extra entries (e.g. "New Component" button).
OnKeyRelease
OnPaint
PopPanel Pop the current panel (navigate back).
PushPanel Push a new panel onto the stack (navigate deeper into a category).
Rebuild Rebuild the item tree and reset to the root panel.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.