mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-18 01:14:19 +00:00
Debug Log: Added "Configure Outputs.." button. (#5855)
This commit is contained in:
parent
a62794359a
commit
7e0b3b9caf
3 changed files with 20 additions and 0 deletions
16
imgui.cpp
16
imgui.cpp
|
|
@ -15739,6 +15739,22 @@ void ImGui::ShowDebugLogWindow(bool* p_open)
|
|||
SameLine();
|
||||
if (SmallButton("Copy"))
|
||||
SetClipboardText(g.DebugLogBuf.c_str());
|
||||
SameLine();
|
||||
if (SmallButton("Configure Outputs.."))
|
||||
OpenPopup("Outputs");
|
||||
if (BeginPopup("Outputs"))
|
||||
{
|
||||
CheckboxFlags("OutputToTTY", &g.DebugLogFlags, ImGuiDebugLogFlags_OutputToTTY);
|
||||
#ifndef IMGUI_ENABLE_TEST_ENGINE
|
||||
BeginDisabled();
|
||||
#endif
|
||||
CheckboxFlags("OutputToTestEngine", &g.DebugLogFlags, ImGuiDebugLogFlags_OutputToTestEngine);
|
||||
#ifndef IMGUI_ENABLE_TEST_ENGINE
|
||||
EndDisabled();
|
||||
#endif
|
||||
EndPopup();
|
||||
}
|
||||
|
||||
BeginChild("##log", ImVec2(0.0f, 0.0f), ImGuiChildFlags_Border, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar);
|
||||
|
||||
const ImGuiDebugLogFlags backup_log_flags = g.DebugLogFlags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue