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