Ver código fonte

Separator() logs itself as text

ocornut 10 anos atrás
pai
commit
55093ea8fe
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      imgui.cpp

+ 4 - 0
imgui.cpp

@@ -6487,6 +6487,10 @@ void ImGui::Separator()
 
     window->DrawList->AddLine(bb.Min, bb.Max, window->Color(ImGuiCol_Border));
 
+    ImGuiState& g = *GImGui;
+    if (g.LogEnabled)
+        ImGui::LogText(STR_NEWLINE "--------------------------------");
+
     if (window->DC.ColumnsCount > 1)
     {
         PushColumnClipRect();