summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorNoshyaar <poommetee@protonmail.com>2017-12-27 10:27:06 +0700
committerGitHub <noreply@github.com>2017-12-27 10:27:06 +0700
commit4bf1d3afbf958e5430849bc7705300cbf623737e (patch)
tree1c055d1f89f5952f01b8485c03f633aefe2af1b8 /editor/create_dialog.cpp
parente2a091e6002cc301e562b61092234d997d8f0af1 (diff)
parentecf3fbadf4fedecdd372cb72ffb4bb6eb263062c (diff)
downloadredot-engine-4bf1d3afbf958e5430849bc7705300cbf623737e.tar.gz
Merge pull request #15028 from YeldhamDev/editor_file_dialog_changes
Changes to the Editor File Dialog
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp52
1 files changed, 24 insertions, 28 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 2189830acb..e904fd94be 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -635,34 +635,30 @@ CreateDialog::CreateDialog() {
VSplitContainer *vsc = memnew(VSplitContainer);
hsc->add_child(vsc);
- {
- VBoxContainer *lvbc = memnew(VBoxContainer);
- vsc->add_child(lvbc);
- lvbc->set_custom_minimum_size(Size2(150, 100) * EDSCALE);
- lvbc->set_v_size_flags(SIZE_EXPAND_FILL);
-
- favorites = memnew(Tree);
- lvbc->add_margin_child(TTR("Favorites:"), favorites, true);
- favorites->set_hide_root(true);
- favorites->set_hide_folding(true);
- favorites->connect("cell_selected", this, "_favorite_selected");
- favorites->connect("item_activated", this, "_favorite_activated");
- favorites->set_drag_forwarding(this);
- }
-
- {
- VBoxContainer *lvbc = memnew(VBoxContainer);
- vsc->add_child(lvbc);
- lvbc->set_custom_minimum_size(Size2(150, 100) * EDSCALE);
- lvbc->set_v_size_flags(SIZE_EXPAND_FILL);
-
- recent = memnew(Tree);
- lvbc->add_margin_child(TTR("Recent:"), recent, true);
- recent->set_hide_root(true);
- recent->set_hide_folding(true);
- recent->connect("cell_selected", this, "_history_selected");
- recent->connect("item_activated", this, "_history_activated");
- }
+ VBoxContainer *fav_vb = memnew(VBoxContainer);
+ vsc->add_child(fav_vb);
+ fav_vb->set_custom_minimum_size(Size2(150, 100) * EDSCALE);
+ fav_vb->set_v_size_flags(SIZE_EXPAND_FILL);
+
+ favorites = memnew(Tree);
+ fav_vb->add_margin_child(TTR("Favorites:"), favorites, true);
+ favorites->set_hide_root(true);
+ favorites->set_hide_folding(true);
+ favorites->connect("cell_selected", this, "_favorite_selected");
+ favorites->connect("item_activated", this, "_favorite_activated");
+ favorites->set_drag_forwarding(this);
+
+ VBoxContainer *rec_vb = memnew(VBoxContainer);
+ vsc->add_child(rec_vb);
+ rec_vb->set_custom_minimum_size(Size2(150, 100) * EDSCALE);
+ rec_vb->set_v_size_flags(SIZE_EXPAND_FILL);
+
+ recent = memnew(Tree);
+ rec_vb->add_margin_child(TTR("Recent:"), recent, true);
+ recent->set_hide_root(true);
+ recent->set_hide_folding(true);
+ recent->connect("cell_selected", this, "_history_selected");
+ recent->connect("item_activated", this, "_history_activated");
VBoxContainer *vbc = memnew(VBoxContainer);
hsc->add_child(vbc);