diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-14 08:43:56 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2015-12-14 08:43:56 -0300 |
commit | 12bfb55c6ce07ec81c8c886444a56c8ba3163c2c (patch) | |
tree | 2e97b13b81dd3bb546984968671b71ef5248e7f3 /tools/editor/editor_sub_scene.cpp | |
parent | 451b1d91446f6e15763b4d6ec3bd6d74c2be8080 (diff) |
Implement double-click on remaining dialogs
Diffstat (limited to 'tools/editor/editor_sub_scene.cpp')
-rw-r--r-- | tools/editor/editor_sub_scene.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/editor/editor_sub_scene.cpp b/tools/editor/editor_sub_scene.cpp index 2a6eba2554..d7d79e5cc7 100644 --- a/tools/editor/editor_sub_scene.cpp +++ b/tools/editor/editor_sub_scene.cpp @@ -196,7 +196,11 @@ void EditorSubScene::_bind_methods() { EditorSubScene::EditorSubScene() { + scene=NULL; + set_title("Select Sub-Scene.."); + set_hide_on_ok(false); + VBoxContainer *vb = memnew( VBoxContainer ); add_child(vb); set_child_rect(vb); @@ -211,9 +215,11 @@ EditorSubScene::EditorSubScene() { hb->add_child(b); b->connect("pressed",this,"_path_browse"); vb->add_margin_child("Scene Path:",hb); + tree = memnew( Tree ); tree->set_v_size_flags(SIZE_EXPAND_FILL); - vb->add_margin_child("Import From Node:",tree)->set_v_size_flags(SIZE_EXPAND_FILL); + vb->add_margin_child("Import From Node:",tree,true); + tree->connect("item_activated",this,"_ok"); file_dialog = memnew( EditorFileDialog ); List<String> extensions; @@ -228,8 +234,4 @@ EditorSubScene::EditorSubScene() { add_child(file_dialog); file_dialog->connect("file_selected",this,"_path_selected"); - scene=NULL; - - set_hide_on_ok(false); - } |