MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ShowDebugLogFlag

Function ShowDebugLogFlag

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:15768–15779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15766}
15767
15768static void ShowDebugLogFlag(const char* name, ImGuiDebugLogFlags flags)
15769{
15770 ImGuiContext& g = *GImGui;
15771 ImVec2 size(ImGui::GetFrameHeight() + g.Style.ItemInnerSpacing.x + ImGui::CalcTextSize(name).x, ImGui::GetFrameHeight());
15772 SameLineOrWrap(size); // FIXME-LAYOUT: To be done automatically once we rework ItemSize/ItemAdd into ItemLayout.
15773 if (ImGui::CheckboxFlags(name, &g.DebugLogFlags, flags) && g.IO.KeyShift && (g.DebugLogFlags & flags) != 0)
15774 {
15775 g.DebugLogAutoDisableFrames = 2;
15776 g.DebugLogAutoDisableFlags |= flags;
15777 }
15778 ImGui::SetItemTooltip("Hold SHIFT when clicking to enable for 2 frames only (useful for spammy log entries)");
15779}
15780
15781void ImGui::ShowDebugLogWindow(bool* p_open)
15782{

Callers 1

ShowDebugLogWindowMethod · 0.85

Calls 1

SameLineOrWrapFunction · 0.85

Tested by

no test coverage detected