INNER CODE UNIT · C++
footer_height_to_reserve
JuanDiegoMontoya/Gengine · src/engine/Console.cpp:233
const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing();
ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar);
if (ImGui::BeginPopupContextWindow())
{
if (ImGui::Selectable("Clear")) Clear();
ImGui::EndPopup();
}
// display all the entries in the console
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing
for (int i = 0; i < console->logEntries.size(); i++)
{
const auto& pair = console->logEntries[i];
const char* item = pair.first.c_str();
CColor c = pair.second;
ImVec4 color{ c.r, c.g, c.b, 1 };
//if (!Filter.PassFilter(item))