@@ -75,6 +75,7 @@ namespace gui::debug
7575 struct : draw_settings
7676 {
7777 bool draw_node_links;
78+ bool negotation_links_only;
7879 float size = 10 .f;
7980 float link_thickness = 1 .f;
8081 float color[4 ] = {1 .f , 0 .f , 0 .f , 1 .f };
@@ -436,6 +437,7 @@ namespace gui::debug
436437 ImGui::Checkbox (" Lock camera" , &path_node_settings.camera_locked );
437438
438439 ImGui::Checkbox (" Draw node links" , &path_node_settings.draw_node_links );
440+ ImGui::Checkbox (" Negotation links only" , &path_node_settings.negotation_links_only );
439441
440442 if (ImGui::TreeNode (" Object type" ))
441443 {
@@ -539,6 +541,12 @@ namespace gui::debug
539541 const auto num = node->constant .Links [i].nodeNum ;
540542 const auto linked = &game::pathData->nodes [num];
541543
544+ if (path_node_settings.negotation_links_only &&
545+ linked->constant .type != game::NODE_NEGOTIATION_BEGIN && linked->constant .type != game::NODE_NEGOTIATION_END )
546+ {
547+ continue ;
548+ }
549+
542550 get_pathnode_origin (linked, linked_origin);
543551 if (distance_2d (path_node_settings.camera , linked_origin) < path_node_settings.range )
544552 {
@@ -583,6 +591,12 @@ namespace gui::debug
583591 float origin[3 ] = {};
584592 const auto node = &game::pathData->nodes [i];
585593
594+ if (path_node_settings.negotation_links_only &&
595+ node->constant .type != game::NODE_NEGOTIATION_BEGIN && node->constant .type != game::NODE_NEGOTIATION_END )
596+ {
597+ continue ;
598+ }
599+
586600 get_pathnode_origin (node, origin);
587601 if (distance_2d (path_node_settings.camera , origin) >= path_node_settings.range )
588602 {
0 commit comments