diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-10-21 23:31:51 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-10-25 12:15:39 -0300 |
commit | 46d02bade4ce00fb21cad273a3fc686fd7e3c7b8 (patch) | |
tree | c00320de393439eaca8055ed00630873ef6391e7 /modules/recast/navigation_mesh_editor_plugin.cpp | |
parent | dbaa22329761ce7a4d8bab291871b5b5ba359cbe (diff) |
Fix inconsistences in some buttons in the Canvas/Spatial editor menubar
Diffstat (limited to 'modules/recast/navigation_mesh_editor_plugin.cpp')
-rw-r--r-- | modules/recast/navigation_mesh_editor_plugin.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/recast/navigation_mesh_editor_plugin.cpp b/modules/recast/navigation_mesh_editor_plugin.cpp index 98351fbaee..d121a82d9e 100644 --- a/modules/recast/navigation_mesh_editor_plugin.cpp +++ b/modules/recast/navigation_mesh_editor_plugin.cpp @@ -103,24 +103,25 @@ void NavigationMeshEditor::_bind_methods() { NavigationMeshEditor::NavigationMeshEditor() { bake_hbox = memnew(HBoxContainer); + button_bake = memnew(ToolButton); - button_bake->set_text(TTR("Bake!")); + bake_hbox->add_child(button_bake); button_bake->set_toggle_mode(true); - button_reset = memnew(Button); - button_bake->set_tooltip(TTR("Bake the navigation mesh.") + "\n"); + button_bake->set_text(TTR("Bake NavMesh")); + button_bake->connect("pressed", this, "_bake_pressed"); - bake_info = memnew(Label); - bake_hbox->add_child(button_bake); + button_reset = memnew(ToolButton); bake_hbox->add_child(button_reset); + // No button text, we only use a revert icon which is set when entering the tree. + button_reset->set_tooltip(TTR("Clear the navigation mesh.")); + button_reset->connect("pressed", this, "_clear_pressed"); + + bake_info = memnew(Label); bake_hbox->add_child(bake_info); err_dialog = memnew(AcceptDialog); add_child(err_dialog); node = NULL; - - button_bake->connect("pressed", this, "_bake_pressed"); - button_reset->connect("pressed", this, "_clear_pressed"); - button_reset->set_tooltip(TTR("Clear the navigation mesh.")); } NavigationMeshEditor::~NavigationMeshEditor() { |