diff options
| author | Juan Linietsky | 2015-12-14 10:25:19 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-12-14 10:25:19 -0300 |
| commit | 4713bcccf3de5f8e0f577f29a67f38bfb8a99b57 (patch) | |
| tree | fa79263ca3cd17786086f3c9a93f40270abb73a5 /tools/editor/reparent_dialog.cpp | |
| parent | 83e0e97214a4fad635e5992bbbbd413642d76436 (diff) | |
| parent | c262becd7bb87fc17e5a4d3b737c13682855da1a (diff) | |
| download | godot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.tar.gz godot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.tar.zst godot-4713bcccf3de5f8e0f577f29a67f38bfb8a99b57.zip | |
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/editor/reparent_dialog.cpp')
| -rw-r--r-- | tools/editor/reparent_dialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/editor/reparent_dialog.cpp b/tools/editor/reparent_dialog.cpp index 78ba47d54..f02484473 100644 --- a/tools/editor/reparent_dialog.cpp +++ b/tools/editor/reparent_dialog.cpp @@ -36,12 +36,12 @@ void ReparentDialog::_notification(int p_what) { - if (p_what==NOTIFICATION_ENTER_TREE) { + if (p_what==NOTIFICATION_ENTER_TREE) { connect("confirmed", this,"_reparent"); } - if (p_what==NOTIFICATION_EXIT_TREE) { + if (p_what==NOTIFICATION_EXIT_TREE) { disconnect("confirmed", this,"_reparent"); } @@ -83,29 +83,29 @@ void ReparentDialog::_bind_methods() { ReparentDialog::ReparentDialog() { - set_title("Reparent Node"); + VBoxContainer *vbc = memnew( VBoxContainer ); add_child(vbc); set_child_rect(vbc); tree = memnew( SceneTreeEditor(false) ); - + tree->set_show_enabled_subscene(true); vbc->add_margin_child("Reparent Location (Select new Parent):",tree,true); - + + tree->get_scene_tree()->connect("item_activated",this,"_reparent"); + //Label *label = memnew( Label ); //label->set_pos( Point2( 15,8) ); //label->set_text("Reparent Location (Select new Parent):"); - + node_only = memnew( CheckButton ); add_child(node_only); node_only->hide(); - tree->set_show_enabled_subscene(true); //vbc->add_margin_child("Options:",node_only);; - //cancel->connect("pressed", this,"_cancel"); |
