diff --git a/servers/navigation_2d_server.cpp b/servers/navigation_2d_server.cpp index 3d05d2e2e..845c632da 100644 --- a/servers/navigation_2d_server.cpp +++ b/servers/navigation_2d_server.cpp @@ -142,6 +142,37 @@ bool Navigation2DServer::get_debug_enabled() const { } #ifdef DEBUG_ENABLED +void Navigation2DServer::set_debug_navigation_edge_connection_color(const Color &p_color) { + NavigationServer::get_singleton_mut()->set_debug_navigation_edge_connection_color(p_color); +} + +Color Navigation2DServer::get_debug_navigation_edge_connection_color() const { + return NavigationServer::get_singleton()->get_debug_navigation_edge_connection_color(); +} + +void Navigation2DServer::set_debug_navigation_geometry_face_color(const Color &p_color) { + NavigationServer::get_singleton_mut()->set_debug_navigation_geometry_face_color(p_color); +} + +Color Navigation2DServer::get_debug_navigation_geometry_face_color() const { + return NavigationServer::get_singleton()->get_debug_navigation_geometry_face_color(); +} + +void Navigation2DServer::set_debug_navigation_geometry_face_disabled_color(const Color &p_color) { + NavigationServer::get_singleton_mut()->set_debug_navigation_geometry_face_disabled_color(p_color); +} + +Color Navigation2DServer::get_debug_navigation_geometry_face_disabled_color() const { + return NavigationServer::get_singleton()->get_debug_navigation_geometry_face_disabled_color(); +} + +void Navigation2DServer::set_debug_navigation_enable_edge_connections(const bool p_value) { + NavigationServer::get_singleton_mut()->set_debug_navigation_enable_edge_connections(p_value); +} + +bool Navigation2DServer::get_debug_navigation_enable_edge_connections() const { + return NavigationServer::get_singleton()->get_debug_navigation_enable_edge_connections(); +} void Navigation2DServer::set_debug_navigation_link_connection_color(const Color &p_color) { NavigationServer::get_singleton_mut()->set_debug_navigation_link_connection_color(p_color); diff --git a/servers/navigation_2d_server.h b/servers/navigation_2d_server.h index 3bb009e8c..fd32a93bc 100644 --- a/servers/navigation_2d_server.h +++ b/servers/navigation_2d_server.h @@ -242,6 +242,18 @@ public: bool get_debug_enabled() const; #ifdef DEBUG_ENABLED + void set_debug_navigation_edge_connection_color(const Color &p_color); + Color get_debug_navigation_edge_connection_color() const; + + void set_debug_navigation_geometry_face_color(const Color &p_color); + Color get_debug_navigation_geometry_face_color() const; + + void set_debug_navigation_geometry_face_disabled_color(const Color &p_color); + Color get_debug_navigation_geometry_face_disabled_color() const; + + void set_debug_navigation_enable_edge_connections(const bool p_value); + bool get_debug_navigation_enable_edge_connections() const; + void set_debug_navigation_link_connection_color(const Color &p_color); Color get_debug_navigation_link_connection_color() const;