mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
New Quick Open Dialog
- Updated list view with thumbnails, and separate file name.
- Added a grid view which has larger icons.
- Added toggle to filter out files from addons.
- Store history for each opened resource type.
New Editor settings for Quick Open:
- Startup display mode (grid or list):
- Determined by the requested resource type.
- Whatever was last used.
- Toggle to filter out files from addons (for persistence).
Notes
- The dialog is now created once in EditorNode, and globally available for other components.
- A fixed number of result scenes are instantiated, and reused based on query.
- Drop support for multiselect.
This commit is contained in:
parent
f4af8201ba
commit
06791e1acd
18 changed files with 1269 additions and 463 deletions
|
|
@ -261,6 +261,7 @@ void FlowContainer::_resort() {
|
|||
}
|
||||
cached_size = (vertical ? ofs.x : ofs.y) + line_height;
|
||||
cached_line_count = lines_data.size();
|
||||
cached_line_max_child_count = lines_data.size() > 0 ? lines_data[0].child_count : 0;
|
||||
}
|
||||
|
||||
Size2 FlowContainer::get_minimum_size() const {
|
||||
|
|
@ -339,6 +340,10 @@ int FlowContainer::get_line_count() const {
|
|||
return cached_line_count;
|
||||
}
|
||||
|
||||
int FlowContainer::get_line_max_child_count() const {
|
||||
return cached_line_max_child_count;
|
||||
}
|
||||
|
||||
void FlowContainer::set_alignment(AlignmentMode p_alignment) {
|
||||
if (alignment == p_alignment) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue