Added a VSeparator to the NavigationPolygonEditor and the NavigationMeshEditor.

This commit is contained in:
Relintai 2023-09-03 12:44:55 +02:00
parent 86ee8840ac
commit ee8716a7e6
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@
#include "scene/resources/navigation_mesh.h"
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
#include "servers/navigation/navigation_mesh_generator.h"
#include "scene/gui/separator.h"
void NavigationMeshEditor::_node_removed(Node *p_node) {
if (p_node == node) {
@ -136,6 +137,8 @@ void NavigationMeshEditor::_bind_methods() {
NavigationMeshEditor::NavigationMeshEditor() {
bake_hbox = memnew(HBoxContainer);
bake_hbox->add_child(memnew(VSeparator));
button_bake = memnew(Button);
button_bake->set_flat(true);
bake_hbox->add_child(button_bake);

View File

@ -43,6 +43,7 @@
#include "scene/resources/navigation_mesh_source_geometry_data_2d.h"
#include "scene/resources/navigation_polygon.h"
#include "servers/navigation/navigation_mesh_generator.h"
#include "scene/gui/separator.h"
Ref<NavigationPolygon> NavigationPolygonEditor::_ensure_navpoly() const {
Ref<NavigationPolygon> navpoly = node->get_navigation_polygon();
@ -136,6 +137,8 @@ NavigationPolygonEditor::NavigationPolygonEditor(EditorNode *p_editor, bool p_wi
bake_hbox = memnew(HBoxContainer);
add_child(bake_hbox);
bake_hbox->add_child(memnew(VSeparator));
button_bake = memnew(Button);
button_bake->set_flat(true);
bake_hbox->add_child(button_bake);