s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
AdvancedDropdownWidget
chevron_left
Editor Classes
class
AdvancedDropdownWidget
search
Constructors
functions
AdvancedDropdownWidget
Properties
data_object
ContentSize
data_object
FilterWidget
lock
IsSearching
lock
IsTextInputActive
lock
Main
data_object
OnBuildItems
data_object
OnFinished
data_object
OnSelect
data_object
RootItem
data_object
RootTitle
data_object
Search
data_object
SearchPlaceholderText
data_object
SearchScorer
Methods
lock
BuildPanel
lock
OnBuildSearchResults
lock
OnKeyRelease
lock
OnPaint
functions
PopPanel
lock
PushPanel
functions
Rebuild
AdvancedDropdownWidget
A generic sliding hierarchical selector widget. Build a tree of Editor.AdvancedDropdownItem and hand it to this widget.
class
Editor
.
account_tree
extends
Widget
Sandbox.Tools
build
Constructors
1
AdvancedDropdownWidget
(
parent
)
data_object
Properties
13
ContentSize
Vector2
Fixed size of the content area (below the search bar).
FilterWidget
Widget
Optional filter widget placed next to the search bar (e.g. a settings button).
IsSearching
bool
Whether the user is currently searching.
IsTextInputActive
bool
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
Widget
OnBuildItems
Action`1
Called to (re)build the item tree. Receives Editor.AdvancedDropdownWidget.RootItem after it has been cleared.
OnFinished
Action
Called after selection to allow the host to close/cleanup.
OnSelect
Action`1
Called when a leaf item is selected. Receives the item's Editor.AdvancedDropdownItem.Value.
RootItem
AdvancedDropdownItem
The root of the item tree. Populated by Editor.AdvancedDropdownWidget.OnBuildItems or set directly.
RootTitle
string
Title shown in the root panel header.
Search
LineEdit
SearchPlaceholderText
string
Placeholder text shown in the search bar.
SearchScorer
Func`3
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.
functions
Methods
7
BuildPanel
(
panel
)
Build a panel's content from the item tree. Override to customize.
OnBuildSearchResults
(
panel
,
searchText
)
Called after search results are populated. Override to add extra entries (e.g. "New Component" button).
OnKeyRelease
(
e
)
OnPaint
(
)
PopPanel
(
)
Pop the current panel (navigate back).
PushPanel
(
panel
)
Push a new panel onto the stack (navigate deeper into a category).
Rebuild
(
)
Rebuild the item tree and reset to the root panel.
Inheritance
QObject
Widget
AdvancedDropdownWidget
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.