TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ DrawHeader()

void NodeEditorNode::DrawHeader ( std::string  text)

Definition at line 221 of file NodeEditor.cpp.

222{
223 ImVec2 pos = ImGui::GetCursorPos();
224 ImGui::SetCursorPos(ImVec2(pos.x - ImGuiNodeEditor::GetStyle().NodePadding.x, pos.y - ImGuiNodeEditor::GetStyle().NodePadding.y));
225 ImVec2 start = ImGuiNodeEditor::GetNodeSize(_id);
226 ImGui::DrawFilledRect(ImVec2(start.x, 60), headerColor, 13);
227 ImGui::SetCursorPos(ImVec2(pos.x + ImGuiNodeEditor::GetStyle().NodePadding.x, pos.y + ImGuiNodeEditor::GetStyle().NodePadding.x));
228 ImGui::PushFont(GetUIFont("OpenSans-Bold"));
229 ImGui::Text(text.c_str());
230 ImGui::PopFont();
231 ImGui::NewLine();
232}