mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 21:09:38 +01:00
Added a VSeparator to the NavigationPolygonEditor and the NavigationMeshEditor.
This commit is contained in:
parent
86ee8840ac
commit
ee8716a7e6
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user