diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-19 23:09:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 23:09:49 +0200 |
commit | 6d8c14f849376905e1577f9fc3f9512bcffb1e3c (patch) | |
tree | 1c0de1bac35046915575687e8d8993643d372474 /modules/gdnavigation/navigation_mesh_editor_plugin.cpp | |
parent | cb9d02a8d1b5bb71abcec6be0e75002c5ea656c4 (diff) | |
parent | 31b7f02a29cdf4f1c30cfc37962f43f67380b9ad (diff) |
Merge pull request #39690 from Calinou/remove-toolbutton
Remove ToolButton in favor of Button
Diffstat (limited to 'modules/gdnavigation/navigation_mesh_editor_plugin.cpp')
-rw-r--r-- | modules/gdnavigation/navigation_mesh_editor_plugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp index 5fe1060aae..648f4f7cdd 100644 --- a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp +++ b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp @@ -95,13 +95,15 @@ void NavigationMeshEditor::_bind_methods() { NavigationMeshEditor::NavigationMeshEditor() { bake_hbox = memnew(HBoxContainer); - button_bake = memnew(ToolButton); + button_bake = memnew(Button); + button_bake->set_flat(true); bake_hbox->add_child(button_bake); button_bake->set_toggle_mode(true); button_bake->set_text(TTR("Bake NavMesh")); button_bake->connect("pressed", callable_mp(this, &NavigationMeshEditor::_bake_pressed)); - button_reset = memnew(ToolButton); + button_reset = memnew(Button); + button_reset->set_flat(true); 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.")); |