diff options
| author | Franklin Sobrinho | 2015-10-18 13:31:44 -0300 |
|---|---|---|
| committer | Franklin Sobrinho | 2015-10-18 13:31:44 -0300 |
| commit | abde648e6844fa328affed0f1002f56edb4ab69c (patch) | |
| tree | aec56b09be638ddde5969f8088d9ab852736113f /tools/editor/plugins/mesh_editor_plugin.cpp | |
| parent | 6637a865187422b5b8303231dd43a38a5f5abd51 (diff) | |
| download | godot-abde648e6844fa328affed0f1002f56edb4ab69c.tar.gz godot-abde648e6844fa328affed0f1002f56edb4ab69c.tar.zst godot-abde648e6844fa328affed0f1002f56edb4ab69c.zip | |
Diffstat (limited to 'tools/editor/plugins/mesh_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/mesh_editor_plugin.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/editor/plugins/mesh_editor_plugin.cpp b/tools/editor/plugins/mesh_editor_plugin.cpp index 13d4c8db5..34ccf79fe 100644 --- a/tools/editor/plugins/mesh_editor_plugin.cpp +++ b/tools/editor/plugins/mesh_editor_plugin.cpp @@ -160,7 +160,7 @@ void MeshInstanceEditor::_menu_option(int p_option) { } break; case MENU_OPTION_CREATE_OUTLINE_MESH: { - outline_dialog->popup_centered_minsize(); + outline_dialog->popup_centered(Vector2(200, 90)); } break; } @@ -231,14 +231,19 @@ MeshInstanceEditor::MeshInstanceEditor() { options->get_popup()->connect("item_pressed", this,"_menu_option"); outline_dialog = memnew( ConfirmationDialog ); - outline_dialog->set_title("Outline Size: "); + outline_dialog->set_title("Create Outline Mesh"); + + VBoxContainer *outline_dialog_vbc = memnew( VBoxContainer ); + outline_dialog->add_child(outline_dialog_vbc); + outline_dialog->set_child_rect(outline_dialog_vbc); + outline_size = memnew( SpinBox ); outline_size->set_min(0.001); outline_size->set_max(1024); outline_size->set_step(0.001); outline_size->set_val(0.05); - outline_dialog->add_child(outline_size); - outline_dialog->set_child_rect(outline_size); + outline_dialog_vbc->add_margin_child("Outline Size:",outline_size); + add_child(outline_dialog); outline_dialog->connect("confirmed",this,"_create_outline_mesh"); |
