INNER CODE UNIT · C#

footerHeightToReserve

HexaEngine/HexaEngine · CrashReporter/CrashWindow.cs:44

            float footerHeightToReserve = ImGui.GetStyle().ItemSpacing.Y + ImGui.GetFrameHeightWithSpacing();
            if (ImGui.BeginChild(1, new Vector2(0, -footerHeightToReserve), ImGuiChildFlags.None, ImGuiWindowFlags.HorizontalScrollbar))
            {
                ImGui.TextColored(new(1, 0, 0, 1), "Oops something went wrong!");
                ImGui.Text(reportFile ?? string.Empty);
                ImGui.Separator();
                var msg = reportMessage;
                var avail = ImGui.GetContentRegionAvail();
                int count = Encoding.UTF8.GetByteCount(msg) + 64;
                ImGui.InputTextMultiline("##Msg"u8, ref msg, (nuint)count, avail, ImGuiInputTextFlags.ReadOnly);
            }
            ImGui.EndChild();

            ImGui.SetNextItemWidth(-100);
            if (ImGui.Button("Ok"))
            {
                Close();
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…