52{
53 DrawHeader("Add");
54 inputPins[0]->Render();
55
56 if (inputPins[0]->IsLinked())
57 {
58 ImGui::Text("Input 1");
59 }
60
61 else
62 {
63 ImGui::PushItemWidth(100);
64 ImGui::DragFloat(("##" + std::to_string(inputPins[0]->id)).c_str(), &value1, 0.01f);
65 ImGui::PopItemWidth();
66 }
67
68 ImGui::SameLine();
69 ImGui::Text("Out");
70 outputPins[0]->Render();
71 inputPins[1]->Render();
72
73 if(inputPins[1]->IsLinked())
74 {
75 ImGui::Text("Input 2");
76 }
77
78 else
79 {
80 ImGui::PushItemWidth(100);
81 ImGui::DragFloat(("##" + std::to_string(inputPins[1]->id)).c_str(), &value2, 0.01f);
82 ImGui::PopItemWidth();
83 }
84}