96{
97 DrawHeader("Curve Editor");
98 ImGui::Dummy(ImVec2(150, 10));
99 ImGui::SameLine();
100 ImGui::Text("Out");
101 outputPins[0]->Render();
102 ImGui::Text("Max Points");
103 ImGui::PushItemWidth(100);
104
105 if (ImGui::DragInt(("##dI" + std::to_string(id)).c_str(), &maxPoints, 1, 10, 256))
106 {
107 ReserveVector(curve, maxPoints);
108 }
109
110 ImGui::PopItemWidth();
111 ImGui::NewLine();
112
113 if (ImGui::Curve(("##" + std::to_string(id)).c_str(), ImVec2(200, 200), maxPoints, curve.data()))
114 {
115 }
116
117 ImGui::Text("Current Axis: ");
118 ImGui::SameLine();
119 ImGui::Text(axises[axis]);
120
121 if (ImGui::Button(("Change Axis##" + std::to_string(id)).c_str()))
122 {
123 axis++;
124
125 if (axis == 3)
126 {
127 axis = 0;
128 }
129 }
130}