mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix 2D navigation debug visuals ignoring half the ProjectSettings
Fixes that NavigationRegion2D and TileMap debug visuals ignored more or less half the ProjectSetting. E.g. random color could not be disabled, edges did not display.
This commit is contained in:
parent
27b2260460
commit
2b19c70664
4 changed files with 137 additions and 53 deletions
|
@ -200,6 +200,22 @@ Color NavigationServer2D::get_debug_navigation_link_connection_disabled_color()
|
|||
return NavigationServer3D::get_singleton()->get_debug_navigation_link_connection_disabled_color();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_geometry_edge_color(const Color &p_color) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_geometry_edge_color(p_color);
|
||||
}
|
||||
|
||||
Color NavigationServer2D::get_debug_navigation_geometry_edge_color() const {
|
||||
return NavigationServer3D::get_singleton()->get_debug_navigation_geometry_edge_color();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_geometry_edge_disabled_color(const Color &p_color) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_geometry_edge_disabled_color(p_color);
|
||||
}
|
||||
|
||||
Color NavigationServer2D::get_debug_navigation_geometry_edge_disabled_color() const {
|
||||
return NavigationServer3D::get_singleton()->get_debug_navigation_geometry_edge_disabled_color();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_enable_edge_connections(const bool p_value) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_enable_edge_connections(p_value);
|
||||
}
|
||||
|
@ -208,6 +224,22 @@ bool NavigationServer2D::get_debug_navigation_enable_edge_connections() const {
|
|||
return NavigationServer3D::get_singleton()->get_debug_navigation_enable_edge_connections();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_enable_geometry_face_random_color(const bool p_value) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_enable_geometry_face_random_color(p_value);
|
||||
}
|
||||
|
||||
bool NavigationServer2D::get_debug_navigation_enable_geometry_face_random_color() const {
|
||||
return NavigationServer3D::get_singleton()->get_debug_navigation_enable_geometry_face_random_color();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_enable_edge_lines(const bool p_value) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_enable_edge_lines(p_value);
|
||||
}
|
||||
|
||||
bool NavigationServer2D::get_debug_navigation_enable_edge_lines() const {
|
||||
return NavigationServer3D::get_singleton()->get_debug_navigation_enable_edge_lines();
|
||||
}
|
||||
|
||||
void NavigationServer2D::set_debug_navigation_agent_path_color(const Color &p_color) {
|
||||
NavigationServer3D::get_singleton()->set_debug_navigation_agent_path_color(p_color);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue