15 ImGui::PushID(imguiId);
17 if (!ImGui::Begin(ICON_NAME, &open))
25 if (ImGui::BeginPopup(
"Options"))
27 ImGui::Checkbox(
"Auto-scroll", &autoScroll);
32 if (ImGui::Button(
"Options"))
33 ImGui::OpenPopup(
"Options");
35 if (ImGui::Button(
"Clear"))
39 if(ImGui::Button(
"Copy"))
40 {ImGui::LogToClipboard();}
43 filter.Draw(
"Filter", -100.0f);
46 ImGui::BeginChild(
"scrolling", ImVec2(0, 0),
false, ImGuiWindowFlags_HorizontalScrollbar);
49 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
50 if (filter.IsActive())
54 if (filter.PassFilter(i.c_str()))
56 ImGui::TextUnformatted(i.c_str());
65 ImGui::TextUnformatted(i.c_str());
70 if (autoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())
71 ImGui::SetScrollHereY(1.0f);