|
@ -134,12 +134,17 @@ public: |
|
|
draw_list->AddRectFilled(upper_left, lower_right, ImColor(60, 60, 60), 4.0f); |
|
|
draw_list->AddRectFilled(upper_left, lower_right, ImColor(60, 60, 60), 4.0f); |
|
|
draw_list->AddRect(upper_left, lower_right, ImColor(100, 100, 100), 4.0f); |
|
|
draw_list->AddRect(upper_left, lower_right, ImColor(100, 100, 100), 4.0f); |
|
|
|
|
|
|
|
|
// for (int i=0; i<N; i++) { |
|
|
|
|
|
// auto position = node.bbox.pos; |
|
|
|
|
|
// position.y += (i+1) * (node.bbox.size.y)/(N+1); |
|
|
|
|
|
|
|
|
// -- Draw the connection dots |
|
|
|
|
|
for (int i=0; i<node.n_slots_in; i++) { |
|
|
|
|
|
auto position = node.slot_location(GuiNode::IN, i); |
|
|
|
|
|
draw_list->AddCircleFilled(offset + position, 4.0f, ImColor(150, 150, 150, 150)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i=0; i<node.n_slots_out; i++) { |
|
|
|
|
|
auto position = node.slot_location(GuiNode::OUT, i); |
|
|
|
|
|
draw_list->AddCircleFilled(offset + position, 4.0f, ImColor(150, 150, 150, 150)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// draw_list->AddCircleFilled(offset + position, 4.0f, ImColor(150, 150, 150, 150)); |
|
|
|
|
|
// } |
|
|
|
|
|
ImGui::PopID(); |
|
|
ImGui::PopID(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|